Sinch Conference Call Android - android

I have searched about making a conference call using Sinch Android SDK but unable to find any working example. I found one link, but there is no solution mentioned.
According to the documentation (https://www.sinch.com/docs/voice/android/#setupaconferencecall):
CallClient callClient = sinchClient.getCallClient();
Call call = callClient.callConference("<conferenceId>");
call.addCallListener(...);
My question is, If Conference ID is random then How to create Conference Room and How to add Users to that room? Is there any example or sample available for Android?
EDIT
I create one user with ID 1 and another user with ID 2. I call the function on button click on both of the user devices,
Call call = callClient.callConference("ConferenceID123");
As callConference will create the conference room on the fly. The call on both users get established but there is no voice completely blank on both user devices. And when I hang-up, there is 0 packet send or received. Can you please help me out where I am wrong?

You create your own rooms and keep a list of that and then connect any users to that room.

Related

I am developing video chat application with laravel and opentok. But I am stuck in implementing a way to let users call each other

I have been trying to build video chat application using opentok. When User 1 calls User 2, I want User 2 to be notified that User 1 is calling.
I have made this work using Pusher and Laravel Echo using Laravel Broadcasting service. But I don't know if this is the best way to do it.Also, we need to integrate it to the mobile and I am not sure if Pusher and Echo are going work.
Using another service like Pusher is probably the best option. OpenTok does not currently provide a calling type API, it is instead based on rooms (sessions).
One alternative using just OpenTok would be to have the participants both connect to a session and have the call action be when you call publish(). Then when you receive the streamCreated event on the other side you can treat that like the participant trying to call you. Answering the call is subscribing to the created stream and publishing back the other way.
Depending on your application this might not really work though, eg. if you have lots of different participants all being able to call one another then you will need to connect to lots of different sessions at the same time.

Icelink : video, voice and text chat

I want to implement video audio and text chat in native Android using Icelink. I implement demo provided by Icelink but it makes a conference call. I want to make one to one call using request and answer signalling method. Till now I did with connect server and bind user with it. i use Websync for server-side implementation.
Now the problem is what can I do for getting all the users.?? Suppose I will get all users from server side then how can I send a request from one user to other user and connect with upon second user's response??
Follow this diagram : Signaling Diagram
if anyone implemented or worked with Icelink and Websync please help me...Thanks
This answer comes quite late but I hope it's still useful for you.
The example provided with IceLink does indeed work as a conference call because all the users join the same WebSync channel and the example is setup to create a connection to a user that joins the channel.
For a simple and quick solution, you could have only two people join a single channel, then it's only a two person conference.
For something more advanced, note that IceLink is signalling agnostic. You can provide your own signalling mechanism as long as you can pass the offer and answer messages between two clients.
What I did was I put the users in the same WebSync channel and A Publishes in that channel with Ring message (as an example) and the other one, inside onReceive, gets that message and I show prompt to the user and if they accept it, I communicate the Session number to user A again and then they are put in the same conference (which is one-to-one in this case)

Twilio Video - Call participant to join video call

I'm kinda new to Twilio.
I'm having trouble trying to get the participant to join a video call (room) by notifying him via a phone call.
All I know is when Participant 'A' creates a room 'TestRoomName' to have a one-to-one video call with Participant 'B', 'B' must know what the room name is to connect or otherwise be notified that he has to join.
But is there a way to implement in such a way that 'B' gets a call once 'A' creates a room, and upon B's answer, he joins the room?
Twilio developer evangelist here.
Programmable Video doesn't actually include a mechanism for inviting users to rooms, only to make rooms that are available to those users only.
You need to build your own notification method to connect the users. I'd recommend checking out Twilio Notify for performing cross platform notifications. Then, when you create the room you can also trigger a notification to the other user and send the name of the room in the notification's data, so that when they react to the notification they can join the room.
Let me know if that helps at all.

Twilio incoming call not working in android voice sdk

i have used android voice sdk
github link
if i click call button i am getting congratulatory message and not showing any notification like incoming call. Please help i am doing this from long time.
in twilio site it is showing correct but not getting incoming calls.
Twilio developer evangelist here.
The basics of the Quickstart application get you to the point that you make an outgoing call and the example TwiML Application returns a congratulations voice message, as you've discovered.
You now have to build on top of this in order to place calls to other clients.
First you need to update the server application so that you pass an identity to it rather than using the default.
Then you need to add a UI within your own application that can give you a choice of clients to dial. I don't know what your app does, so you need to figure how you want to display this to users yourself. You could just give them a free text field to type the name of another client into or list all active users.
You'll then need to pass the client name you want to call into the parameters when you create the call.
You will also need to update the server route to receive those parameters and place the call to the other client.
To cover all of this, I recommend following the full quickstart tutorial for Twilio Programmable Voice on Android.

how sinch callback works

i want a create a android paid calling app using sinch.
sinch includes a callback API to get details of call.
i wanted to use this but no idea how to.
i read the documentation. but it is not enough
my question is,
what are the requests to the server.?
how can i find what to what country the call is going on ?
how can i restrict calls based on the account balance in our database
Note:
i can generate the userid for calling it is a 15 digit string i will use it as username to connect a call
Configure a calling callback url in the dashboard for you app
Implement your backend details can be found here: https://www.sinch.com/docs/rest-apis/api-documentation/#callingcallbackapi
When you get the ICE event, you will get who is calling, look up the balance in your database, if the user doesnt have balance create a hangup action instead of ConnectPSTN.

Categories

Resources