[Asterisk-Users] IAX2 insists on not using port 4569??

Mike Benoit ipso at snappymail.ca
Tue Dec 21 22:13:19 MST 2004


For some reason, starting just today, 1 out 3 of my asterisk servers is
having issues calling 1 other server. The only issue I see is that when
it registers with the problem server it is using port 1027, not 4569.

ie:
Registered to 'Server 1', who sees us as 'Server 2':1027

Server 1 then proceeds to timeout trying to register with Server 2.

The way I have each server registering with one another is this:

Server 1 	- Server 2
		- Server 3
*Server 1 is behind NAT, with port 4569 forwarded to it of course.

Server 2	- Server 1
		- Server 3

Server 3	- Server 1
		- Server 2

Now:

Server 1 can call Server 2, and 3
Server 2 can only call Server 3
Server 3 can call Server 1, and 2

So, even though Server 3 registers with Server 1, on port 4569, it can
call it fine (So NAT is obviously working). However Server 2 insists on
registering to Server 1 with port 1027, and it cannot call server 1.

Server 1:
--------------------
*CLI> iax2 show registry
Host                  Username    Perceived             Refresh  State
'Server 2':4569       west       <Unregistered>         60  Timeout
'Server 3':4569       west     'Server 1':4569          60  Registered

Server 2:
--------------------
*CLI> iax2 show registry
Host                  Username    Perceived             Refresh  State
'Server 1':4569       central     'Server 2':1027         60  Registered
'Server 3':4569       central     'Server 2':4569         60  Registered

Server 3:
-------------------
*CLI> iax2 show registry
Host                  Username    Perceived             Refresh  State
'Server 2':4569       east  'Server 3':4569               60  Registered
'Server 1':4569       east  'Server 3':4569               60  Registered


This just started happening today, nothing that I am aware of changed.
All servers are running stock Asterisk v1.0.2. 

Any ideas what would cause Server 2 to just start using some weird port?


IAX2 debug info output on Server 1:
----------------------------------------------------------------------
Tx-Frame Retry[000] -- OSeqno: 004 ISeqno: 000 Type: IAX     Subclass:
LAGRQ
   Timestamp: 30014ms  SCall: 00004  DCall: 00000 ['Server 2':4569]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass:
REGREQ
   Timestamp: 00009ms  SCall: 00006  DCall: 00000 ['Server 2':1027]
   USERNAME        : central
   REFRESH         : 60

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
REGAUTH
   Timestamp: 00010ms  SCall: 00008  DCall: 00006 ['Server 2':1027]
   AUTHMETHODS     : 3
   CHALLENGE       : 182440343
   USERNAME        : central

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass:
REGREQ
   Timestamp: 00074ms  SCall: 00006  DCall: 00008 ['Server 2':1027]
   USERNAME        : central
   REFRESH         : 60
   MD5 RESULT      : 4c3666e4e091836fb626f79923fed5dc

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass:
REGACK
   Timestamp: 00058ms  SCall: 00008  DCall: 00006 ['Server 2':1027]
   USERNAME        : central
   DATE TIME       : 160803087
   REFRESH         : 60
   APPARENT ADDRES : IPV4 'Server 2':1027

Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass:
ACK
   Timestamp: 00058ms  SCall: 00006  DCall: 00008 ['Server 2':1027]
Tx-Frame Retry[001] -- OSeqno: 004 ISeqno: 000 Type: IAX     Subclass:
LAGRQ
   Timestamp: 30014ms  SCall: 00004  DCall: 00000 ['Server 2':4569]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass:
REGREQ
   Timestamp: 00014ms  SCall: 00001  DCall: 00000 ['Server 2':4569]
   USERNAME        : westbank
   REFRESH         : 60

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass:
POKE
   Timestamp: 00003ms  SCall: 00003  DCall: 00000 ['Server 2':1027]
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
PONG
   Timestamp: 00003ms  SCall: 00001  DCall: 00003 ['Server 2':1027]
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass:
ACK
   Timestamp: 00003ms  SCall: 00003  DCall: 00001 ['Server 2':1027]
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass:
POKE                                     

-- 
Mike Benoit <ipso at snappymail.ca>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20041221/d54e1d42/attachment.pgp


More information about the asterisk-users mailing list