Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
When an incoming call reaches the target application and the application is an owner of the call, the call goes through the following steps.
- First, the service provider learns of the new incoming call.
- The call is passed to TAPI.
- TAPI hands the call over to the appropriate application.
- The application accepts, answers, rejects, or redirects the
call.
- Finally, applications conduct probing, if necessary, which can
cause the call to be handed off between applications one or more
times.
An application that is based on Windows Embedded CE and that uses a modem to accept incoming calls must be able to initialize the modem, open the line, wait for a telephone call, accept the call, and disconnect when the session is complete.
-
Call the lineInitializefunction to initialize TAPI.
-
Call the lineOpenfunction to open the line and specify the media modes that you want to detect.
-
A LINE_APPNEWCALL message is sent to the highest-priority application with the line opened for the initial media mode of the call. Other applications will receive a LINE_CALLSTATE message with a call state of LINECALLSTATE_OFFERING.
-
An application must have a call handle with a call privilege of LINECALLPRIVILEGE_OWNER in order to call the lineAnswerfunction successfully to initiate the completion of the call-connection process.
An application might have to use the lineSetCallPrivilegefunction to change the privilege of its call handle.