Fix msn stack not to close multichat sessions when there is no activity.

Show error when outgoing call creation fails.
cusax-fix
Damian Minkov 16 years ago
parent 154df20213
commit 7774aa24e4

@ -137,7 +137,7 @@ public ErrorDialog( Frame owner,
public ErrorDialog( Frame owner,
String title,
String message,
Exception e)
Throwable e)
{
this(owner, title, message);

@ -673,7 +673,7 @@ else if (stringContact != null)
GuiActivator.getResources()
.getI18NString("service.gui.ERROR"),
exception.getMessage(),
ErrorDialog.ERROR)
exception)
.showDialog();
}
}

@ -171,7 +171,17 @@ public CallPeerSipImpl invite(Address calleeAddress,
callPeer.getMediaHandler().setLocalVideoTransmissionEnabled(
localVideoAllowed);
callPeer.invite();
try
{
callPeer.invite();
}
catch(OperationFailedException ex)
{
// if inviting call peer fail for some reason, change its state
// if not already filed
callPeer.setState(CallPeerState.FAILED);
throw ex;
}
return callPeer;
}

@ -89,6 +89,7 @@ public static SessionDescription parseSdpString(String sdp)
*/
public static SessionDescription createSessionDescription(
InetAddress localAddress)
throws OperationFailedException
{
return createSessionDescription(localAddress, null, null);
}
@ -113,6 +114,7 @@ public static SessionDescription createSessionDescription(
InetAddress localAddress,
String userName,
Vector<MediaDescription> mediaDescriptions)
throws OperationFailedException
{
SessionDescription sessDescr = null;
@ -164,7 +166,14 @@ public static SessionDescription createSessionDescription(
//the jain-sip implementations of the above methods do not throw
//exceptions in the cases we are using them so falling here is
//quite unlikely. we are logging out of mere decency :)
logger.error("Failed to crate an SDP SessionDescription.", exc);
//logger.error("Failed to crate an SDP SessionDescription.", exc);
// fail to create session description for some reason
// must throw exception so we can inform user
// it could be we were unable to open device or some problem
// with hostnames
ProtocolProviderServiceSipImpl.throwOperationFailedException(
"An error occurred while creating session description",
OperationFailedException.INTERNAL_ERROR, exc, logger);
}
return sessDescr;
@ -191,6 +200,7 @@ public static SessionDescription createSessionUpdateDescription(
SessionDescription descToUpdate,
InetAddress newConnectionAddress,
Vector<MediaDescription> newMediaDescriptions)
throws OperationFailedException
{
SessionDescription update = createSessionDescription(
newConnectionAddress, null, newMediaDescriptions);

Loading…
Cancel
Save