[asterisk-users] externnotify script not running

Mike Diehl mdiehl at diehlnet.com
Thu Mar 17 14:37:06 CDT 2022


No, this machine doesn't have selinus installed/configured/enforced.

Is there a debug setting I could use to debug this?  I didn't see anything in 
the logs.

Perhaps there is a working configuration that someone would share?

Thanks again,

Mike.


On Thursday, March 17, 2022 2:22:47 AM EDT Marek Greško wrote:
> Hello,
> 
> maybe selinux could be the cause?
> 
> Marek
> 
> 
> Sent with ProtonMail secure email.
> 
> ------- Original Message -------
> 
> On Wednesday, March 16th, 2022 at 21:10, Mike Diehl <mdiehl at diehlnet.com> 
wrote:
> > Hi all,
> > 
> > I'm trying to build a custom voicemail delivery system using externnotify
> > in
> > 
> > voicemail.conf. But, the configured script doesn't seem to run.
> > 
> > I have:
> > 
> > externnotify=/home/phones/commands/deliver_vm.pl ${VM_NAME} ${VM_DUR} $
> > 
> > {VM_MSGNUM} ${VM_MAILBOX} ${VM_CALLERID} ${VM_DATE}
> > 
> > The deliver_vm.pl has read and execute permissions.
> > 
> > Here is the file I have:
> > 
> > ===============================================================
> > 
> > #!/usr/bin/perl
> > 
> > $a = join("\t", @ARGV);
> > 
> > open FILE, ">>/tmp/test.txt";
> > 
> > print FILE "$a\n";
> > 
> > close FILE;
> > 
> > ===============================================================
> > 
> > After I leave a voicemail message, I expect to find something in
> > /tmp/test.txt,
> > 
> > but I don't.
> > 
> > What am I missing?
> > 
> > Thanks in advance.
> > 
> > Mike.
> > 
> > --
> > 
> > _____________________________________________________________________
> > 
> > -- 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







More information about the asterisk-users mailing list