[Freeswitch-users] SDP rewriting

srg sinan.goo at artcom.de
Tue Oct 25 13:27:28 MSD 2011


i am trying to rewrite the video codec in the SDP header from a SIP client A.
It works only partially. 
Client A sends invite with the SDP header to FS trying to call client B and
FS changes the video codes due to:
<action application="set" data="switch_r_sdp=$1m=video 9078 RTP/AVP
102&#x0A;a=rtpmap:102 H264/90000&#x0A;a=fmtp:102
profile-level-id=42C014&#x0A;"/>
in my dialplan/default.xml file.
I know that this first change by FS works correctly because i can see the
SDP header via wireshark.

Client B then answers with 200 ok and a SDP header
but FS then does not send the SDP header from client B to client A
but a mixture of the original SDP header from client A and the SDP header
from B's answer.

>From added logging to the FS code i see that the SDP header which is given
to nua_respond(..) in mod_sofia.c when FS sends the 200 okay to client A is
still as expected.

So from where comes the mixed SDP header ?
Am i missing some more settings in the dialplan/default.xml file ?

--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/SDP-rewriting-tp6928152p6928152.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list