[Asterisk-Users] anyone use mailboxexists?

Michael George george at auroravideosys.com
Mon Jun 21 07:46:23 MST 2004


On Jun 21, 2004, at 9:49 AM, Jeremy Jones wrote:
>
> Well, the cvs version I have (head from 3:00 mst june 14th) works as I
> expect with this macro...
>
> Let me triple-check...
> <snip>
>
> So here it hits 2, 3, 4, 5 (all the noops) and on down to 6, as I
> expected it would when I *do* have a vm box, but the opposite of what
> the docs say.

I agree, it seems to behave as you say.

However, I just double-checked on my system with this:
exten => s,1,NoOp
exten => s,2,SetVar(DialOpts=T)
exten => _620X,1,MailboxExists(${EXTEN:1})
exten => _620X,2,NoOp(Box ${EXTEN:1} does not exist)
exten => _620X,3,Goto(s,1)
exten => _620X,102,NoOp(Box ${EXTEN:1} exists)
exten => _620X,103,Goto(s,1)

and the only boxes that exist are 0 and 201.

I get the following:
*CLI>     -- Starting simple switch on 'Zap/1-1'
     -- Executing MailboxExists("Zap/1-1", "201") in new stack
     -- Executing NoOp("Zap/1-1", "Box 201 exists") in new stack
     -- Executing Goto("Zap/1-1", "s|1") in new stack
     -- Goto (internal,s,1)
     -- Executing NoOp("Zap/1-1", "") in new stack
     -- Executing SetVar("Zap/1-1", "DialOpts=T") in new stack
     -- Timeout on Zap/1-1
   == CDR updated on Zap/1-1
     -- Executing BackGround("Zap/1-1", "invalid") in new stack
     -- Playing 'invalid' (language 'en')
     -- Executing Goto("Zap/1-1", "s|1") in new stack
     -- Goto (internal,s,1)
     -- Executing NoOp("Zap/1-1", "") in new stack
     -- Executing SetVar("Zap/1-1", "DialOpts=T") in new stack
     -- Hungup 'Zap/1-1'

     -- Starting simple switch on 'Zap/1-1'
     -- Executing MailboxExists("Zap/1-1", "201") in new stack
     -- Executing NoOp("Zap/1-1", "Box 201 exists") in new stack
     -- Executing Goto("Zap/1-1", "s|1") in new stack
     -- Goto (internal,s,1)
     -- Executing NoOp("Zap/1-1", "") in new stack
     -- Executing SetVar("Zap/1-1", "DialOpts=T") in new stack
   == CDR updated on Zap/1-1
     -- Executing MailboxExists("Zap/1-1", "202") in new stack
     -- Executing NoOp("Zap/1-1", "Box 202 does not exist") in new stack
     -- Executing Goto("Zap/1-1", "s|1") in new stack
     -- Goto (internal,s,1)
     -- Executing NoOp("Zap/1-1", "") in new stack
     -- Executing SetVar("Zap/1-1", "DialOpts=T") in new stack
   == CDR updated on Zap/1-1
     -- Executing MailboxExists("Zap/1-1", "203") in new stack
     -- Executing NoOp("Zap/1-1", "Box 203 does not exist") in new stack
     -- Executing Goto("Zap/1-1", "s|1") in new stack
     -- Goto (internal,s,1)
     -- Executing NoOp("Zap/1-1", "") in new stack
     -- Executing SetVar("Zap/1-1", "DialOpts=T") in new stack
     -- Hungup 'Zap/1-1'

> I suppose I may need to re-write this macro after I update, eh?

Could be, I dunno for sure (I'm so new at this that I'm not puttin' a 
bet on anything :)

The first * we had was from near the end of May and I updated on 6/17 
or 6/18.  The first MailboxExists() didn't work, now it works as 
documented.  Perhaps it was fixed in between those dates but was 
implemented backwards from the docs and they fixed it between when you 
got it and when I did...  What're the odds??

Thanks!

-Michael




More information about the asterisk-users mailing list