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.


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

Reply via email to