asteriskstuff@ziplip.com
2004-Jul-26 11:47 UTC
[Asterisk-Users] IAX2 to IAX2...i'm obviously an idiot!!
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@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@OtherServerIP:5036/2221@local") in new stack Called OtherServer:Password@OtherServerIP:5036/2221@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
Tony Nichols
2004-Jul-26 13:34 UTC
[Asterisk-Users] IAX2 to IAX2...i'm obviously an idiot!!
On Mon, 2004-07-26 at 14:47, asteriskstuff@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..... > > 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@OtherServerIP:5036/${EXTEN:1}@local) >The correct port is 4569 for iax2 - the older protocol was 5036> 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@OtherServerIP:5036/2221@local") in new stack > > Called OtherServer:Password@OtherServerIP:5036/2221@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. > > PHere is the iax.conf for both mine: [pbx] type=user secret=test trunk=yes host=dynamic qualify=yes username=pbx extensions.conf: ; iax princeton bridge exten => _2XX,1,Dial IAX2/pbx:test@192.168.2.2/${EXTEN} Works for me! t o n y
Josh Roberson
2004-Jul-26 13:39 UTC
[Asterisk-Users] IAX2 to IAX2...i'm obviously an idiot!!
asteriskstuff@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@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@OtherServerIP:5036/2221@local") in new stack > >Called OtherServer:Password@OtherServerIP:5036/2221@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