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] fix queue periodic announcement #1170

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greenbea
Copy link
Contributor

@greenbea greenbea commented Apr 21, 2021

  • Fixes announcement playing to channel even agent answered or member
    broke or timed out from the queue
  • Fixes frequency counted when announcement starts playing causing
    announcements to overlap fixed by counting only when last announcement
    finishes

@laflammefrancois
Copy link

FYI the same happens when you set the Lua Script to announce members position as defined in the mod_callcenter documentation;

The caller must wait until the Lua Script execution goes back to freeswitch.msleep(mseconds) because the execution of api:executeString(uuid_broadcast, is never stopped by mod_callcenter.

@yois615
Copy link
Contributor

yois615 commented Jan 10, 2023

@laflammefrancois - Have you tested this patch to see if it helps your issue?

@laflammefrancois
Copy link

@laflammefrancois - Have you tested this patch to see if it helps your issue?

No, I needed a solution for my production servers. I have instead implemented a patch in my lua script; I subscribe for the CUSTOM/Answer-State/CC-Queue event and send uuid_break to the call when the answered Answer-State event is received.

Sadly, I do not have the setup to test the fix, sorry about that.

@greenbea
Copy link
Contributor Author

I've been using this fix in production without any issues for a couple of months

@yois615
Copy link
Contributor

yois615 commented Jan 11, 2023

@greenbea - You're using it with uuid_broadcast in a LUA script? I don't see how your fix addresses @laflammefrancois problem.

I recompiled FS with this patch:
acbe390

But I haven't tested yet.

@greenbea
Copy link
Contributor Author

I have a lua script I use for announcing the queue position, but that takes quickly to announce, so I didn't notice any issues.

The solution would be to have mod_callcenter control any announcement to the member session.

@yois615
Copy link
Contributor

yois615 commented Jan 11, 2023

@greenbea Can you dynamically calculate the member position?

@greenbea
Copy link
Contributor Author

@greenbea Can you dynamically calculate the member position?

A SQL query

@yois615
Copy link
Contributor

yois615 commented Jan 11, 2023

@laflammefrancois I tested my patch listed above (acbe390) and it solves our problem.

@greenbea
Copy link
Contributor Author

greenbea commented Mar 3, 2023

I force pushed some fixes

  1. queue was being used after queue_rwunlock(queue) causing queue to point to unsafe memory.
  2. fixed if queue gets reloaded with a new announcement the old announcement wasn't stopped

@yois615
Copy link
Contributor

yois615 commented Mar 21, 2023

@andywolk This PR might also conflict with #1974

@yois615
Copy link
Contributor

yois615 commented Mar 21, 2023

Correction - it does not conflict as it solves a different issue

@signalwire-ci
Copy link

signalwire-ci bot commented Mar 28, 2023

@greenbea greenbea force-pushed the fix_call_center_announce branch 4 times, most recently from 9d24f09 to f5ac832 Compare March 28, 2023 15:01
@signalwire-ci
Copy link

signalwire-ci bot commented Mar 28, 2023

@signalwire-ci
Copy link

signalwire-ci bot commented Mar 28, 2023

@signalwire-ci
Copy link

signalwire-ci bot commented Mar 28, 2023

* Fixes announcement playing to channel even agent answered or member
    broke or timed out from the queue
* Fixes frequency counted when annoucement starts playing causing announcements to overlap fixed by counting only when last announcment finishes
@signalwire-ci
Copy link

signalwire-ci bot commented Mar 28, 2023

@signalwire-ci
Copy link

signalwire-ci bot commented Mar 28, 2023

@greenbea greenbea requested a review from andywolk April 18, 2023 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants