[asterisk-users] how do I set callerid for incoming iax?

sean darcy seandarcy2 at gmail.com
Tue May 6 16:14:56 CDT 2008


Tilghman Lesher wrote:
> On Tuesday 06 May 2008 12:45:42 sean darcy wrote:
>> Using 1.6-rc8.
>>
>> In iax.conf on the calling box, I have:
>>
>> [iax-out]
>> .........
>> callerid = "sean" <447>
>>
>> I even also put the same on called box.
>>
>> But I can't seem to set the callerid:
>>
>> exten =>_NXX,1,Answer()
>> exten =>_NXX,n,NoOp(${CALLERID(num)})
>>
>>
>> Answer("IAX2/iax-in-7", "") in new stack
>>   NoOp("IAX2/iax-in-7", "") in new stack
>>
>> So how do I set callerid?
> 
> "iax-out" != "iax-in"
> 

So??

On the calling box,
[iax-out]
type=friend
username=iax-in
secret=password
peercontext=longdistance ; which also does extensions
host=
qualify=yes
trunk=yes
callerid = "sean" <447>

On the called - receiving - box:

[iax-in]
type=friend
username=iax-in
secret=password
context=longdistance
qualify=yes
trunk=yes
callerid = "sean" <447>

and  then the cli shows:

-- Executing [2127877600 at longdistance:1] Answer("IAX2/iax-in-1", "") in 
new stack
     -- Executing [2127877600 at longdistance:2] NoOp("IAX2/iax-in-1", "") 
in new stack
................

I must be missing something. The name of the iax.conf context matters 
somehow?

Thanks for any help.

sean




More information about the asterisk-users mailing list