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

Multi Agent in Dialogflow #1

Open
psccodes opened this issue Dec 29, 2019 · 7 comments
Open

Multi Agent in Dialogflow #1

psccodes opened this issue Dec 29, 2019 · 7 comments

Comments

@psccodes
Copy link

First of all, Thanks for such an awesome project

I am able to run this project with multi-agent support, I am able to connect two DID numbers on different dialogflow agents but at the same time talking to both the agents is not possible which I am dubious is because of the below line in lib/call-session.js

await endpoint.set('GOOGLE_APPLICATION_CREDENTIALS', serviceAccountJson);

This is the log I get,

2019-12-28 23:35:11.149388 [CRIT] google_glue.cpp:269 StreamingDetectIntentRequest finished with err IAM permission 'dialogflow.sessions.streamingDetectIntent' on 'projects/<projectname>/agent' denied. (7):

Please let me know if I am doing something wrong or this feature is not available as of now in the project.

Thanks

@davehorton
Copy link
Collaborator

This should work. I'm not quite clear on something - are you saying separate agents on different DID does work when the calls are not placed at the same time?

@psccodes
Copy link
Author

I have added code for multi assistant it works fine when both the number are not called at the same time but when I call both the assistant at the same time it does not work then I get the error stated below exactly what you understood,

2019-12-28 23:35:11.149388 [CRIT] google_glue.cpp:269 StreamingDetectIntentRequest finished with err IAM permission 'dialogflow.sessions.streamingDetectIntent' on 'projects/<projectname>/agent' denied. (7):

so I wanted to know if this is a known issue or is it not working for only me?

@davehorton
Copy link
Collaborator

It is not a known issue, but it may be a new bug you have found. Just to be certain of your config, you are running the latest mod_dialogflow with this commit, correct?

Also, if you are setting the credentials in this way, could you also try removing the Environment var setting of the same from freeswitch.service, just to make sure that is not overriding?

@psccodes
Copy link
Author

psccodes commented Jan 4, 2020

Hi Dave, I have checked that I am using mod_dialogflow with the same commit, I removed freeswitch enviornment variable but it didnt work, it may be a possible bug. Please do let me know if it works for anyone else.

@davehorton
Copy link
Collaborator

Thanks, I will test this week myself and let you know

@davehorton
Copy link
Collaborator

I'm not able to recreate the issue as stated. I made two calls at the same time on different DIDs each going to a different dialogflow agent with difference json service files and both calls worked properly.

@psccodes
Copy link
Author

psccodes commented Jan 9, 2020

Sorry for late reply.

I will check this from my end, I will check from my end and let you know, maybe I am doing something wrong with the code. And Thanks!!

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

2 participants