Revision: 2819
Author: seba.wagner
Date: Thu Jan 21 05:26:55 2010
Log: Fixes Issue 1083
http://code.google.com/p/openmeetings/source/detail?r=2819
Added:
/trunk/singlewebapp/WebContent/openmeetings/base/sipfunctions.lzx
Modified:
/trunk/singlewebapp/WebContent/openmeetings/base/library.lzx
/trunk/singlewebapp/WebContent/openmeetings/sip-applet/custom.js
/trunk/singlewebapp/WebContent/sip-applet/custom.js
=======================================
--- /dev/null
+++ /trunk/singlewebapp/WebContent/openmeetings/base/sipfunctions.lzx Thu
Jan 21 05:26:55 2010
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<library>
+
+<script>
+<![CDATA[
+
+flash.external.ExternalInterface.addCallback("sipStatusMessage", null,
sipStatusMessage);
+
+function sipStatusMessage(msg) {
+
+ if ($debug) Debug.write("sipStatusMessage :: ",msg);
+
+}
+
+function callbackLoginSipUser(returnValue) {
+
+ if ($debug) Debug.write("callback ",returnValue);
+
+}
+
+function loginSipUser() {
+
+ if ($debug) Debug.write("loginSipUser :: ");
+
+
lz.Browser.callJS("omCustomRegister",callbackLoginSipUser,"user","pass","");
+
+}
+
+]]>
+</script>
+
+</library>
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/base/library.lzx Mon Oct 12
03:48:00 2009
+++ /trunk/singlewebapp/WebContent/openmeetings/base/library.lzx Thu Jan 21
05:26:55 2010
@@ -15,6 +15,7 @@
-->
<!-- for main.lzx -->
<include href="functions.lzx" />
+ <include href="sipfunctions.lzx" />
<include href="mainAttributes.lzx" />
<include href="mainDatasets.lzx" />
<include href="mainMethods.lzx" />
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/sip-applet/custom.js Thu
Jan 21 02:51:09 2010
+++ /trunk/singlewebapp/WebContent/openmeetings/sip-applet/custom.js Thu
Jan 21 05:26:55 2010
@@ -49,14 +49,24 @@
}
function statusBar(msg){
- if (document.getElementById("statusbar")) {
- // for better debugging
- //document.getElementById("statusbar").innerHTML += '<br/>' + msg;
-
- // for normal use
- document.getElementById("statusbar").innerHTML = msg;
- }
-}
+
+ var lzappRef = document.getElementById("lzapp");
+
+ if (lzappRef) {
+
+ if (document.getElementById("lzapp").sipStatusMessage){
+ //alert("Found lzapp --asipStatusMessage--");
+ document.getElementById("lzapp").sipStatusMessage(msg);
+ } else {
+ alert("Could Not Find lzapp --sipStatusMessage-- "+msg);
+ }
+
+ } else {
+ alert("Could Not Find lzapp "+msg);
+ }
+
+}
+
function customOnRegistrationSuccess(s){
$('#login').hide();
$('#callbuttons').show();
@@ -74,14 +84,31 @@
}
function customOnLoaded()
{
- statusBar("Waiting for user action");
-}
+ statusBar("Waiting for user action -1- ");
+}
+
function preCustomRegister()
{
setUsername(document.getElementById("username").value);
setPassword(document.getElementById("password").value);
setAuthID(document.getElementById("authid").value);
}
+
+function omCustomRegister(username,password,authid)
+{
+
+
+
+ //setUsername(username);
+ //setPassword(password);
+ //setAuthID(authid);
+
+ statusBar("Call omCustomRegister");
+
+ return "omCustomRegisterReturn";
+}
+
+
function preCustomStartCall()
{
setCallTo(document.getElementById("callto").value);
=======================================
--- /trunk/singlewebapp/WebContent/sip-applet/custom.js Thu Jan 21 02:51:09
2010
+++ /trunk/singlewebapp/WebContent/sip-applet/custom.js Thu Jan 21 05:26:55
2010
@@ -79,6 +79,7 @@
}
function preCustomRegister()
{
+ //alert("authid :: "+document.getElementById("authid").value);
setUsername(document.getElementById("username").value);
setPassword(document.getElementById("password").value);
setAuthID(document.getElementById("authid").value);
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-dev?hl=en.