Voca CIC Onboarding Scripts

The scripts used in the Voca CIC Onboarding are described below.

LiveCX-Voca-Add-Voca-side.txt
Copy
#Main#
configure voip
ip-group new 
  name "{TrunkName}-{CustomerName}-t"
  proxy-set-name "VOCAaS"
  sip-group-name "{TrunkIP}"
  ip-profile-name "VOCA"
  always-use-source-addr enable 
  tags "Tenant={CID};MeteringTag={MeteringTag}" 
  classify-by-proxy-set disable 
  topology-location up
  call-setup-rules-set-id 0
activate
exit
exit
do write
#end#
LiveCX-Voca-Remove-Voca-side.txt
Copy
#Main#
configure voip
no ip-group where name "{TrunkName}-{CustomerName}-t"
do write
#end#
LiveCX-Voca-Add-PSTN-side.txt
Copy
#Main#
configure network
 access-list new
   source-ip "{TrunkIP}"
   prefixLen 32
   description "{TrunkName}-{CustomerName}-voca-itsp"
   use-specific-interface enable
   network-interface-name "eth0"
   activate
 exit
exit

configure voip
proxy-set new
  proxy-name "{TrunkName}-{CustomerName}-voca-itsp"
  proxy-enable-keep-alive using-options
  is-proxy-hot-swap enable
  srd-name "DefaultSRD"
  sbcipv4-sip-int-name "SIPTrunk"
  activate
  proxy-ip 0
    proxy-address "{TrunkIP}:{Port}"
    transport-type "{TransportType}"
    activate
    exit
  exit

ip-group new
  name "{TrunkName}-{CustomerName}-c"
  proxy-set-name "{TrunkName}-{CustomerName}-voca-itsp"
  ip-profile-name "{IpProfile}"
  tags "Trunk={CID};MeteringTag={MeteringTag}"
  classify-by-proxy-set disable
  call-setup-rules-set-id 1
  activate
exit
{Registration}
exit
do write
#end#
#Registration#
sip-definition account new
   account-name "{TrunkName}-{CustomerName}"
   served-ip-group-name "VOCAaS"
   serving-ip-group-name "{TrunkName}-{CustomerName}-c"
   user-name "{Reg_Username}"
   password "{Reg_Password}" 
   host-name "{Reg_Host}"
   contact-user "{Reg_Mainline}"
   register reg
   application-type sbc
   activate
  exit
#end#

Script defaults:
----------------
{
  "TrunkIP": "sip.telnyx.com",
  "Port": 5060,
  "TransportType": "TCP",
  "MediaSecurity": "Unsecure",
  "Host": "sip.telnyx.com",
  "DialplanName": "CustVoca"
}
LiveCX-Voca-Remove-PSTN-side.txt
Copy
#Main#
configure network
no access-list where description "{TrunkName}-{CustomerName}-voca-itsp"
exit
configure voip
no ip-group where name "{TrunkName}-{CustomerName}-c"
no proxy-set where proxy-name "{TrunkName}-{CustomerName}-voca-itsp"
no sip-definition account where account-name "{TrunkName}-{CustomerName}"
do write
#end#