Hello Everyone,
Has anyone tried the field "Run After Record" which resides in General tab of
FreePBX 2.5? It supposed to allow to run a script after recording is done. I
have created a simple file and placed it in /var/lib/asterisk/myscript.sh. The
file contains the following:
touch success
When a call comes in, recording is done just fine. When call hangs up, this is
what I get:
-- SIP/600-0862bd20 is ringing
-- SIP/600-0862bd20 answered SIP/602-0862ddc8
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/602-0862ddc8'
in macro 'dial'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/602-0862ddc8'
in macro 'exten-vm'
== Spawn extension (macro-dial, s, 7) exited non-zero on 'SIP/602-0862ddc8'
-- Executing [...@macro-dial:1] Macro("SIP/602-0862ddc8", "hangupcall") in
new stack
-- Executing [...@macro-hangupcall:1] ResetCDR("SIP/602-0862ddc8", "vw") in
new stack
-- Executing [...@macro-hangupcall:2] NoCDR("SIP/602-0862ddc8", "") in new
stack
-- Executing [...@macro-hangupcall:3] GotoIf("SIP/602-0862ddc8",
"1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [...@macro-hangupcall:6] GotoIf("SIP/602-0862ddc8",
"1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [...@macro-hangupcall:9] GotoIf("SIP/602-0862ddc8",
"1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [...@macro-hangupcall:11] Hangup("SIP/602-0862ddc8", "") in
new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on
'SIP/602-0862ddc8' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on
'SIP/602-0862ddc8'
== End MixMonitor Recording SIP/602-0862ddc8
== Executing [/var/lib/asterisk/myscript.sh]
And that is it. This is stuck at the last line and the script is not run as I
do not see a "success" file. Am I doing something wrong or is the FreePBX that
is messed up?
Thanks,
Bruce
_________________________________________________________________
Reunite with the people closest to you, chat face to face with Messenger.
http://go.microsoft.com/?linkid=9650736
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]