[Freeswitch-users] JSON channel variable from Dialplan

Guillermo Ruiz Camauer grcamauer at gmail.com
Mon Apr 26 22:19:32 UTC 2021


Hi all,


Is it possible to set the value of a channel variable to a JSON formatted
string?

I need to do something like this:

<action application="set" data="MY_VAR=[\"Ford\", \"Chevy\"]"/>

The problem seems to be that FS is not accepting the escape sequence and
MY_VAR gets set to [\

How do I go about escaping double quotes in the dialplan?

-- 
Guillermo Ruiz Camauer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210426/32e7170e/attachment.html>


More information about the FreeSWITCH-users mailing list