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? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070401/53bb9bcd/attachment.htm
On Sun, Apr 01, 2007 at 08:35:23PM -0700, Robert DeVries wrote:> 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."Running something from inside Asterisk: System(mail -s "Smitty called" your_alias) (stdi is redirected from /dev/null, so this will not hang, right). But it is even simpler from the script that generates the call file. -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir
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)' you@email.com") Exten => s,3,Congestion ________________________________ From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Robert DeVries Sent: Sunday, April 01, 2007 11:35 PM To: asterisk-users@lists.digium.com 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? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070401/f72c87d8/attachment.htm