IAX Trunking/Peering HELP

Hello all .

I am basically trying to get 2 * servers to be able to call each other via IAX peering/trunking.

I am using the method I found on voip-info.org. I have been working on this for quite some time and am Stumped. These servers are on a test network and what I am simulating is a remote office calling our main office and vice versa.

I am using * v.1.4.4
Here are my IAX.conf and extensions.conf settings

SERVERA (iax.conf) (172.16.0.200)
[REC_SERVER]
type=user
host=192.168.125.3
secret=mysecret
context=local
trunk=yes

SERVERA (iax.conf) (172.16.0.200)
[REMOTE_SERVER]
type=peer
host=192.168.125.3
secret=mysecret
context=local

SERVERA (extensions.conf)
[mycontext]
exten => 5XXX,1,Dial(IAX2/REMOTE_SERVER/${EXTEN})
exten => _5XXX,2,Hangup
exten => _5XXX,102,Hangup

SERVERB (iax.conf)(192.168.125.3)
[REC_SERVER]
type=user
host=172.16.0.200
secret=mysecret
context=local
trunk=yes

SERVERB (iax.conf)(192.168.125.3)
[REMOTE_SERVER]
type=peer
host=172.16.0.200
secret=mysecret
context=local

SERVERB (extensions.conf)
[mycontext]
exten => 6XXX,1,Dial(IAX2/REMOTE_SERVER/${EXTEN})
exten => _6XXX,2,Hangup
exten => _6XXX,102,Hangup

Hi, one thing I can see right off the bat is your extensions.conf
looks to be wrong.

to signify pattern matching you need to start with the “_” character,
you did that on lines 2 and 3, but not on line 1

— yours
[mycontext]
exten => 5XXX,1,Dial(IAX2/REMOTE_SERVER/${EXTEN})
exten => _5XXX,2,Hangup
exten => _5XXX,102,Hangup

— should be
[mycontext]
exten => _5XXX,1,Dial((IAX2/REMOTE_SERVER/${EXTEN})
exten => _5XXX,2,Hangup
exten => _5XXX,102,Hangup

also if you still have trouble, then get into your asterisk console (on both machines) (asterisk -c) and then place a call. you should see debugging info on the screen telling you what asterisk is trying to do and what response it’s getting. post the info that appears on the consoles of each when you place a call.

-brian

That worked great! Thank you very much!