The UK's Number One VoIP Resource
This is a discussion on displaying DIALLED number in Asterisk within the uk.telecom.voip forums, part of the Newsgroup Forums category; Hi, Have any of you guys been successful in displaying the dialled number in Asterisk. I am using a IAX ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
Have any of you guys been successful in displaying the dialled number in Asterisk. I am using a IAX trunk from Gradwell. I have tried the following exten => _X.,n,NoOp(${CALLERID(dnid)}) exten => _X.,n,NoOp(${DNID}) to no avail. I understand that exten => _X.,n,NoOp(${SIP_HEADER(TO)}) may have worked if I were using a SIP trunk. But I am not. :-( Any advice appreciated. |
|
|||
|
> I am using a IAX trunk from Gradwell.[color=blue]
> > I have tried the following > > exten => _X.,n,NoOp(${CALLERID(dnid)}) > exten => _X.,n,NoOp(${DNID}) > > to no avail. I understand that > > exten => _X.,n,NoOp(${SIP_HEADER(TO)}) > > may have worked if I were using a SIP trunk. But I am not. :-( > > Any advice appreciated.[/color] I turned on IAX2 debugging and the info I want is displayed - I just need to get it into a variable! Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW Timestamp: 00013ms SCall: 00004 DCall: 00000 [193.121.201.100:4569] VERSION : 2 CALLED NUMBER : 01753208000 CODEC_PREFS : () CALLING NUMBER : 07962404466 CALLING PRESNTN : 0 CALLING TYPEOFN : 0 CALLING TRANSIT : 0 CALLING NAME : LANGUAGE : en USERNAME : abcuser FORMAT : 8 CAPABILITY : 65407 ADSICPE : 2 DATE TIME : 2007-09-28 21:44:30 |
|
|||
|
In article <UFcLi.49370$j16.3492@newsfe6-gui.ntli.net>,
gill bates <gillbates@xyz.com> wrote:[color=blue] >Hi, > >Have any of you guys been successful in displaying the dialled number in >Asterisk. > >I am using a IAX trunk from Gradwell. > >I have tried the following > >exten => _X.,n,NoOp(${CALLERID(dnid)}) >exten => _X.,n,NoOp(${DNID}) > >to no avail. I understand that > >exten => _X.,n,NoOp(${SIP_HEADER(TO)}) > >may have worked if I were using a SIP trunk. But I am not. :-( > >Any advice appreciated.[/color] The number you dialled is ${EXTEN} ... The number calling you is ${CALLERID(num)} Or do you mean something else? Gordon |
|
|||
|
"Gordon Henderson" <gordon+usenet@drogon.net> wrote in message news:fdjudk$1lt1$1@energise.enta.net...[color=blue] > In article <UFcLi.49370$j16.3492@newsfe6-gui.ntli.net>, > gill bates <gillbates@xyz.com> wrote:[color=green] >>Hi, >> >>Have any of you guys been successful in displaying the dialled number in >>Asterisk. >> >>I am using a IAX trunk from Gradwell. >> >>I have tried the following >> >>exten => _X.,n,NoOp(${CALLERID(dnid)}) >>exten => _X.,n,NoOp(${DNID}) >> >>to no avail. I understand that >> >>exten => _X.,n,NoOp(${SIP_HEADER(TO)}) >> >>may have worked if I were using a SIP trunk. But I am not. :-( >> >>Any advice appreciated.[/color] > > The number you dialled is ${EXTEN} ... The number calling you > is ${CALLERID(num)} > > Or do you mean something else? > > Gordon[/color] hi Gordon, I am looking for dialled number. so person can answer as abc ltd or xyz ltd. The DNIS or DNID. it can be seen in the IAX debug info as CALLED NUMBER (seee below) Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW Timestamp: 00013ms SCall: 00004 DCall: 00000 [193.121.201.100:4569] VERSION : 2 CALLED NUMBER : 01753208000 CODEC_PREFS : () CALLING NUMBER : 07962404466 CALLING PRESNTN : 0 CALLING TYPEOFN : 0 CALLING TRANSIT : 0 CALLING NAME : LANGUAGE : en USERNAME : abcuser FORMAT : 8 CAPABILITY : 65407 ADSICPE : 2 DATE TIME : 2007-09-28 21:44:30 |
|
|||
|
gill bates submitted this idea :
[color=blue] > > I am looking for dialled number. > > so person can answer as abc ltd or xyz ltd. >[/color] can't you just give the ring group a name? either abc ltd or 01234567890 |
|
|||
|
gill bates brought next idea :
[color=blue] > > I am looking for dialled number. >[/color] Crikey! I've been trying to work out why you want to show the number you've dialled. It's the number the /caller's/ dialled you're after! |
|
|||
|
In article <JEfLi.36266$ka7.2756@newsfe4-gui.ntli.net>,
gill bates <gillbates@xyz.com> wrote:[color=blue] > >"Gordon Henderson" <gordon+usenet@drogon.net> wrote in message >news:fdjudk$1lt1$1@energise.enta.net...[color=green] >> In article <UFcLi.49370$j16.3492@newsfe6-gui.ntli.net>, >> gill bates <gillbates@xyz.com> wrote:[color=darkred] >>>Hi, >>> >>>Have any of you guys been successful in displaying the dialled number in >>>Asterisk. >>> >>>I am using a IAX trunk from Gradwell. >>> >>>I have tried the following >>> >>>exten => _X.,n,NoOp(${CALLERID(dnid)}) >>>exten => _X.,n,NoOp(${DNID}) >>> >>>to no avail. I understand that >>> >>>exten => _X.,n,NoOp(${SIP_HEADER(TO)}) >>> >>>may have worked if I were using a SIP trunk. But I am not. :-( >>> >>>Any advice appreciated.[/color] >> >> The number you dialled is ${EXTEN} ... The number calling you >> is ${CALLERID(num)} >> >> Or do you mean something else? >> >> Gordon[/color] > >hi Gordon, > >I am looking for dialled number. > >so person can answer as abc ltd or xyz ltd. > >The DNIS or DNID.[/color] OK. I understand now! You're a switchboard for a number of companies and need to know the number the remote person dialled so you can answer with the right company name. It's ${EXTEN} But maybe you need to change the way you handle incoming numbers? Rather than a wildcard of _X. then you could list each number individually. This is what I do on incoming IAX trunks. So I have a context which is mentioned in the entry in the iax.conf file: ; Gateway to/from Magrathea [magrathea] type=friend context=fromIAX_magrathea .... etc. and in extensions.conf: [fromIAX_magrathea] ; Drogon Systems ; 01364 698 123 exten => 441364698123,1,Noop(Incoming IAX call via Magrathea from ${CALLERID(all)} calling ${EXTEN} - Drogon Systems) exten => 441364698123,n,Goto(100,incoming,1) and so on for each number registered. However, even using a wildcard, you'll still have the inbound number in ${EXTEN} Calling in to that shows the following in the verbose console log: -- Executing NoOp("IAX2/magrathea-2", "Incoming IAX call via Magrathea from "" <07712191046> calling 441364698123 - Drogon Systems") in new stack -- Executing Goto("IAX2/magrathea-2", "100|incoming|1") in new stack What you need to do is get that number through to the phone/display, but I guess you have that sorted... Gordon |
|
|||
|
"Gordon Henderson" <gordon+usenet@drogon.net> wrote in message
news:fdkv5l$df6$1@energise.enta.net...[color=blue] > In article <JEfLi.36266$ka7.2756@newsfe4-gui.ntli.net>, > gill bates <gillbates@xyz.com> wrote:[color=green] >> >>"Gordon Henderson" <gordon+usenet@drogon.net> wrote in message >>news:fdjudk$1lt1$1@energise.enta.net...[color=darkred] >>> In article <UFcLi.49370$j16.3492@newsfe6-gui.ntli.net>, >>> gill bates <gillbates@xyz.com> wrote: >>>>Hi, >>>> >>>>Have any of you guys been successful in displaying the dialled number in >>>>Asterisk. >>>> >>>>I am using a IAX trunk from Gradwell. >>>> >>>>I have tried the following >>>> >>>>exten => _X.,n,NoOp(${CALLERID(dnid)}) >>>>exten => _X.,n,NoOp(${DNID}) >>>> >>>>to no avail. I understand that >>>> >>>>exten => _X.,n,NoOp(${SIP_HEADER(TO)}) >>>> >>>>may have worked if I were using a SIP trunk. But I am not. :-( >>>> >>>>Any advice appreciated. >>> >>> The number you dialled is ${EXTEN} ... The number calling you >>> is ${CALLERID(num)} >>> >>> Or do you mean something else? >>> >>> Gordon[/color] >> >>hi Gordon, >> >>I am looking for dialled number. >> >>so person can answer as abc ltd or xyz ltd. >> >>The DNIS or DNID.[/color] > > OK. I understand now! You're a switchboard for a number of companies and > need to know the number the remote person dialled so you can answer > with the right company name. > > It's ${EXTEN} > > But maybe you need to change the way you handle incoming numbers? > > Rather than a wildcard of _X. then you could list each number > individually. This is what I do on incoming IAX trunks. So I have > a context which is mentioned in the entry in the iax.conf file: > > ; Gateway to/from Magrathea > [magrathea] > type=friend > context=fromIAX_magrathea > ... etc. > > and in extensions.conf: > > [fromIAX_magrathea] > > ; Drogon Systems > ; 01364 698 123 > > exten => 441364698123,1,Noop(Incoming IAX call via Magrathea > from ${CALLERID(all)} calling ${EXTEN} - Drogon Systems) > exten => 441364698123,n,Goto(100,incoming,1) > > and so on for each number registered. > > However, even using a wildcard, you'll still have the inbound number > in ${EXTEN} > > Calling in to that shows the following in the verbose console log: > > -- Executing NoOp("IAX2/magrathea-2", "Incoming IAX call via > Magrathea from "" <07712191046> calling 441364698123 - Drogon > Systems") in new stack > -- Executing Goto("IAX2/magrathea-2", "100|incoming|1") in new stack > > What you need to do is get that number through to the phone/display, but > I guess you have that sorted... > > Gordon[/color] hi gordon / all, I can't believe I overlooked ${EXTEN} ! I was thinking too much into it, because i read about DNIS and DNID and RDNIS etc Although I use ${EXTEN}in the dial plan it didn't cross my mind to try it on an external trunk! Thanks again guys! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|