[asterisk-users] MailboxExists not branching to n+101

C F shmaltz at gmail.com
Fri Aug 11 09:03:35 MST 2006


Use j option in those apps.

pbx*CLI> show application MailboxExists
  -= 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.



On 8/11/06, Ryan Hayward <hunterotd at gmail.com> 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.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list