agora call connecting but not hearing voice - call

We have a chat app, we are trying to integrate agora voice call feature, we are creating a channel and requesting token from our server using agoras token generator, after creating token we send it back to phone1 from our server then we start join channel in phone1 after that we send the token to phone2 using freebase, In phone 2 we receive token from firebase and run join channel method, but its not working, it says channel joined, but still no voice to hear from phone1
Please do guide us

Related

does watson assistant know if there is null response from user?

I have created a chatbot in Watson assistant and I need a condition where if there the user goes silent for 10 seconds I continue the conversation. is there a way for Watson to know if there is no response (null response)?
Also, does Watson know if the user clicked on a link? is clicking on a link considered a response in Watson?
Watson Assistant does not know if a user hasn't sent back a response,
you can do one of the following:
if you are using WA web chat channel, use the events provided to control the flow. You can set a timer via pre:recieve and reset it if the user did send a message via pre:send.
if there is a timeout send a message via send operation.
Alternatively, if you plan on supporting more than just a web chat channel (e.g. facebook, phone, whatsapp, etc.), you are better off implementing the same logic in a Post Message webhook and . Essentially, make your code keep a timer in the Post message and if a user send a reply, turn the timer off in a Pre Message webhook

Gmail api credential files

I have integrated my .net application to send e-mails from Gmail, I have 5 mail accounts that now send e-mails.
For every e-mail account I have created the credential file, when the application is running the first time I most enter the credentials from the e-mail to authenticate itself.
For sending a mail from Gmail you must passed trough the correct json file, that's is created for the specific mail-account.
This has worked for the last 5 months, but now it is not possible to send any e-mails.
Now the credential files are mixed-up, when the mail is automatically send i recieve and 403 that i'm not authenticated. But the email that is given is one of the others mail accounts.
I don't recieve the consist popup to authenticate it self anymore.
Have anyone has the same issue?
regards

Use Discord's API to send message as user

I want to send a message in a Discord channel but from a user account not a bot. Is this kind of thing possible using Discord's API?
The official documentation should contain enough information to get started: https://discord.com/developers/docs/resources/channel#create-message
Make sure to login with OAuth2 and not as a bot. Also, it is important to get the right scope (permissions) when requesting an OAuth token.

Authenticate user from mobile app

I have mobile online game and my server need user_id for the player. But facebook only gives me access_token to request data from user account and doesn't provide signed user_id. It's important to have SIGNED user_id so no other user can pretend to be another just by replacing user_id in request to my server. Siging on client is no secure because anyone who cares can find secret key in client binary.
So now I will have to create intermediate step in authentication process - request to my server with access_token, which in turn request facebook for user info (which is sloooow and depends on my server geoposition (constant), not clients), create signature with MY_SERVER_PRIVATE_KEY + user_id, and send it back to client. This not a big problem, but create latency during authentication.
Do I miss something? Is there no way to receive user_id from facebook signed with my application secret key?
You cant get the signed user id ,unless the user has connected to your app first. So you have to either use client-side or the server-side Auth flow in your app.
Application Auth Flow documentation at Facebook

GAE Channel API message broadcast to only one client?

I'hv been trying to learn the Google App Engine's Channel API lately.
I tried to make a simple chat app, but I am reaching problems.
This is generally what i have done.
server opens a static channel:
token = channel.create_channel('bigboys')
client js connect to channel with:
var channel = new goog.appengine.Channel(token)
I am not using Google App Engines users. I don't want clients to have to login.
So my problem is, the chat app doesn't really work, only one client can join the channel. I know there is a one client ID per channel rule. So how do I support multiple clients in one "chat room"?
Think of a channel being the connection between one client (browser) and your server.
If you have a chatroom, you'll need a channel for each client. You'll need something on the server side to keep track of all the clients in the chatroom, and the channel for each client. When you send a message, you'll need to send it on every client channel in the chatroom.

Resources