TELConnect
Places a simple outgoing call.
pascal TELErr TELConnect (TELCAHandle hTELCA);
hTELCA- A handle to a call appearance structure. You provide the handle you obtained from the
TELSetupCallfunction (page 4-24).- function result
- A result code. If you pass an invalid handle, the function returns the
telBadCAErrresult code.DESCRIPTION
TheTELConnectfunction places an outgoing call using the information in the call appearance structure specified by thehTELCAparameter. You should specify a structure previously filled in by theTELSetupCallfunction.For
TELConnectto complete successfully, the call appearance referenced byhTELCAmust be in thetelCAIdleStatestate when you callTELConnect.When
TELConnectreturns thenoErrresult code, the telephone tool has accepted the connect request and will attempt to place the call. Depending on the telephone tool you are using, your call appearance message handler may get a series of messages that indicate what is happening with the connection attempt. For example, you might get this sequence of call appearance messages:
telCAOutgoingMsgtelCAProgressMsgwith thevalueparameter set to telCAPDialTonetelCAProgressMsgwith thevalueparameter set totelCAPDialingtelCAProgressMsgwith thevalueparameter set totelCAPUpdatetelCAProgressMsgwith thevalueparameter set totelCAPRingingtelCAActiveMsg
SEE ALSO
Call appearance messages are described in Chapter 5.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help