[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
Mon Mar 8 04:35:55 CST 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:                     feedback
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-03-08 04:35 CST
====================================================================== 
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
====================================================================== 

---------------------------------------------------------------------- 
 (0119082) Nick_Lewis (reporter) - 2010-03-08 04:35
 https://issues.asterisk.org/view.php?id=16708#c119082 
---------------------------------------------------------------------- 
This patch provides the name-andor-addr abnf parsing but it does not modify
the rest of the code to make use of it. The functionality has been tested
in isolation with the included unit tests.

The usage of the function is appropriate wherever the sip standards
dictate the presence of the relevant abnf. Examples include the to-header,
from-header, contact-header, replyto-header, referto-header,
referredby-header, and passertedid-header. 

It is also appropriate wherever the sip standards dictate the presence of
the name-addr abnf structure (i.e without the addr-spec option). Examples
include the recordroute-header, route-header, remotepartyid-header and
diversion-header. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-08 04:35 Nick_Lewis     Note Added: 0119082                          
======================================================================




More information about the asterisk-bugs mailing list