Revision: 3783
Author: seba.wagner
Date: Thu Jun 9 10:58:33 2011
Log: Fix external Calls to JS
http://code.google.com/p/openmeetings/source/detail?r=3783
Modified:
/trunk/singlewebapp/WebContent/openmeetings/base/sipfunctions.lzx
=======================================
--- /trunk/singlewebapp/WebContent/openmeetings/base/sipfunctions.lzx Tue
Oct 5 06:46:51 2010
+++ /trunk/singlewebapp/WebContent/openmeetings/base/sipfunctions.lzx Thu
Jun 9 10:58:33 2011
@@ -13,6 +13,16 @@
flash.external.ExternalInterface.addCallback("sipLoginSuccess", null,
sipLoginSuccess);
flash.external.ExternalInterface.addCallback("sipLoginFail", null,
sipLoginFail);
+
+flash.external.ExternalInterface.addCallback("callbackgetAppletStatus",
null, callbackgetAppletStatus);
+flash.external.ExternalInterface.addCallback("callbackLoginSipUser", null,
callbackLoginSipUser);
+flash.external.ExternalInterface.addCallback("callbackregister", null,
callbackregister);
+flash.external.ExternalInterface.addCallback("callbackDTMFButton", null,
callbackDTMFButton);
+flash.external.ExternalInterface.addCallback("preCustomStartCallByCallToCallBack",
null,
preCustomStartCallByCallToCallBack);
+flash.external.ExternalInterface.addCallback("preCustomStartCallBack",
null, preCustomStartCallBack);
+flash.external.ExternalInterface.addCallback("startCallCallBack", null,
startCallCallBack);
+
+
function sipStatusMessage(msg) {
if ($debug) Debug.write("sipStatusMessage :: ",msg);
@@ -64,9 +74,11 @@
function getAppletStatus() {
- if ($debug) Debug.write("initializeSIPApplet :: ");
-
- lz.Browser.callJS("getAppletStatus",callbackgetAppletStatus);
+ if ($debug) Debug.write("initializeSIPApplet ::
flash.external.ExternalInterface (getAppletStatus) ");
+
+ flash.external.ExternalInterface.call("getAppletStatus")
+
+ //lz.Browser.callJS("getAppletStatus",callbackgetAppletStatus);
}
@@ -88,7 +100,9 @@
returnObject = regObject;
-
lz.Browser.callJS("omCustomRegister",callbackLoginSipUser,userSipData.username,userSipData.userpass,userSipData.authId);
+
flash.external.ExternalInterface.call("omCustomRegister",userSipData.username,userSipData.userpass,userSipData.authId);
+
+
//lz.Browser.callJS("omCustomRegister",callbackLoginSipUser,userSipData.username,userSipData.userpass,userSipData.authId);
}
@@ -102,7 +116,9 @@
if ($debug) Debug.write("loginSipUser :: ");
- lz.Browser.callJS("register",callbackregister);
+ flash.external.ExternalInterface.call("register");
+
+ //lz.Browser.callJS("register",callbackregister);
}
@@ -113,7 +129,9 @@
if ($debug) Debug.write("callDTMFButton :1: ",number);
- lz.Browser.callJS("DTMFButton",callbackDTMFButton,number);
+ flash.external.ExternalInterface.call("DTMFButton",number);
+
+ //lz.Browser.callJS("DTMFButton",callbackDTMFButton,number);
}
@@ -128,7 +146,10 @@
function preCustomStartCallByCallTo(sipNumber) {
//preCustomStartCall(); startCall();
-
lz.Browser.callJS("preCustomStartCallByCallTo",preCustomStartCallByCallToCallBack,sipNumber);
+
+
flash.external.ExternalInterface.call("preCustomStartCallByCallTo",sipNumber);
+
+
//lz.Browser.callJS("preCustomStartCallByCallTo",preCustomStartCallByCallToCallBack,sipNumber);
}
@@ -144,7 +165,10 @@
function preCustomStartCall() {
//preCustomStartCall(); startCall();
- lz.Browser.callJS("preCustomStartCall",preCustomStartCallBack);
+
+ flash.external.ExternalInterface.call("preCustomStartCall");
+
+ //lz.Browser.callJS("preCustomStartCall",preCustomStartCallBack);
}
@@ -160,7 +184,10 @@
function startCall() {
//preCustomStartCall(); startCall();
- lz.Browser.callJS("startCall",startCallCallBack);
+
+ flash.external.ExternalInterface.call("startCall");
+
+ //lz.Browser.callJS("startCall",startCallCallBack);
}
--
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.