Azure-Samples / Azure-Samples/communication-services-javascript-quickstarts

Direct Routing JS sample broken: Unsupported API version / 405 errors

Open
#346 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
108
Forks
207
PR merge metrics
No merged PRs in 30d

Description

**Observed errors:**
- First, `UnsupportedApiVersion` is thrown because the sample uses API version `2021-05-01-preview`, which is no longer supported. Supported versions for my ACS resource are `2023-03-01`, `2023-04-01-preview`, and `2024-11-15-preview`.
- After attempting adjustments, the sample throws `405 Method Not Allowed` because the JavaScript SDK `@azure/communication-phone-numbers` does not support SIP Routing endpoints (`/trunks` and `/routes`).

**Problem:**
The sample cannot run in Node.js as-is due to the JS SDK not supporting SIP Routing and the outdated API version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.