MixMonitor abort Script

Hello,

In most cases, I’m calling the MixMonitor application from the dialplan by using the following syntax:

exten => s,n,Set(MONITOR_FILENAME=${UNIQUEID}.wav)
exten => s,n,Set(MONITOR_EXEC=/bin/sh/ mixmonitor.sh arg1 arg2 arg3)
exten => s,n,MixMonitor(/home/backup/${MONITOR_FILENAME},,${MONITOR_EXEC})

and it’s working fine, but I have some situations when there is no need to run the script mixmonitor.sh
How can I abort the execution of the script from the dialplan?

how about using “ExecIf” ?

Is your question about “Not starting the script” OR “Killing the script after it gets started from dialplan”?
#1: Use ExecIf application as the other poster suggested.
#2: Use System application with kill/pkill/killall command to kill the process

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