Email call recording after 911 outbound route hit

I’m looking for a way to email the call recording of a 911 call to the email group we have in the outbound route notification. I see there is the post call script in advanced settings, but I don’t want this for every call, just for calls hitting the emergency routes.

Outside of FreePBX, but you might be able to grep for the dial string in your /var/spool/asterisk/monitor/ directory, perhaps running a cronjob every X minutes/hours to email you from there.

I use

tail -F /var/log/asterisk/full|while read LINE;do [[ $LINE ~= 911@{yourtrunkname} ]] && echo "911 called $LINE"|mail -s  "9211 call" [email protected];done 

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