Go Back   Wireless and Wifi Forums > News > Newsgroups > uk.telecom.voip
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2007, 07:33 PM
gill bates
Guest
 
Posts: n/a
Default displaying DIALLED number in Asterisk

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.



Reply With Quote
  #2 (permalink)  
Old 09-28-2007, 08:47 PM
gill bates
Guest
 
Posts: n/a
Default Re: displaying 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 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



Reply With Quote
  #3 (permalink)  
Old 09-28-2007, 10:15 PM
Gordon Henderson
Guest
 
Posts: n/a
Default Re: displaying DIALLED number in Asterisk

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

Reply With Quote
  #4 (permalink)  
Old 09-28-2007, 10:56 PM
gill bates
Guest
 
Posts: n/a
Default Re: displaying DIALLED number in Asterisk


"Gordon Henderson" <gordon+usenet@drogon.net> wrote in message
news:fdjudk$1lt1$1@energise.enta.net...
> 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


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



Reply With Quote
  #5 (permalink)  
Old 09-29-2007, 07:34 AM
Gordon Henderson
Guest
 
Posts: n/a
Default Re: displaying DIALLED number in Asterisk

In article <JEfLi.36266$ka7.2756@newsfe4-gui.ntli.net>,
gill bates <gillbates@xyz.com> wrote:
>
>"Gordon Henderson" <gordon+usenet@drogon.net> wrote in message
>news:fdjudk$1lt1$1@energise.enta.net...
>> 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

>
>hi Gordon,
>
>I am looking for dialled number.
>
>so person can answer as abc ltd or xyz ltd.
>
>The DNIS or DNID.


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

Reply With Quote
  #6 (permalink)  
Old 09-29-2007, 09:15 AM
gill bates
Guest
 
Posts: n/a
Default Re: displaying DIALLED number in Asterisk

"Gordon Henderson" <gordon+usenet@drogon.net> wrote in message
news:fdkv5l$df6$1@energise.enta.net...
> In article <JEfLi.36266$ka7.2756@newsfe4-gui.ntli.net>,
> gill bates <gillbates@xyz.com> wrote:
>>
>>"Gordon Henderson" <gordon+usenet@drogon.net> wrote in message
>>news:fdjudk$1lt1$1@energise.enta.net...
>>> 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

>>
>>hi Gordon,
>>
>>I am looking for dialled number.
>>
>>so person can answer as abc ltd or xyz ltd.
>>
>>The DNIS or DNID.

>
> 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


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!



Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
02 promo - Number One - = 500 FREE anytime minutes to your designated number for the next three months Liam Hall uk.telecom.mobile 1 08-06-2007 11:16 AM
Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Lieberm Radium alt.internet.wireless 13 07-23-2007 09:58 PM
Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Lieberm Radium alt.cellular.cingular 12 07-23-2007 09:58 PM
Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Liebermann! Jeff Lieberm Radium alt.cellular.verizon 10 07-23-2007 09:58 PM
Asterisk and voicemail permission problem Tinus uk.telecom.voip 0 08-25-2006 02:47 PM


All times are GMT. The time now is 07:58 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45