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

Issue with Twilio media-streams instead of Dialogflow Phone Gateway on Heroku (node.js) #79

Open
for-questions opened this issue Dec 27, 2020 · 0 comments

Comments

@for-questions
Copy link

for-questions commented Dec 27, 2020

I decided to dispense with Dialogflow Phone Gateway.
I'm trying to use Twilio media-streams
I disabled Phone Gateway integration + removed webhook to Heroku backend in DF Fulfillment tab.
I have simple conversation flow with several follow-up intents with @sys.any parameters (accept any answer)
I have nothing inside Text response fields for all intents (logic requires to add answer using backend)
Basically I do not even need the audio response from Dialogflow
What I want is Intent's "Display name" value and "Query Text" value back (to know caller's answer)
Later I will send relevant response back to caller using @google-cloud/text-to-speech
I run it on local machine + ngrok. All works fine
BUT when I try it on Heroku it stuck on first intent (Welcome)
It continues to gather what I say and if I keep rather long silence and then say something - nothing happens
It does not shift to next follow-up intent
Only when I hang up -> new intent name becomes visible in logs
I have a feeling that the solution is simple but I really stuck
Will be very much obliged

HEROKU LOGS:
session: 3c0c74b6-508e-41d6-923e-9a7c2942d887
Captured call CA7c5203b5a18d858a20432ad1fcb2132d
First-Intent
Welcome
Detected intent First-Intent
not detected
session: 3c0c74b6-508e-41d6-923e-9a7c2942d887
Sending audio
not detected
Interrupted with "Nick"
Clearing...
not detected
Interrupted with "Nick"
not detected
Interrupted with " Nick"
not detected
Interrupted with " Nick"
MediaStream has finished
Disconnecting from Dialogflow
Second-Intent
Nick Nick
Detected intent Second-Intent
not detected
*
P.S. I found this old question
maybe it is about the same issue - https://stackoverflow.com/questions/5839435/do-we-need-a-static-ip-to-use-html5-websockets
if so - how to attach static IP to media stream?

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