From 1e59690cc17bbe9072bd14b11a1c97e489dd1d35 Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthm@freeswitch.org>
Date: Mon, 25 Nov 2013 12:34:04 -0600
Subject: [PATCH] FS-6001 --resolve

---
 src/mod/applications/mod_commands/mod_commands.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c
index 019e3f8563..7956903c38 100644
--- a/src/mod/applications/mod_commands/mod_commands.c
+++ b/src/mod/applications/mod_commands/mod_commands.c
@@ -1946,6 +1946,16 @@ SWITCH_STANDARD_API(cond_function)
 		}
 	}
 
+	if (strspn(a, "!<>=")) {
+		expr = a;
+	}
+
+	if (expr == a) {
+		a = "";
+	}
+
+	while (*expr == ' ') expr++;
+
 	while(expr && *expr) {
 		switch(*expr) {
 		case '!':