Twilio Video - Call participant to join video call - android

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.

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 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.

Push notification for XMPP Chat App for offline users in Group

Everyone....!!
Greetings..!!
I am working on XMPP based Chat app . I have used XMPPFramework by Robbie Hanson https://github.com/robbiehanson/XMPPFramework
i have used OpenFire as XMPP Server
I am facing problem to get Push Notification for Group Chat when user is offline.
Currently I am able to get Push Notification for One to One Chat when user is offline . (For this I have created a PHP WebService which fetches the information from ofOffline Table every 60 sec)
But As there are no Offline messages Tables for Group Chat.
Can anyone suggest me How can I get push notification to group when user is offline in group
I need to manage this from Both Android n iOS Chat App
for Android i am using
https://github.com/siacs/Conversations
Look into ejabberd_mod_offline_post
First config the Room must be a Member-Only room, and add all users as members right after you created it, so that be able to get a total.
Add above model into ejabberd models.
Implement a Callback Service to handle the callback post.
The idea is when User go offline
In one-to-one case, offline_message_hook will be raised
In MUC case, muc_filter_message will be raised, and any one not Presence-Available is offline.
The best example would be AMP implementation in the Tigase. It is based on a MessageAmp plugin and AMP component.
The MessageAmp plugin intercepts messages. If it detects that the user is not logged in, it forwards the message to AMP component to store it in an offline storage. In your case, you could have your own Message plugin which, if it detects that the user is offline, could forward the message to your Push component (iOS push or Android push, SMS push or something else).
And all the logic responsible for actual pushing notification to the device should be implemented in that component.
Try checking this MUC - Light and use the mod_zeropush module to modify a bit to handle single and group push from the muc-light.
Its more like whats app , although you may not achieve 100% results as you expect but less complex than the tradition XEP-0045.

Sinch Conference Call 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.

Categories

Resources