[asterisk-users] ${CALLERIDNUM}

Michiel van Baak michiel at vanbaak.info
Wed Nov 1 05:58:34 MST 2006


On 11:53, Wed 01 Nov 06, Scott Pinhorne wrote:
> Hi
> 
>  
> 
> Does anyone know how I can check if a callerID is more than 2 digits.
> 
> I am setting up my phones so that if the callerID is 3 digits the phones
> ring one way if it is more than 3 digits it rings another i.e. internal
> calls and external calls.
> 
>  
> 
> exten => 2222,1,GotoIf($["${CALLERIDNUM}" = "1111"]?5)
> 
>  
> 
> This will tell it to jump to 5 if callerID if 1111 but how do i tell it do
> jump based on length of callerID?

check the LEN() dialplan function

-- 

Michiel van Baak
michiel at vanbaak.eu
http://michiel.vanbaak.eu
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD

"Why is it drug addicts and computer afficionados are both called users?"



More information about the asterisk-users mailing list