TELCallbackSet
Requests either a notification or a return call when a destination number that is currently unavailable (busy or unanswered) becomes available.
pascal TELErr TELCallbackSet (TELCAHandle hTELCA, short *callbackRef);
hTELCA- A handle to the call appearance structure for the currently unavailable destination number.
callbackRef- A pointer to an identifier for this callback request. You provide the pointer. The function returns the identifier.
- function result
- A result code.
DESCRIPTION
You call theTELCallbackSetfunction to make a callback request. If the function executes successfully, your call appearance message handler gets atelCACallbackMsgmessage with thevalueparameter set to telCallbackEst. What happens subsequently depends on whether the destination was originally busy or did not answer.If the remote number was busy, then when it is no longer busy, your call appearance message handler gets a
telCACallbackMsgmessage with thevalueparameter set totelCallbackNowAvail. You can respond by calling theTELCallbackNowfunction (page 4-43) to ring the number again. (Some switch vendors refer to the Callback feature as the Ring Again feature.)If the remote party did not answer, the return call must be initiated by the remote party (because there is no way to detect locally when the remote party is available). If the remote party is running an application that uses the Telephone Manager, the remote application's call appearance message handler gets a
telCACallbackMsgmessage with thevalueparameter set totelCallbackDesired. The remote end can then return the call by calling theTELCallbackNowfunction.SEE ALSO
You use theTELCallbackNowfunction (page 4-43) to call back a previously busy number or to respond to a remote party's callback request.You can cancel a callback request by calling the
TELCallbackClearfunction (page 4-44).
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help