[Asterisk-Users] IAX Example Needed

willy at yponeinc.com willy at yponeinc.com
Thu Apr 29 13:59:40 MST 2004


Hi All!
I have two [*]s, and both work OK as a simple local PBX. 
Now, I try to link them using IAX. Let's call those babies
a1 and a2. From a1, I want to dial a phone connected to a2. 
Both boxes have a fixed IP address, and use standard port
5036, say a1.mystrx.com and a2.mystrx.com. 
Where I (obviously) get confused, is when it comes to
inbound, outbound, registration, etc.  Taking a hint from
SIP channels, though, here is what I came up with:

**** Machine a1 ****
--- iax.conf ---
[general]
blah blah

[iax-a2]
type=friend
context=inbound-calls ; to allow a2 to call in to me
username=iax
secret=secret
host=a2.mystrx.com

--- extensions.conf ---
[intern]
exten => 6111,1,Dial(IAX2/iax-a2/6111) ; 
exten => 6111,2,Hangup

[inbound-calls]
exten => 5111,1,Dial(SIP/2200)
exten => 5111,2,Hangup

**** Machine a2 ****
--- iax.conf ---

[general]
blah blah

[iax-a1]
type=friend
context=inbound-calls ; to allow a2 to call in to me
username=iax
secret=secret
host=a1.mystrx.com

--- extensions.conf ---
[intern]
exten => 5111,1,Dial(IAX2/iax-a1/5111) ; 
exten => 5111,2,Hangup

[inbound-calls]
exten => 6111,1,Dial(SIP/3200)
exten => 6111,2,Hangup

=======================
When I dial extension 6111 at the a1 pbx, I see the
Dial(IAX2/iax-a2/6111) beinf executed, but nothing happens
at machine a2.

Any comments?
I must be missing something really simple.
TIA
WW

Willy Wouters
ypOne Publishing




More information about the asterisk-users mailing list