Hi,
Is it possible to set an email alert if a emergency call is made on the system. It would be nice so if that someone dials the emergency services (in our case 999) the system will automatically email someone to let them know.
Thanks
Hi,
Is it possible to set an email alert if a emergency call is made on the system. It would be nice so if that someone dials the emergency services (in our case 999) the system will automatically email someone to let them know.
Thanks
Could try adding this to /etc/asterisk/extensions_custom.conf:
[macro-dialout-predial-hook]
exten => s,1,GotoIf($["${OUTNUM}" = "999"]?email:noemail)
exten => s,n(email),System(echo "Message body!" | mail -s "Message subject" [email protected])
exten => s,n(noemail),MacroExit()