OcSbcCleanup

This script removes Operator Connect Essential customer without IP Group/Proxy Set configured.

Copy
### Script Version OC 1.1 ###
# Removing OC Customer with Advanced Settings (IP Groups)
# Id: 5461227
#

configure voip
 no ip-group where name "{{CustomerId}}-c"
 no ip-group where name "{{CustomerId}}-t"
 no sip-definition account where account-name "{{CustomerId}}"
 {{#each SBC.DialPlanPrefixes}}
   sbc dial-plan where name "{{this.DialPlanName}}"
   no dial-plan-rule where name "{{../CustomerId}}"
   activate
   exit
 {{/each}}
do write