You can configure an SBC using the provided RESTCONF API interface.

Copy the JSON files mentioned after the "@" in the cURL commands and run these cURL commands in the same folder as the JSON files or mention the complete path for the JSON files.

If you saved the JSON files on the SBC, replace to <SBC_MGT_IP> with local address.

Start

  1. Create a codec entry
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @codecEntryJson "https://<SBC_MGT_IP>/restconf/data/sonusGen2Profiles:profiles/media"
  2. Create Packet Service Profiles
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @packetServiceProfile "https://<SBC_MGT_IP>/restconf/data/sonusGen2Profiles:profiles/media"
  3. Create Address Contexts
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @ADDR_CNTXT "https://<SBC_MGT_IP>/restconf/data"


  4. Create Zones
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @ZONE1 "https://<SBC_MGT_IP>/restconf/data/sonusAddressContext:addressContext=ADDR_CONTEXT"
  5. Create IP Interface Groups
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @ipInterfaceGroup_1 "https://<SBC_MGT_IP>/restconf/data/sonusAddressContext:addressContext=ADDR_CONTEXT"
  6. Create IP interfaces
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @ipInterface_IN "https://<SBC_MGT_IP>/restconf/data/sonusAddressContext:addressContext=ADDR_CONTEXT/sonusIpInterface:ipInterfaceGroup=INGRESS_LIG"
  7. Create static routes
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @staticRoute_2 "https://<SBC_MGT_IP>/restconf/data/sonusAddressContext:addressContext=ADDR_CONTEXT"
  8. Create IP Peer
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @ipPeer_2 "https://<SBC_MGT_IP>/restconf/data/sonusAddressContext:addressContext=ADDR_CONTEXT/sonusZone:zone=ZONE8"
  9. Create SIP Trunk Groups
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @sipTrunkGroup_1 "https://<SBC_MGT_IP>/restconf/data/sonusAddressContext:addressContext=ADDR_CONTEXT/sonusZone:zone=ZONE7"
  10. Create SIP Signaling Ports
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @sipSigPort_1 "https://<SBC_MGT_IP>/restconf/data/sonusAddressContext:addressContext=ADDR_CONTEXT/sonusZone:zone=ZONE7"
  11. Create standard routes and routing labels
    curl -kisu 'admin:Sonus@123'  -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -d @routingLabel_1  "https://<SBC_MGT_IP>/restconf/data/sonusGlobal:global/callRouting
    
    curl -kisu 'admin:Sonus@123' -H "Accept: application/yang-data+json" -H "Content-Type: application/yang-data+json" -X POST -X POST -d @routingLabelRoute_1 "https://<SBC_MGT_IP>/restconf/data/sonusGlobal:global/callRouting/routingLabel=VRF_RL_EG"