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

Tony Nichols tony at mail.applog.com
Mon Jul 26 13:34:38 MST 2004


On Mon, 2004-07-26 at 14:47, 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.....
> 
> 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)
> 

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 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
Here 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 at 192.168.2.2/${EXTEN}

Works for me!

t o n y








More information about the asterisk-users mailing list