twilio / voice-quickstart-ios

Twilio Voice Quickstart for iOS with Swift
MIT License
183 stars 97 forks source link

Twilio Voice sdk end call not working on custom button for incoming call received IOS #568

Open projectsmindzsoft opened 1 week ago

projectsmindzsoft commented 1 week ago

Description

I am using the Twilio Voice SDK for handling incoming calls. When a call is received, the native iOS call UI appears, and I can successfully accept the call using the native UI's "Accept" button. Upon accepting, I am redirected to my app screen where I display additional call details.

However, when attempting to end the call using a custom "End Call" button inside my app, the call does not terminate. The custom button successfully triggers the appropriate delegate method, but the call remains active. It seems that while the delegate method is executed, the call itself does not end as expected.

Steps to Reproduce

  1. Receive an incoming call via Twilio Voice SDK. 2.Accept the call using the native iOS call UI. 3.Navigate to the app screen that displays call details. 4.Press the custom "End Call" button within the app. Observe that the call does not end, even though the delegate method is triggered.
// Code that helps reproduce the issue

Expected Behavior

The call should terminate when the custom "End Call" button is pressed, and the call should be disconnected as it would be when using the native UI to end the call.

Actual Behavior

The call remains active after pressing the custom button, even though the delegate method for ending the call is triggered. Can you please suggest us as what is wrong in above code why it is not ending call .

Reproduces How Often

Every time

Twilio Call SID(s)

You can find the Call SID in the SDK from TVOCall.sid or TVOCallInvite.callSid. The Call SID can also be found on the Twilio Calls Console: https://www.twilio.com/console/voice/calls/logs.

Logs

10.27.0 - [FirebaseMessaging][I-FCM001000] FIRMessaging Remote Notifications proxy enabled, will swizzle remote notification receiver handlers. If you'd prefer to manually integrate Firebase Messaging, add "FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow the instructions at: https://firebase.google.com/docs/cloud-messaging/ios/ client#method_swizzling_in_firebase_messaging to ensure proper integration. see >>>/var/mobile/Containers/Data/Application/DDBFC61F- AB54-417B-959E-07CA385053DD/Documents /var/mobile/Containers/Data/Application/DDBFC61F- AB54-417B-959E-07CA385053DD/Documents/Ribit.sqlite Database file already exist, so returning... Databse opened VoIP Push Token: ae44394bcacb1e8376c5007396fc0a34f7869f7de384c7f682644d7ee1ae6c35 Device token successfully saved in UserDefaults: e_ifoKGDWEbFv98SbXcxzn:APA91bFprWqrd3jb48ekEnroBHCwg0QH7g84-3F8R UGA5j3hYRjPBicF9G_bFz3XJ6Mj7Fec1gEHMnEDBvxY7n36ubFidUP1Tbz4Dhvj6 cG1B7MSpZ_GeQkZX1iKIKEBaV0megiGXSbQ Data deleted from table user inserted successful count of array is 0 Optional(32 bytes) DEBUG:Twilio:Platform : Using default home region INFO:Twilio:Platform : Background task started for registration/unregistration, identifer = 6 DEBUG:Twilio:Platform : Register for push notifications. DEBUG:Twilio:[Platform] (null): The default logger is used for app logs count of array is 0 count of array is 0 count of array is 0 providerDidBegin count of array is 10 DEBUG:Twilio:Platform : Completed registration request. DEBUG:Twilio:Platform : Registration location: https://ers.us1.twilio.com/v1/registrations/ cf0c8792c4e61b15eb0ea3ccf924e768 INFO:Twilio:Platform : Inside register:deviceToken:completion:, registered for Twilio push notifications. Successfully registered for VoIP push notifications.

DEBUG:Twilio:Platform : Ending registration/ unregistration background task, identifier = 6 DEBUG:Twilio:Platform : Registration/ unregistration background task ended pushRegistry:didReceiveIncomingPushWithPayload:forType:completio n: DEBUG:Twilio:Platform : Using default home region DEBUG:Twilio:Core : API Call create INFO:Twilio:Core : Creating peer connection signaling thread ... INFO:Twilio:Core : Creating peer connection worker thread ... INFO:Twilio:Core : Creating peer connection networking thread ... INFO:Twilio:Core : Creating media engine ... INFO:Twilio:Core : Done creating media engine. INFO:Twilio:Core : Creating peer connection factory ... INFO:Twilio:Core : Done creating peer connection factory. ERROR:Twilio:Platform : Cannot convert push notification payload key "aps". -[__NSDictionary0 stringValue]: unrecognized selector sent to instance 0x1e3a8c4f0 DEBUG:Twilio:Core : API Call handleMessage INFO:Twilio:Core : Creating dedicated notifier queue ... DEBUG:Twilio:Core : Selected edge - roaming Selected region - gll DEBUG:Twilio:Core : Initializing SIP stack ... DEBUG:Twilio:Core : Adding IPv4/IPv6 TLS transports ... DEBUG:Twilio:Core : Selected edge - roaming Selected region - gll INFO:Twilio:Signaling : RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ] ] INFO:Twilio:Signaling : RESIP::TRANSPORT: Creating TLS transport for domain interface= port=0 DEBUG:Twilio:Core : Selected edge - roaming Selected region - gll INFO:Twilio:Signaling : RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V4 0.0.0.0:0 UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0

