Detect remote hangups. Bug reported by Carlos Alexandre.

cusax-fix
Yana Stamcheva 18 years ago
parent 61c1178eaf
commit bbe6b9d737

@ -18,6 +18,7 @@
import net.java.sip.communicator.impl.gui.utils.*;
import net.java.sip.communicator.service.contactlist.*;
import net.java.sip.communicator.service.protocol.*;
import net.java.sip.communicator.service.protocol.event.*;
import net.java.sip.communicator.util.*;
/**
@ -27,7 +28,8 @@
*/
public class ReceivedCallDialog
extends SIPCommFrame
implements ActionListener
implements ActionListener,
CallListener
{
private static final String CALL_BUTTON = "CallButton";
@ -59,6 +61,12 @@ public ReceivedCallDialog(Call call)
this.setUndecorated(true);
this.initComponents();
OperationSetBasicTelephony telephonyOpSet
= (OperationSetBasicTelephony) call.getProtocolProvider()
.getOperationSet(OperationSetBasicTelephony.class);
telephonyOpSet.addCallListener(this);
}
/**
@ -207,4 +215,17 @@ private ImageIcon getParticipantImage(CallParticipant participant)
protected void close(boolean isEscaped)
{
}
public void callEnded(CallEvent event)
{
this.dispose();
}
public void incomingCallReceived(CallEvent event)
{
}
public void outgoingCallCreated(CallEvent event)
{
}
}

Loading…
Cancel
Save