Fixes in Negotiations

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@7723 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Thiago Camargo
2007-03-27 04:38:57 +00:00
committed by thiago
parent 64f9f574e7
commit 07608bf83c

View File

@ -73,6 +73,15 @@ public class IncomingCall implements JingleSessionListener, ChatRoomClosingListe
notificationUI = new GenericNotification("Establishing call. Please wait...", SparkRes.getImageIcon(SparkRes.BUSY_IMAGE));
// Accept the request
try {
session = request.accept();
} catch (XMPPException e) {
Log.error(e);
}
session.addListener(this);
showIncomingCall(request);
}
@ -201,7 +210,6 @@ public class IncomingCall implements JingleSessionListener, ChatRoomClosingListe
incomingCall.getRejectButton().addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
request.reject();
rejectIncomingCall();
}
});
@ -215,7 +223,6 @@ public class IncomingCall implements JingleSessionListener, ChatRoomClosingListe
TaskEngine.getInstance().submit(ringer);
// End after 30 seconds max.
TimerTask endTask = new SwingTimerTask() {
public void doRun() {
@ -241,11 +248,6 @@ public class IncomingCall implements JingleSessionListener, ChatRoomClosingListe
}
try {
// Accept the request
session = request.accept();
session.addListener(this);
// Start the call
session.start();
}