Re: [asterisk-users] email when certain numbers are called

2018-01-15 Thread Frank Vanoni
On Mon, 2018-01-15 at 14:26 +0200, Atux Atux wrote:
> [DefaultPlan]
exten => _XX,1,System(echo "Dialed number ${EXTEN} on Asterisk
from ${CALLERID(num)}" | mail -s "Dialed number ${EXTEN} on Asterisk
from ${CALLERID(num)}" -a "From: Asterisk PBX " yo
urem...@address.com)
exten => _XX,2,Dial(SIP/VoipGate/${EXTEN},120,Tt)
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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

[asterisk-users] email when certain numbers are called

2018-01-15 Thread Atux Atux
Hi. I have an installation of asterisk 11 and i have ssmtp in the system to
send emails. I would like to get informed by email when someone dials a set
of numbers eg international calls or premium numbers with the country. my
dialplan is simple enough and it is the following:

[DefaultPlan]exten =>
_XX,1,Dial(SIP/VoipGate/${EXTEN},120,Tt)exten =>
_XX,1,Busy()
exten => _4XX,2,Answer()exten =>
_4XX,3,VoiceMail(${EXTEN}@BranchA,su)exten => _4XX,4,HangUp()exten =>
_4XX,102,Answer()exten => _4XX,103,VoiceMail(${EXTEN}@BranchA,sb)exten
=> _4XX,104,HangUp()
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

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