[asterisk-bugs] [Asterisk 0014284]: Asterisk retransmits the 401 response of failed REGISTER

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 26 04:55:11 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14284 
====================================================================== 
Reported By:                klaus3000
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14284
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-01-20 04:19 CST
Last Modified:              2009-01-26 04:55 CST
====================================================================== 
Summary:                    Asterisk retransmits the 401 response of failed
REGISTER
Description: 
Hi! Asterisk retransmits the 401 of a failed REGISTER. This is buggy as
there will not be an ACK for REGISTER, does Asterisk must not retransmit
any response in a REGISTER transaction - except the incoming REGISTER
itself is a retransmission!

client       Asterisk
-----REGISTER---->
<-----401---------
-----REGISTER---->
<-----401---------
-----REGISTER---->
<-----401---------
<-----401---------
<-----401---------
<-----401---------
<-----401---------
<-----401---------
<-----401---------
<-----401---------
<-----401---------
<-----401---------

====================================================================== 

---------------------------------------------------------------------- 
 (0098729) klaus3000 (reporter) - 2009-01-26 04:55
 http://bugs.digium.com/view.php?id=14284#c98729 
---------------------------------------------------------------------- 
I found out that the problem exists only when alwaysauthreject = yes.

Thus I reviewd the code and found that the transmit_fake_auth_response
function was called with "reliable=1" which is false.

Attached is a patch. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-26 04:55 klaus3000      Note Added: 0098729                          
======================================================================




More information about the asterisk-bugs mailing list