[Asterisk-Users] ANNOUNCE: Voice Mail Box Exists AGI script
Eric Wieling
eric at fnords.org
Wed Mar 24 23:55:12 MST 2004
Version 0.02 of my Voice Mail Box Exists (vmbe) AGI script is now
available at http://www.fnords.org/~eric/asterisk/downloads/
It's a VERY simple AGI script, but might be useful to some people and
could be a nice sample script for AGI newbies.
The vmbe AGI script will test to see if the specified voice mailbox
exists. If it does not exist it will jump to {EXTEN}+vmbe+false, if it
does exist it will jump to {EXTEN}+vmbe+true. I feel this is better
than jumping to some priority like +101, and is easier to read once you
understand it.
Here are some examples of usage in extensions.conf:
# Jump to ${EXTEN}+vmbe+true if the mailbox exists
# Jump to ${EXTEN}+vmbe+false if the mailbox does NOT exist
exten => 2111,1,AGI(/path/to/vmbe,2111 at default)
# Mailbox 2111 in voicemail context [default] exists
# Ring extension for 30 seconds, then go to voicemail.
exten => 2111+vmbe+true,1,Dial(Zap/1,30)
exten => 2111+vmbe+true,2,VoiceMail(u2196)
exten => 2111+vmbe+true,102,VoiceMail(b2196)
# Mailbox 2111 in voicemail context [default] does NOT exist
# Ring forever
exten => 2111+vmbe+false,1,Dial(Zap/1)
--
Eric Wieling * BTEL Consulting * 504-899-1387 x2111
"In a related story, the IRS has recently ruled that the cost of Windows
upgrades can NOT be deducted as a gambling loss."
More information about the asterisk-users
mailing list