[Asterisk-Users] Testing null values: ast_yyerror(): syntax error

Grzegorz Nosek blackfire at metal.art.pl
Sat Aug 21 11:08:54 MST 2004


Dnia środa, 18 sierpnia 2004 16:56, Walt Reed napisał:
> OK, I'm going nuts here trying to correctly identify null values,
> specifically when callerID info is not available.
>
> FYI, I'm running Asterisk CVS-HEAD-08/17/04-13:08:53, and Bison 1.875a
> (debian Sid).
>
> A snippit of my dialplan looks like this:
> exten => s,1,SetCIDNum(${CALLERIDNUM})
> exten => s,2,NoOp,${CALLERID}
> exten => s,3,DBGet(temp=idiot/${CALLERIDNUM}) ; Is the person calling an
> idiot? exten => s,4,Goto(s,2001) ; Yep, he's an idiot.
>

Don't know whether there's a more elegant solution, but maybe try putting 
values like x${CALLERIDNUM} into the DB? that way if you get a null CID, it 
should match against "x".



More information about the asterisk-users mailing list