[asterisk-users] ${CALLERIDNUM}

scott
Wed, 01 Nov 2006 06:39:30 -0000

That worked great

Many Thanks

-----Original message-----
From: "C F" shmaltz@gmail.com
Date: Wed,  1 Nov 2006 06:57:28 -0600
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
	asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] ${CALLERIDNUM}

>  The following will:
>  exten => s,1,GotoIf($[${LEN(${CALLERID(num)})}=2]?50)
>
>  On 11/1/06, Scott Pinhorne <scott@scottpinhorne.co.uk> 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?
>  >
>  >
>  >
>  > Many thanks
>  >
>  >
>  > _______________________________________________
>  > --Bandwidth and Colocation provided by Easynews.com --
>  >
>  > asterisk-users mailing list
>  > To UNSUBSCRIBE or update options visit:
>  >
>  > http://lists.digium.com/mailman/listinfo/asterisk-users
>  >
>  >
>  >
>  _______________________________________________
>  --Bandwidth and Colocation provided by Easynews.com --
>
>  asterisk-users mailing list
>  To UNSUBSCRIBE or update options visit:
>     http://lists.digium.com/mailman/listinfo/asterisk-users