Share via


IUccSessionCallControl.BlindTransfer Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Transfers the current session to another party without consultation.

Namespace: Microsoft.Office.Interop.UccApi
Assembly: Microsoft.Office.Interop.UccApi (in microsoft.office.interop.uccapi.dll)

Syntax

'Declaration
Sub BlindTransfer ( _
    pUri As UccUri, _
    pOperationContext As UccOperationContext _
)
void BlindTransfer (
    UccUri pUri,
    UccOperationContext pOperationContext
)
void BlindTransfer (
    UccUri^ pUri, 
    UccOperationContext^ pOperationContext
)
void BlindTransfer (
    UccUri pUri, 
    UccOperationContext pOperationContext
)
function BlindTransfer (
    pUri : UccUri, 
    pOperationContext : UccOperationContext
)

Parameters

  • pUri
    A value of the IUccUri* (UccUri, for a .NET application) type. This specifies the SIP URI of the party to which the transfer is made.
  • pOperationContext
    A value of the IUccOperationContext* (UccOperationContext, for a .NET application) type. The default value is NULL. This specifies an application-defined context for this asynchronous request.

Remarks

This is an asynchronous request. An application can expect the corresponding response in an event (OnIncomingTransfer) as defined in _IUccSessionCallControlEvents.

Win32 COM/C++ Syntax

HRESULT BlindTransfer
(
   IUccUri* pUri,
   IUccOperationContext* pOperationContext
);

Note

In a Win32 application, the return value of a method or property is always an HRESULT value indicating the status of the call to the interface member. Any result of the operation is returned as a parameter marked with the [out, retval] attribute. In contrast, in a .NET application the HRESULT value indicating an error condition is returned as a COM exception and the [out, retval] parameter becomes the return value. For the UCC API-defined HRESULT values, see Unified Communications Client API Error Messages.

Example

The following example executes a blind transfer on the current active audio/video session.

/// <summary>
/// The current call is transferred to the
/// telephone represented by the destination URI
/// </summary>
/// <param name="sessionToTransfer">IUccSession session To Transfer </param>
/// <param name="bstrDestinationUri">string destination URI</param>
/// <param name="iOperationId">int passed as operation context</param>
public long BlindTranfer(
    IUccSession sessionToTransfer,
    string bstrDestinationUri,
    int iOperationId)

{
    IUccSessionCallControl sessionCC = sessionToTransfer as IuccSessionCallControl;

    long hr = 0;
    if (sessionCC != null)
    {
        //advise for session call control events on the current session
        UCC_Advise<_IUccSessionCallControlEvents>(sessionCC, this);
        try
        {
            UccOperationContext pOperationContext = new UccOperationContext();
            pOperationContext.Initialize(iOperationId, null);
            UccUriManager UccpUriManager = new UccUriManagerClass();
            UccUri u = UccpUriManager.ParseUri(bstrDestinationUri);
            this.pSessionCC.BlindTransfer(u, pOperationContext);

        }
        catch
        {
            hr = -1;
        }
    }
    return hr;

}

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2000 with Service Pack 4, Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

See Also

Reference

IUccSessionCallControl Interface
IUccSessionCallControl Members
Microsoft.Office.Interop.UccApi Namespace