Antony,<div><br></div><div>Thanks for your reply. The script is some IVR script (quite standard). As you say correctly my script is indeed exiting too early, this is also what I would like it to do. When a fax is detected it should the lua script should be ended and the call needs to transfer to the fax extension. It seems that the script exiting is OK but also generates a hangup.</div>
<div><br></div><div>Kind regards,</div><div><br></div><div>Jehudi<br><div><br><div class="gmail_quote">On Tue, Jan 10, 2012 at 2:54 PM, Anthony Cosgrove <span dir="ltr">&lt;<a href="mailto:acosgrov@gmail.com" target="_blank">acosgrov@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Sorry I took a second look at your description and I answered a little prematurely... sounds like your script is exiting too early. Can you pastebin the script?</div>

<div><br></div><div><a href="http://pastebin.freeswitch.org" target="_blank">http://pastebin.freeswitch.org</a></div><div><br></div><div>Anthony C</div><div><div><br><div><div>On Jan 10, 2012, at 8:50 AM, Anthony Cosgrove wrote:</div>

<br><blockquote type="cite"><div style="word-wrap:break-word"><div>Jehudi,</div><div><br></div><div>I just went through this exercise. You will need to invoke set_zombie_exec from either the xml or while in your Lua script. Take a look at the wiki page - <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_zombie_exec" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_zombie_exec</a></div>

<div><br></div><div><br></div><div>Anthony C. </div><br><div><div>On Jan 10, 2012, at 3:53 AM, Jehudi Maes wrote:</div><br><blockquote type="cite">I am having trouble with fax detection while executing a lua script: I am setting the fax detection in the dialplan:<div>

<br></div><div>&lt;action application=&quot;tone_detect&quot; data=&quot;fax 1100 r +3000 transfer &#39;fax XML public&#39; 1&quot;/&gt;</div>
<div><br></div><div>and continue by executing a script:</div><div><br></div><div>&lt;action application=&quot;lua&quot; data=&quot;laczenAMS.lua&quot;/&gt;</div><div><br></div><div>when a fax is detected (this works fine) during the execution of the script, the script exits and the call is hangup. How can I avoid the hangup and continue with the fax receiving ?</div>


<div><br></div><div>Kind regards,</div><div><br></div><div>Jehudi</div>
_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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></blockquote></div><br></div></blockquote></div><br></div></div></div><br>_________________________________________________________________________<br>


Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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></div></div>