[asterisk-bugs] [Asterisk 0016708]: [patch] Introduce function for parsing ABNF name-andor-addr = name-addr / addr-spec

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Apr 9 11:04:18 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16708 
====================================================================== 
Reported By:                Nick_Lewis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16708
Category:                   Channels/General
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-811 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-01-26 10:35 CST
Last Modified:              2010-04-09 11:04 CDT
====================================================================== 
Summary:                    [patch] Introduce function for parsing ABNF
name-andor-addr = name-addr / addr-spec
Description: 
Many sip headers in many sip methods contain the ABNF structure
 name-andor-addr = name-addr / addr-spec
Examples include the to-header, from-header, contact-header,
replyto-header

At the moment chan_sip.c makes various different attempts to parse this
name-andor-addr structure for each header type and for each sip method with
sometimes limited degrees of success.

I recommend that this name-andor-addr structure be parsed by a dedicated
function and that it be used irrespective of the specific method or header
that contains the name-andor-addr structure
====================================================================== 

---------------------------------------------------------------------- 
 (0120232) svnbot (reporter) - 2010-04-09 11:04
 https://issues.asterisk.org/view.php?id=16708#c120232 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 256530

U   trunk/channels/sip/include/reqresp_parser.h
U   trunk/channels/sip/include/sip.h
U   trunk/channels/sip/reqresp_parser.c

------------------------------------------------------------------------
r256530 | mmichelson | 2010-04-09 11:04:17 -0500 (Fri, 09 Apr 2010) | 21
lines

Add routines for parsing SIP URIs consistently.



More information about the asterisk-bugs mailing list