Hello,
I have to implement a feature but right now i can’t make it work.
Scenario:
- I need to identify 3 seconds of silence on a channel after a specific moment.
- Right now I am using TALK_DETECT(3000) and I do receive ChannelTalkingStarted and ChannelTalkingFinished. This is great but I have a problem with that.
Problem:
- If I never get any sound in the customer channel, I will never receive the ChannelTalkingFinished. (I only get ChannelTalkingFinished when I first receive ChannelTalkingStarted);
- Even if I already received a ChannelTalkingStarted and a ChannelTalkingFinished, lets say during a talk
between 2 channels the following situation:
- Agent from call center called a customer
- Customer speaks (ChannelTalkingStarted)
- Customer stays in silence for more than 3 seconds (ChannelTalkingFinished)
- Right now the agent wants to play a voicemail to the customer, but only if he stays in silence for more that 3 seconds after this moment.
- If the customer doesn’t talk anymore, i won’t receive either the (ChannelTalkingStarted or ChannelTalkingFinished).
Attempts:
(1) - I tried playing a sound on the customer channel (beep and other sounds longer) to reset the ChannelTalkingStarted but it didn’t work
(2) - I tried playing a digit on the customer channel to reset the ChannelTalkingStarted but it didn’t work
Questions:
- How can I reset the channel talk detect to get silence after a particular moment?
- Is there any alternative for that? I need to receive a silence event, maybe not using TALK_DETECT. TALK_DETECT will only work for me in cases I receive a ChannelTalkingStarted first. But some cases there is no talk at all and I need to be warned about that after 3 seconds of silence
Thanks in advance,
Fabio