[Asterisk-Users] anyone use mailboxexists?

Michael George george at auroravideosys.com
Fri Jun 18 06:49:38 MST 2004


Billy, looking at this more closely, I have some questions...

On Jun 15, 2004, at 9:45 PM, Billy Huddleston wrote:
> Yes, I use it. Here's a sample extension of how to use it.
>
> exten => 1234,1,Answer()
> exten => 1234,2,MailboxExists(1234)
> exten => 1234,3,Dial(SIP/1234,20) ; Try to ring for 20 seconds, no 
> answer goto voicemail
 From the docs, it looks like MailboxExists() will add 101 to the 
priority if the box *does* exist and goes to the next priority if not.

> exten => 1234,4,Voicemail(b1234) ; send to voicemail if busy
Here's your next priority step and you go to VM.  However, if ME() gets 
to here, it seems that the box does not exist.

> exten => 1234,103,Dial(SIP/1234) ; Try to ring till answered
Here is priority +101, you try to dial the line...

> exten => 1234,104,Busy() ; Give busy tone if busy.
... and give the busy tone if the line is busy...

> exten => 1234,204,Voicemail(u1234) ; send to voicemail if no answer
... but if there's no answer you go to voicemail.

It looks like you go to voicemail either way, so perhaps I'm 
misunderstanding how MailboxExists() works...

Thanks!

-Michael




More information about the asterisk-users mailing list