I have integrated Twilio voice in an android app for one to one voice calling. I am able to connect with two identities successfully but I am not able to get any handle to pass caller name.
If I examine the content of incoming call notification there a weird number come which is not linked to my id. Also, I want to pass a URL of caller picture. is there any handle to achieve this?
One cannot add the image url and caller name in the incoming calling notification [REFERENCE]. However, you can do something like this
There is not a formal way of getting this information but you can
overload the From field with the following:
client:{callerName#}{callerNumber#} and then parse it on the
receiving side. You can try the same workaround to pass the URL as
well client:{callerName#}{callerNumber#}_{url}.
Note: I prefer sending userId as well so that I can fetch the details at other end or from the local database
Related
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)
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.
I'm developing an Android application that allows users to make app to phone calls and it is working pretty fine at the moment but, I want to show a custom name when the remote user receive the call. Now, the phone receiving the call is showing an unknown caller name.
My question is if there is a way to achieve this or it's impossible to show what i want.
There is a couple of ways do do this:
User callUserWithHeaders and add a friedly name as a header
Look up the username in your backend when you recieve the call and display the friendly name
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.
I'm building an android app , I need to contact with another app called Easy taxi .
this app need to fill some data like mobile number and destination, the problem is my app help blind people so I need to send this data from my app without the need to fill it and force the Easy taxi to confirm and request the taxi.
I read this article Sending Simple Data to Other Apps
but Easy taxi don't support to share even my Location , any Ideas to start from it ?!
The application you mentioned must have a parsing mechanism to handle incoming data from other apps. This mechanism is called as URL scheme where an app listens for data coming from registered scheme and parses it to handle action. In your case, you should contact to Easy Taxi developers to find out if they have a URL scheme mechanism.
You wan't be able to communicate to other apps if they don't support this. If that app can't handle some intents or doesn't expose data via Content Providers, then there's nothing you can do.