[Asterisk-Dev] dialplan eval problem?

Matthew Boehm mboehm at cytelcom.com
Tue Jun 7 09:18:35 MST 2005


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.
------------------------------------------------------------------------




More information about the asterisk-dev mailing list