[Freeswitch-users] Return from lua two values.
Mario G
mario_fs at mgtech.com
Wed Feb 20 19:57:42 MSK 2013
Hmm, not sure if I understand what exactly you need but here is how I send three parms/vars to lua:
<action application="lua" data="/usr/local/FreeSwitch-scripts/known-people.lua CALLIN ${caller_id_number} ${mvsounds}"/>
And I return 3 vars from lua to FS:
session:setVariable("lua_ringback",ringback)
session:setVariable("lua_vmmsg",vmmsg)
session:setVariable("lua_ringtone",ringtone)
FS then uses $lua_ringback, etc...
Mario G
On Feb 20, 2013, at 7:19 AM, Steven Ayre wrote:
> Return a single string of "name1=value1 name2=value2"
>
> -Steve
>
>
> On 20 February 2013 15:06, Mimiko <vbvbrj at gmail.com> wrote:
>> On 20.02.2013 16:14, Abaci wrote:
>>> or use the multiset application
>>> http://wiki.freeswitch.org/wiki/Multiset
>>
>> How it can set values to two variables calling one lua script only and
>> only once?
>> Doesn't seems to be so.
>>
>> --
>> Mimiko desu.
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.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
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.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/20130220/d22e7d6a/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list