PBX Deploy

The PBX Deploy script adds an IPPBX configuration. The custom script arguments used in this script are:

IPPBX-proxyaddress
IPPBX-proxyaddress
SIPPort
SIP-Hostname
Copy
# definitions of PBX connectivity 

# customer variables:
# IPPBX-proxyaddress
# IPPBX-proxyaddress-SIPPort
# SIP-Hostname

configure voip
proxy-set new
  proxy-name "{{CustomerId}}-c"
  proxy-enable-keep-alive using-options
  srd-name "PBXSRD"
  sbcipv4-sip-int-name "PBXSIP"
  activate
  proxy-ip 0
    proxy-address "{{CustomVar.IPPBX-proxyaddress}}:{{CustomVar.IPPBX-proxyaddress-SIPPort}}"
    transport-type udp
    activate
  exit
exit
ip-group new
  name "{{CustomerId}}-c"
  proxy-set-name "{{CustomerId}}-c"
  media-realm-name "MRWAN"
  ip-profile-name "PBX"
  sip-group-name "{{CustomVar.SIP-Hostname}}"
  srd-name "PBXSRD"
  outbound-mesg-manipulation-set 17
  authentication-mode sbc-as-client
  msg-man-user-defined-string1 "{{CustomVar.IPPBX-proxyaddress}}"
  tags "Trunk={{SBC.OnlinePstnGateway}}"
  proxy-keepalive-use-ipg enable
  call-setup-rules-set-id 4
  classify-by-proxy-set disable
  activate
 exit
 ip-group new 
  name "{{CustomerId}}-t"
  srd-name "DefaultSRD"
  type user
  proxy-set-name "Teams"
  ip-profile-name "Teams"
  outbound-mesg-manipulation-set 14
  local-host-name "{{SBC.OnlinePstnGateway}}" 
  always-use-source-addr enable 
  tags "Tenant={{SBC.OnlinePstnGateway}}" 
  classify-by-proxy-set disable 
  call-setup-rules-set-id 7
  registration-mode sbs-initiates
  authentication-mode sbc-as-client
  {{#if  SBC.EnableCAC}}    
   cac-profile "{{SBC.CacProfile}}"
  {{/if }}  
  activate 
 exit

   sbc dial-plan where name "PBXDomains"
    dial-plan-rule new
     name "{{CustomerId}}"
     prefix "{{sbcEscape SBC.OnlinePstnGateway}}"
     tag "{{CustomVar.SIP-Hostname}}"
     activate
    exit
   exit

sbc routing ip2ip-routing 0 insert
 route-name "reg {{CustomerId}}-t"
 src-ip-group-name "{{CustomerId}}-t"
 request-type register
 dst-ip-group-name "{{CustomerId}}-c"
 activate
exit
do write