[asterisk-bugs] [Asterisk 0013195]: chan_sip fails to parse reason parameter in Diversion: header

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jul 30 04:29:15 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13195 
====================================================================== 
Reported By:                woodsfsg
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13195
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 134222 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-07-30 04:29 CDT
Last Modified:              2008-07-30 04:29 CDT
====================================================================== 
Summary:                    chan_sip fails to parse reason parameter in
Diversion: header
Description: 
Recently, a call to get_in_brackets was introduced into the get_rdnis
function. get_in_brackets modifies the tmp string by putting a '/0'
character in place of the closing '>'. This breaks the subsequent
diversion-reason parsing as it effectively truncates tmp.

Two possible fixes:
start the parse from tmp + strlen(tmp) + 1

Or:
refresh tmp by calling get_header again.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-07-30 04:29 woodsfsg       Asterisk Version          => SVN             
2008-07-30 04:29 woodsfsg       SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2008-07-30 04:29 woodsfsg       SVN Revision (number only!) => 134222          
======================================================================




More information about the asterisk-bugs mailing list