Transfer out of lua script on fax detection - novice user
I am having trouble with fax detection while executing a lua script: I am setting the fax detection in the dialplan: <action application="tone_detect" data="fax 1100 r +3000 transfer 'fax XML public' 1"/> and continue by executing a script: <action application="lua" data="laczenAMS.lua"/> 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 ? Kind regards, Jehudi
Jehudi, 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 - http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_zombie_exec Anthony C. On Jan 10, 2012, at 3:53 AM, Jehudi Maes wrote:
I am having trouble with fax detection while executing a lua script: I am setting the fax detection in the dialplan:
<action application="tone_detect" data="fax 1100 r +3000 transfer 'fax XML public' 1"/>
and continue by executing a script:
<action application="lua" data="laczenAMS.lua"/>
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 ?
Kind regards,
Jehudi _________________________________________________________________________ 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
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? http://pastebin.freeswitch.org Anthony C On Jan 10, 2012, at 8:50 AM, Anthony Cosgrove wrote:
Jehudi,
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 - http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_zombie_exec
Anthony C.
On Jan 10, 2012, at 3:53 AM, Jehudi Maes wrote:
I am having trouble with fax detection while executing a lua script: I am setting the fax detection in the dialplan:
<action application="tone_detect" data="fax 1100 r +3000 transfer 'fax XML public' 1"/>
and continue by executing a script:
<action application="lua" data="laczenAMS.lua"/>
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 ?
Kind regards,
Jehudi _________________________________________________________________________ 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
Antony, 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. Kind regards, Jehudi On Tue, Jan 10, 2012 at 2:54 PM, Anthony Cosgrove <acosgrov@gmail.com>wrote:
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?
http://pastebin.freeswitch.org
Anthony C
On Jan 10, 2012, at 8:50 AM, Anthony Cosgrove wrote:
Jehudi,
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 - http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_zombie_exec
Anthony C.
On Jan 10, 2012, at 3:53 AM, Jehudi Maes wrote:
I am having trouble with fax detection while executing a lua script: I am setting the fax detection in the dialplan:
<action application="tone_detect" data="fax 1100 r +3000 transfer 'fax XML public' 1"/>
and continue by executing a script:
<action application="lua" data="laczenAMS.lua"/>
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 ?
Kind regards,
Jehudi _________________________________________________________________________ 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
_________________________________________________________________________ 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
participants (2)
-
Anthony Cosgrove
-
Jehudi Maes