> 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.
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
No comments:
Post a Comment