[asterisk-bugs] [Asterisk 0012385]: AUTHREQ gets ignored / ACKed

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Apr 9 11:11:26 CDT 2008


The following issue requires your FEEDBACK. 
====================================================================== 
http://bugs.digium.com/view.php?id=12385 
====================================================================== 
Reported By:                viraptor
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12385
Category:                   Channels/chan_iax2
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             04-08-2008 12:29 CDT
Last Modified:              04-09-2008 11:11 CDT
====================================================================== 
Summary:                    AUTHREQ gets ignored / ACKed
Description: 
I've got a IAX out account configured to another host on asterisk 1.4.17.
In some configurations asterisk fails to answer to AUTHREQ packet, returns
just ACK and sits waiting (LAGRQ and other appropriate packets follow).
Debug:

--->8---
    -- Executing [s at macro-dialout-trunk:25] Dial("SIP/7001-08e83a28",
"IAX2/newarkiax/1000254|300|") in new stack
    -- Called newarkiax/1000254
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX     Subclass: NEW
   
   Timestamp: 00002ms  SCall: 00001  DCall: 00000 [X.X.X.X:4569]
   VERSION         : 2
   CALLED NUMBER   : 1000254
   CODEC_PREFS     : (alaw)
   CALLING NUMBER  : 01225580037
   CALLING PRESNTN : 0
   CALLING TYPEOFN : 0
   CALLING TRANSIT : 0
   CALLING NAME    : 
   LANGUAGE        : en
   USERNAME        : newarkiaxout
   FORMAT          : 8
   CAPABILITY      : 57352
   ADSICPE         : 2
   DATE TIME       : 2008-04-08  17:32:34

Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX     Subclass:
AUTHREQ
   Timestamp: 00019ms  SCall: 31765  DCall: 00001 [X.X.X.X:4569]
   AUTHMETHODS     : 3
   CHALLENGE       : 148526591
   USERNAME        : newarkiaxout

Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass: ACK
   
   Timestamp: 00019ms  SCall: 00001  DCall: 31765 [X.X.X.X:4569]
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: IAX     Subclass:
LAGRQ  
   Timestamp: 10003ms  SCall: 00001  DCall: 31765 [X.X.X.X:4569]
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX     Subclass:
LAGRP  
   Timestamp: 10003ms  SCall: 31765  DCall: 00001 [X.X.X.X:4569]
Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass: ACK
   
   Timestamp: 10003ms  SCall: 00001  DCall: 31765 [X.X.X.X:4569]
Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX     Subclass:
LAGRQ  
   Timestamp: 10019ms  SCall: 31765  DCall: 00001 [X.X.X.X:4569]
Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 003 Type: IAX     Subclass:
LAGRP  
   Timestamp: 10019ms  SCall: 00001  DCall: 31765 [X.X.X.X:4569]
Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 003 Type: IAX     Subclass: ACK
   
   Timestamp: 10019ms  SCall: 31765  DCall: 00001 [X.X.X.X:4569]
    -- Hungup 'IAX2/newarkiax-1'
Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 003 Type: IAX     Subclass:
HANGUP 
   Timestamp: 18925ms  SCall: 00001  DCall: 31765 [X.X.X.X:4569]
   CAUSE CODE      : 0
--->8---

Surprisingly that behaviour happens only in specific configuration.
Contents included in iax.conf (I am dialing out through "newarkiax" as
visible earlier, not "newarkiaxtest"):

--->8---
[newarkiax]
username=newarkiaxout
type=peer
password=********
host=X.X.X.X
disallow=all
allow=alaw

[newarkiaxtest]
username=newarkiaxout
type=peer
secret=********
port=4569
host=A.A.A.A
disallow=all
allow=alaw
--->8---

Now if I change port details in "newarkiaxtest" to port=4570 and
host=X.X.X.X, dialing out through "newarkiax" works again (that's the only
change and I get AUTHREP to AUTHREQ again + call succeeds). I've confirmed
I'm changing only those 2 lines and that I'm using the same context dialing
out (couple of times, because it just doesn't seem to make sense).
Anyways - according to iax draft AUTHREQ shouldn't get ACK in response in
any scenario.
====================================================================== 

---------------------------------------------------------------------- 
 file - 04-09-08 11:11  
---------------------------------------------------------------------- 
While I can't reproduce this I did not a configuration error, your
newarkiax entry is using password while it should be using secret. If you
change this to what it should be does it work? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-09-08 11:11  file           Note Added: 0085198                          
04-09-08 11:11  file           Status                   new => feedback     
======================================================================




More information about the asterisk-bugs mailing list