We're updating the issue view to help you get more done. 

wazo-calld applications: playing unknown playback returns 200

Description

Description

Given I have a call in a Wazo application
When I play a playback that does not exist on this channel
Then I get a status code 200 OK

Expected: I get a status code 400

Technical details

Here's an hypothesis of what's happening

  1. wazo-calld POST /channels/id/playback/wrong-id

  2. Asterisk queues the playback to be played with wrong-id, it does not know that the id is wrong yet, it's only queued

  3. wazo-calld GET /channels/id/playback/wrong-id

  4. The playback is still queued, so Asterisk returns 200 OK

  5. Asterisk tries to play the playback, sees that it's a wrong id and ignores the playback request and logs an error message

Environment

None
Done

Assignee

Unassigned

Reporter

Sébastien Duthil

Labels

Approvers

None

Pair

None

Sprint

None

Fix versions

None

Priority

Medium
Configure