record_post_process_exec_app not fireing
Anyone had any luck with this setting. I just can not the app to run. <condition field="${ForwardingNumber}" expression="([1-9]),(.*)" break="never"> <action application="answer" /> <action application="sleep" data="2000"/> <action application="playback" data="$${user_vm_greeting}\$2"/> <action application="playback" data="tone_stream://$${vm_bong}"/> <action application="set" data="record_post_process_exec_app=vm_test.lua" /> <action application="record" data="$${user_vm_message}/${accountno}-${uuid}.wav $${maxreclen} $${silencethreshold} $${silencehits}"/> </condition> vm_test.lua: freeswitch.consoleLog("INFO", "Hello!!\n") freeswitch.consoleLog("INFO", "Hello!!\n") On running the dialplan I see: 2014-09-09 10:51:29.964998 [DEBUG] mod_dptools.c:1435 sofia/internal/ 1000@192.168.1.22 SET [record_post_process_exec_app]=[vm_test.lua] Everything works - the file is recorded. On leg A hangup up test.lua is not run. Any thoughts? FreeSWITCH Version 1.5.12b~64bit Windows Thanks PJ
On 09.09.2014 17:55, Phillip Jones wrote:
<action application="set" data="record_post_process_exec_app=vm_test.lua" /> <action application="record" data="$${user_vm_message}/${accountno}-${uuid}.wav $${maxreclen} $${silencethreshold} $${silencehits}"/>
By the way, how in vm_test.lua determine the recorded file's path and name? -- Mimiko desu.
record_post_process_exec_app=lua::vm_test.lua On Tue, Sep 9, 2014 at 9:55 AM, Phillip Jones <pjintheusa@gmail.com> wrote:
Anyone had any luck with this setting. I just can not the app to run.
<condition field="${ForwardingNumber}" expression="([1-9]),(.*)" break="never"> <action application="answer" /> <action application="sleep" data="2000"/> <action application="playback" data="$${user_vm_greeting}\$2"/> <action application="playback" data="tone_stream://$${vm_bong}"/> <action application="set" data="record_post_process_exec_app=vm_test.lua" /> <action application="record" data="$${user_vm_message}/${accountno}-${uuid}.wav $${maxreclen} $${silencethreshold} $${silencehits}"/> </condition>
vm_test.lua:
freeswitch.consoleLog("INFO", "Hello!!\n") freeswitch.consoleLog("INFO", "Hello!!\n")
On running the dialplan I see:
2014-09-09 10:51:29.964998 [DEBUG] mod_dptools.c:1435 sofia/internal/ 1000@192.168.1.22 SET [record_post_process_exec_app]=[vm_test.lua]
Everything works - the file is recorded. On leg A hangup up test.lua is not run.
Any thoughts?
FreeSWITCH Version 1.5.12b~64bit Windows
Thanks
PJ
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
On 09.09.2014 17:55, Phillip Jones wrote:
<action application="set" data="record_post_process_exec_app=vm_test.lua" /> <action application="record" data="$${user_vm_message}/${accountno}-${uuid}.wav $${maxreclen} $${silencethreshold} $${silencehits}"/>
In my case, the lua script is run even no answer was from leg-B and no file recorded. Is this normal? -- Mimiko desu.
participants (3)
-
Brian West
-
Mimiko
-
Phillip Jones