Re: [asterisk-users] Question on AEL2 string comparisons

2013-07-04 Thread James B. Byrne
On Thu, July 4, 2013 02:14, Satish Barot wrote: >> > > ${CALLERID(num)} should give you only number and not technology i.e. > 41712. > > Give this a shot, > > exten => _417XX,n,Noop(CALLERIDNUM=${CALLERID(num)}) > exten => _417XX,n,GotoIf($[$["${CALLERID(num)}" > "41799"] | > $["${CALLERID(num)}"

Re: [asterisk-users] Question on AEL2 string comparisons

2013-07-03 Thread Satish Barot
On Thu, Jul 4, 2013 at 12:24 AM, James B. Byrne wrote: > I have this code in a dial plan: > > exten => _417XX,n,GotoIf($["${CALLERID(num)}" > > "SIP/41799"]?notfromlocal) > exten => _417XX,n,GotoIf($["${CALLERID(num)}" < > "SIP/41700"]?notfromlocal) > > The value of "${CALLERID(num)}" appears to b

[asterisk-users] Question on AEL2 string comparisons

2013-07-03 Thread James B. Byrne
I have this code in a dial plan: exten => _417XX,n,GotoIf($["${CALLERID(num)}" > "SIP/41799"]?notfromlocal) exten => _417XX,n,GotoIf($["${CALLERID(num)}" < "SIP/41700"]?notfromlocal) The value of "${CALLERID(num)}" appears to be "SIP/41712-0181" -- Executing [41720@from-internal:5] GotoI