[asterisk-users] Question on AEL2 string comparisons

James B. Byrne byrnejb at harte-lyne.ca
Thu Jul 4 15:21:57 CDT 2013


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)}" < "41700"]]?notfromlocal:)
>
> --Satish Barot
> Ahmedabad, India
>

That works.  Thank you.
-- 
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3




More information about the asterisk-users mailing list