[asterisk-bugs] [Asterisk 0014331]: [patch] reg->username is parsed for each registration refresh rather than once on sip reload

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jul 20 15:46:49 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14331 
====================================================================== 
Reported By:                Nick_Lewis
Assigned To:                dvossel
====================================================================== 
Project:                    Asterisk
Issue ID:                   14331
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     closed
Asterisk Version:           1.6.1-beta4 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-01-26 06:19 CST
Last Modified:              2009-07-20 15:46 CDT
====================================================================== 
Summary:                    [patch] reg->username is parsed for each
registration refresh rather than once on sip reload
Description: 
The registration string can contain an expanded user portion of the form
user at domain (and possibly user at domain:domainport). This expanded user
portion is currently stored in reg->username and parsed each time there is
a registration refresh. It would be better if the configuration was parsed
only once and the sip_registry structure contained the atomic fields
separately through the addition of, for example, reg->regdomain and
reg->regdomainport elements
====================================================================== 

---------------------------------------------------------------------- 
 (0107992) svnbot (reporter) - 2009-07-20 15:46
 https://issues.asterisk.org/view.php?id=14331#c107992 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 207486

_U  branches/1.6.2/

------------------------------------------------------------------------
r207486 | dvossel | 2009-07-20 15:46:49 -0500 (Mon, 20 Jul 2009) | 20
lines

Blocked revisions 207484 via svnmerge

........
  r207484 | dvossel | 2009-07-20 15:45:26 -0500 (Mon, 20 Jul 2009) | 16
lines
  
  reg->username is parsed only once on sip reload
  
  The registration string can contain an expanded user portion of the
  form user at domain. This expanded user portion was stored in
  reg->username and parsed each time there is a registration refresh.
  Now, the domain portion of the user is parsed and stored separately
  in the regdomain field.
  
  (closes issue https://issues.asterisk.org/view.php?id=14331)
  Reported by: Nick_Lewis
  Patches:
        chan_sip.c.domainparse3.patch uploaded by Nick (license 657)
  Tested by: Nick_Lewis, dvossel
........

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-20 15:46 svnbot         Checkin                                      
2009-07-20 15:46 svnbot         Note Added: 0107992                          
======================================================================




More information about the asterisk-bugs mailing list