[asterisk-users] beta9: how to set callerid on incoming iax?
sean darcy
seandarcy2 at gmail.com
Tue Sep 2 20:53:17 CDT 2008
sean darcy wrote:
> sean darcy wrote:
>> sean darcy wrote:
>>> iax.conf:
>>>
>>> [nhi] ; receives calls
>>> type=friend
>>> secret=password
>>> context=longdistance
>>> qualify=yes
>>> trunk=yes
>>> callerid="test" <447>
>>>
>>>
>>> extensions.conf:
>>>
>>> [longdistance]
>>>
>>> exten =>_1NXXNXXXXXX,1,Answer()
>>> exten =>_1NXXNXXXXXX,n,NoOp(${CALLERID(num)} first stanza)
>>> exten =>_1NXXNXXXXXX,n,Dial(Zap/g0/${EXTEN})
>>> exten =>_1NXXNXXXXXX,n,Congestion()
>>> exten =>_1NXXNXXXXXX,n,Busy()
>>> exten =>_1NXXNXXXXXX,n,Hangup()
>>>
>>> from cli:
>>>
>>> Executing [xxx at longdistance:1] Answer("IAX2/nhi-2", "") in new stack
>>> Executing [xxx at longdistance:2] NoOp("IAX2/nhi-2", " first stanza") in
>>> new stack
>>> Executing [xxx at longdistance:4] Dial("IAX2/nhi-2", "Zap/g0/xxx") in new stack
>>>
>>> So extensions.conf see the _channel_ as the callerid(num). Is this a
>>> bug, or am I messing something up?
>>>
>> No not the channel, it's the blank before "first stanza". Why's it blank?
>>
>>
> So I set up ten special iax-in* contexts in extensions.conf, which set
> callerid and then goto [longdistance]. Seems a weird way to do it, but
> it works.
>
> sean
We're switching at least some to sip for better call quality. There the
callerid set in sip.conf does carry over into the dialplan.
sean
More information about the asterisk-users
mailing list