Correct device-based routing CoS to enable SNR 
-------------------------------------------------

.. tip:: 

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


Overview 
..........

In early versions of Automate (v11.5), country dial plans were configured with the
PreDBRteSel-PT route partition in the site DBRDevice Calling Search Space (CSS).
This configuration causes problems with Single Number Reach (SNR). The correction
is to remove the PreDBRteSel-PT route partition from the site DBRDevice calling
search space, and add it to each device-based routing Class of Service (CoS) CSS for
the site.

If you have deployed country dial plans, correct the deployed CSS using Correction
for SNR If Dial Plan Deployed.

If you have not deployed country dial plans, correct the country dial plans schemas using Correction
for SNR If Dial Plan Not Deployed.

* Correction for SNR If Dial Plan Deployed
* Correction for SNR If Dial Plan Not Deployed


Correction for SNR if dial plan deployed
.........................................

This procedure corrects site level Class of Service CSS to enable Single
Number Reach (SNR).

Perform this procedure for each site where you have deployed a site dial plan.

1. Sign in as a Provider administrator.                  
#. Set the hierarchy path to the site.                   
#. Go to **Calling Search Spaces**.
#. Click the Cu<CustomerId>-<ISOCountryCode>DP-DBRDevice-CSS calling search space.                                 
#. Remove the Cu<CustomerId>-<ISOCoutnryCode>DP-PreDBRteSet-PT route
   partition.                                      
#. Click **Save***.                                           
#. Go to **Class of Service**.                                              
#. Click a device base routing (DBR) Class of Service CSS.                                                  
#. Add the Cu<CustomreId>-<ISOCoutnryCode>DP-PreDBRteSet-PT route partition.

   a. Scroll down to the last route partition.          
   b. Click the Plus icon (+) to add a route partition.                 
   c. Set the Index to one more than the last index value.                                            
   d. Select Cu<CustomerId>-<ISOCoutnryCode>DP-PreDBRteSet-PT for the route partition.
   
10. Click **Save**.                                           
11. Repeat steps 8 through 10 for each DBR Class of Service CSS.

Correction for SNR if dial plan not deployed
.............................................

This procedure updates site country dial plan schemas to correct the device
based routing Class of Service CSS. This correction enables Single Number Reach (SNR) when the country dial plan is deployed to the customer site. 

Perform this procedure for each affected country dial plan schema. 

1. Sign in as a Provider administrator.                                    
#. Go to **Dial Plan Schema**.                                                                 
#. Click the country site schema HcsGenericSite<ISOCoutnryCode>DP-V<Version>-SCH.
   Edit the instance at the Provider hierarchy node.                                            
#. Click the **Calling Search Spaces** tab.                                    
#. Click the {{pwf.HcsDpUniqueSitePrefixMCR}}-<ISOCountryCode>DP-DBRDevice-CSS       
#. Click **More** under the Partitions column.
#. Remove the {{pwf.HcsDpUniqueCustomerPrefixMCR}}-<ISOCountryCode>DP-PreDBRteSel-PT  
   partition (index 2).                                                    
#. Click a device base routing Class of Service CSS.
#. Click **More** under the Partitions column.                                 
#. Click the Plus icon (+) adjacent to the last route partition.
#. For Route Partition Name, enter {{pwf.HcsDpUniqueCustomerPrefixMCR}}-<ISOCountryCode>DP-PreDBRteSel-PT, 
   where the <ISOCountryCode> is the three character country ISO code for this
   schema file (for example. USA).                                    
#. For Index, enter a value that is one greater than the current highest route
   partition index.                                                  
#. Repeat steps 8 through 12 for each device based routing Class of Service CSS
   in the site country dial plan schema.                       
#. Click **Save**.  
