Twilio incoming call issue in twilio iOS Sdk - ios

I am using twilio iOS sdk in my application and am having problem with incoming call . I can able to get incoming call, but the caller disconnect the call after he spoke i didn't get any callback in my app. so i can't able to identify that call has been disconnected in my app.
Note:
Right now I'm using the below callback method in my application, it has been called once when the incoming call is ignore, but it didn't call when the caller spoke and disconnect the call.
- (void)connectionDidDisconnect:(TCConnection *)connection

You might try to update your code with a call to - (void)disconnectAll after a caller disconnects.
https://www.twilio.com/docs/api/client/ios/tcdevice#disconnectAll
This a convenience routine that disconnects all current incoming and outgoing connections.

Related

Can I use Callkit SDK to setup a call to a SIP URI

I'm wondering if it is possible to dial out a SIP URI from iOS Callkit. I can not find anything about this and what I tried does not work.
Using any SIP Library, you can make the call but using SIP URI alone, you can not make any call using callkit.
From apple doc
"CallKit lets you integrate your calling services with other
call-related apps on the system. CallKit provides the calling
interface, and you handle the back-end communication with your VoIP
service. For incoming and outgoing calls, CallKit displays the same
interfaces as the Phone app, giving your app a more native look and
feel"
For all the sip functions, you have to call the respective callkit functions to communicate with the native phone UI.
For ex.: if the caller disconnects the call, you will call sip_hangup function, at the same time you have to call the disconnect function of the callkit as well.

How to disconnect active call with CallKit?

I am making an app with CallKit support with WebRTC. I could not find a way to disconnect active call in CallKitUI, Once I accepted the incoming call from answer button even though the call is disconnected from peer connection.

Twilio Client - Sometimes no receiving disconnect from the caller

We're using twilio client (1.4) to place/receive calls and we have noticed that sometimes when the caller hangs up the call, twilio client doesn't receive the disconnect signaling and therefore, it keeps like it has a ongoing call.
Could we somehow avoid or minimize this behavior?
Regards,
Carlos
You can check call status issue in twilio website www.twilio.com with your credentitals. Go to calllogs and find the particular call(with SID- this Sid you can get it from twilio.device.incoming method ) and check the call status http response.(Most probably your statuscallback has some issue)

twilio call inturuption by receiving sim call ios

We are creating app for iPhone with twilio client to client call . We can achieve that successfully .
The issue is When i create a client to client call and call is in progress i receive another call on sim that inturrupted my twilio call.
Now when I am back to my app the call is disconnected!
How can we stop the call from disconnecting ? cant we reconnect the same call after the PSTN (sim) call hang up ??
Is it possible to put a call on hold while receiving a call ??? and rejoin again !
Please we do need to implement this thing in our app , Kindly guide me !

how to handle call transfer with twilio?

I'am using twilio to set up a call between 2 people
I'd like to manage call transfer asked from one side (like when a dtmf key is pressed). The other side could listen to a prompt who could be "please wait while your call is being transfered"
Any chance to do that properly with twilio?
When both parties are connected, Twilio blocks execution of further verbs until the caller or called party hangs up. That's why it is not possible in regular way.
But you can hangupOnStar attribute to hangup the caller party. And set an action URL to continue next dial verbs.
Here is a detail answer:
Twilio call transfer from in-call

Resources