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 <[EMAIL PROTECTED]>
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


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to