UKVoIPTalk.com

UKVoIPTalk.com

The UK's Number One VoIP Resource

 

displaying DIALLED number in Asterisk

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


Go Back   UKVoIPTalk.com > Newsgroup Forums > uk.telecom.voip

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read



Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-09-2007, 20:33
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 28-09-2007, 21:47
gill bates
Guest
 
Posts: n/a
Default Re: displaying DIALLED number in Asterisk

> 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


Reply With Quote
  #3 (permalink)  
Old 28-09-2007, 23:15
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:[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
Reply With Quote
  #4 (permalink)  
Old 28-09-2007, 23:56
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...[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


Reply With Quote
  #5 (permalink)  
Old 29-09-2007, 00:04
Jono
Guest
 
Posts: n/a
Default Re: displaying DIALLED number in Asterisk

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


Reply With Quote
  #6 (permalink)  
Old 29-09-2007, 00:06
Jono
Guest
 
Posts: n/a
Default Re: displaying DIALLED number in Asterisk

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!


Reply With Quote
  #7 (permalink)  
Old 29-09-2007, 08:34
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:[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
Reply With Quote
  #8 (permalink)  
Old 29-09-2007, 10:15
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...[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!


Reply With Quote
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 Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:10.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0