lineMakeCall
The lineMakeCall
function places a call on the specified line to the specified destination
address. Optionally, call parameters can be specified if anything but default
call setup parameters are requested.
LONG lineMakeCall(
HLINE hLine, |
|
LPHCALL lphCall, |
|
LPCSTR lpszDestAddress, |
|
DWORD dwCountryCode, |
|
LPLINECALLPARAMS const lpCallParams |
|
); |
|
Parameters
hLine
A handle to
the open line device on which a call is to be originated.
lphCall
A pointer to
an HCALL handle. The handle is only valid after the LINE_REPLY
lpszDestAddress
A pointer to
the destination address. This follows the standard dialable number format. This
pointer can be NULL for non-dialed addresses (as with a hot phone) or when all
dialing will be performed using lineDial
dwCountryCode
The country
code of the called party. If a value of zero is specified, a default is used by
the implementation.
lpCallParams
A pointer to
a LINECALLPARAMS
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_ADDRESSBLOCKED,
LINEERR_INVALLINEHANDLE, LINEERR_BEARERMODEUNAVAIL, LINEERR_INVALLINESTATE,
LINEERR_CALLUNAVAIL, LINEERR_INVALMEDIAMODE, LINEERR_DIALBILLING,
LINEERR_INVALPARAM, LINEERR_DIALDIALTONE, LINEERR_INVALPOINTER,
LINEERR_DIALPROMPT, LINEERR_INVALRATE, LINEERR_DIALQUIET, LINEERR_NOMEM,
LINEERR_INUSE, LINEERR_OPERATIONFAILED, LINEERR_INVALADDRESS, LINEERR_OPERATIONUNAVAIL,
LINEERR_INVALADDRESSID, LINEERR_RATEUNAVAIL, LINEERR_INVALADDRESSMODE,
LINEERR_RESOURCEUNAVAIL, LINEERR_INVALBEARERMODE, LINEERR_STRUCTURETOOSMALL,
LINEERR_INVALCALLPARAMS, LINEERR_UNINITIALIZED, LINEERR_INVALCOUNTRYCODE,
LINEERR_USERUSERINFOTOOBIG.
Remarks
If
LINEERR_INVALLINESTATE is returned, the line is currently not in a state in
which this operation can be performed. A list of currently valid operations can
be found in the dwLineFeatures field (of the type LINEFEATURE_) in the LINEDEVSTATUS
After dialing
has completed, several LINE_CALLSTATE
An
application has the option to specify an originating address on the specified
line device. A service provider that models all stations on a switch as
addresses on a single line device allows the application to originate calls
from any of these stations using lineMakeCall.
The call
parameters allow the application to make non-voice calls or request special
call setup options that are not available by default.
An
application can partially dial using lineMakeCall and continue dialing
using lineDial. To abandon a call attempt, use lineDrop.
After lineMakeCall
returns a success reply message to the application, a LINE_CALLSTATE message is
sent to the application to indicate the current state of the call. This state
will not necessarily be LINECALLSTATE_DIALTONE.
See Also