you can do<br><br>&lt;action application=&quot;set&quot;&gt;<br>&lt;![CDATA[(sdp here)<br> ]]&gt;<br>&lt;/action&gt;<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">&lt;<a href="mailto:regs@kinetix.gr">regs@kinetix.gr</a>&gt;</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>
&gt; Why are you needing to rewrite it?<br>
&gt;<br>
&gt; /b<br>
&gt;<br>
&gt; On Nov 17, 2009, at 7:42 AM, Apostolos Pantsiopoulos wrote:<br>
&gt;<br>
&gt;<br>
&gt;&gt; I am trying to use switch_r_sdp to rewrite the SDP.<br>
&gt;&gt; The problem I am facing has to do with the way of doing it.<br>
&gt;&gt;<br>
&gt;&gt; Let&#39;s say I have:<br>
&gt;&gt;<br>
&gt;&gt; v=0<br>
&gt;&gt; o=- 1258463684 1258463684 IN IP4 xxx.xxx.xxx.xxx<br>
&gt;&gt; s=Opal SIP Session<br>
&gt;&gt; c=IN IP4 xxx.xxx.xxx.xxx<br>
&gt;&gt; t=0 0<br>
&gt;&gt; m=audio 5144 RTP/AVP 18 3 101 120<br>
&gt;&gt; c=IN IP4 xxx.xxx.xxx.xxx<br>
&gt;&gt; a=rtpmap:18 G729/8000/1<br>
&gt;&gt; a=fmtp:18 annexb=no<br>
&gt;&gt; a=rtpmap:3 gsm/8000/1<br>
&gt;&gt; a=rtpmap:101 telephone-event/8000<br>
&gt;&gt; a=fmtp:101 0-16,32,36<br>
&gt;&gt; a=rtpmap:120 NSE/8000<br>
&gt;&gt; a=fmtp:120 192-193<br>
&gt;&gt;<br>
&gt;&gt; who to I  set the switch_r_sdp variable in xml?<br>
&gt;&gt;<br>
&gt;&gt; Obviously this doesn&#39;t work :<br>
&gt;&gt;<br>
&gt;&gt; &lt;action application=&quot;set&quot; data=&quot;switch_r_sdp=v=0<br>
&gt;&gt; o=- 1258463842 1258463842 IN IP4 xxx.xxx.xxx.xxx<br>
&gt;&gt; s=Opal SIP Session<br>
&gt;&gt; c=IN IP4 xxx.xxx.xxx.xxx<br>
&gt;&gt; t=0 0<br>
&gt;&gt; m=audio 5148 RTP/AVP 18 3 101 120<br>
&gt;&gt; c=IN IP4 xxx.xxx.xxx.xxx<br>
&gt;&gt; a=rtpmap:18 G729/8000/1<br>
&gt;&gt; a=fmtp:18 annexb=no<br>
&gt;&gt; a=rtpmap:3 gsm/8000/1<br>
&gt;&gt; a=rtpmap:101 telephone-event/8000<br>
&gt;&gt; a=fmtp:101 0-16,32,36<br>
&gt;&gt; a=rtpmap:120 NSE/8000<br>
&gt;&gt; a=fmtp:120 192-193<br>
&gt;&gt; &quot;/&gt;<br>
&gt;&gt;<br>
&gt;&gt; Do I have to escape any special characters and how?<br>
&gt;&gt; I tried using escaped quotes, escaped spaces, escaped tabs etc.<br>
&gt;&gt; Nothing worked.<br>
&gt;&gt;<br>
&gt;&gt; Any suggestions?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; -------------------------------------------<br>
&gt;&gt; Apostolos Pantsiopoulos<br>
&gt;&gt; Kinetix Tele.com R &amp; D<br>
&gt;&gt; email: <a href="mailto:regs@kinetix.gr">regs@kinetix.gr</a><br>
&gt;&gt; -------------------------------------------<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-</a><br>
&gt;&gt; users<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<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>