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

Josh Roberson twisted at indigent-networks.com
Mon Jul 26 13:39:27 MST 2004


asteriskstuff at ziplip.com wrote:

>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.....
>
>  
>
You sure?

>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)
>
>  
>
5036 is not IAX2.  That's abundantly clear in the wiki and the 
examples.  4569 is the port you are looking for.

>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
>
>  
>
it even tells you this right here...

>I'm confused
>
>why is the connection showing on port 4569 in show peers?  Is this a default?
>
>  
>
*nods*

>Is there a way to test the validity of the IAX2 connection from the console?
>
>Thanks in advance.
>
>P
>
>
>  
>
-twisted



More information about the asterisk-users mailing list