Hi all,
Is there any simple asterisk’s way to pass the path of a newly recorded file in Asterisk to a shell script ?
Thks in advance
Hi all,
Is there any simple asterisk’s way to pass the path of a newly recorded file in Asterisk to a shell script ?
Thks in advance
Show us the way you record
thanks @khamlichi.khalil for ur reply,
Actually : Our php framework calls Inotify to scan the recording folder and then stores the new updates :
inotifywait -e create -m {record-path} | while read path file action
do
php /var/ww/…/artisan record:created “$path $file $action”;
done
This is why I need a shortcut to get rid of Inotify,
Note :
what I meant to ask for is how do you start monitor or mixmonitor inside your dialplan.
anyways, I think you don’t need any of this because you can always tell mixmonitor to run a script when recording is finished + plus other bonus options like specify filename, adjust volume etc …
asterisk -rx ‘core show application mixmonitor’
[Syntax]
MixMonitor(filename.extension[,options[,command]])
replace command with your script full path.
or
full path to your script with argument /var/spool/asterisk/monitor/${MIXMONITOR_FILENAME}
so now your script knows the file name
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.