<div class="content"><p>The LINE_CALLSTATE packet is sent when the status of the
specified call has changed. Typically, several such packets are received during
the lifetime of a call. Applications are notified of new incoming calls with
this packet. A call can be established using the <a href="c9acdfde-22de-43ff-b491-23a9ed72fb31" data-linktype="relative-path">MakeCall</a> packet. The
application can use the <a href="431e5691-6b28-4ce6-9987-d0717f38b85f" data-linktype="relative-path">GetCallStatus</a>
packet to retrieve more detailed information about the current status of the
call.</p><table>
 <tbody><tr>
  <th><p><br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>1<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>2<br/>0</p></th>
  <th><p><br/>1</p></th>
  <th><p><br/>2</p></th>
  <th><p><br/>3</p></th>
  <th><p><br/>4</p></th>
  <th><p><br/>5</p></th>
  <th><p><br/>6</p></th>
  <th><p><br/>7</p></th>
  <th><p><br/>8</p></th>
  <th><p><br/>9</p></th>
  <th><p>3<br/>0</p></th>
  <th><p><br/>1</p></th>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">TotalSize</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">InitContext</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">fnPostProcessProcHandle</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">hCall</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">Msg</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">OpenContext</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">Param1</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">Param2</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">Param3</p>
  </td>
 </tr>
 <tr>
  <td colspan="32">
  <p align="center">hRemoteLine</p>
  </td>
 </tr>
</tbody></table><p><b>TotalSize (4 bytes): </b>An unsigned 32-bit
integer. The total size of the asynchronous event packet.</p><p><b>InitContext (4 bytes): </b>An unsigned 32-bit
integer. The opaque, client-specified session value that MUST be equal to the
InitContext value that is specified in the original scoping of the line <a href="9d8eb7cd-3245-4e44-97e0-42f7b89c9424" data-linktype="relative-path">Initialize</a> request.</p><p><b>fnPostProcessProcHandle (4 bytes): </b>An unsigned
32-bit integer. The call state–dependent information.</p><dl>
<dd>
<table><thead>
  <tr>
   <th>
   <p>Value</p>
   </th>
   <th>
   <p>Meaning</p>
   </th>
  </tr>
 </thead><tbody><tr>
  <td>
  <p>&#34;LINECALLSTATE_BUSY&#34;</p>
  </td>
  <td>
  <p>If <b>Param1</b> is LINECALLSTATE_BUSY, <b>fnPostProcessProcHandle</b>
  MUST contain details about the busy mode. This parameter MUST use one of the <a href="8d02c5c4-ad8d-441f-827a-5582fe73e911" data-linktype="relative-path">LINEBUSYMODE_Constants</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>&#34;LINECALLSTATE_CONNECTED&#34;</p>
  </td>
  <td>
  <p>If <b>Param1</b> is LINECALLSTATE_CONNECTED, <b>fnPostProcessProcHandle</b>
  MUST contain details about the connected mode. This parameter MUST use one of
  the <a href="60cb1ac2-b383-4331-acbc-3be58926426a" data-linktype="relative-path">LINECONNECTEDMODE_Constants</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>&#34;LINECALLSTATE_DIALTONE&#34;</p>
  </td>
  <td>
  <p>If <b>Param1</b> is LINECALLSTATE_DIALTONE, <b>fnPostProcessProcHandle</b>
  MUST contain details about the dial tone mode. This parameter MUST use one of
  the <a href="4ef21601-c6e0-4e97-9108-8779feeeba22" data-linktype="relative-path">LINEDIALTONEMODE_Constants</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>&#34;LINECALLSTATE_OFFERING&#34;</p>
  </td>
  <td>
  <p>If <b>Param1</b> is LINECALLSTATE_OFFERING, <b>fnPostProcessProcHandle</b>
  MUST contain details about the connected mode. This parameter MUST use one of
  the <a href="cc370841-545b-483e-8a2b-4ad7aaea7b45" data-linktype="relative-path">LINEOFFERINGMODE_Constants</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>&#34;LINECALLSTATE_SPECIALINFO&#34;</p>
  </td>
  <td>
  <p>If <b>Param1</b> is LINECALLSTATE_SPECIALINFO, <b>fnPostProcessProcHandle</b>
  MUST contain the details about the special information mode. This parameter
  MUST use one of the <a href="5986f85f-4d2d-4e04-ab69-66b1c4399254" data-linktype="relative-path">LINESPECIALINFO_Constants</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>&#34;LINECALLSTATE_DISCONNECTED&#34;</p>
  </td>
  <td>
  <p>If <b>Param1</b> is LINECALLSTATE_DISCONNECTED, <b>fnPostProcessProcHandle</b>
  MUST contain details about the disconnect mode. This parameter MUST use one
  of the <a href="dd20df60-c91f-40e4-99a5-a264ffc5e9f5" data-linktype="relative-path">LINEDISCONNECTMODE_Constants</a>.</p>
  </td>
 </tr><tr>
  <td>
  <p>&#34;LINECALLSTATE_CONFERENCED&#34;</p>
  </td>
  <td>
  <p>If <b>Param1</b> is LINECALLSTATE_CONFERENCED, <b>fnPostProcessProcHandle</b>
  MUST contain the handle of the parent call of the conference.</p>
  </td>
 </tr></tbody></table>
</dd>
<dd>
<p>If param1 is not any of the
preceding specified values, fnPostProcessProcHandle is unused.</p>
</dd></dl><p><b>hCall (4 bytes): </b>An <a href="7f4089a0-7432-4ef0-8eeb-5aafe407c07e" data-linktype="relative-path">HCALL</a>. The handle to the
call or line device that is associated with the asynchronous event.</p><p><b>Msg (4 bytes): </b>An unsigned 32-bit integer. The
packet type; MUST be set to 0x00000002 (LINE_CALLSTATE). </p><p><b>OpenContext (4 bytes): </b>An unsigned 32-bit
integer. The opaque, client-specified context value that MUST be equal to the
OpenContext value that is specified in the original scoping of the line <a href="2759c744-e040-4c5d-b4b5-215d391f0490" data-linktype="relative-path">Open</a> request.</p><dl>
<dd>
<p>This information MUST be passed back to the
application with each completion and event that is associated with the handle
of the line or call on the line. This field is not interpreted by TAPI.</p>
</dd></dl><p><b>Param1 (4 bytes): </b>An unsigned 32-bit integer.
The new call state. This parameter MUST be one of the <a href="90b1b6c3-d544-49f4-b868-38aa7ccb7b09" data-linktype="relative-path">LINECALLSTATE_Constants</a>.</p><p><b>Param2 (4 bytes): </b>An unsigned 32-bit integer.
The privilege of the client on the call. The client is granted owner privilege
to the call and so is set to LINECALLPRIVILEGE_OWNER.</p><p><b>Param3 (4 bytes): </b>An unsigned 32-bit integer.
The media type of the call. This is a combination of one or more <a href="e3b2104f-131d-4ead-9ded-45654ebfeac0" data-linktype="relative-path">LINEMEDIAMODE_Constants</a>.</p><p><b>hRemoteLine (4 bytes): </b>An unsigned 32-bit
integer. The handle of the <a href="489de77f-16d8-4c4f-939a-f795e8b42893#gt_60e0e1fa-66fe-41e1-b5e3-ceab97e53506" data-linktype="relative-path">client</a>
for the line value.</p></div>