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

Call gets dropped too early on Dialogflow endInteraction #11

Open
rjp44 opened this issue Jan 29, 2021 · 0 comments
Open

Call gets dropped too early on Dialogflow endInteraction #11

rjp44 opened this issue Jan 29, 2021 · 0 comments

Comments

@rjp44
Copy link
Contributor

rjp44 commented Jan 29, 2021

In order to honour the DialogFlow endInteraction flag, the bridge listens for MQTT dialogFlowEvent messages emitted by dialogflow-rtp-audioserver on intent recognition and triggers an ARI continueInDialplan to drop the call when it sees an intent with endInteraction set.

This immediately drops the call whilst rtp-audioserver still has the DialogFlow audio in its queue to send to Asterisk so any audio emitted by the last intent is lost.

I think the fix involves having rtp-audioserver send an additional dialogFlowEvent message when it has sent all outstanding data to Asterisk, and delaying the call drop here until we receive this.

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

No branches or pull requests

1 participant