signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.54k stars 1.41k forks source link

callcenter_config queue unload | unexpected behavior #1822

Open palmtown opened 1 year ago

palmtown commented 1 year ago

Describe the bug When I issue the command "callcenter_config queue unload 1" it destorys the queue, then immediately adds it back.

To Reproduce Steps to reproduce the behavior:

  1. Login to FS command line
  2. Issue command: callcenter_config queue unload [queue]

Expected behavior Queue unload and does not reload. Need ability to destroy queues.

Package version or git hash FreeSWITCH Version 1.10.7-release-19-883d2cb662~64bit (-release-19-883d2cb662 64bit)

Trace logs freeswitch> callcenter_config queue unload 1 +OK

2022-10-07 04:36:36.623208 99.87% [DEBUG] mod_callcenter.c:491 Destroying Profile 1 2022-10-07 04:36:36.783207 99.87% [INFO] mod_callcenter.c:781 Added queue 1

palmtown commented 1 year ago

I found why it behaves this way. In short, if you have any abandoned calls in the members table for the queue, it will automatically reload the queue when you try to unload it. My workaround is simply to purge the members table and it will unload just fine.

Is this the desired behavior? I would think queue unload should unload (even if it has to remove the abandoned call record from the members table), otherwise, there's no other queue function to unload the queue without this work around.