you can do<br><br><action application="set"><br><![CDATA[(sdp here)<br> ]]><br></action><br><br><div class="gmail_quote">On Tue, Nov 17, 2009 at 1:44 PM, <a href="mailto:regs@kinetix.gr">regs@kinetix.gr</a> <span dir="ltr"><<a href="mailto:regs@kinetix.gr">regs@kinetix.gr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I am trying to achieve something similar to that :<br>
<a href="http://wiki.freeswitch.org/wiki/Codec_negotiation#Modifying_the_codec_when_using_proxy_media_mode" target="_blank">http://wiki.freeswitch.org/wiki/Codec_negotiation#Modifying_the_codec_when_using_proxy_media_mode</a><br>
<br>
but I am using xml_curl to create the dialplan (i.e. the web server that<br>
serves the dialplan makes the decision about the SDP). So I need a way<br>
to write<br>
the new SDP in the XML dialplan response. However, in the above example<br>
due to the regex manipulation the user is not facing the problem that I am<br>
with setting the switch_r_sdp to a complex value that contains =,<br>
spaces, new lines etc.<br>
<div><div></div><div class="h5"><br>
Brian West wrote:<br>
> Why are you needing to rewrite it?<br>
><br>
> /b<br>
><br>
> On Nov 17, 2009, at 7:42 AM, Apostolos Pantsiopoulos wrote:<br>
><br>
><br>
>> I am trying to use switch_r_sdp to rewrite the SDP.<br>
>> The problem I am facing has to do with the way of doing it.<br>
>><br>
>> Let's say I have:<br>
>><br>
>> v=0<br>
>> o=- 1258463684 1258463684 IN IP4 xxx.xxx.xxx.xxx<br>
>> s=Opal SIP Session<br>
>> c=IN IP4 xxx.xxx.xxx.xxx<br>
>> t=0 0<br>
>> m=audio 5144 RTP/AVP 18 3 101 120<br>
>> c=IN IP4 xxx.xxx.xxx.xxx<br>
>> a=rtpmap:18 G729/8000/1<br>
>> a=fmtp:18 annexb=no<br>
>> a=rtpmap:3 gsm/8000/1<br>
>> a=rtpmap:101 telephone-event/8000<br>
>> a=fmtp:101 0-16,32,36<br>
>> a=rtpmap:120 NSE/8000<br>
>> a=fmtp:120 192-193<br>
>><br>
>> who to I set the switch_r_sdp variable in xml?<br>
>><br>
>> Obviously this doesn't work :<br>
>><br>
>> <action application="set" data="switch_r_sdp=v=0<br>
>> o=- 1258463842 1258463842 IN IP4 xxx.xxx.xxx.xxx<br>
>> s=Opal SIP Session<br>
>> c=IN IP4 xxx.xxx.xxx.xxx<br>
>> t=0 0<br>
>> m=audio 5148 RTP/AVP 18 3 101 120<br>
>> c=IN IP4 xxx.xxx.xxx.xxx<br>
>> a=rtpmap:18 G729/8000/1<br>
>> a=fmtp:18 annexb=no<br>
>> a=rtpmap:3 gsm/8000/1<br>
>> a=rtpmap:101 telephone-event/8000<br>
>> a=fmtp:101 0-16,32,36<br>
>> a=rtpmap:120 NSE/8000<br>
>> a=fmtp:120 192-193<br>
>> "/><br>
>><br>
>> Do I have to escape any special characters and how?<br>
>> I tried using escaped quotes, escaped spaces, escaped tabs etc.<br>
>> Nothing worked.<br>
>><br>
>> Any suggestions?<br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> -------------------------------------------<br>
>> Apostolos Pantsiopoulos<br>
>> Kinetix Tele.com R & D<br>
>> email: <a href="mailto:regs@kinetix.gr">regs@kinetix.gr</a><br>
>> -------------------------------------------<br>
>><br>
>> _______________________________________________<br>
>> FreeSWITCH-users mailing list<br>
>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-</a><br>
>> users<br>
>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>