I am trying to find out if the variable is not set. The problem is this condition fires if the variable is set or not set. If the variable is not set, I want it to sleep. 


Sent from my HTC

----- Reply message -----
From: "Ken Rice" <krice@freeswitch.org>
To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] condition
Date: Sat, Jun 28, 2014 1:24 PM

thats tesing for an empty string... test to see if what you expect to be there and if not use anti-action to sleep

Ken
Sent from my iPad

On Jun 28, 2014, at 11:15, "Andrew" <aademattia@comcast.net> wrote:

Hi,

I want to see if the variable is set.  If its not I want to sleep for 500 mill sec.

This does not seem to work.

 <condition field="${my_dialstring}" expression="^$">

<action application="sleep" data="500"/>

</condition>

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org