[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 15:16:38 CDT 2008
The following issue has been RESOLVED.
======================================================================
http://bugs.digium.com/view.php?id=13195
======================================================================
Reported By: woodsfsg
Assigned To: svnbot
======================================================================
Project: Asterisk
Issue ID: 13195
Category: Channels/chan_sip/General
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
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:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 2008-07-30 04:29 CDT
Last Modified: 2008-07-30 15:16 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 15:16 svnbot Status new => resolved
2008-07-30 15:16 svnbot Resolution open => fixed
2008-07-30 15:16 svnbot Assigned To => svnbot
======================================================================
More information about the asterisk-bugs
mailing list