lineSetNumRings
The lineSetNumRings
function sets the number of rings that must occur before an incoming call is
answered. This function can be used to implement a toll-saver-style function.
It allows multiple independent applications to each register the number of
rings. The function lineGetNumRings
LONG lineSetNumRings(
HLINE hLine, |
|
DWORD dwAddressID, |
|
DWORD dwNumRings |
|
); |
|
Parameters
hLine
A handle to
the open line device.
dwAddressID
An address on
the line device.
dwNumRings
The number of
rings before a call should be answered in order to honor the toll-saver
requests from all applications.
Return Values
Returns zero
if the request is successful or a negative error number if an error has occurred.
Possible return values are:
LINEERR_INVALLINEHANDLE,
LINEERR_OPERATIONFAILED, LINEERR_INVALADDRESSID, LINEERR_RESOURCEUNAVAIL,
LINEERR_NOMEM, LINEERR_UNINITIALIZED.
Remarks
The lineGetNumRings
An
application that is the owner of a call in the offering state and that
received a LINE_LINEDEVSTATE
If call
classification is performed by TAPI by means of answering inbound calls of
unknown media mode and filtering the media stream, TAPI will honor this number
as well.
Note that
this operation is purely informational and does not affect the state of any
calls on the line device.
See Also