Hi
I can’t seem to get my Post Call Recording script to work.
I have entered this - /var/lib/asterisk/agi-bin/test.sh
in the Post Call Recording section in Advanced Settings.
The log below is what happens after initiating MixMonitor, then ending the call.
== Begin MixMonitor Recording SIP/118-00001b0a
-- Executing [h@macro-dial-one:1] Macro("SIP/116-00001b09", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/116-00001b09", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("SIP/116-00001b09", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] Hangup("SIP/116-00001b09", "") in new stack
== Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/116-00001b09' in macro 'hangupcall'
== Spawn extension (macro-dial-one, h, 1) exited non-zero on 'SIP/116-00001b09'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording SIP/118-00001b0a
== Spawn extension (macro-dial-one, s, 43) exited non-zero on 'SIP/116-00001b09' in macro 'dial-one'
== Spawn extension (macro-exten-vm, s, 16) exited non-zero on 'SIP/116-00001b09' in macro 'exten-vm'
== Spawn extension (Wollongong, 118, 2) exited non-zero on 'SIP/116-00001b09'
== Extension Changed 118[ext-local] new state Idle for Notify User 100
== Extension Changed 118[ext-local] new state Idle for Notify User 105
== Extension Changed 118[ext-local] new state Idle for Notify User 111
== Extension Changed 118[ext-local] new state Idle for Notify User 118
== Extension Changed 116[ext-local] new state Idle for Notify User 100
== Extension Changed 116[ext-local] new state Idle for Notify User 105
== Extension Changed 116[ext-local] new state Idle for Notify User 111
== Extension Changed 116[ext-local] new state Idle for Notify User 116
== MixMonitor close filestream (mixed)
== Executing [/var/lib/asterisk/agi-bin/test.sh]
== End MixMonitor Recording SIP/116-00001b09
/var/lib/asterisk/agi-bin/test.sh is :
#!/bin/bash
mutt -s “test” [email protected] < /var/lib/asterisk/agi-bin/test2.txt
It should send me an email when the call is ended but it doesn’t. I have tested it by executing it manually and it works fine.
Any help is greatly appreciated.