Skip to content

channel.play doesn't work #4

@otatar

Description

@otatar

Hi there,

today I have tried you lib, but it seems that channel.play doesn't work. I have managed to sniff HTTP request to asterisk http api and it looks like this:
3459 266.198305756 127.0.0.1 → 127.0.0.1 HTTP/JSON 458 POST /ari/channels/1744378993.3/play/5e3fabc0-5168-46e5-b83d-e0a4a6e0c793 HTTP/1.1 , JavaScript Object Notation (application/json)
According to this: [link]https://docs.asterisk.org/Latest_API/API_Documentation/Asterisk_REST_Interface/Channels_REST_API/#playl) the api call shoul look like this:
HTTP/JSON 458 POST /ari/channels/1744378993.3/play?media=sound:demo-congrats`

I have even tried this from curl, and it is working. So I can conclude that you are missing query parameters in your api call....

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions