update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7916 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
cfbe766897
commit
ec3bc69aba
|
@ -2616,6 +2616,13 @@ static JSBool session_construct(JSContext * cx, JSObject * obj, uintN argc, jsva
|
|||
jss->cx = cx;
|
||||
jss->obj = obj;
|
||||
JS_SetPrivate(cx, obj, jss);
|
||||
|
||||
if (argc > 0) {
|
||||
char *uuid = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
||||
if (uuid) {
|
||||
jss->session = switch_core_session_locate(uuid);
|
||||
}
|
||||
}
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue