I think your whole dialplan needs to be in the call to freeswitch.session like you have in the line that's commented out. It looks to me from the log that FS is looking for a destination number of "set:job=1234" because there's no mention of inline when you create the session.<br>
<br>-MC<br><br><div class="gmail_quote">On Wed, Feb 20, 2013 at 4:03 AM, Karsten Horsmann <span dir="ltr"><<a href="mailto:khorsmann@gmail.com" target="_blank">khorsmann@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Michael,<br>
<br>
i create this loop.lua to update the sip username spelling (register<br>
is not casesensitiv vs. fs is casesensitiv).<br>
<br>
Sure i could start the loop.lua with mod_lua as start script.<br>
<br>
With the loopback hack i want to simulate an "job control" and maybe<br>
do some nagios check to be sure<br>
that the loop.lua is alive (simple grep output of "show channels").<br>
<br>
Is there a other way to check that the loop.lua is alive from outside?<br>
<br>
I play around with an start.lua to originate the loop.lua at startup.<br>
But my start.lua didnt work.<br>
Also an freeswitch.api call from start.lua didnt do the trick. Any hints?<br>
<br>
my "start.lua":<br>
-- new_session =<br>
freeswitch.Session("loopback/set:job=1234\,answer\,park/default/inline<br>
lua:loop.lua inline", session)<br>
new_session = freeswitch.Session("loopback/set:job=1234", session)<br>
new_session:answer();<br>
new_session:execute("park/default/inline lua:loop.lua inline")<br>
<br>
Got this FS-Log output <a href="http://pastebin.freeswitch.org/20595" target="_blank">http://pastebin.freeswitch.org/20595</a><br>
<br>
<br>
Kind Regards<br>
Karsten<br>
<br>
2013/2/15 Michael Collins <<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>>:<br>
> Can you share with us a small Lua code sample demonstrating what you are<br>
> trying to do? That might make it easier for us to help.<br>
><br>
> -MC<br>
><br>
> On Fri, Feb 15, 2013 at 3:26 AM, Karsten Horsmann <<a href="mailto:khorsmann@gmail.com">khorsmann@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hello!<br>
>><br>
>> as described in Anthonys mail<br>
>><br>
>> <a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2013-January/091769.html" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2013-January/091769.html</a><br>
>> i want also to originate my loop.lua to an loopback channel.<br>
>><br>
>> No problem from fs_cli. I want to originate the loop.lua from my<br>
>> mod_lua start lua script.<br>
>><br>
>> How can i do this? The freeswitch.Session() didnt work as aspected.<br>
>><br>
>><br>
>> --<br>
>> Kind Regards<br>
>> *Karsten Horsmann*<br>
><br>
<span class="HOEnZb"><font color="#888888">><br>
> --<br>
> Michael S Collins<br>
> Twitter: @mercutioviz<br>
> <a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
> <a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
> <a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
<br>
<br>
<br>
--<br>
Mit freundlichen Grüßen<br>
*Karsten Horsmann*<br>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>