[asterisk-users] ${CALLERIDNUM}

Scott Pinhorne scott at scottpinhorne.co.uk
Wed Nov 1 04:53:40 MST 2006


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?

 

Many thanks

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061101/23ff346f/attachment.htm


More information about the asterisk-users mailing list