[Home]

Summary:ASTERISK-04851: MailboxExists doesn't seem to support 'n' priorities
Reporter:Brett Nemeroff (brettnem)Labels:
Date Opened:2005-08-17 15:15:40Date Closed:2011-06-07 14:10:48
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Using mailbox exists with 'n' priorities and 'n(label)' priorities dosen't seem to work. For example:

exten => 500,1,NoOp(MailboxExists Test)
exten => 500,n(start),MailBoxExists(100@default)
exten => 500,n,NoOp(It does not exist)
exten => 500,n,Hangup
exten => 500,n(start+101),NoOp(it exists)
exten => 500,n,Hangup

assuming that 100@default does exist, I'll get a message like:
"Mailbox 100@default exists but priority x (numerical) does not"
Where 'x' appears to be calculated where it should be, but I'm not entirely sure how it is determined.

Also, FWIW, Jumping to 101 on success seems odd to me.
Comments:By: Tilghman Lesher (tilghman) 2005-08-17 17:40:50

That's because you're doing it wrong, and it has nothing to do with MailboxExists:

exten => 500,1,NoOp(MailboxExists Test)
exten => 500,n(start),MailBoxExists(100@default)
exten => 500,n,NoOp(It does not exist)
exten => 500,n,Hangup
exten => 500,start+101,NoOp(it exists)
exten => 500,n,Hangup