Hi
I’d like to execute a script to run after every recording. I’ve done this before on an Elastix server where there is a field ‘Run after Recording’ in the GUI, but this perticular Asterisk server is custom built so I don’t know if I can implement this. Tried searching Asterisk for the string but found nothing.
Is there a similar setting somewhere?
Asterisk version 1.8.20.0
Thanks
CLI> core show application mixmonitor
add your script with the System() app to next priority in your dial plan after the Mixmonitor() app
Mixmonitor turns on recording and exits long before the point at which he actually wants the script to run.
Hi
This is the line I need to add to execute the script called ‘archiver’ which moves recordings in datestamped directories, but I just need to know where to call it from. As this is not FreePBX there is no GUI to add the ‘Run after recoirding’.
/var/lib/asterisk/bin/archiver ^{CALLFILENAME}.^{MIXMON_FORMAT}
Thanks
I already told you to read the online documentation for MixMonitor, which tells you about the parameter you need to set.
Ok well thanks, I didn’t see that when I updated the post.
I’ll read up on it.
MixMonitor Working example
[quote][monitor]
exten => _8.,1,Answer()
exten => _8.,2,set(calltime=${STRFTIME(${EPOCH},%C%y%m%d%H%M%S)})
exten =>_8.,3,MixMonitor(/var/lib/asterisk/sounds/custom/X${calltime}-${CALLERID(num)}-${EXTEN:3}-.wav)
exten => _8.,4,Dial(SIP/${EXTEN:1}@didlogic,60,tTR)[/quote]
The parameter at issue is the third one; you only have one parameter!
MixMonitor(filename.extension,options,command)