Dialling into a context with IAX


#1

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

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

and my host 192.168.10.7 has in iax.conf:

(iax.conf)
[vmserver]
host=192.168.10.5
type=user
context=test
username=vmserver
secret=180

(extensions.conf)
[company]
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 192.168.10.7: No authority found”. I can fix this problem by removing the @company context and sticking a peercontext= in iax.conf on 192.168.10.5, 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?


#2

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

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


#3

Hi,

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