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

SamyGo govoiper at gmail.com
Wed Aug 8 12:38:14 MSD 2012


So this worked for you.?

On Wed, Aug 8, 2012 at 1:28 PM, Thomas Hoellriegel <admin at blindi.net> wrote:

> 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<http://www.blindi.net/mailman/listinfo/blinde-misc>
>
> _________________________________________________________________________
> 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
>
> Join Us At ClueCon - Aug 7-9, 2012
>
> 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/20120808/38066726/attachment.html 


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