[Asterisk-Users] IAX2 to IAX2...i'm obviously an idiot!!

asteriskstuff at ziplip.com asteriskstuff at ziplip.com
Mon Jul 26 11:47:56 MST 2004


Hi All

I'm trying to get two Asterisk servers to talk to each other using IAX(2).

I've read the WiKi and the docs and tried the examples.....

I can't get it to work (I have 2 x 7960's registering on one server and 1 x 7960 registering on the other).

I've set them up as follows...

The two servers are set up as friends and have consecutive IP address's.

The setup is that the prefix 3 determines that the server dials the extension number on the other servers local context:-

extensions.conf

exten => _3XXXX,1,Dial(IAX2/OtherServer:Password at OtherServerIP:5036/${EXTEN:1}@local)

When I do a dial say 32221 this is what comes up in the console:-

Executing GoTo("SIP/2231-xxxx", "intern-post|32221|1") in new stack

GoTo (intern-post,32221,1)

Executing Dial("SIP/2231-xxxx", "IAX2/OtherServer:Password at OtherServerIP:5036/2221 at local") in new stack

Called OtherServer:Password at OtherServerIP:5036/2221 at local

Warning: chan_iax2.c:1413 attempt_transmit: Max retries exceeded to host OtherServerIP on IAX2/OtherServerIP:5036/3 (type = 6, subclass = 1, ts=2, seqno=0)

Hungup 'IAX2/OtherServerIP:5036/3'

then the regular cleanup commands

In "IAX2 Show Peers" I get:-

OtherServer    OtherServerIP    (S)  255.255.255.255   4569    UnMonitored

I'm confused

why is the connection showing on port 4569 in show peers?  Is this a default?

Is there a way to test the validity of the IAX2 connection from the console?

Thanks in advance.

P






More information about the asterisk-users mailing list