[asterisk-users] MailboxExists not branching to n+101
Eric "ManxPower" Wieling
eric at fnords.org
Fri Aug 11 09:10:22 MST 2006
pbx-1*CLI> show application MailboxExists
pbx-1*CLI>
-= Info about application 'MailboxExists' =-
[Synopsis]
Check to see if Voicemail mailbox exists
[Description]
MailboxExists(mailbox[@context][|options]): Check to see if the specified
mailbox exists. If no voicemail context is specified, the 'default' context
will be used.
This application will set the following channel variable upon completion:
VMBOXEXISTSSTATUS - This will contain the status of the execution
of the
MailboxExists application. Possible values include:
SUCCESS | FAILED
Options:
j - Jump to priority n+101 if the mailbox is found.
Ryan Hayward wrote:
> Here's the relevent section of my extensions.conf:
>
> ### Handle voicemail
> exten => _1XX,1,SayDigits(${EXTEN})
> exten => _1XX,2,MailboxExists(${EXTEN})
> exten => _1XX,3,Playback(vm-nobox)
> exten => _1XX,4,Goto(teliax,5013584196,3)
> exten => _1XX,103,VoiceMail(b${EXTEN})
> exten => _1XX,104,Goto(teliax,5013584196,3)
>
>> From what I understands 2,MailboxExits() should branch to 103 if the
> box exists, and 3 if the box doesn't. However, no matter if the box
> exists or not, it always goes to 3.
>
> If instead of MailboxExists(), I just do VoiceMail(), I get similar
> results: The Voicemail() call works if there's a box present, but
> whether the mailbox exists or not, it branches to the n+1, instead of
> n+101.
>
> Is there something I'm not understanding about priorites, or
> extensions that's keeping this from working? I understand what
> everything else is doing, and am developing a fairly complicated
> extensions.conf, but the branching doesn't seem to work right for me.
--
Now accepting new clients in Birmingham, Atlanta, Huntsville,
Chattanooga, and Montgomery.
More information about the asterisk-users
mailing list