.. _concepts-audiocodes-device-number-integration:

AudioCodes device number integration
--------------------------------------

.. _21.4-PB2|VOSS-1234:

Overview 
......... 

Automate supports the integration of numbers used by AudioCodes devices into the number inventory. Once 
such devices are configured in Automate and data is synced, the number inventory displays these numbers 
with their status set to ``Used``, and the **Vendor** field set to `AudioCodes`. These numbers won't be 
available to assign to subscribers during number management.

Workflows and data syncs are in place to ensure these numbers in the number inventory
remain aligned with any changes in these devices.

.. rubric:: Related topics 

* *AudioCodes device number integration* in the Core Feature Guide


AudioCodes and number cooling
...............................

In the case of the removal (or delete) of a AudioCodes **RegisteredUsers** instance,
the internal number is placed into a configurable cooling period, with their status set to ``Cooling``.

.. important::

   For AudioCodes internal numbers, the cooling period (days) is configured by means of
   a named macro called: ``audiocodes_cooling_duration`` (default setting is 2 days)
   and *not* by the **Number Inventory Cooling Duration (Days)** value in
   Global Settings (:ref:`global-settings`).

   A high level administrator with access to the named macro instances
   can carry out this configuration if needed.

   The reason for the alternative cooling setting is that AudioCodes devices can
   become offline but aren't deleted. The default maximum offline duration is here set to 2 days.

   In addition, if the device does then come back online within the days set in the macro,
   the internal number will be set back to:
  
   * Status: ``Used``
   * Usage: ``Device``
   * Vendor: ``AudioCodes``


When the line is in cooling, the following internal number inventory fields are set:

* **Tag**: an information message of the number of days 
  when the INI will reach the release date.

* **Release Date**


When the **Release Date** is reached, the INI is put back into the **Available** pool of INI's,
as with standard cooling - see: :ref:`number-management-cooling`.


.. rubric:: Related topics 

* :ref:`number-inventory-list-view`
* :ref:`number-management-cooling`


AudioCodes and audit number inventory
..........................................

When the **Audit Number Inventory** is run, the **Status** and **Usage** of internal number inventory items
that have the **Vendor** field set as `AudioCodes` are checked and verified to be: 

* **Status**: ``Used``
* **Usage**: ``Device``  


.. rubric:: Related topics 

* :ref:`number-audit-process-ms`
* :ref:`run-dni-audit-tool`
