<div dir="ltr">Very much correct. Single quote is '<div><br></div><div>Guillermo</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 5, 2021 at 3:44 PM John Covici <<a href="mailto:covici@ccs.covici.com">covici@ccs.covici.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I thought & was for ampersand, is that not correct?<br>
<br>
On Wed, 05 May 2021 11:38:48 -0400,<br>
Guillermo Ruiz Camauer wrote:<br>
> <br>
> [1 <multipart/alternative (7bit)>]<br>
> [1.1 <text/plain; UTF-8 (7bit)>]<br>
> Yes, CDATA should work and also you can use " for double quotes and<br>
> & for single quotes.<br>
> <br>
> Guillermo<br>
> <br>
> On Tue, May 4, 2021 at 10:18 PM Seven Du <<a href="mailto:dujinfang@gmail.com" target="_blank">dujinfang@gmail.com</a>> wrote:<br>
> <br>
> > You can do that with standard xml CDATA syntax, find examples in the<br>
> > source tree<br>
> > <a href="https://github.com/signalwire/freeswitch/blob/master/conf/sbc/dialplan/default.xml" rel="noreferrer" target="_blank">https://github.com/signalwire/freeswitch/blob/master/conf/sbc/dialplan/default.xml</a><br>
> ><br>
> > On Wed, Apr 28, 2021 at 4:16 AM Guillermo Ruiz Camauer <<br>
> > <a href="mailto:grcamauer@gmail.com" target="_blank">grcamauer@gmail.com</a>> wrote:<br>
> ><br>
> >> Thanks for the response, but actually all I needed to do was URL encode<br>
> >> the JSON.<br>
> >><br>
> >> So the working version of<br>
> >> <action application="set" data="MY_VAR=[\"Ford\", \"Chevy\"]"/><br>
> >> is<br>
> >><br>
> >> <action application="set" data="MY_VAR=<br>
> >> %5B%5C%22Ford%5C%22%2C%20%5C%22Chevy%5C%22%5D"/><br>
> >><br>
> >><br>
> >> Guillermo<br>
> >><br>
> >> On Tue, Apr 27, 2021 at 2:45 AM Sergey Safarov <<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>><br>
> >> wrote:<br>
> >><br>
> >>> you create FreeSwitch mod using asr_set_json_text_params as example.<br>
> >>><br>
> >>> <a href="https://github.com/signalwire/freeswitch/blob/master/src/switch_ivr_async.c#L5306-L5331" rel="noreferrer" target="_blank">https://github.com/signalwire/freeswitch/blob/master/src/switch_ivr_async.c#L5306-L5331</a><br>
> >>><br>
> >>> On Tue, Apr 27, 2021 at 1:36 AM Guillermo Ruiz Camauer <<br>
> >>> <a href="mailto:grcamauer@gmail.com" target="_blank">grcamauer@gmail.com</a>> wrote:<br>
> >>><br>
> >>>><br>
> >>>><br>
> >>>> Hi all,<br>
> >>>><br>
> >>>><br>
> >>>> Is it possible to set the value of a channel variable to a JSON<br>
> >>>> formatted string?<br>
> >>>><br>
> >>>> I need to do something like this:<br>
> >>>><br>
> >>>> <action application="set" data="MY_VAR=[\"Ford\", \"Chevy\"]"/><br>
> >>>><br>
> >>>> The problem seems to be that FS is not accepting the escape sequence<br>
> >>>> and MY_VAR gets set to [\<br>
> >>>><br>
> >>>> How do I go about escaping double quotes in the dialplan?<br>
> >>>><br>
> >>>> --<br>
> >>>> Guillermo Ruiz Camauer<br>
> >>>><br>
> >>>> _________________________________________________________________________<br>
> >>>><br>
> >>>> The FreeSWITCH project is sponsored by SignalWire<br>
> >>>> <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> >>>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN<br>
> >>>> services.<br>
> >>>> Build your next product on our scalable cloud platform.<br>
> >>>><br>
> >>>> Join our online community to chat in real time<br>
> >>>> <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
> >>>><br>
> >>>> Professional FreeSWITCH Services<br>
> >>>> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> >>>> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> >>>><br>
> >>>> Official FreeSWITCH Sites<br>
> >>>> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> >>>> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> >>>> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
> >>>><br>
> >>>> FreeSWITCH-users mailing list<br>
> >>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>>> UNSUBSCRIBE:<br>
> >>>> <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >>>> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> >>><br>
> >>> _________________________________________________________________________<br>
> >>><br>
> >>> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> >>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN<br>
> >>> services.<br>
> >>> Build your next product on our scalable cloud platform.<br>
> >>><br>
> >>> Join our online community to chat in real time<br>
> >>> <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
> >>><br>
> >>> Professional FreeSWITCH Services<br>
> >>> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> >>> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> >>><br>
> >>> Official FreeSWITCH Sites<br>
> >>> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> >>> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> >>> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
> >>><br>
> >>> FreeSWITCH-users mailing list<br>
> >>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >>> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> >><br>
> >><br>
> >><br>
> >> --<br>
> >> Guillermo Ruiz Camauer<br>
> >> _________________________________________________________________________<br>
> >><br>
> >> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> >> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN<br>
> >> services.<br>
> >> Build your next product on our scalable cloud platform.<br>
> >><br>
> >> Join our online community to chat in real time<br>
> >> <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
> >><br>
> >> Professional FreeSWITCH Services<br>
> >> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> >> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> >><br>
> >> Official FreeSWITCH Sites<br>
> >> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> >> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> >> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
> >><br>
> >> FreeSWITCH-users mailing list<br>
> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > About: <a href="http://about.me/dujinfang" rel="noreferrer" target="_blank">http://about.me/dujinfang</a><br>
> > Blog: <a href="http://www.dujinfang.com" rel="noreferrer" target="_blank">http://www.dujinfang.com</a><br>
> > Proj: <a href="http://www.freeswitch.org.cn" rel="noreferrer" target="_blank">http://www.freeswitch.org.cn</a><br>
> > _________________________________________________________________________<br>
> ><br>
> > The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN<br>
> > services.<br>
> > Build your next product on our scalable cloud platform.<br>
> ><br>
> > Join our online community to chat in real time<br>
> > <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
> ><br>
> > Professional FreeSWITCH Services<br>
> > <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> > <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> ><br>
> > Official FreeSWITCH Sites<br>
> > <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> > <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> > <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
> ><br>
> > FreeSWITCH-users mailing list<br>
> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> <br>
> <br>
> <br>
> -- <br>
> Guillermo Ruiz Camauer<br>
> [1.2 <text/html; UTF-8 (quoted-printable)>]<br>
> [2 <text/plain; utf-8 (base64)>]<br>
> _________________________________________________________________________<br>
> <br>
> The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
> Build your next product on our scalable cloud platform.<br>
> <br>
> Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
> <br>
> Professional FreeSWITCH Services<br>
> <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
> <br>
> Official FreeSWITCH Sites<br>
> <a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
> <a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
> <a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
> <br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
-- <br>
Your life is like a penny. You're going to lose it. The question is:<br>
How do<br>
you spend it?<br>
<br>
John Covici wb2una<br>
<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a><br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Guillermo Ruiz Camauer<br></div>