[asterisk-bugs] [Asterisk 0018562]: get_header doesn't pick the right header when compact form is mixed with non-compact form

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Dec 30 17:44:53 UTC 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18562 
====================================================================== 
Reported By:                alexh
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18562
Category:                   Channels/chan_sip/General
Reproducibility:            unable to reproduce
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.15 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-12-30 11:44 CST
Last Modified:              2010-12-30 11:44 CST
====================================================================== 
Summary:                    get_header doesn't pick the right header when
compact form is mixed with non-compact form
Description: 
The current implementation of get_header only takes the compact form only
into consideration when no no-compact form headers are present.

If get_header(..."Via"..) is used on the following SIP fragment, the
second header is returned instead of the first.

REGISTER sip:mydomain SIP/2.0
v: SIP/2.0/UDP 172.16.1.40:5060;branch=z9hG4bK-123;rport
Via: SIP/2.0/UDP 172.16.1.55:5060;branch=z9hG4bK-456;rport;maddr=1.2.3.4


Compact form should be checked inside the loop over the headers, not in a
separate loop over the headers as is the current implementation.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-30 11:44 alexh          New Issue                                    
2010-12-30 11:44 alexh          Asterisk Version          => 1.6.2.15        
2010-12-30 11:44 alexh          Regression                => No              
2010-12-30 11:44 alexh          SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list