diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h
index 6dfe5d0055..1b13777166 100644
--- a/src/include/switch_utils.h
+++ b/src/include/switch_utils.h
@@ -161,7 +161,7 @@ SWITCH_DECLARE(switch_status_t) switch_frame_free(switch_frame_t **frame);
 !strcasecmp(expr, "disabled") ||\
 !strcasecmp(expr, "inactive") ||\
 !strcasecmp(expr, "disallow") ||\
-!(switch_is_number(expr) && atoi(expr)))) ? SWITCH_TRUE : SWITCH_FALSE)
+(switch_is_number(expr) && !atoi(expr)))) ? SWITCH_TRUE : SWITCH_FALSE)
 
 
 /*!