Ok, so I’m trying to do this on a host, 192.168.10.5…
exten => 5000,n,Dial(IAX2/vmserver:firstname.lastname@example.org/vmput01@company,20,tr)
and my host 192.168.10.7 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 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?