[asterisk-users] Automatic Hangup problem on IAX2 communication to Asterisk

Rajiv Dhir asterisk at totemspace.com
Wed Jul 12 05:39:46 MST 2006


Hi all,

I'm having a problem with receiving calls from a VOIP provider who is 
providing inbound PSTN termination using IAX2 to my asterisk at home 2.6 box.

The box is a mini-ITX based P5000 system running off a 2.5in drive with 
a digium TD400P (3 FXO). But this problem does not relate to the card.

Basically the provider gets a call in but when he talks to my server the 
two don't establish a call. At the same time as this happens I am able 
to access my system using my Digium IAXY.

I turned the IAX2 debugging on at the console and this is kind of what I 
see.

The provider gets a call and sends a frame to open the call.

I then take 13ms to send a "Challenge" request back to him.

By this time he seems to have sent a retry at 10ms.

At this point he then receives the challenge but sends back an "INVAL" 
which causes a hangup. This process repeats until the PSTN is hung up.

Am I right in thinking there is a timeout here and this is causing the 
problem?

I enclose the debug log. Any help appreciated. I've replace the actual 
phone numbers and ips for obvious reasons


Any Help appreciated, as I seem to have gone off the end of my service 
providers knowledgebase.

Cheers

Rajiv


-------------------------------------My IAXY device reacknowledging my 
Asterisk box---------(working)---

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: 
REGREQ
   Timestamp: 00002ms  SCall: 14336  DCall: 00000 [<IAXY_IP>]
   USERNAME        : <IAXY EXTENSION>
   REFRESH         : 60
   DEVICE TYPE     : iaxy2
   SERVICE IDENT   : 0003640011a3
   PROVISIONG VER  : 0

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: 
REGAUTH
   Timestamp: 00004ms  SCall: 00003  DCall: 14336 [<IAXY_IP>]
   AUTHMETHODS     : 3
   CHALLENGE       : 680869675
   USERNAME        : <IAXY EXTENSION>

Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: 
REGREQ
   Timestamp: 00005ms  SCall: 14336  DCall: 00003 [<IAXY_IP>]
   USERNAME        : <IAXY EXTENSION>
   MD5 RESULT      : a79821d4dd5c0adce83b88d3e5e6ed2a
   DEVICE TYPE     : iaxy2
   SERVICE IDENT   : 0003640011a3
   PROVISIONG VER  : 0

Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass: 
REGACK
   Timestamp: 00050ms  SCall: 00003  DCall: 14336 [<IAXY_IP>]
   USERNAME        : <IAXY EXTENSION>
   DATE TIME       : 2006-07-11  16:34:22
   REFRESH         : 60
   APPARENT ADDRES : <IAXY_IP>
   MESSAGE COUNT   : 512
   CALLING NUMBER  : <IAXY EXTENSION>
   CALLING NAME    : device

Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK
   Timestamp: 00050ms  SCall: 14336  DCall: 00003 [<IAXY_IP>]


----------------------------------------------Dialed 0845... from my 
mobile----------------(broken)

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00010ms  SCall: 00011  DCall: 00000 [<Service Provider IP>]
   VERSION         : 2
   CALLED NUMBER   : <PSTN NUMBER INBOUND>
   CODEC_PREFS     : ()
   CALLING NUMBER  : <CALLER ID OF ORIGINATING CALL>
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   LANGUAGE        : en
   USERNAME        : <Service Provider USERNAME>
   FORMAT          : 4
   CAPABILITY      : 65407
   ADSICPE         : 2
   DATE TIME       : 2006-07-11  16:34:24

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: 
AUTHREQ
   Timestamp: 00013ms  SCall: 00004  DCall: 00011 [<Service Provider IP>]
   AUTHMETHODS     : 3
   CHALLENGE       : 266133398
   USERNAME        : <Service Provider USERNAME>


Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: INVAL
   Timestamp: 00000ms  SCall: 00011  DCall: 00004 [<Service Provider IP>]


Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00010ms  SCall: 00011  DCall: 00000 [<Service Provider IP>]
   VERSION         : 2
   CALLED NUMBER   : <PSTN NUMBER INBOUND>
   CODEC_PREFS     : ()
   CALLING NUMBER  : <CALLER ID OF ORIGINATING CALL>
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   LANGUAGE        : en
   USERNAME        : <Service Provider USERNAME>
   FORMAT          : 4
   CAPABILITY      : 65407
   ADSICPE         : 2
   DATE TIME       : 2006-07-11  16:34:24

Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass: 
AUTHREQ
   Timestamp: 00011ms  SCall: 00005  DCall: 00011 [<Service Provider IP>]
   AUTHMETHODS     : 3
   CHALLENGE       : 198315063
   USERNAME        : <Service Provider USERNAME>

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: INVAL
   Timestamp: 00000ms  SCall: 00011  DCall: 00005 [<Service Provider IP>]
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 000 Type: IAX     Subclass: 
HANGUP
   Timestamp: 02920ms  SCall: 00011  DCall: 00000 [<Service Provider IP>]
   CAUSE CODE      : 0

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: INVAL
   Timestamp: 00000ms  SCall: 00000  DCall: 00011 [<Service Provider IP>]
Rx-Frame Retry[Yes] -- OSeqno: 001 ISeqno: 000 Type: IAX     Subclass: 
HANGUP
   Timestamp: 02920ms  SCall: 00011  DCall: 00000 [<Service Provider IP>]
   CAUSE CODE      : 0

Tx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: INVAL
   Timestamp: 00000ms  SCall: 00000  DCall: 00011 [<Service Provider IP>]

Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   Timestamp: 00010ms  SCall: 00011  DCall: 00000 [<Service Provider IP>]
   VERSION         : 2
   CALLED NUMBER   : <PSTN NUMBER INBOUND>
   CODEC_PREFS     : ()
   CALLING NUMBER  : <CALLER ID OF ORIGINATING CALL>
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   LANGUAGE        : en
   USERNAME        : <Service Provider USERNAME>
   FORMAT          : 4
   CAPABILITY      : 65407
   ADSICPE         : 2
   DATE TIME       : 2006-07-11  16:34:24





More information about the asterisk-users mailing list