Jordan-Prescott / odins_spear

Python library for Odin's API to build and manage Broadworks installations.
https://docs.jordan-prescott.com/odins_spear
MIT License
6 stars 1 forks source link

Scripter: Service Provider Trunking Capacity fails on Enterprises where Trunk Group is not authorised. #27

Closed dan-writes-code closed 4 months ago

dan-writes-code commented 4 months ago

If the Trunk Group service is not authorised against an Enterprise, then the "Service Provider Trunking Capacity" scripter will fail. Exception shown is: image

When putting that failed URL through as a manual API request, the error received is:

{
    "error": "[Error 4398] Service Trunk Group is not authorized.",
    "status": 400,
    "path": "api/v2/service-providers/trunk-groups/call-capacity",
    "details": "ODIN API Error"
}

It's possible that this error could occur on groups which don't have the service authorised too. I haven't testedy that.