<div class="content" name="LINE_AGENTSTATUS" uuid="463c51cb-54bd-46be-a3f8-85acfc53baf9"><p>The LINE_AGENTSTATUS packet is sent when the status of an
ACD agent changes on a line that the application currently has open. An ACD
agent can be created using <a href="d942a246-9dc1-4b13-b40d-21d4e245519c" data-linktype="relative-path">CreateAgent</a>
packet. The application can invoke the <a href="a755267c-dd6f-4f4a-9213-ebc221f9c249" data-linktype="relative-path">GetAgentStatus</a> packet to
determine the current status of the agent.</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 0x00000016 (LINE_AGENTSTATUS).</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 identifier of the address on the line on which the agent status has
changed. </p><p><b>Param2 (4 bytes): </b>An unsigned 32-bit integer.
Specifies the agent status that changed and can be a combination of <a href="9cac89ea-b4b1-4ffc-837f-9f4fec4e39e0" data-linktype="relative-path">LINEAGENTSTATUS_Constants</a>.</p><p><b>Param3 (4 bytes): </b>An unsigned 32-bit integer.
If the dwParam2 includes the LINEAGENTSTATUS_STATE bit, this field indicates
the new value of the dwState member in a <a href="5f081918-c52e-4f6a-b000-ed75d4f64fa5" data-linktype="relative-path">LINEAGENTSTATUS</a> structure.
Otherwise, this field is 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>