[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
Tue Jan 4 23:29:00 UTC 2011


The following issue has been UPDATED. 
====================================================================== 
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:                     acknowledged
Asterisk Version:           1.6.2.15 
JIRA:                        
Regression:                 No 
Reviewboard Link:           https://reviewboard.asterisk.org/r/1059/ 
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:              2011-01-04 17:28 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               
====================================================================== 
2011-01-04 17:28 lmadsen        Description Updated                          
2011-01-04 17:28 lmadsen        Additional Information Updated                  
 
======================================================================




More information about the asterisk-bugs mailing list