[asterisk-users] need help on asterisk call forwarding

Oguzhan Kayhan oguzhank at bilkent.edu.tr
Mon May 4 00:53:50 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.

Still getting
"ast_expr2.fl:440 ast_yyerror: ast_yyerror():  syntax error: syntax error,
unexpected '=', expecting $end; Input: = 1"

Smthing wrong with the syntax???





>
>> 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
>





More information about the asterisk-users mailing list