[OpenSER-Devel] [ openser-Bugs-1968533 ] Malformed SDP if "subst_body()" and "use_media_proxy()"
SourceForge.net
noreply at sourceforge.net
Wed May 21 10:28:48 CEST 2008
Bugs item #1968533, was opened at 2008-05-21 10:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1968533&group_id=139143
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Iñaki Baz (ibc_sf)
Assigned to: Nobody/Anonymous (nobody)
Summary: Malformed SDP if "subst_body()" and "use_media_proxy()"
Initial Comment:
I use "subst_body()" to fix a failure in received SDP's from a softswitch (those SDP separate lines with LF (\n) instead of CRLF (\r\n) as mandatory).
Also I use "use_media_proxy()" that sets IP 88.99.0.10 and port 60000-65000.
When using both functions together the resulting SDP is malformed:
- Original SDP (note \n instead of \r\n):
c=IN IP4 66.15.6.153\n
t=0 0\n
m=audio 42236 RTP/AVP 18 8 0 101\n
I apply:
subst_body("/([^\r])\n/\1\r\n/g");
use_media_proxy(); -> It set IP 88.99.0.10
- New SDP:
c=IN IP4 88.99.0.103\r\n <---- NOTE THE .103 instead of .10 !!!!!!
t=0 0\r\n
m=audio 9000 RTP/AVP 18 8 0 101\r\n
The new IP in "c" is wrong, it should be 88.99.0.10.
If I don't do "subst_body" then the IP is correct.
Note also that modified "m" line (port 42236 -> 9000) is correct. It seems just a problem with the IP ("c" line).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1968533&group_id=139143
More information about the Devel
mailing list