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
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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@hotmail.com Email: shaheryarkh@googlemail.com
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@lists.freeswitch.org [mailto:freeswitch-users-bounces@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@mundio.com<mailto:a.venugopan@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@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@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@hotmail.com<mailto:shari_786pk@hotmail.com> Email: shaheryarkh@googlemail.com<mailto:shaheryarkh@googlemail.com>
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@lists.freeswitch.org [mailto:freeswitch-users-bounces@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@mundio.com (mailto:a.venugopan@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@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org (mailto:FreeSWITCH-users@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@hotmail.com (mailto:shari_786pk@hotmail.com) Email: shaheryarkh@googlemail.com (mailto:shaheryarkh@googlemail.com) _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org (mailto:FreeSWITCH-users@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Yes, use consoleLog for that as well and just watch the FreeSWITCH CLI when the script is running. I use WARNING and ERR debug levels to make the print stand out in purple and red lettering, respectively. -MC On Tue, Nov 13, 2012 at 9:21 AM, Archana Venugopan <a.venugopan@mundio.com>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@lists.freeswitch.org [mailto: freeswitch-users-bounces@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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@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@hotmail.com Email: shaheryarkh@googlemail.com****
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
freeswitch.consoleLog("INFO","Hello!\n"); 13.11.2012 13:21, Archana Venugopan пишет:
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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Evgeniy Movlyan, BestNet Ltd.
i use something like this: function debug_print(info) freeswitch.consoleLog("info", info .. "\n") end On Tuesday, November 13, 2012 at 3:21 AM, Archana Venugopan 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@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org (mailto:FreeSWITCH-users@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
try session:execute("log", "ERR blahblah\n") -- Seven Du Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, November 13, 2012 at 7:21 PM, Archana Venugopan 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@freeswitch.org (mailto:consulting@freeswitch.org) http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org (mailto:FreeSWITCH-users@lists.freeswitch.org) http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (6)
-
Archana Venugopan
-
Chad Phillips
-
Evgeniy Movlyan
-
Michael Collins
-
Muhammad Shahzad
-
Seven Du