Skip to content

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

Description

@teesha77

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions