[Freeswitch-users] Rewriting SDP with switch_r_sdp

Apostolos Pantsiopoulos regs at kinetix.gr
Tue Nov 17 05:42:01 PST 2009


I am trying to use switch_r_sdp to rewrite the SDP.
The problem I am facing has to do with the way of doing it.

Let's say I have:

v=0
o=- 1258463684 1258463684 IN IP4 xxx.xxx.xxx.xxx
s=Opal SIP Session
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=audio 5144 RTP/AVP 18 3 101 120
c=IN IP4 xxx.xxx.xxx.xxx
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:3 gsm/8000/1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16,32,36
a=rtpmap:120 NSE/8000
a=fmtp:120 192-193

who to I  set the switch_r_sdp variable in xml?

Obviously this doesn't work :

<action application="set" data="switch_r_sdp=v=0
o=- 1258463842 1258463842 IN IP4 xxx.xxx.xxx.xxx
s=Opal SIP Session
c=IN IP4 xxx.xxx.xxx.xxx
t=0 0
m=audio 5148 RTP/AVP 18 3 101 120
c=IN IP4 xxx.xxx.xxx.xxx
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:3 gsm/8000/1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16,32,36
a=rtpmap:120 NSE/8000
a=fmtp:120 192-193
"/>

Do I have to escape any special characters and how?
I tried using escaped quotes, escaped spaces, escaped tabs etc.
Nothing worked.

Any suggestions?




-- 
-------------------------------------------
Apostolos Pantsiopoulos
Kinetix Tele.com R & D
email: regs at kinetix.gr
-------------------------------------------




More information about the FreeSWITCH-users mailing list