Put this in the incoming context for that number called.

 

Exten => s,1,Wait(1)

Exten => s.2.System("mail -s 'Smitty called from ${CALLERID(all)'
[EMAIL PROTECTED]")

Exten => s,3,Congestion

 

 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
DeVries
Sent: Sunday, April 01, 2007 11:35 PM
To: [email protected]
Subject: [asterisk-users] Trigger and Email in Dial Plan

 

I have a friend traveling overseas.  I want to allow him to call a
number which will give him a busy signal (so no charge), but will then
send me an email that he has called.

I know how to use a call file to trigger a call (I created a callback
system for myself when I traveled overseas a few months ago), but I
don't know how to trigger an email.  All I want is a simple message like
"Smitty called." 

Any ideas?

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to