[Freeswitch-svn] [commit] r7916 - freeswitch/trunk/src/mod/languages/mod_spidermonkey

Freeswitch SVN anthm at freeswitch.org
Tue Mar 18 14:22:14 EDT 2008


Author: anthm
Date: Tue Mar 18 14:22:13 2008
New Revision: 7916

Modified:
   freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

Log:
update

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	Tue Mar 18 14:22:13 2008
@@ -2616,6 +2616,13 @@
 	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;
 }



More information about the Freeswitch-svn mailing list