Compartilhar via


TSPI_lineSetupConference (Windows CE 5.0)

Send Feedback

This function sets up a conference call for the addition of the third party.

LONG TSPIAPI TSPI_lineSetupConference(DRV_REQUESTIDdwRequestID,HDRVCALLhdCall,HDRVLINEhdLine,HTAPICALLhtConfCall,LPHDRVCALLlphdConfCall,HTAPICALLhtConsultCall,LPHDRVCALLlphdConsultCall,DWORDdwNumParties,LPLINECALLPARAMSconstlpCallParams);

Parameters

  • dwRequestID
    Identifier of the asynchronous request.
  • hdCall
    Handle to the initial call that identifies the first party of a conference call. In some environments, a call must exist in order to start a conference call. In other telephony environments, no call initially exists and hdCall is left NULL. The call state of hdCall can be connected.
  • hdLine
    Handle to the line device on which to originate the conference call if hdCall is NULL. The hdLine parameter is ignored if hdCall is non-NULL. The service provider reports which model it supports through the setupConfNull flag of the LINEADDRESSCAPS data structure.
  • htConfCall
    TAPI handle to the new conference call. The service provider must save this and use it in all subsequent calls to the LINEEVENT procedure reporting events on the new call.
  • lphdConfCall
    Pointer to a HDRVCALL representing the service provider's identifier for the newly created conference call. The service provider must fill this location with its handle for the new call before this procedure returns. This handle is ignored by TAPI if the function results in an error. The call state of hdConfCall is not applicable.
  • htConsultCall
    TAPI handle to the consultation call. When setting up a call for the addition of a new party, a new temporary call (consultation call) is automatically allocated. The service provider must save the htConsultCall and use it in all subsequent calls to the LINEEVENT procedure reporting events on the new consultation call.
  • lphdConsultCall
    Pointer to a HDRVCALL representing the service provider's identifier for a call. When setting up a call for the addition of a new party, a new temporary call (consultation call) is automatically allocated. The service provider must fill this location with its handle for the new consultation call before this procedure returns. This handle is ignored by TAPI if the function results in an error. The call state of hdConsultCall is not applicable.
  • dwNumParties
    Expected number of parties in the conference call. The service provider is free to do with this number as it pleases. For example, the service provider can ignore it, or use it as a hint to allocate the right size conference bridge inside the switch. TAPI does not validate this parameter when this function is called.
  • lpCallParams
    Pointer to call parameters to be used when establishing the consultation call. This parameter is set to NULL if no special call setup parameters are desired and the service provider uses default parameters.

Return Values

Returns dwRequestID, or an error number if an error occurs. The lResult actual parameter of the corresponding ASYNC_COMPLETION is zero if the function succeeds, or an error number if an error occurs. The following table shows the return values for this method.

Value Description
LINEERR_INVALCALLHANDLE The handle to the call is invalid.
LINEERR_INVALADDRESSMODE The address mode is invalid.
LINEERR_INVALLINEHANDLE The handle to the line is invalid.
LINEERR_INVALBEARERMODE The bearer mode is invalid.
LINEERR_INVALCALLSTATE The call state is invalid.
LINEERR_INVALCALLPARAMS The call parameters are invalid.
LINEERR_CALLUNAVAIL The call is unavailable.
LINEERR_INVALLINESTATE The line state is invalid.
LINEERR_CONFERENCEFULL The conference call is full.
LINEERR_INVALMEDIAMODE The media mode is invalid.
LINEERR_NOMEM Not enough memory is available.
LINEERR_INVALRATE The rate is invalid.
LINEERR_OPERATIONUNAVAIL The operation is unavailable.
LINEERR_INUSE The line is in use.
LINEERR_OPERATIONFAILED The operation failed.
LINEERR_RATEUNAVAIL The rate is unavailable.
LINEERR_RESOURCEUNAVAIL The resource is unavailable.
LINEERR_USERUSERINFOTOOBIG The user user information is too big.
LINEERR_BEARERMODEUNAVAIL The bearer mode is unavailable.

Remarks

The service provider returns LINEERR_INVALLINEHANDLE if the specified line handle for the line containing the conference call is invalid. This error can also indicate that the telephony environment requires an initial line to set up a conference but a non-NULL call handle was supplied instead.

The service provider returns LINEERR_INVALCALLHANDLE if the telephony environment requires an initial call to set up a conference but a NULL call handle was supplied instead.

TSPI_lineSetupConference provides two ways to establish a new conference call, depending on whether a normal two-party call is required to pre-exist or not. When setting up a conference call from an existing two-party call, the hdCall parameter is a valid call handle that is initially added to the conference call by the TSPI_lineSetupConference request and hdLine is ignored. On switches where conference call setup does not start with an existing call, hdCall must be NULL and hdLine must be specified to identify the line device on which to initiate the conference call. In either case, a consultation call is allocated for connecting to the party that is to be added to the call. TAPI can use the TSPI_lineDial function to dial the address of the other party.

The conference call typically transitions into the onHoldPendingConference state, the consultation call dial tone state and the initial call (if one) into the conferenced state.

A conference call can also be set up using a TSPI_lineCompleteTransfer function that is resolved into a three-way conference.

TAPI may be able to toggle between the consultation call and the conference call using the TSPI_lineSwapHold function.

The TSPI_lineUnhold function can recover calls that have the call state onHoldPendingConference. If this is done, any consultation call typically goes to the idle state.

A consultation call can be canceled by invoking the TSPI_lineDrop function on it. When dropping a consultation call, the existing conference call typically transitions back to the connected state. TAPI and its client applications should observe the LINE_CALLSTATE messages to determine exactly what happens to the calls. For example, if the conference call reverts back to a regular two-party call, the conference call becomes idle and the original participant call may revert to connected.

This function differs from the corresponding TAPI function in that it follows the TSPI model for beginning the lifetime of a call. TAPI and the service provider exchange opaque handles representing the call with one another. In addition, the service provider is permitted to do callbacks for the new call before it returns from this procedure. In any case, the service provider must also treat the handle it returned as "not yet valid" until after the matching ASYNC_COMPLETION function reports success. In other words, it must not issue any LINEEVENT messages for the new call or include it in call counts in messages or status data structures for the line.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Tapicomn.h.
Link Library: Coredll.lib.

See Also

LINEEVENT | TSPI_lineAddToConference | TSPI_lineDial | TSPI_linePrepareAddToConference | TSPI_lineRemoveFromConference | TSPI_lineSwapHold

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.