Closed MrHertal closed 4 years ago
Here are some call sids:
CA5330ed040bc9199e50dbaaf017a1aa2b
CA9c7ae4311afe0a8ceb6c2f3ca37a1d9c
Hi @MrHertal
Thanks for reaching out. From the records of the Calls you provided, the last status of the Calls are completed
. Can you confirm that it's showing the same status in your developer console?
I do confirm
Thanks @MrHertal.
I think there is a misunderstanding, the issue is still here.
My problem is that I receive an incoming call, I answer this call, I call disconnect()
method on this call, callDidDisconnect
is triggered, but when I check the console, call has status Answered
.
After some time call has status Completed
(only when remote hangup).
Maybe I got it wrong but, disconnect()
is supposed to end the call on both sides right?
Hi @MrHertal thanks for the update. Yes, the disconnect()
method will end the connection between the local client and Twilio, as well as the remote client if it's a client-to-client or client-to-number call (disconnect
method should end the call for both call parties.
OK thanks for the explanation, it confirms I do have an issue with the disconnect()
method
As you can see, both sids are client-to-client calls. Both calls lasted about 44 seconds (which corresponds to the TwiML execution time).
But the TO
client client:leo
called disconnect()
method about 10 seconds after answering the calls.
Each time the TO
client calls disconnect()
method, call is still marked as Answered
. After TwiML execution ends, FROM
client client:quick_start
hangs up.
My issue is that client:leo
calling disconnect()
method should end call on both sides and call should not continue to execute TwiML
Thanks again for the update @MrHertal.
I checked again the Call SIDs and I think I know what's going on - in your Call API there is an URL (which is required) which generates a TwiML response with a couple of client:leo
. The call on leo
's side should end once .disconnect()
is called, but the first call originated from the Call API won't finish until all the
Ok i got it now 🙂 no issue
thanks for your help!
Description
I am unable to properly disconnect an incoming call after answering it. When I call the method
disconnect
, the delegate methodcallDidDisconnect
is triggered without error.But when I check the call in the Twilio console, it still has the
Answered
status and is only completed once the remote hangup.Steps to Reproduce
callDidDisconnect
is triggered without error but call hasAnswered
status in the Twilio consoleReproduces How Often
Call is not disconnected on every incoming calls, but it works well on outgoing calls.
Logs
Here are the logs from Mac console when I disconnect the call.
Versions
Using Swift.
Voice iOS SDK
6.0.0 via CocoaPods
Xcode
12
iOS Version
14
iOS Device
iPhone X