Rest API Enhancements
■ | A new API GET request for retrieving a specific script: /api/v2/scripttemplates/{scriptTemplateId} |
■ | The response for Get specific dial plan for specific location (api/v2/customer/{{customerId}}/sitelocation/{{siteLocationId}}/dialplan/{dialplanId}) includes the name of the SIP Connection for the customer service. This implementation is required in order to match the dial rules prefixes on the managed SBC for a specific site (sip connection). In the example below, the 4000-4003 are match to the site 'SaraSite2'. |
Copy
{
"dialPlanId": "CustDialPlan",
"ruleDTO": [
{
"name": "SaraSite2",
"prefix": "+97239754000",
"tag": "sandbox1.audiocodes.be"
},
{
"name": "SaraSite2",
"prefix": "+97239754001",
"tag": "sandbox1.audiocodes.be"
},
{
"name": "SaraSite2",
"prefix": "+97239754002",
"tag": "sandbox1.audiocodes.be"
},
{
"name": "SaraSite2",
"prefix": "+97239754003",
"tag": "sandbox1.audiocodes.be"
}
]
}
■ | When a customer has as single site, the Customer Id and the Site Location Id are unique values. Previously they were different values. |
■ | A new request parameter for the Get Customer license Info lets you configure the number of months for which to retrieve info (one record per day). |