[asterisk-bugs] [Asterisk 0011750]: Asterisk ignores SDP when multiple Content-Type headers are present
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Jan 14 17:57:19 CST 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11750
======================================================================
Reported By: tasker
Assigned To: file
======================================================================
Project: Asterisk
Issue ID: 11750
Category: Channels/chan_sip/Interoperability
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
Asterisk Version: 1.4.17
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 01-12-2008 09:56 CST
Last Modified: 01-14-2008 17:57 CST
======================================================================
Summary: Asterisk ignores SDP when multiple Content-Type
headers are present
Description:
Asterisk ignores the SDP information when multiple Content-Type headers are
defined. Specifically, it seems to happen when SDP is not the first header
in a multiple Content-Type situation. The call is still handled and results
in one-way audio (inbound RTP only).
======================================================================
----------------------------------------------------------------------
tasker - 01-14-08 17:57
----------------------------------------------------------------------
Ok, here's the solution, based on what you linked:
/* if there is no boundary marker, it's invalid */
if (!(search = strcasestr(content_type, ";boundary=")) && !(search
= strcasestr(content_type, "; boundary=")) )
return 0;
search += 10;
if((search = strcasestr(content_type, "; boundary="))) // If this
version found then search += 11
search += 1;
Issue History
Date Modified Username Field Change
======================================================================
01-14-08 17:57 tasker Note Added: 0076944
======================================================================
More information about the asterisk-bugs
mailing list