[OpenSER-Devel] SF.net SVN: openser: [4262] trunk/modules/nathelper

sobomax at users.sourceforge.net sobomax at users.sourceforge.net
Thu May 29 04:26:36 CEST 2008


Revision: 4262
          http://openser.svn.sourceforge.net/openser/?rev=4262&view=rev
Author:   sobomax
Date:     2008-05-28 19:26:35 -0700 (Wed, 28 May 2008)

Log Message:
-----------
Change the way we append parameter to the end of SDP: instead of
appending before the terminating CRLF, append it before any number
trailing CRs and LFs and prepend CFLF before appending. This should
prevent nathelper from generating broken SDPs when brain-damaged UA
sends us a request that has arbitrary number of CRs/LFs at the end of
SDP (such as Fring 3.30 for example).

Before:

----
v=0
o=- 1212022997 1212022997 IN IP4 xx.xxx.xxx.xx
s=OSS RTP Session
c=IN IP4 xx.xxx.xxx.xx
t=0 0
m=audio 9 RTP/AVP 96 3 107 8 0 101
a=rtpmap:96 AMR/8000
a=fmtp:96 mode-set=0
a=rtpmap:3 GSM/8000
a=rtpmap:107 iLBC/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15


a=direction:active
----

After:

----
v=0
o=- 1212026907 1212026907 IN IP4 xx.xxx.xxx.xx
s=OSS RTP Session
c=IN IP4 xx.xxx.xxx.xx
t=0 0
m=audio 9 RTP/AVP 96 3 107 8 0 101
a=rtpmap:96 AMR/8000
a=fmtp:96 mode-set=0
a=rtpmap:3 GSM/8000
a=rtpmap:107 iLBC/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=direction:active


----

Modified Paths:
--------------
    trunk/modules/nathelper/nathelper.c
    trunk/modules/nathelper/nhelpr_funcs.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Devel mailing list