[asterisk-bugs] [Asterisk 0015008]: [patch] Introduce better parsing for the register line

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 19 16:05:49 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15008 
====================================================================== 
Reported By:                tilghman
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   15008
Category:                   Channels/chan_sip/Registration
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Target Version:             1.6.x Version Tracker
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 191365 
Request Review:              
====================================================================== 
Date Submitted:             2009-04-30 17:12 CDT
Last Modified:              2009-08-19 16:05 CDT
====================================================================== 
Summary:                    [patch] Introduce better parsing for the register
line
Description: 
People have asked for the ability to use characters that are otherwise used
as delimiters in the register line, such as '/', '@', and ':'.  In the
past, we've had to say no, because the register line is very simply
parsed.

This patch allows any part of the register line to be quoted, and the
section within the quote may contain any of these special characters. 
Literal quotes and literal backslashes may be added to these fields by
prefixing them with a backslash.  Also, if no quotes are used around a
particular field, the delimiter character may be preceded with a backslash,
to encode that literal character within the field.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015672 ? in register= string breaks registration
====================================================================== 

---------------------------------------------------------------------- 
 (0109292) svnbot (reporter) - 2009-08-19 16:05
 https://issues.asterisk.org/view.php?id=15008#c109292 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 213098

U   trunk/channels/chan_sip.c
U   trunk/configs/sip.conf.sample

------------------------------------------------------------------------
r213098 | tilghman | 2009-08-19 16:05:48 -0500 (Wed, 19 Aug 2009) | 9
lines

Better parsing for the "register" line
Allows characters that are otherwise used as delimiters to be used within
certain fields (like the secret).
(closes issue https://issues.asterisk.org/view.php?id=15008, closes issue
https://issues.asterisk.org/view.php?id=15672)
 Reported by: tilghman
 Patches: 
       20090818__issue15008.diff.txt uploaded by tilghman (license 14)
 Tested by: lmadsen, tilghman

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-19 16:05 svnbot         Checkin                                      
2009-08-19 16:05 svnbot         Note Added: 0109292                          
======================================================================




More information about the asterisk-bugs mailing list