[asterisk-users] Number Range

Doug Lytle support at drdos.info
Mon Oct 9 10:51:08 MST 2006


Douglas Garstang wrote:
> My extensions.conf has:
>
> 	exten => _X.,1,GotoIf([${CALLERID(number)} > 5000 & ${CALLERID(number)} < 5999]?true:false)
>
> and the dialplan on execution evaluates it as
>
>     -- vmtest1*CLI>
>     -- Executing GotoIf("SIP/3254101-081e2820", "[3254101 > 5000] & [3254101 < 5999]?true:false") in new stack
>     -- Goto (btck_CallStart,5551212,2)
>     -- Executing NoOp("SIP/3254101-081e2820", "True") in new stack:
>   
**According to the entry on the wiki, it should be:
 

exten => _X.,1,GotoIf(["${CALLERID(number)"} > 5000 & "${CALLERID(number)"} < 5999]?true:false)


Doug

-- 
 
Ben Franklin quote:

"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."




More information about the asterisk-users mailing list