[asterisk-bugs] [Asterisk 0013309]: [patch] chan_sip does not always create regexten for registering peers

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Oct 14 18:00:03 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13309 
====================================================================== 
Reported By:                dimas
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13309
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.4.21.2 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-15 10:04 CDT
Last Modified:              2008-10-14 18:00 CDT
====================================================================== 
Summary:                    [patch] chan_sip does not always create regexten for
registering peers
Description: 
parse_register_contact contact function only calls register_peer_exten in
the case peer's IP/port changes. This is wrong because peer regexten may
not be re-created under some circumstances. Scenario

1. Realtime SIP peers database
2. Peer registers with Asterisk.
3. ipaddr and port columns in the database receive peer's real ip+port
4. regexten is created for the peer
5. Asterisk resterted
6. Peer re-registers.
7. This time, peer's data (including ipaddr+port) loaded from the DB
8. Assuming that address and port are the same, Asterisk won't create
regexten (because of if (inaddrcmp(&peer->addr, &oldsin)) check in the
parse_register_contact)
====================================================================== 

---------------------------------------------------------------------- 
 (0093664) svnbot (reporter) - 2008-10-14 18:00
 http://bugs.digium.com/view.php?id=13309#c93664 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 149207

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r149207 | mmichelson | 2008-10-14 18:00:01 -0500 (Tue, 14 Oct 2008) | 9
lines

Call register_peer_exten even in the case that the peer's
IP/port does not change.

(closes issue http://bugs.digium.com/view.php?id=13309)
Reported by: dimas
Patches:
      v2-13309.patch uploaded by dimas (license 88)


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=149207 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-14 18:00 svnbot         Checkin                                      
2008-10-14 18:00 svnbot         Note Added: 0093664                          
======================================================================




More information about the asterisk-bugs mailing list