[Freeswitch-svn] [commit] r6191 - freeswitch/trunk/src/mod/applications/mod_commands
Freeswitch SVN
mikej at freeswitch.org
Thu Nov 8 20:06:27 EST 2007
Author: mikej
Date: Thu Nov 8 20:06:26 2007
New Revision: 6191
Modified:
freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
Log:
add not equal for string arguments like for equal.
Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c (original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c Thu Nov 8 20:06:26 2007
@@ -57,7 +57,7 @@
char *mydata = NULL, *argv[3];
char *expr;
char *a, *b;
- float a_f = 0.0, b_f = 0.0;
+ double a_f = 0.0, b_f = 0.0;
o_t o = O_NONE;
int is_true = 0;
char *p;
@@ -132,7 +132,11 @@
}
break;
case O_NE:
- is_true = a_f != b_f;
+ if (!a_is_num && !b_is_num) {
+ is_true = strcmp(s_a, s_b);
+ } else {
+ is_true = a_f != b_f;
+ }
break;
case O_GT:
is_true = a_f > b_f;
More information about the Freeswitch-svn
mailing list