.. _assoc-voice-mail-services-to-customer:

Associate or disassociate voice mail services to a customer
-------------------------------------------------------------

.. 21.4-PB3|EKB-17166:


.. tip:: 

   :ref:`use-action-search-to-navigate-automate`



Associate voice mail services to customer
...........................................

**Prerequisites**

* Create the voice mail service. See :ref:`create-voice-mail-service`.
* If you've selected the **Integrate with Cisco Unified CM** checkbox when creating the voice mail service, 
  create a customer dial plan and a site dial plan before attempting to associate the voice mail 
  service with the customer, else, the association will fail.

.. note:: 

   If you've selected the **Integrate with Cisco Unified CM Webex DI** checkbox when creating the voice 
   mail service, the selected **Cisco Unified CM Cluster** provides the **Voice Mail Trunk Address** selection.



**Perform these steps**:

1. Log in as provider or reseller administrator.
2. Set the hierarchy path to the customer where you want to associate the voice mail service. 
3. Go to the **Associate Voice Mail Service to Customer** page.
4. Click **Add** to associate voice mail service to the customer.
5. From the **Voice Mail Service** drop-down, choose the name of the voice mail service 
   that has been defined by the provider and available to this customer.
6. Click **Save**. The voice mail service is now associated with this customer and appears in the list. 

   * When the voice mail service is associated with a customer and the
     **Integrate with Cisco Unified CM** checkbox was selected for the
     voice mail service, the following is provisioned based on
     the deployment mode of the voice mail server:

     .. tabularcolumns:: |p{5cm}|p{5cm}|p{5cm}|

     +-----------------+----------------------+---------------------------+
     | Voice Mail      | Cisco Unified        |                           |
     | Deployment Mode | Communications       | Cisco Unity Connection    |
     |                 | Manager              |                           |
     +=================+======================+===========================+
     |                 | Creates integration  | Creates customer-specific |
     |                 | at customer level:   | Port Group, ports (3),    |
     | Dedicated       | SipTrunk, Route      | route partition, calling  |
     |                 | Group, AllowVm route | search space and user     |
     |                 | partition            | template                  |
     +-----------------+----------------------+---------------------------+
     |                 | Creates integration  | Creates new tenant        |
     |                 | at customer level:   | (partition), port group,  |
     | Partitioned     | SipTrunk, Route      | ports (3), route          |
     |                 | Group, AllowVm route | partition, calling search |
     |                 | partition            | space and user template   |
     +-----------------+----------------------+---------------------------+
     
     .. note:: 
      
        The deployment mode for the voice mail service is determined by the mode selected when the 
        Cisco Unity Connection is first added to Automate via the **CUC** page.

   * When the **Integrate with Cisco Unified CM Webex DI** checkbox was selected
     for the voice mail service, the **Voice Mail Trunk Address** selected from
     the selected **Cisco Unified CM Cluster** - is associated with the route group
     as a part of the route list and route group provisioning.






.. _disassociate-voice-mail-services-from-customers:

Disassociate voice mail services from customers
...................................................


1. Log in as the Provider Administrator.
2. Set the hierarchy path to the customer from which you want to disassociate the
   Voice Mail Service.
3. Go to **Associate Voice Mail Service to Customer**.
4. From the list of associations, choose the Voice Mail Service customer
   association to be disassociated, by clicking the check box in the leftmost column.
5. Click **Delete** to disassociate the Voice Mail Service from the customer.
6. From the popup window, click **Yes** to confirm the change.
   When the delete action is complete, the Voice Mail Service association to the
   customer disappears from the list.