Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mod_callcenter: zombie call to agent #2529

Open
wmasilva opened this issue Jul 11, 2024 · 0 comments · May be fixed by #2530
Open

mod_callcenter: zombie call to agent #2529

wmasilva opened this issue Jul 11, 2024 · 0 comments · May be fixed by #2530
Labels
bug Something isn't working

Comments

@wmasilva
Copy link
Contributor

If a member hangup the call and the originate is waiting to call the agent, it generates a zombie call to the agent. It should cancel/hangup the call to the agent because the member already hangup.

When setting the agent contact to a loopback channel, no issue, is only when using contact = "user/USERID".

To reproduce:
call to the callcenter,
after answer, wait 2 seconds
hangup the call.
FS will call the agent, answer the call, silence... it's a zombie call.


2024-07-11 17:49:14.166433 98.60% [DEBUG] mod_callcenter.c:3128 Member 1002 <1002> joining queue prueba
2024-07-11 17:49:14.166433 98.60% [DEBUG] mod_callcenter.c:3390 Queue has 1 waiting calls.
2024-07-11 17:49:14.166433 98.60% [DEBUG] mod_callcenter.c:1180 Updated Agent agent-1000 set state = Receiving
2024-07-11 17:49:14.166433 98.60% [DEBUG] mod_callcenter.c:1753 Setting outbound caller_id_name to: 1002
2024-07-11 17:49:14.166433 98.60% [DEBUG] switch_ivr_originate.c:2301 Parsing global variables
2024-07-11 17:49:14.166433 98.60% [DEBUG] switch_ivr_originate.c:2863 Parsing session specific variables
2024-07-11 17:49:14.166433 98.60% [INFO] switch_cpp.cpp:1466 fetching dialstring for [email protected] 

2024-07-11 17:49:14.166433 98.60% [INFO] switch_cpp.cpp:1466  user.lua start sleep

2024-07-11 17:49:14.526884 98.33% [INFO] switch_cpp.cpp:1466 limit.lua: inbound limit for account:[email protected] [total]: 4
2024-07-11 17:49:14.526884 98.33% [DEBUG] switch_limit.c:124 incr called: total_account:[email protected] max:4, interval:0
2024-07-11 17:49:14.526884 98.33% [DEBUG] mod_hash.c:193 Usage for total_account:[email protected] is now 1/4
2024-07-11 17:49:14.926343 98.33% [DEBUG] switch_rtp.c:1930 rtcp_stats_init: audio ssrc[168299050] base_seq[0]
2024-07-11 17:49:14.926343 98.33% [DEBUG] switch_rtp.c:7695 Correct audio ip/port confirmed.
2024-07-11 17:49:15.066815 98.33% [DEBUG] sofia.c:7493 Channel sofia/main/[email protected] entering state [ready][200]
2024-07-11 17:49:18.406251 98.10% [NOTICE] sofia.c:1065 Hangup sofia/main/[email protected] [CS_EXECUTE] [NORMAL_CLEARING]
2024-07-11 17:49:18.406251 98.10% [DEBUG] mod_hash.c:293 Usage for total_account:[email protected] is now 0
2024-07-11 17:49:18.406251 98.10% [DEBUG] mod_callcenter.c:3262 Member 1002 <1002> abandoned waiting in queue prueba
2024-07-11 17:49:18.406251 98.10% [DEBUG] mod_callcenter.c:3295 Member "1002" <1002> exit queue prueba due to BREAK_OUT
2024-07-11 17:49:18.406251 98.10% [DEBUG] mod_callcenter.c:3390 Queue has 0 waiting calls.
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_session.c:2979 sofia/main/[email protected] skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:647 (sofia/main/[email protected]) State EXECUTE going to sleep
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:581 (sofia/main/[email protected]) Running State Change CS_HANGUP (Cur 1 Tot 2)
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:844 (sofia/main/[email protected]) Callstate Change ACTIVE -> HANGUP
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:846 (sofia/main/[email protected]) State HANGUP
2024-07-11 17:49:18.426415 98.10% [DEBUG] mod_sofia.c:469 Channel sofia/main/[email protected] hanging up, cause: NORMAL_CLEARING
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:59 sofia/main/[email protected] Standard HANGUP, cause: NORMAL_CLEARING
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:846 (sofia/main/[email protected]) State HANGUP going to sleep
2024-07-11 17:49:18.426415 98.10% [INFO] switch_cpp.cpp:1466 execute on hangup 
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:777 Hangup Command with no Session lua(execute_on_hangup.lua):

2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:616 (sofia/main/[email protected]) State Change CS_HANGUP -> CS_REPORTING
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:581 (sofia/main/[email protected]) Running State Change CS_REPORTING (Cur 1 Tot 2)
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:932 (sofia/main/[email protected]) State REPORTING
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:168 sofia/main/[email protected] Standard REPORTING, cause: NORMAL_CLEARING
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:932 (sofia/main/[email protected]) State REPORTING going to sleep
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_state_machine.c:607 (sofia/main/[email protected]) State Change CS_REPORTING -> CS_DESTROY
2024-07-11 17:49:18.426415 98.10% [DEBUG] switch_core_session.c:1744 Session 2 (sofia/main/[email protected]) Locked, Waiting on external entities


2024-07-11 17:49:24.166483 97.97% [INFO] switch_cpp.cpp:1466  user.lua sleep done
2024-07-11 17:49:24.187017 97.97% [INFO] switch_cpp.cpp:1466 user.lua dialstring [cm_limit_id=account:[email protected],cm_limit_total=4,cm_limit_inbound=-1,cm_limit_outbound=-1,cm_limit_busy=-1]sofia/main/sip:[email protected]:5064;fs_nat=yes 

2024-07-11 17:49:24.187017 97.97% [DEBUG] switch_ivr_originate.c:2301 Parsing global variables
2024-07-11 17:49:24.187017 97.97% [DEBUG] switch_ivr_originate.c:2863 Parsing session specific variables
2024-07-11 17:49:24.187017 97.97% [NOTICE] switch_channel.c:1142 New Channel sofia/main/[email protected]:5064 [e0baf258-4d13-4eb0-8cc0-de5782662fdf]
2024-07-11 17:49:24.187017 97.97% [DEBUG] mod_sofia.c:5110 (sofia/main/[email protected]:5064) State Change CS_NEW -> CS_INIT

Please see the call log when reproducing the issue.
Attach the full freeswitch.xml and user.lua to reproduce the issue.

freeswitch.xml.txt
user.lua.txt
freeswitch.log

using freeswitch Version 1.10.12-dev git 98f164d 2024-06-27 11:30:34Z 64bit

@wmasilva wmasilva added the bug Something isn't working label Jul 11, 2024
@wmasilva wmasilva linked a pull request Jul 11, 2024 that will close this issue
wmasilva added a commit to wmasilva/freeswitch that referenced this issue Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant