On Thursday 30 April 2009 09:37:50 Oguzhan Kayhan wrote:
> Ok I found an example script that said to be work..
> but i have some errors.
> Here is the script and then the error msgs.
> exten => *666*,2,GotoIf($[${DB(CFBOOLEAN/${CALLERID(NUM)})} = 1]?3:102)
The DB returns nothing, so it evaluates $[ = 1] which doesn't parse. Try:
exten => *666*,2,GotoIf($[0${DB(CFBOOLEAN/${CALLERID(NUM)})} = 1]?3:102)
When the value doesn't exist, it will evaluate $[0 = 1]. If it does exist, it
evaluates $[01 = 1], which is true.
> exten => *22*,1,DB_DELETE(CFIM/${CALLERID(NUM)})
DB_DELETE is a function, not an application. You can do one of the following:
exten => *22*,1,NoOp(${DB_DELETE(CFIM/${CALLERID(NUM)})})
exten => *22*,1,DBDel(CFIM/${CALLERID(NUM)})
--
Tilghman
_______________________________________________
-- 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