Hi everybody,

we use Asterisk to route all calls to a inbound phone number to a
specific outbund mobile phone number, depending on time and date. I'd
like to send a notification email to a specific email address, each time
we receive a call. For this I used the tip of "dicko" here
[1]. I'm a Asterisk newbie.
Unfortunately it doesn't work. The System() command is not executed.
I've tried to execute the a simple bash script for testing purposes
(write a test string with > into a file, it's attached) - even that
doesn't work. Even if I try it with System(/bin/bash <testfile>), it
makes no difference.
My test bash script and extension_custom.conf file is attached.
This advice, which is is related to the first one, didn't help, too. [2]

Our system is the most current FreePBX Distro release, Asterisk 16.9.0
and DAHDI. (We can't use VoIP, the communications department uses a
proprietary protocol.)
Also "core set debug"/"core set verbose" didn't help.

Any help is appreciated.

Kind regards,
Kai

[1]
https://community.freepbx.org/t/send-email-or-sms-notification-for-every-inbound-hangup-call/45169
[2]
https://community.freepbx.org/t/email-notification-of-incoming-missed-call/29913

#!/bin/bash
cd ~asterisk
echo test > /home/asterisk/test
[macro-hangupcall-custom]
exten => s,1,DumpChan()
exten => s,n,System(/home/asterisk/bash_test)
exten => s,n,MacroExit()
-- 
_____________________________________________________________________
-- 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

Reply via email to