[Asterisk-Dev] ast_expr changes
Tilghman Lesher
tilghman at mail.jeffandtilghman.com
Mon May 3 06:39:48 MST 2004
On Monday 03 May 2004 06:26, Tais M. Hansen wrote:
> On Monday 03 May 2004 13:16, fabian at gigacodes.de wrote:
> > You can get rid of this error message by using the foo trick
> > (described in the wiki)
> > Quote:
> > You can test for an empty value, but instead of using "" you'd
> > do this:
> > GotoIf($[foo${CALLERIDNUM} = foo]?3:2)
> > But i don't know how long this is like that. I always had these
> > msg's.
>
> I've never had these errors and it effectively breaks my dialplans.
> Rolling back the lastest change to ast_expr.y makes it work again.
Another option is to use the ${LEN()} syntax:
GotoIf($[${LEN(${CALLERIDNUM})} = 0]?3:2)
which is certainly less of a hack and should work with either
version of ast_expr.
--
Tilghman
More information about the asterisk-dev
mailing list