No subject


Sun Jul 19 19:54:31 CDT 2009


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

Nick has also included unit tests for verifying these routines as well,
so...heck yeah.

(closes issue https://issues.asterisk.org/view.php?id=16708)
Reported by: Nick_Lewis
Patches:
      reqresp_parser-nameandoraddr2.patch uploaded by Nick Lewis (license
657

Review: https://reviewboard.asterisk.org/r/549


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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-09 11:04 svnbot         Note Added: 0120232                          
======================================================================




More information about the asterisk-bugs mailing list