Pickup causes the call to be unavailable from API

Description

Given A calls B
Given I am C with call pickup permission toward B
Given I pickup the ringing call from B (with *8<extenB>) and answer
When I hangup my call with API
Then I get an error response:

Expected: I get no error response

Given the same scenario
When I hangup the call from my phone
Then I don’t receive an event call_ended in the Websocket

Expected: I receive a call_ended in the Wazo Websocket.

Technical details

  • Upon pickup, the variable XIVO_USERUUID is copied from the intercepted channel to the interceptor channel.

  • This variable is used to determine the owner of the channel.

  • As a consequence, the interceptor channel is considered owned by the intercepted user.

  • As a consequence, the interceptor user cannot do anything with her own channel via the API anymore.

Workaround

Apply the attached patch:

Zendesk Ticket IDs

None

Attachments

1

Activity

Done

Details

Priority

Assignee

Reporter

Approvers

Alexandre Fournier

Fix versions

Sprint

Zendesk Support

Created August 24, 2023 at 4:27 PM
Updated August 31, 2023 at 3:40 PM
Resolved August 29, 2023 at 9:54 PM