[Freeswitch-users] Lua problem there are only two arguments evaluated

Thomas Hoellriegel admin at blindi.net
Wed Aug 8 12:28:50 MSD 2012


Hi SamyGo,

> So, you';ve changed the approach and set the required variable from XML
> dialplan and now you dont need to set that as Argument !?

I have changed my dialplan to:
<action application="set" data="year=${strftime(%Y)}"/>
<action application="set" data="month=${strftime(%m)}"/>
<action application="set" data="day=${strftime(%d)}"/>
<action application="set" data="hours=${strftime(%H)}"/>
<action application="set" data="minutes=${strftime(%M)}"/>
<action application="set" data="seconds=${strftime(%S)}"/>
<action application="set"
data="string=msg_${year}_${month}_${day}_${hours}_${minutes}_
${seconds}_${mailbox}_${caller_id_number}.alaw"/>
I paste the arguments in to lua:
-- parameters: for lua voicemail
-- mailbox, sender, message, messagefile

-- variables
mailbox  = argv[1];
from_box  = argv[2];
msg  = argv[3];
msg_save  = argv[4];



-----------------
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:
http://www.blindi.net/callback
homepage: http://www.blindi.net
blinde-misc mailingliste für blinde. anmeldung unter:
http://www.blindi.net/mailman/listinfo/blinde-misc


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list