Adds OperationSetTelephonyConferencing among the supported OperationSets of the SIP protocol providers because the UI for the conferencing is being created.

cusax-fix
Lyubomir Marinov 17 years ago
parent cc69b56bec
commit 57e4821650

@ -0,0 +1,52 @@
/*
* SIP Communicator, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.protocol.sip;
import net.java.sip.communicator.service.protocol.*;
/**
* @author Lubomir Marinov
*/
public class OperationSetTelephonyConferencingSipImpl
implements OperationSetTelephonyConferencing
{
/**
* The SIP <code>ProtocolProviderService</code> implementation which created
* this instance and for which telephony conferencing services are being
* provided by this instance.
*/
private final ProtocolProviderServiceSipImpl parentProvider;
/**
* Initializes a new <code>OperationSetTelephonyConferencingSipImpl</code>
* instance which is to provide telephony conferencing services for a
* specific SIP <code>ProtocolProviderService</code> implementation.
*
* @param parentProvider
* the SIP <code>ProtocolProviderService</code> which has
* requested the creation of the new instance and for which the
* new instance is to provide telephony conferencing services
*/
public OperationSetTelephonyConferencingSipImpl(
ProtocolProviderServiceSipImpl parentProvider)
{
this.parentProvider = parentProvider;
}
public Call createConfCall(String[] callees)
throws OperationNotSupportedException
{
throw new OperationNotSupportedException();
}
public CallPeer inviteCalleeToCall(String uri, Call existingCall)
throws OperationNotSupportedException
{
throw new OperationNotSupportedException();
}
}

@ -484,9 +484,13 @@ protected void initialize(String sipAddress,
new OperationSetVideoTelephonySipImpl(opSetBasicTelephonySipImpl));
// init DTMF (from JM Heitz)
OperationSetDTMF opSetDTMF = new OperationSetDTMFSipImpl(this);
this.supportedOperationSets.put(
OperationSetDTMF.class.getName(), opSetDTMF);
supportedOperationSets.put(
OperationSetDTMF.class.getName(),
new OperationSetDTMFSipImpl(this));
supportedOperationSets.put(
OperationSetTelephonyConferencing.class.getName(),
new OperationSetTelephonyConferencingSipImpl(this));
//initialize our OPTIONS handler
new ClientCapabilities(this);
@ -703,8 +707,6 @@ public void processRequest(RequestEvent requestEvent)
// send a 489 / Bad Event response
ServerTransaction serverTransaction = requestEvent
.getServerTransaction();
SipProvider jainSipProvider = (SipProvider)
requestEvent.getSource();
if (serverTransaction == null)
{

@ -9,20 +9,33 @@
/**
* The OperationNotSupportedException is used by telephony providers as an
* indication that a requested operation is not supported or implemented.
*
*
* @author Emil Ivov
* @author Lubomir Marinov
*/
public class OperationNotSupportedException
extends Exception
{
private static final long serialVersionUID = 0L;
/**
* Initializes a new <code>OperationNotSupportedException</code> instance
* which does not give a human-readable explanation why the operation is
* not supported.
*/
public OperationNotSupportedException()
{
this(null);
}
/**
* Creates an OperationNotSupportedException instance with the specified
* reason phrase.
* @param message a detailed message explaining any particular details as
* to why is not the specified operation supported or null if no particular
* details exist.
*
* @param message
* a detailed message explaining any particular details as to why
* is not the specified operation supported or null if no
* particular details exist.
*/
public OperationNotSupportedException(String message)
{

Loading…
Cancel
Save