[asterisk-users] externnotify script not running

Mike Diehl mdiehl at diehlnet.com
Wed Mar 16 22:44:50 CDT 2022


Thanks for getting back to me.  The system in question is old enough to 
predate systemd, but I did move the output file to /home/phones/ directory just 
to be sure.  Same results.  BTW, the program does what I expect when it is run 
by hand.

Any other ideas?

Mike.


On Wednesday, March 16, 2022 5:17:40 PM EDT Eric Wieling wrote:
> If you are using systemd /tmp might be a private /tmp
> 
> On 3/16/22 16:10, Mike Diehl 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.







More information about the asterisk-users mailing list