2.3.13.4 Life Cycle of Operations on Open Phones

The life cycle for line devices is similar to the life cycle for phones, except that lines have their own negotiation, initialization, open, and close procedures. Operations on open lines are bracketed by their own Open/Close pair. This pair is in turn bracketed between the same Driver Init ... Driver Unload pair as the phone Open/Close.

The life cycles of calls are bracketed strictly between the Open/Close of the line that contains them. Lifetimes of calls can begin in several ways:

The lifetimes of distinct calls within the same line can overlap each other in any way. All calls end their lifetime at the time the TSPI function TSPI_lineCloseCall is invoked. An example of several call life cycles is as follows:

The life cycle of several calls is illustrated. A call can originate in the TAPI DLL as shown with the MakeCall ... CloseCall pair. A call can also originate in the Service Provider due to an incoming call. The Service Provider announces this with a LINE_NEWCALL message to a TAPI DLL supplied callback procedure. In such a case, the TAPI DLL returns its identifier for the call, which is included in subsequent callbacks reporting events occurring on the call. In the case of calls whose lifetime originates in the TAPI DLL, this identifier is included in the TSPI operation that creates the call.