[asterisk-users] a little regex help needed
Edwin Lam
edwin.lam at officegeneral.com
Mon Oct 20 18:17:13 CDT 2008
sean darcy wrote:
> OK. So I changed the * to .. , like so:
>
> exten =>s,n,Set(CALLERID(name)=${IF($[0${CALLERID(num)} =
> 0${REGEX("21245711..")} ] ? "Office":${CALLERID(name)} )})
>
> which I would expect to mean 021245711 followed by two other characters.
>
> It still matches a blank callerid(num).
try:
exten =>s,n,Set(CALLERID(name)=${IF($[ ${REGEX("021245711.." 0${CALLERID(num)})} = 1] ? "Office":${CALLERID(name)})})
--
Edwin Lam <edwin.lam at officegeneral.com>
Systems Engineer, Office General, Inc.
Ph: +1 415 439 4988 Fax: +1 415 283 3370
http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0xD6506D20
More information about the asterisk-users
mailing list