Upgrade 3CX to v18 and get it hosted free!

Asterisk cmd MailboxExists

Author image

Synopsis:

Check if vmbox exists

Description:

MailboxExists(mailbox[@context])

Conditionally branches to priority n+101 if the specified voice mailbox exists.

!This command was added to the development (CVS) edition of Asterisk on 2004-03-19. It does not exist in Asterisk 1.0 or 0.9.

Asterisk 11 Deprecated Use VM_INFO(mailbox,exists)

For Asterisk 1.2.x the following is valid:

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.

For Asterisk 1.6.x the following is valid:

Synopsis:

Check to see if Voicemail mailbox exists. Has been changed to a function which means that you can use it in GotoIf.

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:

None. This is a change from 1.4. j does not jump to n+101 to do that, use
GotoIf(${MAILBOX_EXISTS(${ARG1}@residential)} = “1”?labeltojumpto)

See also


Asterisk | Applications | Functions | Variables | Expressions | Asterisk FAQ


Article Reviews

Write a Review

Your email address will not be published. Required fields are marked *

Required Field. Minimum 5 characters.

Required Field. Minimum 5 characters, maximum 50.

Required field.There is an error with this field.

Required Field.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

There are no reviews for this article. Be the first one to write a review.

Related Posts:

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.