Dialling into a context with IAX


Ok, so I’m trying to do this on a host,…

exten => 5000,n,Dial(IAX2/vmserver:180@,20,tr)

and my host has in iax.conf:


exten => vmput01,1,Answer
exten => vmput01,n,Voicemail(1000010100@vmusers)
exten => vmput01,n,Hangup

When I dial this number, I got a message “Call rejected by No authority found”. I can fix this problem by removing the @company context and sticking a peercontext= in iax.conf on, but I don’t want to do that. I want to be able to set the context we jump into on the new box for each number dialed, hence @company at the end. I don’t want to have to create a [section] in iax.conf on the client and server for every number dialled. How do I do this?


Made some progress. Now is displaying:
*CLI> Nov 29 07:26:44 NOTICE[20042]: chan_iax2.c:6772 socket_read: Rejected connect attempt from, who was trying to reach ‘vmput01@company’

At least it’s different. Got that after I removed context=test. So, why is refusing to route the call? The context exists, and so does the extension in that context.



Did you solved your problem please ? I have the same.