INFO:Twilio:Signaling : RESIP::TRANSPORT: Creating TLS transport for domain interface= port=0 DEBUG:Twilio:Core : Initializing DUM ... DEBUG:Twilio:Core : Starting SIP stack thread ... DEBUG:Twilio:Core : Starting DUM thread ... DEBUG:Twilio:Core : API Call getSignalingThread DEBUG:Twilio:Core : API Call getNetworkingThread DEBUG:Twilio:Core : API Call getNetworkingThread DEBUG:Twilio:Core : <0x10510a000> CallImpl3 signalingclient<0x2837bc3b0> DEBUG:Twilio:Core : <0x10510a000> initializeThreadCheckers DEBUG:Twilio:Core : <0x10510a000> initialize signalingclient<0x2837bc3b0> DEBUG:Twilio:Core : <0x280ebf400> Starting the Network Manager DEBUG:Twilio:Core : <0x280eb84e0> RtcMonitor DEBUG:Twilio:Core : AppleReachability::AppleReachability() DEBUG:Twilio:Core : Creating zeroAddrReachability DEBUG:Twilio:Core : API Call getFrom DEBUG:Twilio:Core : <0x10510a000> listen signalingclient<0x2837bc3b0> DEBUG:Twilio:Core : API Call getFrom DEBUG:Twilio:Core : API Call getTo DEBUG:Twilio:Core : API Call getCallSid DEBUG:Twilio:Core : API Call getFrom DEBUG:Twilio:Core : API Call getTo DEBUG:Twilio:Core : API Call getCallSid DEBUG:Twilio:Core : ListenerImpl DEBUG:Twilio:Core : Started listen no-op timer for 599999 ms DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : twilio::voice::AsyncDnsResolver::AsyncDnsResolver(std::weak_ptr< DnsResolverObserver>) DEBUG:Twilio:Core : API Call getCallSid DEBUG:Twilio:Core : API Call getTo DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AsyncDnsResolver resolving hostname = chunderm.gll.twilio.com DEBUG:Twilio:Core : API Call getCallerInfo DEBUG:Twilio:Core : isVerified DEBUG:Twilio:Core : isVerified callInviteReceived: DEBUG:Twilio:Core : API Call getFrom

Incoming Call: from +917891667610, to client:pradeeptestone@mailinator.com, callSid CA1af6ed1eb16f3b42f76c1b1e69965473 INFO:Twilio:Platform : Inside publishConnectionEvent:, event name: incoming INFO:Twilio:Platform : Inside publishConnectionEvent:, event name: listen Incoming call successfully reported. DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AsyncDnsResolver Resolved ip_addr = 64:ff9b::36a9:42d3, error = 0 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : virtual void twilio::voice::SipClient::onResolveResult(twilio::voice::AsyncDn sResolver *, std::string, int) DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : onResolveResult for listen, hostname = sip:chunderm.gll.twilio.com:443;transport=tls, ip_addr = 64:ff9b::36a9:42d3 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : New SipCall ..., this=0x1058cc200, handle = 1 INFO:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Setting outbound proxy to: sip:

DEBUG:Twilio:Core : Socket created in resip/ stack/TcpBaseTransport.cxx at line 223, transport: 1, socket: 30 INFO:Twilio:Signaling : RESIP::TRANSPORT: Connection::Connection: new connection created to who: [ V6 64:ff9b::36a9:42d3 port=443 TLS target domain=64:ff9b::36a9:42d3 mFlowKey=30 ] INFO:Twilio:Signaling : RESIP::TRANSPORT: Creating TLS connection for domain [ V6 64:ff9b::36a9:42d3 port=443 TLS target domain=64:ff9b::36a9:42d3 mFlowKey=0 ] on 30 INFO:Twilio:Signaling : RESIP::TRANSPORT: TLS handshake starting (client mode) INFO:Twilio:Signaling : RESIP::TRANSPORT: TLS connected INFO:Twilio:Signaling : RESIP::TRANSPORT: TLS connected INFO:Twilio:Signaling : RESIP::TRANSPORT: TLS sessions set up with TLSv1.2 TLSv1/SSLv3 ECDHE-RSA-AES128-GCM- SHA256 INFO:Twilio:Signaling : RESIP::SIP: subjectAltName of TLS session cert contains DNS

