Outgoing call : Do something when no answer

I created a .call file and place it under spool outgoing. What i want to do is to be able to do something such as send an email when the person i am calling does not answer the phone.

This could be useful but i’m not sure how to set it

Standard extensions
failed: used if an auto-dial out call fails (that had context, priority and extension specified)
from voip-info.org/tiki-index.php … o-dial+out

for a .call file to work, control is passed to the specified context at the specified extension and priority. if there’s no answer, control is passed to the ‘failed’ extension in the same context at priority 1. so you would have something like [outgoing-call] exten => s,1,Wait(1) exten => s,2,Playback(hello) exten => s,3,Hangup() exten => failed,1,System(send_email_command) i guess.