[Freeswitch-svn] [commit] r9027 - freeswitch/trunk/src/mod/languages/mod_spidermonkey
Freeswitch SVN
brian at freeswitch.org
Mon Jul 14 19:24:39 EDT 2008
Author: brian
Date: Mon Jul 14 19:24:39 2008
New Revision: 9027
Modified:
freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
Log:
fix MODLANG-69
Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c Mon Jul 14 19:24:39 2008
@@ -1589,7 +1589,9 @@
}
JS_CallFunction(jss->cx, jss->obj, jss->on_hangup, argc, argv, &ret);
resp = JS_GetStringBytes(JS_ValueToString(jss->cx, ret));
- ret = !strcasecmp(resp, "exit") ? JS_FALSE : JS_TRUE;
+ if (!switch_strlen_zero(resp)) {
+ ret = !strcasecmp(resp, "exit") ? JS_FALSE : JS_TRUE;
+ }
}
if (rp) {
More information about the Freeswitch-svn
mailing list