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 [EMAIL PROTECTED]:1] Answer("IAX2/nhi-2", "") in new stack
>> Executing [EMAIL PROTECTED]:2] NoOp("IAX2/nhi-2", " first stanza") in 
>> new stack
>> Executing [EMAIL PROTECTED]: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


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to