[asterisk-users] Correct syntax for IF()?
Jared Smith
jsmith at digium.com
Thu Nov 29 23:30:06 CST 2007
On Mon, 2007-11-26 at 21:23 -0500, Adam Moffett wrote:
> A simpler example reveals the problem:
>
> exten => 188,1,Noop(${STAT(e,/bin/ls)})
> exten => 188,2,Noop(${STAT(e,/not/there)})
>
> Try that and you'll find that STAT(e,/whatever) returns 1 if the file is
> found and NOTHING if the file is not found.
Sounds like a perfect application for the ISNULL dialplan function. Of
course, that adds a whole new set of curly braces and parentheses to
watch out for.
--
Jared Smith
Community Relations Manager
Digium, Inc.
More information about the asterisk-users
mailing list