Hello Michael, i create this loop.lua to update the sip username spelling (register is not casesensitiv vs. fs is casesensitiv). Sure i could start the loop.lua with mod_lua as start script. With the loopback hack i want to simulate an "job control" and maybe do some nagios check to be sure that the loop.lua is alive (simple grep output of "show channels"). Is there a other way to check that the loop.lua is alive from outside? I play around with an start.lua to originate the loop.lua at startup. But my start.lua didnt work. Also an freeswitch.api call from start.lua didnt do the trick. Any hints? my "start.lua": -- new_session = freeswitch.Session("loopback/set:job=1234\,answer\,park/default/inline lua:loop.lua inline", session) new_session = freeswitch.Session("loopback/set:job=1234", session) new_session:answer(); new_session:execute("park/default/inline lua:loop.lua inline") Got this FS-Log output http://pastebin.freeswitch.org/20595 Kind Regards Karsten 2013/2/15 Michael Collins <msc@freeswitch.org>:
Can you share with us a small Lua code sample demonstrating what you are trying to do? That might make it easier for us to help.
-MC
On Fri, Feb 15, 2013 at 3:26 AM, Karsten Horsmann <khorsmann@gmail.com> wrote:
Hello!
as described in Anthonys mail
http://lists.freeswitch.org/pipermail/freeswitch-users/2013-January/091769.h... i want also to originate my loop.lua to an loopback channel.
No problem from fs_cli. I want to originate the loop.lua from my mod_lua start lua script.
How can i do this? The freeswitch.Session() didnt work as aspected.
-- Kind Regards *Karsten Horsmann*
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
-- Mit freundlichen Grüßen *Karsten Horsmann*