Externnotify in voicemail.conf

itguy12

New Member
Joined
Jan 22, 2009
Messages
17
Reaction score
0
I have several Asterisk servers in different locations. One location is running PIAF 1.3 and hosts all of our voicemail. I have been looking for a solution that would pass the necessary information to the other servers so each device gets accurate MWI notification on his/her device.

A simple method using externnotify and SSH was found here: http://asterisk.mdaniel.net/?p=14.

My trouble is that once i add the line

externnotify=/usr/local/bin/notify_vmail_extern.sh

to my voicemail.conf under the [general] section and reload app_voicemail.so, nothing happens. Calls to the Voicemail application proceed as normal, but the Asterisk CLI shows nothing about even attempting to run that script.

Does externnotify support need to be complied into Asterisk seperately? TIA for your help!

--Justin
 
Does the script have execute permissions? Have you tried running the script manually with the name of your remote server? Have you exchanged keys with the remote server so that SSH can log in without the password prompt?
 

Attachments

Yes, yes, and yes. :)

Everything works when the script is run manually. I re-worked some of it and setup cron on the SIP host servers to just grab those msg*.txt files every minute for now. I like the externnotify function because the transfer only takes place when the user accesses the VM application or voicemail is left for them.
 
Have you checked the permissions (owner/group) for the script? At the Linux prompt: "ls -l" If it is set to root/root then maybe it should be changed to asterisk/asterisk.

At the Linux prompt "chown asterisk:asterisk <filename>" and you'll need to include the complete path to the file or be in the same directory.
 
Here is my voicemail conf:

[general]
externnotify = "/usr/local/bin/notify_vmail_extern.sh"
Permissions on said file:

#ll /usr/local/bin/notify_vmail_extern.sh
-rwxr-xr-x 1 asterisk asterisk 268 Jan 21 14:56 /usr/local/bin/notify_vmail_extern.sh
 

Members online

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top