You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When executing callcenter_config queue list members, it happens occasionally that a member will be listed in the 'Answered' state despite their call being terminated many hours before. The logs below show the issue as a race condition between the agent's and member's threads.
Expected behavior
mod_callcenter properly clears out Abandoned or terminated calls.
Package version or git hash
Version 1.10.9
Trace logs
2023-02-20 09:44:33.089076 47.47% [DEBUG] mod_callcenter.c:1753 Setting outbound caller_id_name to: PLONI-ALMONI
2023-02-20 09:44:33.089076 47.47% [DEBUG] switch_channel.c:1269 sofia/internal/2125551111 EXPORTING[cc_export_vars] [call_center_queue_uuid]=[b10cf4c7-3e27-4c0f-9b28-daca34738dfe] to event
2023-02-20 09:44:33.769070 47.47% [DEBUG] mod_callcenter.c:1965 Agent 8bc65265-0b8b-47a7-ac62-b7bec4801ee8 answered "PLONI-ALMONI" <2125551111> from queue 777@test.domain.local
2023-02-20 09:44:33.769070 47.47% [DEBUG] switch_ivr_bridge.c:2213 (sofia/internal/2125551111) State Change CS_EXECUTE -> CS_HIBERNATE
2023-02-20 09:44:33.769070 47.47% [DEBUG] mod_callcenter.c:2008 Failed to bridge, agent 8bc65265-0b8b-47a7-ac62-b7bec4801ee8 has no session
2023-02-20 09:44:33.789071 47.47% [DEBUG] switch_ivr_play_say.c:2058 done playing file local_stream://default
2023-02-20 09:44:33.789071 47.47% [DEBUG] mod_callcenter.c:3294 Member PLONI-ALMONI <2125551111> is answered by an agent in queue 777@test.domain.local
As can be clearly seen from these logs (along with review of the source code), if the bridge fails to the agent for some reason, the member's thread can still set the call as 'Answered' despite the call being terminated. (Line 3294 executed after 2008). This is a race condition.
The logs above show this behavior when the bridge fails due to the agent's channel not being up. The same behavior occurs when the member's channel is hung up as well.
The text was updated successfully, but these errors were encountered:
Describe the bug
When executing
callcenter_config queue list members
, it happens occasionally that a member will be listed in the 'Answered' state despite their call being terminated many hours before. The logs below show the issue as a race condition between the agent's and member's threads.Expected behavior
mod_callcenter properly clears out Abandoned or terminated calls.
Package version or git hash
Trace logs
As can be clearly seen from these logs (along with review of the source code), if the bridge fails to the agent for some reason, the member's thread can still set the call as 'Answered' despite the call being terminated. (Line 3294 executed after 2008). This is a race condition.
The logs above show this behavior when the bridge fails due to the agent's channel not being up. The same behavior occurs when the member's channel is hung up as well.
The text was updated successfully, but these errors were encountered: