fix MODLANG-69
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9027 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
d690632ba1
commit
73648db842
|
@ -1589,7 +1589,9 @@ static jsval check_hangup_hook(struct js_session *jss, jsval *rp)
|
|||
}
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue