return;
}
if (message instanceof LockUnlockResponseMessage) {
LockUnlockResponseMessage msg = (LockUnlockResponseMessage) message;
if (phoneForm != null) {
phoneForm.changeLocked(msg.getLocked(), msg.wasSuccessful());
}
return;
}
if (message instanceof PhoneResponseMessage == false) {
LOGGER.warning("Invalid message: " + message);
return;
}
PhoneResponseMessage msg = (PhoneResponseMessage) message;
CallListing listing = msg.getCallListing();
if (msg instanceof PlaceCallResponseMessage) {
LOGGER.fine("Got place call response...");
if (msg.wasSuccessful() == false) {
LOGGER.warning("Failed PLACE_CALL!");
return;
}
if (mostRecentCallListing == null ||
listing.equals(mostRecentCallListing) == false) {
LOGGER.warning("Didn't find listing...");
return;
}
/*
* Make sure the most recent listing has the right private
* client name.
*/
mostRecentCallListing.setPrivateClientName(listing.getPrivateClientName());
/*
* Set the call ID used by the server.
*/
LOGGER.fine("Updating listing with " + listing.getExternalCallID());
mostRecentCallListing.setExternalCallID(listing.getExternalCallID());
/*
* This is a confirmation msg for OUR call.
* Update the form's selection.
*/
if (listing.isPrivate()) {
//ChannelController.getController().getLocalUser().getAvatarCell().setUserWhispering(true);
}
return;
}
if (msg instanceof JoinCallResponseMessage) {
//Hearing back from the server means this call has joined the world.
if (msg.wasSuccessful() == false) {
LOGGER.warning("Failed JOIN_CALL");
return;
}
if (mostRecentCallListing == null ||