- hangup phone when user logsout

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@2125 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
Richard Alam 2009-08-07 15:19:30 +00:00
parent 972ddf3625
commit 0098d9c013
3 changed files with 11 additions and 3 deletions

View File

@ -199,7 +199,7 @@ package org.bigbluebutton.modules.phone.managers {
netConnection.call("streamStatus", null, uid, status); netConnection.call("streamStatus", null, uid, status);
} }
public function doClose1():void { public function doClose():void {
netConnection.call("unregister", null, uid); netConnection.call("unregister", null, uid);
} }

View File

@ -52,8 +52,10 @@ package org.bigbluebutton.modules.phone.managers
streamManager.callConnected(event.playStreamName, event.publishStreamName); streamManager.callConnected(event.playStreamName, event.publishStreamName);
} }
public function calledFromGlobal(message:String):void { public function hangup():void {
trace("PhoneManager global " + message); trace("PhoneManager hangup");
connectionManager.doHangUp();
connectionManager.doClose();
} }
} }
} }

View File

@ -3,6 +3,7 @@
xmlns:mx="http://www.adobe.com/2006/mxml"> xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script> <mx:Script>
<![CDATA[ <![CDATA[
import org.bigbluebutton.modules.phone.events.StopPhoneModuleEvent;
import org.bigbluebutton.modules.phone.events.CallDisconnectedEvent; import org.bigbluebutton.modules.phone.events.CallDisconnectedEvent;
import org.bigbluebutton.modules.phone.events.CallConnectedEvent; import org.bigbluebutton.modules.phone.events.CallConnectedEvent;
import org.bigbluebutton.modules.phone.events.RegistrationSuccessEvent; import org.bigbluebutton.modules.phone.events.RegistrationSuccessEvent;
@ -42,6 +43,11 @@
<MethodInvoker generator="{PhoneLocalEventMapDelegate}" method="addToolbarButton"/> <MethodInvoker generator="{PhoneLocalEventMapDelegate}" method="addToolbarButton"/>
</EventHandlers> </EventHandlers>
<EventHandlers type="{StopPhoneModuleEvent.STOP_PHONE_MODULE_EVENT}">
<MethodInvoker generator="{PhoneLocalEventMapDelegate}" method="removeToolbarButton"/>
<MethodInvoker generator="{PhoneManager}" method="hangup"/>
</EventHandlers>
<EventHandlers type="{JoinVoiceConferenceEvent.JOIN_VOICE_CONFERENCE_EVENT}"> <EventHandlers type="{JoinVoiceConferenceEvent.JOIN_VOICE_CONFERENCE_EVENT}">
<MethodInvoker generator="{PhoneManager}" method="join"/> <MethodInvoker generator="{PhoneManager}" method="join"/>
</EventHandlers> </EventHandlers>