lineAddToConference
The lineAddToConference
function adds the call specified by hConsultCall to the conference call
specified by hConfCall.
LONG lineAddToConference(
HCALL hConfCall, |
|
HCALL hConsultCall |
|
); |
|
Parameters
hConfCall
A handle to
the conference call. The application must be an owner of this call. Any
monitoring (media, tones, digits) on a conference call applies only to the hConfCall,
not to the individual participating calls. Call state of hConfCall must
be onHoldPendingConference or onHold.
hConsultCall
A handle to
the call to be added to the conference call. The application must be an owner
of this call. This call cannot be a parent of another conference or a
participant in any conference. Depending on the device capabilities indicated
in LINEADDRESSCAPS
Return Values
Returns a
positive request ID if the function will be completed asynchronously, or a
negative error number if an error has occurred. The dwParam2 parameter
of the corresponding LINE_REPLY
LINEERR_CONFERENCEFULL,
LINEERR_NOTOWNER, LINEERR_INVALCONFCALLHANDLE, LINEERR_OPERATIONUNAVAIL,
LINEERR_INVALCALLHANDLE, LINEERR_OPERATIONFAILED, LINEERR_INVALCALLSTATE,
LINEERR_RESOURCEUNAVAIL, LINEERR_NOMEM, LINEERR_UNINITIALIZED.
Remarks
If
LINEERR_INVALCALLHANDLE is returned, the specified call handle for the added
call is invalid, hConsultCall is a parent of another conference or
already a participant in a conference, hConsultCall cannot be added for
other reasons (such as, it must have been established using lineSetupConference
The call
handle of the added party remains valid after adding the call to a conference.
Its state typically changes to conferenced while the state of the conference
call typically becomes connected. Using lineGetConfRelatedCalls
Note that if lineGetConfRelatedCalls
is called immediately after lineAddToConference, it may not return a
complete list of related calls because TAPI waits to receive a LINE_CALLSTATE
The call
states of the calls participating in a conference are not independent. For
example, when dropping a conference call, all participating calls may
automatically become idle. An application should consult the line's device
capabilities to determine what form of conference removal is available. The
application should track the LINE_CALLSTATE messages to determine what happened
to the calls involved.
The
conference call is established either by lineSetupConference or lineCompleteTransfer.
The call added to a conference is typically established using lineSetupConference
or linePrepareAddToConference. Some switches may allow adding arbitrary
calls to the conference, and such a call may have been set up using lineMakeCall
and be on (hard) hold. The application may examine the dwAddrCapFlags
field of the LINEADDRESSCAPS structure to determine the permitted
operations.
See Also