[Asterisk-Dev] dialplan eval problem?

Brian West brian.west at mac.com
Tue Jun 7 17:57:56 MST 2005


I don't think that is valid to do a |.

/b
---
Anakin: “You’re either with me, or you’re my enemy.”
Obi-Wan: “Only a Sith could be an absolutist.”

On Jun 7, 2005, at 11:18 AM, Matthew Boehm wrote:

> Just discovered this "problem". Here is the dial plan.
>
> exten => _9.,1,GotoIf($[${CALLERIDNUM} : 3091|3144]?cscid:ncid)
>
> exten => _9.,n(cscid),Set(CALLERID(number)=8322008636)
> exten => _9.,n,Goto(callout)
>
> exten => _9.,n(ncid),Set(CALLERID(name)=Cypress)
> exten => _9.,n,Set(CALLERID(number)=2814494000)
>
> exten => _9.,n(callout),Dial(ZAP/R1d/${EXTEN:1},60,WT)
>
> Extension 3030's callerid is set to "" (ie: null).
>
> If extension 3030 dials out, using the above dialplan, 3030  
> incorrectly goes
> to priority cscid.
>
> Doesn't pri 1 read as "if ${CALLERIDNUM} contains 3091 or 3144 goto  
> cscid,
> otherwise goto ncid" ?
>
> If so, then how does "if NULL contains 3091 or 3144" eval to true?
>
> -Matthew
>
> -- 
> ---------------------------------------------------------------------- 
> --
> Matthew Boehm, IT Director                    Cypress  
> Telecommunications
> mboehm at cytelcom.com                   3838 N. Sam Houston Parkway E  
> #400
> T: 832-200-8640 x3044                                  Houston, TX  
> 77032
>
> My girlfriend was recently diagnosed with multiple personality  
> disorder;
>  When she called yesterday, my CallerID box exploded.
> ---------------------------------------------------------------------- 
> --
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>




More information about the asterisk-dev mailing list