2

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
jcaron
  • 17,302
  • 6
  • 32
  • 46
ashok vadivelu
  • 493
  • 5
  • 12

1 Answers1

-1

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.

Megan Speir
  • 3,745
  • 1
  • 15
  • 25