Execute Script after MixMonitor

Hi all,
I created the script test.sh to run after MixMonitor, but it doesn’t execute.
Here is what does work:
Asterisk seems to call the script:
[2018-10-02 12:04:42] VERBOSE[14770][C-00000006] app_mixmonitor.c: MixMonitor close filestream (mixed)
[2018-10-02 12:04:42] VERBOSE[14770][C-00000006] app_mixmonitor.c: MixMonitor close filestream (read)
[2018-10-02 12:04:42] VERBOSE[14770][C-00000006] app_mixmonitor.c: MixMonitor close filestream (write)
[2018-10-02 12:04:42] VERBOSE[14770][C-00000006] app_mixmonitor.c: Executing [/var/lib/asterisk/bin/test.sh]
[2018-10-02 12:04:42] VERBOSE[14770][C-00000006] app_mixmonitor.c: End MixMonitor Recording SIP/2004-0000000c

The script is executable by the asterisk user:
ls -l /var/lib/asterisk/bin/test.sh
-rwxrwxr-x 1 asterisk asterisk

sudo -u asterisk /var/lib/asterisk/bin/test.sh works as expected.

I have tried both entering bash /var/lib/asterisk/bin/test.sh and /var/lib/asterisk/bin/test.sh into the “Post Call Recording Script” field in Advanced Settings. No luck.

Any idea what’s going wrong?

You don’t seem to be calling the script with any defining parameters.

That’s correct. The script doesn’t need any parameters.

You ARE calling the script,

[2018-10-02 12:04:42] VERBOSE[14770][C-00000006] app_mixmonitor.c: Executing [/var/lib/asterisk/bin/test.sh]

you perhaps should add debugging output to a log file to see what is going wrong.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.