[Freeswitch-users] Global object in startup lua script
cmrienzo at gmail.com
cmrienzo at gmail.com
Thu Apr 5 14:11:25 UTC 2018
You could serialize the data as json prior to writing to the channel variable. Dkjson works well in lua for that.
Chris
> On Apr 5, 2018, at 09:45, Michael Jerris <mike at jerris.com> wrote:
>
>
>> On Thu, Apr 5, 2018 at 9:39 AM Eugene Prokopiev <enp at itx.ru> wrote:
>> Channel variables can be used while call executing, right? So,
>> impossible to share them between calls. I guess global_setvar in
>> startup script and global_getvar in dialplan can helps, but anyway I
>> can store only some value, not reference to some lua object with
>> methods, right?
>
> Correct
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180405/880bb523/attachment.html>
More information about the FreeSWITCH-users
mailing list