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

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

Aperta
#346 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
108
Fork
207
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.