[Freeswitch-users] Lua script
Chad Phillips
chad at apartmentlines.com
Wed Nov 14 01:30:54 MSK 2012
When you're invoking Lua via FreeSWITCH, there's nowhere to 'print' other than to the console -- so, yes, consoleLog() is the easy way to go.
You could also log to a file if you preferred, Lua documentation can help you there.
Chad
On Tuesday, November 13, 2012 at 9:21 AM, Archana Venugopan wrote:
> Thanks. But I want to put print statements within lua script, just to make sure if the script passes that line. In that case too consolelog we need to use?
>
> Regards,
> Archana
>
> From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Muhammad Shahzad
> Sent: 13 November 2012 14:24
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] Lua script
>
> use freeswitch.consoleLog method, e.g.
>
>
> freeswitch.consoleLog("ERR","Result of system call: " .. res .. "\n");
>
>
>
> Thank you.
>
>
> On Tue, Nov 13, 2012 at 12:21 PM, Archana Venugopan <a.venugopan at mundio.com (mailto:a.venugopan at mundio.com)> wrote:
> Hi,
> I have lua script in freeswitch, I tried putting print statements there to get that in freeswitch logs. But its not appearing in logs. Would someone please suggest me how to print any string to freeswitch logs.
>
> print(“test”)
>
> Thanks.
>
> Regards,
> Archana
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org (mailto: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 (mailto: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
>
>
>
> --
> Muhammad Shahzad
> -----------------------------------
> CISCO Rich Media Communication Specialist (CRMCS)
> CISCO Certified Network Associate (CCNA)
> Cell: +49 176 99 83 10 85
> MSN: shari_786pk at hotmail.com (mailto:shari_786pk at hotmail.com)
> Email: shaheryarkh at googlemail.com (mailto:shaheryarkh at googlemail.com)
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org (mailto: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 (mailto: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/20121113/0e47ce78/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list