<div class="content"><p>The LINE_AGENTSPECIFIC 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 established using <a href="d942a246-9dc1-4b13-b40d-21d4e245519c" data-linktype="relative-path">CreateAgent</a> packet. The
application can send 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">
  <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">hDevice</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">Param4</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. MUST be set to zero when sent and MUST be ignored on receipt. </p><p><b>hDevice (4 bytes): </b>An unsigned 32-bit integer.
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 0x00000015 (LINE_AGENTSPECIFIC). </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 index into the array of handler extension identifiers in the <a href="038bbda5-b88d-43d0-965e-983579f9ed7e" data-linktype="relative-path">LINEAGENTCAPS</a> packet of
the handler extension with which the asynchronous event is associated.</p><p><b>Param2 (4 bytes): </b>An unsigned 32-bit integer.
Specific to the handler extension. This value MUST be used to cause the
application to send an <a href="95b997b9-bd74-4579-8987-31ab07b4feeb" data-linktype="relative-path">AgentSpecific</a>
packet to obtain further details about the asynchronous event.</p><p><b>Param3 (4 bytes): </b>An unsigned 32-bit integer.
Specific to the handler extension. </p><p><b>Param4 (4 bytes): </b>An unsigned 32-bit integer.
The remote handle to the line device.</p><dl>
<dd>
<p>If there is a valid call handle that is associated
with the packet, the <a href="489de77f-16d8-4c4f-939a-f795e8b42893#gt_434b0234-e970-4e8c-bdfa-e16a30d96703" data-linktype="relative-path">server</a>
MUST set the hDevice field to the hCall value and the Param4 field to the
hRemoteLine value.</p>
</dd>
<dd>
<p>If there is no valid call handle that is associated
with the packet, the server MUST set the hDevice field to the hRemoteLine value
and the Param4 field to 0.</p>
</dd></dl></div>