add not equal for string arguments like for equal.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6191 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-11-09 01:06:26 +00:00
parent 8fb47f8878
commit 84ee99d2f5
1 changed files with 6 additions and 2 deletions

View File

@ -57,7 +57,7 @@ SWITCH_STANDARD_API(qq_function)
char *mydata = NULL, *argv[3]; char *mydata = NULL, *argv[3];
char *expr; char *expr;
char *a, *b; 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; o_t o = O_NONE;
int is_true = 0; int is_true = 0;
char *p; char *p;
@ -132,7 +132,11 @@ SWITCH_STANDARD_API(qq_function)
} }
break; break;
case O_NE: case O_NE:
if (!a_is_num && !b_is_num) {
is_true = strcmp(s_a, s_b);
} else {
is_true = a_f != b_f; is_true = a_f != b_f;
}
break; break;
case O_GT: case O_GT:
is_true = a_f > b_f; is_true = a_f > b_f;