git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7916 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-03-18 18:22:13 +00:00
parent cfbe766897
commit ec3bc69aba
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}