[Asterisk-Users] Re: Confusion with IAX PBX-PBX
Matt Lawson
matt at 1control.com
Tue Feb 24 08:06:47 MST 2004
You can have it accept "unauthenticated" calls from anywhere, if you
wish, or you can have it require a password. The password is the
"secret" field. The username is the context heading "othermachine-1".
If no "secret" is defined, it will accept incoming calls from anywhere.
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/othermachine-0 at othermachine-1/${EXTEN:2}
exten => _72.,1,Dial,IAX2/othermachine-0 at othermachine-2/$(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 <cslee-list at cybericom.co.uk>
>To: asterisk-users at lists.digium.com
>Subject: [Asterisk-Users] Confusion with IAX PBX-PBX
>Reply-To: asterisk-users at lists.digium.com
>
>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
>>
>>
More information about the asterisk-users
mailing list