[asterisk-users] voicemail call back loop

Steven Howes steve-lists at geekinter.net
Wed Apr 6 12:00:51 CDT 2011


On 6 Apr 2011, at 17:46, vip killa wrote:
> I have "externnotify = /var/lib/asterisk/agi-bin/vm_notify.pl" so that when someone is left a voicemail it will call the person's mobile phone and prompt them with the new message. The perl script simply originates a call to a persons mobile phone and connects it to their voicemail using VoiceMailMain. Problem is when user hangs up from checking their messages, it runs the externnotify again causing an infinite loop. Has anybody encountered this problem or is there an option to not have it run externnotify after checking messages?

Look at the docs. Externnotify sends mailbox + mailbox count. Make your script exit if it's 0 messages.

S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110406/568d9841/attachment.htm>


More information about the asterisk-users mailing list