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