[asterisk-users] need help on asterisk call forwarding
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Thu Apr 30 10:52:19 CDT 2009
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
More information about the asterisk-users
mailing list