sbc-add-oc-numbers
This script adds prefixes for Operator Connect customers (the script functionality is identical to the sbc-add-prefix script (see sbc-add-prefix).
Copy
                                                
                                            
                                            configure voip
sbc dial-plan where name "{{DialPlanName}}"
{{#each SbcPhoneData}}
dial-plan-rule new
name "{{this.Name}}"
prefix "{{this.Prefix}}"
tag "{{this.Tag}}"
exit
{{/each}}
activate
exit
do write
                                                This script is run when numbers are uploaded for the licensed customer (see Uploading Operator Connect Numbers) or assigned in the Site Locations . The script parameters are described below.
| 
                                                             Parameter  | 
                                                        
                                                             Description  | 
                                                    
|---|---|
| 
                                                             DialPlanName  | 
                                                        
                                                             The name of the dial plan configured on the SBC to which the numbers are uploaded. For both OC Essentials and OC Pro customers numbers are uploaded to OCDialplan  | 
                                                    
| 
                                                             Name  | 
                                                        
                                                             The Short Name of the customer to whom the numbers are configured.  | 
                                                    
| 
                                                             Prefix  | 
                                                        
                                                             The list of phone numbers to upload.  | 
                                                    
| 
                                                             Tag  | 
                                                        
                                                             The Online PSTN gateway customer sub domain  |