Besides iax.conf you also need to look at extensions.conf. It is there that the rules are setup telling which machine to dial under what circumstances. For Example,
Assume the name of this machine is "othermachine-0"
[going-to-other-machines] exten => _71.,1,Dial,IAX2/[EMAIL PROTECTED]/${EXTEN:2} exten => _72.,1,Dial,IAX2/[EMAIL PROTECTED]/$(EXTEN:2}
This would set up a dialing rule so that if you dialed "711234" it would call extension "1234" on othermachine-1.
Similarly, "725678" would dial "5678" on othermachine-2.
othermachine-1 and -2 would have to have definitions in iax.conf, as you suggested, and "othermachine-0" would have to be defined in the other two servers (but not on itself).
What those lines are saying is "If a number starts with 71, dial the extension number (except leave off the first two digits, the "71" itself) on othermachine-1. Tell othermachine-1 that my name is othermachine-0."
Look at some example config files on voip-info.org
Message: 1 Date: Mon, 23 Feb 2004 18:53:18 +0000 From: Chris Lee <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [Asterisk-Users] Confusion with IAX PBX-PBX Reply-To: [EMAIL PROTECTED]
I have been trying to set up three * servers to use IAX between them and am a bit lost as to the finer detail of the config files. I have read the wiki and it has not made things better.
Here is my problem;
I create a section like this on each machines: [othermachine-1] type=friend host=dynamic secret=password trunk=yes qualify=yes context=incoming-1
[othermachine-2] type=friend host=dynamic secret=password trunk=yes qualify=yes context=incoming-2
Now in my extensions.conf I use the link like this: IAX2/othermachine-1
But my problem comes in with the receiving machine, how does it know which machine the link came from without a username of some kind.
Or have I completely missed the point of IAX?
Please help I am completely lost.
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users