Manual Configuration to Correct Calling Presentation Overwrite on Calls Forwarded to PSTN
-----------------------------------------------------------------------------------------

Use this procedure to correct the situation where calling presentation is
incorrectly being overwritten on calls that are forwarded to the PSTN. In
HCS 10.6(1), the presentation setting is based on the following partitions
used in the CoS CSS:

* Cu<CustID>-24HrsCLIP-PT or
* Cu<CustID>-WkHrsCLIP-PT or
* Cu<CustID>-24HrsCLIR-PT or
* Cu<CustID>-WkHrsCLIR-PT

Four scenarios are addressed:

* An IP Phone (line CoS CSS includes CLIP-PT) calls the PSTN. The Calling Number
  Presentation is set to 'Allowed' instead of using the default setting, which
  might be something else.
* An incoming PSTN Call with calling number presentation set to 'Restricted' is
  forwarded back to the PSTN where the last redirecting device has a line CoS CSS
  that includes CLIP-PT. The Calling Number Presentation is set to 'Allowed', and
  the incoming 'Restricted' is NOT honored
* An IP Phone (line CoS CSS include CLIR-PT) calls the PSTN. The Calling Number
  Presentation is set to 'Restricted' instead of using the default setting which
  might be something else.
* An incoming PSTN Call with calling number presentation set to 'Allowed' is
  forwarded back to the PSTN where the last redirecting device has a line CoS CSS
  that includes CLIR-PT. The Calling Number Presentation is set to 'Restricted',
  and the incoming 'Allowed' is NOT honored

The solution is to edit the CLIP-PT partition to not set the Calling Number
Presentation to 'Allowed' and then to always use the CoS CSS containing the
edited CLIP-PT partition for the Line Call Forward CSS.


1. Log in as the provider administrator.                   
#. Select **Dial Plan Management > Advanced Configuration > Dial Plan Schema**.
#. Select CustomerToDCLIPR-Feature-V2-SCH.                 
#. Export the schema.                                      
#. Edit the exported schema.                               
#. Locate the structure that contains "pattern":           
   "\\+\\+030.!" and "routePartition":                     
   "{{pwf.HCSDpUniqueCustomerPrefixMCR}}-24HrsCLIP-PT".    
#. Delete the lines containing "cgLinePresBit": "Allowed" and "cgNamePresBit" : "Allowed".                        
#. Locate the structure that contains "pattern":           
   "\\+\\+030.!" and "routePartition":                     
   "{{pwf.HCSDpUniqueCustomerPrefixMCR}}-WkHrsCLIP-PT".    
#. Delete the lines containing "cgLinePresBit": "Allowed"  
   and "cgNamePresBit" : "Allowed".                        
#. Import the json file back into VOSS-4-UC.       
#. If there are deployed customers, then:               

   a. Log in as the provider administrator.               
   b. Select **Device Management > CUCM > Translation Patterns**. 
   c. Filter on Translation Pattern '\+\+030.!' and if possible Partition ending
      with CLIP-PT.             
   d. Edit each pattern in the partition ending with CLIP-PT.                                            
   e. Click the **Calling Party Transformations** tab.        
   f. Change the Calling Line ID Presentation and Calling Name Presentation to
      'Default'.                     
   g. Click **Save**.                                         
#. Use the CoS CSS that contains the edited CLIP-PT for the Line Call Forward CSS.