Twilio Client for android has no audio - twilio

I'm trying out the Twilio Android Quickstart, and I've gotten to the end of the Making an outgoing call section, but for some reason. I'm not getting audio.
I'm able to see that the requests are going out to Twilio appropriately, because Twilio is accessing my app's voice request url. After a few seconds, I can see in LogCat that the Connection disconnected successfully.
I have a Nexus 4, and a Nexus 7 that I've been trying this out on, as well as the Android Emulator with similar results.
I tried the WebRTC Client in the browser, and my endpoint seems to work fine, so I'm running a little short on ideas.
Any help would be greatly appreciated.

I contacted Twilio support about this issue, and it appears that outgoing calls using their API do no work correctly when it's still in the Trial account.
Twilio support moved my account up to a full account, and the problems went away.

Related

Unable to establish websocket connection when using Apple devices

I have a web application (hobby project) with a chat function that is implemented with Express.js and socket.io.
Everything works fine on PC and on Android phones, but as soon as you connect with an Apple device, there will be problems since it seems that no websocket connection can be established between the server and the Apple device.
After a bit of googling I found this page:
https://socket.io/docs/v4/troubleshooting-connection-issues/?fbclid=IwAR2XeuehqJkkgFoshFKSVN7sz4UUfWkZ0CPYmsWnqXm-0Q17iVC3dRDyEEI#problem-the-socket-is-stuck-in-http-long-polling
I have limited abilities to troubleshoot on the client side since we do not have a Mac but I followed the troubleshooting that they recommend for the server side. When you connect with an Apple device, it seems that the event "upgrade" is never triggered and you therefore have to settle with HTTP Polling instead of web socket, which does not provide a good user experience.
I have got a certificate from Lets Encrypt and am using HTTPS to access the webpage. I have also tried with several different browsers on the Apple devices.
Anyone have an idea why you can not create a web socket connection with Apple devices and what you could do about it?
Feeling a bit lost and would love some help!

Twilio Microphone Issues

So we have built a custom system with Twilio that accepts calls in the browser. An issue I am having is one of our operators took a call with a team member in skype. Once they went back to the browser it seems like their microphone was not working right.
Is there anyway to fix this issue? Like, I think for some reason after they hung up on skype the microphone wasn't in sync with the chrome browser in twilio and would not connect the user to the call.
Thanks so much
Twilio developer evangelist here.
On some operating systems camera and microphone devices cannot be shared between applications. My guess here is that Skype took over the access to the microphone and the web application lost that access.
I've not tested this myself, but you might consider trying to listen to the "deviceChange" event on the Twilio.Device.audio object to see if that fires when a microphone is lost by the page. You may be able to recover by triggering getUserMedia again, or you may need your user to refresh the page to reconnect to the microphone.
Let me know if that helps at all.

How to receive incoming call with TwilioXamarinBindings Twilio.Voice.iOS

I'm new to Twilio and expected there to be a Xamarin SDK for iOS and Android but apparently there isn't. I have been working with https://github.com/dkornev/TwilioXamarinBindings for native libraries but cannot seem to find any help with getting an incoming (to the iOS/Android app) call. I'm not sure if there's a tutorial somewhere explaining exactly how to route the call to a specific device but I can't see it....
So, can somebody explain the procedure, do I need Apple APN and if so how is it acheived in Xamarin Forms?
I haven't found anything for incoming calls to Xamarin apps via VOIP but all outgoing is fine.
Twilio evangelist here.
I'm not familiar with those bindings but looking at the sample application that is included in the repo it looks like in iOS there is a method called AcceptWithDelegate that you call to accept an incoming Twilio Voice call.
https://github.com/dkornev/TwilioXamarinBindings/blob/master/sample/Twilio.Voice.Sample.iOS/TwilioVoiceHelper.cs#L131-L136
The binding source appears to map this to the iOS SDK's acceptWithDelegate function:
https://media.twiliocdn.com/sdk/ios/voice/releases/2.0.7/docs/Classes/TVOCallInvite.html#//api/name/acceptWithDelegate:
Hope that helps.

How to Make twilio voice call from IOS using in C#

I have developed a small application using twilio api to make call to any phone number from my twilio number. After dialing call is establishing and a specific audio clip is playing in mobile end. But I am not getting any real voice in any side of the call. Please help me or give me some information regarding how can i get voice in voice call using twilio api. Can anyone tell me the full sceneriyo that how can i make a call from IOS app to any phone numebr. Thanks, Amit
Twilio developer evangelist here.
To make calls from an iOS application you need the Twilio Programmable Voice SDK. There is a quickstart application you can run and look at to see how it all fits together. Check out the rest of the documentation for more information.

Need a good starting point for twilio on Phonegap

I've looked at a few approaches to using Twilio with Phonegap and I'm wondering what everyone else would suggest and if anyone's already gone down this path.
I've got a few options, and I'd like to keep it so that I don't have to talk to a backend to send me a token.
Old iOS Twilio plugin - This was written for version 2.9 of cordova and looks like it would need some work to be function on 3.0+.
JWT - some learning curve here, and I don't know what Twilio would be expecting to see on the opposite side from a token that I create.
iOS SDK - totally drop 2 months of work and rewrite everything native.
Fail on making it phone only, put up a backend and send everything off to a server to make all the calls and send texts
Has anyone else tried to work with Twilio on Phonegap 3.0+ ?
Twilio evangelist here.
Friend of Twilio Jeff Linwood has a Phonegap plugin for Twilio Client.
Not sure if its been updated for the newly release 1.2 version yet, but its a good starting point.
Hope that helps.

Resources