INFO:Twilio:[Signaling](0x16d7b7000) : RESIP::SIP: subjectAltName of TLS session cert contains DNS INFO:Twilio:[Signaling](0x16d7b7000) : RESIP::SIP: subjectAltName of TLS session cert contains DNS INFO:Twilio:[Signaling](0x16d7b7000) : RESIP::TRANSPORT: Peer names - chunderm.sg1.twilio.com, chunderm.gll.twilio.com, chunderm-sg1.twilio.com INFO:Twilio:[Signaling](0x16d7b7000) : RESIP::TRANSPORT: TLS handshake done for peer chunderm.sg1.twilio.com, chunderm.gll.twilio.com, chunderm-sg1.twilio.com INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Got: SipResp: 100 tid=0c599a613ea98cb2 cseq=1 INVITE / 1 from(wire) { } data = { }; "caller_name" = "Unknown Caller"; "camp_creator" = "Fulton Bernard Developer"; "campaign_name" = "Test Campaign N"; "vehicle_type" = "No Vehicle"; message = "Api run successfully."; status = 200; INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Got: SipResp: 180 tid=0c599a613ea98cb2 cseq=1 INVITE contact=172.19.65.x:10193 / 1 from(wire) INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Transition UAC_Start -> UAC_Early DEBUG:Twilio:[Core](0x16dc17000) : mapToSipCall handle id is 1 DEBUG:Twilio:[Core](0x16dc17000) : casting handle id 1 to SipCall DEBUG:Twilio:[Core](0x16dc17000) : onNewSession: SIP/2.0 180 Ringing Via: SIP/2.0/TLS [2409:4085:3e3e:f7b2:e41f:97dc:521b:a02a];received=157.38.148.95 ;branch=z9hG4bK-524287-1---0c599a613ea98cb2;rport=61026 Record-Route: Record-Route: Contact: To: From: ;tag=a3c888f7 Call-ID: bidnhQq-ndu0p86I26STDw.. CSeq: 1 INVITE Server: Twilio X-Twilio-CallSid: CA1af6ed1eb16f3b42f76c1b1e69965473 X-Twilio-EdgeHost: chunderm0.sg1.twilio.com X-Twilio-EdgeRegion: sg1 X-Twilio-Zone: ASIAPAC_SINGAPORE ;tag=01161321_c33 56d0b_b2ff4900-5296-420e-922f-27e99a0e1ea8 Content-Length: 0 DEBUG:Twilio:[Core](0x16dc17000) : onNewCall INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: UAC_Early: startStaleCallTimer DEBUG:Twilio:[Core](0x16dc17000) : mapToSipCall handle id is 1 DEBUG:Twilio:[Core](0x16dc17000) : casting handle id 1 to SipCall DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : isInvalidated DEBUG:Twilio:[Core](0x16dc17000) : onProvisional: SIP/2.0 180 Ringing Via: SIP/2.0/TLS [2409:4085:3e3e:f7b2:e41f:97dc:521b:a02a];received=157.38.148.95 ;branch=z9hG4bK-524287-1---0c599a613ea98cb2;rport=61026 Record-Route: Record-Route: Contact: To: From: ;tag=a3c888f7 Call-ID: bidnhQq-ndu0p86I26STDw.. CSeq: 1 INVITE Server: Twilio X-Twilio-CallSid: CA1af6ed1eb16f3b42f76c1b1e69965473 X-Twilio-EdgeHost: chunderm0.sg1.twilio.com X-Twilio-EdgeRegion: sg1 X-Twilio-Zone: ASIAPAC_SINGAPORE ;tag=01161321_c33 56d0b_b2ff4900-5296-420e-922f-27e99a0e1ea8 Content-Length: 0 DEBUG:Twilio:[Core](0x16dc17000) : onRinging DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : isInvalidated DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AppleReachability started listening to the address pair on socket 30 -1. DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AppleReachability::onConnectionEstablished, socket_fd = 30 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AppleReachability started listening on address pair on 30 socket INFO:Twilio:[Platform](0x1de475900) : Inside publishConnectionEvent:, event name: listening provider:performAnswerCallAction: DEBUG:Twilio:[Core](0x1de475900) : API Call createAudioSource DEBUG:Twilio:[Core](0x1de475900) : API Call createAudioTrack INFO:Twilio:[Core](0x1de475900) : Adding audio track ... DEBUG:Twilio:[Core](0x1de475900) : API Call getFrom DEBUG:Twilio:[Core](0x1de475900) : API Call getTo DEBUG:Twilio:[Core](0x1de475900) : API Call accept DEBUG:Twilio:[Core](0x1de475900) : API Call getNetworkingThread DEBUG:Twilio:[Core](0x1de475900) : NetworkManager DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> accept signaling_client_<0x2837bc3b0> DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> connect DEBUG:Twilio:[Core](0x1de475900) : API Call RTCIceServers DEBUG:Twilio:[Core](0x1de475900) : API Call RTCIceServer INFO:Twilio:[Core](0x1de475900) : Creating peer connection ... DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> disconnectListener DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : SipClient::disconnect DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : invalidate DEBUG:Twilio:[Core](0x16dc17000) : virtual void twilio::voice::SipCall::DisconnectCommand::executeCommand() INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: UAC_Early: cancel INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: UAC_Early: startCancelTimer INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Transition UAC_Early -> UAC_Cancelled DEBUG:Twilio:[Core](0x1de475900) : API Call getWebRtcTrack INFO:Twilio:[Core](0x1de475900) : Added a Track, created a sender with Id: dFB287E4466A2a3d8a86adA9eF5dd8c5 DEBUG:Twilio:[Core](0x1de475900) : Create initial local offer DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> onCreateSessionLocalDescription DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Signaling state: have-local-offer DEBUG:Twilio:[Platform](0x1de475900) : -[TVOLocalAudioTrack dealloc] DEBUG:Twilio:[Platform](0x1de475900) : -[TVOAudioTrack dealloc] DEBUG:Twilio:[Platform](0x1de475900) : -[TVOCallInvite dealloc] DEBUG:Twilio:[Platform](0x1de475900) : -[TVOCallerInfo dealloc] DEBUG:Twilio:[Core](0x1de475900) : ~CallInviteImpl DEBUG:Twilio:[Core](0x1de475900) : ~CallerInfoImpl DEBUG:Twilio:[Platform](0x1de475900) : Received signaling-state event: have-local-offer DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::networking 0x0x281b8df80) : GetNetworks DEBUG:Twilio:[Core](MediaFactoryImpl::networking 0x0x281b8df80) : GetMutableNetworks DEBUG:Twilio:[Core](MediaFactoryImpl::networking 0x0x281b8df80) : GetNetworks DEBUG:Twilio:[Core](MediaFactoryImpl::networking 0x0x281b8df80) : GetMutableNetworks INFO:Twilio:[Platform](0x1de475900) : Inside publishConnectionEvent:, event name: accepted-by-local DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> onSetSessionLocalDescription DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Local SDP - v=0 o=- 8978090904741823148 2 IN IP4 127.0.0.x s=- t=0 0 a=group:BUNDLE 0 a=extmap-allow-mixed a=msid-semantic: WMS 0c30454df5c03Be0a93d364d17eDaD25 m=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126 c=IN IP4 0.0.0.0 a=rtcp:9 IN IP4 0.0.0.0 a=ice-ufrag:+soq a=ice-pwd:6h5mfCHW6E0T+x3T4JJxMRT6 a=ice-options:trickle a=setup:actpass a=mid:0 a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level a=fingerprint:sha-256 28:69:6C:A8:29:6D:92:9B:3E:57:3B:99:BD:4E:87:83:48:3A:C7:0F:91:5 B:75:97:F2:68:76:0E:7B:77:1B:C3 a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs- send-time a=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport- wide-cc-extensions-01 a=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid a=sendrecv a=rtcp-mux a=rtpmap:111 opus/48000/2 a=rtcp-fb:111 transport-cc a=fmtp:111 minptime=10;useinbandfec=1 a=rtpmap:63 red/48000/2 a=fmtp:63 111/111 a=rtpmap:9 G722/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:13 CN/8000 a=rtpmap:110 telephone-event/48000 a=rtpmap:126 telephone-event/8000 a=ssrc:2908010383 cname:Qqgqs2L0zR55rhge a=msid:0c30454df5c03Be0a93d364d17eDaD25 dFB287E4466A2a3d8a86adA9eF5dd8c5 a=ssrc:2908010383 msid:0c30454df5c03Be0a93d364d17eDaD25 dFB287E4466A2a3d8a86adA9eF5dd8c5 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : twilio::voice::AsyncDnsResolver::AsyncDnsResolver(std::weak_ptr< DnsResolverObserver>) DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AsyncDnsResolver resolving hostname = chunderm.gll.twilio.com DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Gathered ICE candidate: candidate:942352580 1 udp 2122260223 169.254.22.x 52225 typ host generation 0 ufrag +soq network-id 1 network-cost 10, id: ay3ZKhTe DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Gathered ICE candidate: candidate:522380539 1 udp 2122197247 2409:4085:3e3e:f7b2:e41f:97dc:521b:a02a 50131 typ host generation 0 ufrag +soq network-id 7 network-cost 900, id: G2/ xxD6d DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Gathered ICE candidate: candidate:4215220670 1 udp 2122131711 2409:4012:6e4b:4137:c838:57c1:61b2:2ff3 54762 typ host generation 0 ufrag +soq network-id 8 network-cost 900, id: Qx5PrhWj DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Gathered ICE candidate: candidate:3227061606 1 udp 2122063615 192.0.0.2 58302 typ host generation 0 ufrag +soq network-id 6 network-cost 900, id: xZjmshMk DEBUG:Twilio:[Platform](0x1de475900) : Received ICE event. Group: ice-gathering-state Name: gathering DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Gathered ICE candidate: candidate:1537674840 1 udp 2122003199 fdb5:a84c:b827::1 52818 typ host generation 0 ufrag +soq network-id 9 network-cost 50, id: 229FFxM2 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Gathered ICE candidate: candidate:2348676646 1 udp 2121935103 2409:4012:6e4b:4137:1878:d0c6:ee0d:8cb1 62085 typ host generation 0 ufrag +soq network-id 2 network-cost 50, id: XJXa9dLX DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Gathered ICE candidate: candidate:2348676646 1 udp 2121869567 2409:4012:6e4b:4137:1878:d0c6:ee0d:8cb1 53484 typ host generation 0 ufrag +soq network-id 3 network-cost 50, id: 72AYBRvG DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AsyncDnsResolver Resolved ip_addr = 64:ff9b::36a9:42d3, error = 0 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : virtual void twilio::voice::SipClient::onResolveResult(twilio::voice::AsyncDn sResolver *, std::string, int) DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : onResolveResult for connect, hostname = sip:chunderm.gll.twilio.com:443;transport=tls, ip_addr = 64:ff9b::36a9:42d3 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : New SipCall ..., this=0x10510e000, handle = 4 INFO:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Setting outbound proxy to: sip: [64:ff9b::36a9:42d3]:443;transport=tls WARN:Twilio:[Signaling](0x16d7b7000) : RESIP::TRANSPORT: Can't find matching transport [ V6 2409:4085:3e3e:f7b2:e41f:97dc:521b:a02a port=0 TLS target domain=unspecified mFlowKey=0 ] INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Got: SipResp: 200 tid=0c599a613ea98cb2 cseq=1 CANCEL / 1 from(wire) INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Got: SipResp: 487 tid=0c599a613ea98cb2 cseq=1 INVITE contact=172.19.65.x:10193 / 1 from(wire) INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Transition UAC_Cancelled -> InviteSession::Terminated DEBUG:Twilio:[Core](0x16dc17000) : mapToSipCall handle id is 1 DEBUG:Twilio:[Core](0x16dc17000) : casting handle id 1 to SipCall DEBUG:Twilio:[Core](0x16dc17000) : onTerminated: reason 5, this=0x1058cc200 DEBUG:Twilio:[Core](0x16dc17000) : onTerminated DEBUG:Twilio:[Core](0x16dc17000) : ~SipCall(): 0x1058cc200 INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Got: SipResp: 100 tid=86e1353a26ca6f7d cseq=1 INVITE / 1 from(wire) provider:didActivateAudioSession: INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Got: SipResp: 200 tid=86e1353a26ca6f7d cseq=1 INVITE contact=172.19.65.x:10193 / 1 from(wire) INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Transition UAC_Start -> InviteSession::Connected INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Sending SipReq: ACK 172.19.65.x:10193 tid=9073a17311209941 cseq=1 ACK contact=VoiceSDK / 1 from(tu) DEBUG:Twilio:[Core](0x16dc17000) : mapToSipCall handle id is 4 DEBUG:Twilio:[Core](0x16dc17000) : casting handle id 4 to SipCall DEBUG:Twilio:[Core](0x16dc17000) : onNewSession: SIP/2.0 200 OK Via: SIP/2.0/TLS [2409:4085:3e3e:f7b2:e41f:97dc:521b:a02a];received=157.38.148.95 ;branch=z9hG4bK-524287-1---86e1353a26ca6f7d;rport=61026 Record-Route: Record-Route: Contact: To: From: ;tag=5aff4dd0 Call-ID: vz6r6f8AWGNv6Ma7E-JQKw.. CSeq: 1 INVITE Allow: INVITE, ACK, CANCEL, OPTIONS, BYE Content-Type: application/sdp Server: Twilio X-Twilio-CallSid: CA1af6ed1eb16f3b42f76c1b1e69965473 X-Twilio-EdgeHost: chunderm0.sg1.twilio.com X-Twilio-EdgeRegion: sg1 X-Twilio-Zone: ASIAPAC_SINGAPORE Content-Length: 1065 ;tag=29796274_c33 56d0b_736ea812-22a8-4ea3-bfc0-3178366f6715 v=0 o=root 792304611 792304611 IN IP4 172.19.93.x s=Twilio Media Gateway c=IN IP4 168.86.153.234 t=0 0 a=group:BUNDLE 0 a=ice-lite m=audio 15380 RTP/SAVPF 111 0 126 a=rtpmap:111 opus/48000/2 a=fmtp:111 useinbandfec=1 a=rtpmap:0 PCMU/8000 a=rtpmap:126 telephone-event/8000 a=fmtp:126 0-16 a=ptime:20 a=maxptime:20 a=ice-ufrag:714fbde50335bd8f44e165871828caef a=ice-pwd:73b52cc2586a35497f7e41de2eeb99e3 a=candidate:Ha85699ea 1 UDP 2130706431 168.86.153.234 15380 typ host a=end-of-candidates a=connection:new a=setup:active a=fingerprint:sha-256 8D:25:11:D8:FC:B9:B2:75:F2:D8:C8:88:FF:B9:43:57:E5:BE:D1:97:BB:A 4:81:AA:D2:22:38:8C:2C:CA:BC:3C a=mid:0 a=ssrc:1676273166 mslabel:9e7131cc-7174-41b5-815b-7ad53cee63f0 a=ssrc:1676273166 label:2ab93f17-d34d-46bf-b2d7-7f9cdbe5a6cd a=rtcp-mux a=ssrc:1676273166 cname:ba795195-01bc-4ea6-a85e-0af070ede379 a=msid:9e7131cc-7174-41b5-815b-7ad53cee63f0 2ab93f17-d34d-46bf- b2d7-7f9cdbe5a6cd a=ssrc:1676273166 msid:9e7131cc-7174-41b5-815b-7ad53cee63f0 2ab93f17-d34d-46bf-b2d7-7f9cdbe5a6cd a=sendrecv DEBUG:Twilio:[Core](0x16dc17000) : <0x10510a000> onNewCall DEBUG:Twilio:[Core](0x16dc17000) : mapToSipCall handle id is 4 DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x16dc17000) : casting handle id 4 to SipCall DEBUG:Twilio:[Core](0x16dc17000) : onAnswer: SIP/2.0 200 OK Via: SIP/2.0/TLS [2409:4085:3e3e:f7b2:e41f:97dc:521b:a02a];received=157.38.148.95 ;branch=z9hG4bK-524287-1---86e1353a26ca6f7d;rport=61026 Record-Route: Record-Route: Contact: To: From: ;tag=5aff4dd0 Call-ID: vz6r6f8AWGNv6Ma7E-JQKw.. ;tag=29796274_c33 56d0b_736ea812-22a8-4ea3-bfc0-3178366f6715 CSeq: 1 INVITE Allow: INVITE, ACK, CANCEL, OPTIONS, BYE Content-Type: application/sdp Server: Twilio X-Twilio-CallSid: CA1af6ed1eb16f3b42f76c1b1e69965473 X-Twilio-EdgeHost: chunderm0.sg1.twilio.com X-Twilio-EdgeRegion: sg1 X-Twilio-Zone: ASIAPAC_SINGAPORE Content-Length: 1065 v=0 o=root 792304611 792304611 IN IP4 172.19.93.x s=Twilio Media Gateway c=IN IP4 168.86.153.234 t=0 0 a=group:BUNDLE 0 a=ice-lite m=audio 15380 RTP/SAVPF 111 0 126 a=rtpmap:111 opus/48000/2 a=fmtp:111 useinbandfec=1 a=rtpmap:0 PCMU/8000 a=rtpmap:126 telephone-event/8000 a=fmtp:126 0-16 a=ptime:20 a=maxptime:20 a=ice-ufrag:714fbde50335bd8f44e165871828caef a=ice-pwd:73b52cc2586a35497f7e41de2eeb99e3 a=candidate:Ha85699ea 1 UDP 2130706431 168.86.153.234 15380 typ host a=end-of-candidates a=connection:new a=setup:active a=mid:0 a=ssrc:1676273166 mslabel:9e7131cc-7174-41b5-815b-7ad53cee63f0 a=ssrc:1676273166 label:2ab93f17-d34d-46bf-b2d7-7f9cdbe5a6cd a=rtcp-mux a=ssrc:1676273166 cname:ba795195-01bc-4ea6-a85e-0af070ede379 a=fingerprint:sha-256 8D:25:11:D8:FC:B9:B2:75:F2:D8:C8:88:FF:B9:43:57:E5:BE:D1:97:BB:A 4:81:AA:D2:22:38:8C:2C:CA:BC:3C a=msid:9e7131cc-7174-41b5-815b-7ad53cee63f0 2ab93f17-d34d-46bf- b2d7-7f9cdbe5a6cd a=ssrc:1676273166 msid:9e7131cc-7174-41b5-815b-7ad53cee63f0 2ab93f17-d34d-46bf-b2d7-7f9cdbe5a6cd a=sendrecv DEBUG:Twilio:[Core](0x16dc17000) : Notify signaling observer of onAnswer DEBUG:Twilio:[Core](0x16dc17000) : <0x10510a000> onAnswer DEBUG:Twilio:[Core](0x16dc17000) : mapToSipCall handle id is 4 DEBUG:Twilio:[Core](0x16dc17000) : casting handle id 4 to SipCall DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AppleReachability started listening to the address pair on socket 30 -1. DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AppleReachability::onConnectionEstablished, socket_fd = 30 DEBUG:Twilio:[Core](0x16dc17000) : onConnected: SIP/2.0 200 OK Via: SIP/2.0/TLS [2409:4085:3e3e:f7b2:e41f:97dc:521b:a02a];received=157.38.148.95 ;branch=z9hG4bK-524287-1---86e1353a26ca6f7d;rport=61026 Record-Route: Record-Route: Contact: To: From: ;tag=5aff4dd0 Call-ID: vz6r6f8AWGNv6Ma7E-JQKw.. CSeq: 1 INVITE Allow: INVITE, ACK, CANCEL, OPTIONS, BYE Content-Type: application/sdp Server: Twilio X-Twilio-CallSid: CA1af6ed1eb16f3b42f76c1b1e69965473 X-Twilio-EdgeHost: chunderm0.sg1.twilio.com X-Twilio-EdgeRegion: sg1 X-Twilio-Zone: ASIAPAC_SINGAPORE Content-Length: 1065 ;tag=29796274_c33 56d0b_736ea812-22a8-4ea3-bfc0-3178366f6715 v=0 o=root 792304611 792304611 IN IP4 172.19.93.x s=Twilio Media Gateway c=IN IP4 168.86.153.234 t=0 0 a=group:BUNDLE 0 a=ice-lite m=audio 15380 RTP/SAVPF 111 0 126 a=rtpmap:111 opus/48000/2 a=fmtp:111 useinbandfec=1 a=rtpmap:0 PCMU/8000 a=rtpmap:126 telephone-event/8000 a=fmtp:126 0-16 a=ptime:20 a=maxptime:20 a=ice-ufrag:714fbde50335bd8f44e165871828caef a=ice-pwd:73b52cc2586a35497f7e41de2eeb99e3 a=candidate:Ha85699ea 1 UDP 2130706431 168.86.153.234 15380 typ host a=end-of-candidates a=connection:new a=setup:active a=fingerprint:sha-256 8D:25:11:D8:FC:B9:B2:75:F2:D8:C8:88:FF:B9:43:57:E5:BE:D1:97:BB:A 4:81:AA:D2:22:38:8C:2C:CA:BC:3C a=mid:0 a=ssrc:1676273166 mslabel:9e7131cc-7174-41b5-815b-7ad53cee63f0 a=ssrc:1676273166 label:2ab93f17-d34d-46bf-b2d7-7f9cdbe5a6cd a=rtcp-mux a=ssrc:1676273166 cname:ba795195-01bc-4ea6-a85e-0af070ede379 a=msid:9e7131cc-7174-41b5-815b-7ad53cee63f0 2ab93f17-d34d-46bf- b2d7-7f9cdbe5a6cd a=ssrc:1676273166 msid:9e7131cc-7174-41b5-815b-7ad53cee63f0 2ab93f17-d34d-46bf-b2d7-7f9cdbe5a6cd a=sendrecv DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : AppleReachability started listening on address pair on 30 socket DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Peer connection state = new, Ice connection state = new DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> setRemoteDescription DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Signaling state: stable DEBUG:Twilio:[Platform](0x1de475900) : Received signaling-state event: stable DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> OnIceConnectionChange DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Call State: Connecting ICE connection state: checking DEBUG:Twilio:[Platform](0x1de475900) : Received ICE event. Group: ice-connection-state Name: checking DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Remote MediaStreamTrack added with kind = audio, mid = 0 INFO:Twilio:[Platform](0x1de475900) : Inside publishConnectionEvent:, event name: accepted-by-remote DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Gathered ICE candidate: candidate:741020560 1 udp 1685855999 157.38.151.121 58302 typ srflx raddr 192.0.0.2 rport 58302 generation 0 ufrag +soq network-id 6 network-cost 900, id: RB7zUsVS DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> OnConnectionChange DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Call State: Connecting PeerConnection state: connecting DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> onSetSessionRemoteDescription DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Platform](0x1de475900) : Received Peer Connection State event. Group: pc-connection-state Name: connecting INFO:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Looking up: 168.86.153.234 DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Address family: 30: 64:ff9b::a856:99ea DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Address family: 30: 64:ff9b::a856:99ea INFO:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Synthesized an IPv6 candidate: 64:ff9b::a856:99ea from: 168.86.153.234 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Added a synthesized IPv6 host candidate: [64:ff9b::a856:99ea]:15380 DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> OnIceSelectedCandidatePairChanged DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Selected Local ICE candidate: Cand[:625198509:1:udp:1853761791:157.38.148.95:50131:prflx: [2409:4085:3e3e:f7b2:e41f:97dc:521b:a02a]:50131:+soq:6h5mfCHW6E0 T+x3T4JJxMRT6:7:900:0], id: peh+hnsJ DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Selected Remote ICE candidate: Cand[:Ha85699ea:1:udp:2130706431: [64:ff9b::a856:99ea]:15380:local::0:714fbde50335bd8f44e165871828 caef:73b52cc2586a35497f7e41de2eeb99e3:0:0:0], id: AypJNCQt DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Platform](0x1de475900) : Received ICE event. Group: ice-gathering-state Name: complete DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> OnConnectionChange DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Call State: Connecting PeerConnection state: connected DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> void twilio::voice::CallImpl::handlePeerConnectionStateConnected() DEBUG:Twilio:[Platform](0x1de475900) : Received Peer Connection State event. Group: pc-connection-state Name: connected DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Set connected state: kPeerConnectionConnected received DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> getMetrics DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : setupNetworkMonitor DEBUG:Twilio:[Core](0x1de475900) : Invoking onConnected. callDidConnect: performAnswerVoiceCall() successful INFO:Twilio:[Platform](0x1de475900) : Inside publishConnectionEvent:, event name: connected DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : setupIceActivityMonitor DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : IceConnectionActivityMonitor::create DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> OnIceConnectionChange DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Call State: Connected ICE connection state: connected DEBUG:Twilio:[Platform](0x1de475900) : Received ICE event. Group: ice-connection-state Name: connected DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> OnIceConnectionChange DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Call State: Connected ICE connection state: completed DEBUG:Twilio:[Platform](0x1de475900) : Received ICE event. Group: ice-connection-state Name: completed DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> handleIceConnectionCompleted DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> processReportAndPostEvent DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Tracking activity for nominated ICE candidate pair CPpeh+hnsJ_AypJNCQt Reject button clicked Active call found, initiating disconnect Performing end call action for UUID: F7899354-5791-4314- BAFE-6AC79506BE4E EndCallAction transaction request successful provider:performEndCallAction: INFO:Twilio:[Platform](0x1de475900) : Background task started for disconnect, identifer = 30 DEBUG:Twilio:[Core](0x1de475900) : API Call disconnect DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> disconnect INFO:Twilio:[Platform](0x1de475900) : Inside publishConnectionEvent:, event name: disconnect-called DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> OnIceConnectionChange DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Call State: Connected ICE connection state: closed DEBUG:Twilio:[Platform](0x1de475900) : Received ICE event. Group: ice-connection-state Name: closed DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> OnConnectionChange DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Call State: Connected PeerConnection state: closed DEBUG:Twilio:[Platform](0x1de475900) : Received Peer Connection State event. Group: pc-connection-state Name: closed DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Signaling state: closed DEBUG:Twilio:[Platform](0x1de475900) : Received signaling-state event: closed DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid provider:didDeactivateAudioSession: DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> disconnectOnce DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : SipClient::disconnect DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> getMetrics DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Peer connection is closed or deleted or call is disconnected or disconnect in progress ERROR:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Peer Connection is Closed or destroyed DEBUG:Twilio:[Core](0x16dc17000) : virtual void twilio::voice::SipCall::DisconnectCommand::executeCommand() INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: InviteSession::Connected: end INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: ;tag=5aff4dd0 Sending BYE INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Transition InviteSession::Connected -> InviteSession::Terminated DEBUG:Twilio:[Core](0x16dc17000) : mapToSipCall handle id is 4 DEBUG:Twilio:[Core](0x16dc17000) : casting handle id 4 to SipCall DEBUG:Twilio:[Core](0x16dc17000) : onTerminated: reason 3, this=0x10510e000 DEBUG:Twilio:[Core](0x16dc17000) : <0x10510a000> onTerminated: signaling_client_(0x2837bc3b0) INFO:Twilio:[Platform](0x1de475900) : Inside publishConnectionEvent:, event name: disconnected-by-local DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](0x1de475900) : API Call getSid DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x10510a000> stopDependents DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Stopping the Network Manager... DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x280ebf400> ~NetworkMonitor DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x28078ddd0> IceConnectionActivityMonitor::stop DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x28078ddd0> IceConnectionActivityMonitor::~IceConnectionActivityMonitor DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : <0x280eb84e0> ~RtcMonitor DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> Invoking onDisconnected. Call disconnected DEBUG:Twilio:[Platform](0x1de475900) : dealloc. DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> willDestroy: signaling_client_(0x2837bc3b0) DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> Waiting to synchronize signaling thread DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> synchronization is done for signaling thread DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : reset signaling client DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : ~SignalingClient DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Shutting down DUM thread ... INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: Got: SipResp: 200 tid=f0dc26d5a4ee07ac cseq=2 BYE / 2 from(wire) INFO:Twilio:[Signaling](0x16dc17000) : RESIP::DUM: InviteSession::dispatchTerminated SipResp: 200 tid=f0dc26d5a4ee07ac cseq=2 BYE / 2 from(wire) DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Shutting down SIP stack thread ... INFO:Twilio:[Signaling](0x16d7b7000) : RESIP::SIP: Shutting down stack thread DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : Deleting previously cached listen set ids DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : virtual twilio::voice::AsyncDnsResolver::~AsyncDnsResolver() DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : virtual twilio::voice::AsyncDnsResolver::~AsyncDnsResolver() INFO:Twilio:[Signaling](MediaFactoryImpl::signaling 0x0x281b8df80) : RESIP::DUM: DialogUsageManager::destroy() not posting to stack DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : ~SipCall(): 0x10510e000 WARN:Twilio:[Signaling](MediaFactoryImpl::signaling 0x0x281b8df80) : RESIP::TRANSACTION: On shutdown, there are Client TransactionStates remaining! DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> Completing pending and in-progress signaling thread calls. DEBUG:Twilio:[Core](0x1de475900) : ~NetworkManager DEBUG:Twilio:[Core](0x1de475900) : API Call getWorkerThread DEBUG:Twilio:[Core](0x1de475900) : Synchronize the worker thread DEBUG:Twilio:[Platform](0x1de475900) : Ending disconnect background task, identifier = 30 DEBUG:Twilio:[Platform](0x1de475900) : Disconnect background task ended DEBUG:Twilio:[Platform](0x1de475900) : -[TVOMediaFactory dealloc] DEBUG:Twilio:[Core](0x1de475900) : <0x10510a000> ~CallImpl DEBUG:Twilio:[Core](0x1de475900) : ~ListenerImpl DEBUG:Twilio:[Core](MediaFactoryImpl::signaling 0x0x281b8df80) : invalidate DEBUG:Twilio:[Core](0x1de475900) : AppleReachability::~AppleReachability() INFO:Twilio:[Core](0x1de475900) : ~AudioMediaFactoryImpl Reject button clicked No active calls, hiding incoming call view ``` // Log output when the issue occurs ``` ### Versions All relevant version information for the issue. #### Voice iOS SDK 6.11.1 via CocoaPods #### Xcode Version 15.1 (15C65) #### iOS Version 17.3.1 #### iOS Device iphone 11
bobiechen-twilio commented 1 week ago

Hi @projectsmindzsoft

Thanks for reaching out. From the debug message I can see both the Voice SDK call-disconnected delegate, which indicates the signaling and media connections are disconnected, and the CallKit provider:performEndCallAction: callback, which indicates CallKit has acknowledged and approved the end-call action. Together they should mean that the call was disconnected properly. When you said "the call itself does not end as expected", did you mean the call is still showing on the native call UI, or the call audio was still flowing?