<div class="content" name="LINE_AGENTSESSIONSTATUS" uuid="6b7a5dca-d83c-4b2e-ad60-cfb9306bda4f"><p>The LINE_AGENTSESSIONSTATUS packet is sent when the status
of an Application Connection Designer (ACD) agent session changes on an agent
handler for which the application currently has an open line. An agent session
can be established using <a href="a95dcbdb-6a20-4dbb-accd-f6348c12b028" data-linktype="relative-path">CreateAgentSession</a>
packet.</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">TotalSize</td>
 </tr>
 <tr>
  <td colspan="32">InitContext</td>
 </tr>
 <tr>
  <td colspan="32">fnPostProcessProcHandle</td>
 </tr>
 <tr>
  <td colspan="32">hRemoteLine</td>
 </tr>
 <tr>
  <td colspan="32">Msg</td>
 </tr>
 <tr>
  <td colspan="32">OpenContext</td>
 </tr>
 <tr>
  <td colspan="32">Param1</td>
 </tr>
 <tr>
  <td colspan="32">Param2</td>
 </tr>
 <tr>
  <td colspan="32">Param3</td>
 </tr>
 <tr>
  <td colspan="32">Param4</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. MUST be set to zero when sent and MUST be ignored on receipt.</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><p><b>Msg (4 bytes): </b>An unsigned 32-bit integer. The
packet type; MUST be set to 0x0000001B (LINE_AGENTSESSIONSTATUS). </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 handle of the agent session whose status has changed. </p><p><b>Param2 (4 bytes): </b>An unsigned 32-bit integer.
Specifies the agent session status that changed. MUST be one or more of the <a href="34677769-18e4-49e2-80be-26ccafa90d01" data-linktype="relative-path">LINEAGENTSESSIONSTATUS_Constants</a>.</p><p><b>Param3 (4 bytes): </b>An unsigned 32-bit integer.
If the Param2 field includes the LINEAGENTSESSIONSTATUS_STATE bit, this field
indicates the new value of the agent session state, which MUST be only one of
the LINEAGENTSESSIONSTATUS_Constants. Otherwise, this field MUST be set to 0.</p><p><b>Param4 (4 bytes): </b>An unsigned 32-bit integer.
This MUST be ignored on receipt and can be any value.  </p></div>