Closed Shruti2208 closed 2 years ago
Hello,
This is Nikolay from QuickBlox support.
Please let me know if the issue is still relevant.
Please check our documentation: https://docs.quickblox.com/docs/ios-video-calling
Also, please update the SDK to the latest version: https://github.com/QuickBlox/quickblox-ios-sdk/releases/tag/2.17.10
Additionally, please check our samples: https://docs.quickblox.com/docs/code-samples#video-calling-samples
@Shruti2208 The issue is being closed as outdated.
If it is still relevant, feel free to open a new issue.
I'm trying to make a call from 1 simulator to another. The call appears but gets disconnected on its own.Please guide.
Below are my logs
2020-04-13 16:40:58.792 rtc::[RTCClient] Initializing SSL... 2020-04-13 16:40:58.792 rtc::Create audio track: RTCMediaStreamTrack: audio audioTrack enabled Live 2020-04-13 16:40:58.792 rtc::[SESS]<7FB4ED16-36CC-4ED0-ADB6-1EE4A378D13E, I:106077683, O:[106525069], T:A> Init. 2020-04-13 16:40:58.793 rtc::[RTCClient] <QBRTCClient: 0x600000b94280> created new [SESS]<7FB4ED16-36CC-4ED0-ADB6-1EE4A378D13E, I:106077683, O:[106525069], T:A> 2020-04-13 16:40:58.812208+0530 sample-videochat-webrtc-swift[49131:1448808] [QBCore]: Request[10]: POST URL:https://api.quickblox.com/events.json headers: { "Accept-Language" = "en;q=1"; "Content-Type" = "application/x-www-form-urlencoded"; "QB-OS" = "iOS 13.3"; "QB-SDK" = "iOS 2.17.4"; "QB-Token" = 01c0c98a1544d3e6f4a6322a1661f8fbc2013dce; "QuickBlox-REST-API-Version" = "0.1.1"; "User-Agent" = "sample-videochat-webrtc-swift/4.0.2 (iPhone; iOS 13.3; Scale/3.00)"; } parameters: { event = { environment = development; "event_type" = "one_shot"; message = "ewogICJWT0lQQ2FsbCIgOiAiMSIsCiAgIm1lc3NhZ2UiIDogInNocnV0aTIyMDggaXMgY2FsbGluZyB5b3UuIiwKICAiaW9zX3ZvaXAiIDogIjEiCn0="; "notification_type" = push; user = { ids = 106525069; }; }; } 2020-04-13 16:40:58.817798+0530 sample-videochat-webrtc-swift[49131:1434801] [Storyboard] Unknown class OpponentsFlowLayout in Interface Builder file. 2020-04-13 16:40:58.822 rtc::[RTCClient] Added <sample_videochat_webrtc_swift.CallViewController: 0x7f856a0b7e00> to list of delegates 2020-04-13 16:40:58.823 rtc::[RTCClient] List of Delegates ( "<sample_videochat_webrtc_swift.UsersViewController: 0x7f8569723b00>", "<sample_videochat_webrtc_swift.CallViewController: 0x7f856a0b7e00>" ) 2020-04-13 16:40:58.823 rtc::[QBRTCAudioSession] Initializing QBRTCAudioSession using configuration: <QBRTCAudioSessionConfiguration: 0x600001ebe500, Category: AVAudioSessionCategoryPlayAndRecord, Category options: 102, Mode: AVAudioSessionModeVoiceChat> 2020-04-13 16:40:58.823 rtc::[QBRTCAudioSession] Current audio device was updated to Speaker 2020-04-13 16:40:58.839 rtc::[SESS]<7FB4ED16-36CC-4ED0-ADB6-1EE4A378D13E, I:106077683, O:[106525069], T:A> Start call 2020-04-13 16:40:58.848 rtc::Created local media stream RTCMediaStream: com.quickblox.mediastream.device-x86_64_ios-13.3_userid-106077683] A=1 V=0 2020-04-13 16:40:58.864 rtc::[PCON]<106525069, R:Offer> Negotiation 2020-04-13 16:40:58.865 rtc::[PCON]<106525069, R:Offer> Create offer 2020-04-13 16:40:58.868 rtc::[TASK]<ID:14, l:Stats report> Start. 2020-04-13 16:40:58.893 rtc::[PCON]<106525069, R:Offer> Signaling state HAVE_LOCAL_OFFER 2020-04-13 16:40:58.900 rtc::[PCON]<106525069, R:Offer> Did change ice gethering state to GATHERING "[CallKitManager] transaction successfully!!!" 2020-04-13 16:40:58.934 rtc::[SESS]<7FB4ED16-36CC-4ED0-ADB6-1EE4A378D13E, I:106077683, O:[106525069], T:A> Start call 2020-04-13 16:40:58.980 rtc::[PCON]<106525069, R:Offer> SND offer SDP 2020-04-13 16:40:58:981 sample-videochat-webrtc-swift[49131:f1f] SEND:2 106077683 WebRTCVideoChat ios v=0
o=- 5429663193312237432 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE audio
a=msid-semantic: WMS com.quickblox.mediastream.device-x86_64_ios-13.3_userid-106077683]
m=audio 9 UDP/TLS/RTP/SAVPF 102 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:TKtj
a=ice-pwd:V6fOwgx5yBwRa7BQdU919v7H
a=ice-options:trickle renomination
a=fingerprint:sha-256 39:DE:77:3A:F1:81:FF:F1:1D:DE:6D:0F:89:7C:56:82:1F:00:79:02:49:23:5F:AE:8B:2E:F6:F9:E8:D0:70:19
a=setup:actpass
a=mid:audio
a=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level
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:103 ISAC/16000
a=rtpmap:104 ISAC/32000
a=rtpmap:9 G722/8000
a=rtpmap:102 ILBC/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:106 CN/32000
a=rtpmap:105 CN/16000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:112 telephone-event/32000
a=rtpmap:113 telephone-event/16000
a=rtpmap:126 telephone-event/8000
a=ssrc:1221942618 cname:FP99fkNI4butwHqS
a=ssrc:1221942618 msid:com.quickblox.mediastream.device-x86_64_ios-13.3_userid-106077683] audioTrack
a=ssrc:1221942618 mslabel:com.quickblox.mediastream.device-x86_64_ios-13.3_userid-106077683]
a=ssrc:1221942618 label:audioTrack
2.7.4 7FB4ED16-36CC-4ED0-ADB6-1EE4A378D13E call http.quickblox.com "1,2,3,4"Test 106525069
2020-04-13 16:40:58.981863+0530 sample-videochat-webrtc-swift[49131:1448808] [ChatService]: SNT:
2020-04-13 16:40:58.987 rtc::[TASK]<ID:15, l:com.quickblox.connection.dialing.timer> Start. "[UsersViewController] Send voip push - Error" 2020-04-13 16:40:59.243913+0530 sample-videochat-webrtc-swift[49131:1448808] [QBCore]: Response[10] headers: { "Access-Control-Allow-Origin" = "*"; "Cache-Control" = "no-cache"; "Content-Type" = "application/json; charset=utf-8"; Date = "Mon, 13 Apr 2020 11:10:59 GMT"; Duration = "0.431356"; Server = "nginx/1.14.2"; "Set-Cookie" = "_mkra_ctxt=27b4da08f81c711832256dcc4c396a70--422; path=/; max-age=5; HttpOnly; secure"; Status = "422 Unprocessable Entity"; "Strict-Transport-Security" = "max-age=31536000"; "qb-token-expirationdate" = "2020-04-13 13:09:55 +0000"; "quickblox-rest-api-version" = "0.1.1"; "x-content-type-options" = nosniff; "x-frame-options" = SAMEORIGIN; "x-request-id" = "8788676b-e6cd-4520-931d-2a7959a3885e"; "x-runtime" = "0.066149"; "x-xss-protection" = "1; mode=block"; } error: Request failed: client error (422) reasons: { errors = ( "No one can receive the message" ); } "[CallKitManager] Activated audio session." 2020-04-13 16:40:59.306 rtc::[QBRTCAudioSession] Did end interruption, should resume: YES 2020-04-13 16:40:59.319 rtc::[PCON]<106525069, R:Offer> Did change ice gethering state to COMPLETE 2020-04-13 16:41:00:268 sample-videochat-webrtc-swift[49131:151b] RECV:2 106077683 WebRTCVideoChat ios 2.7.4 7FB4ED16-36CC-4ED0-ADB6-1EE4A378D13E reject 106525069
2020-04-13 16:41:00.269055+0530 sample-videochat-webrtc-swift[49131:1448808] [ChatService]: RCV:
2020-04-13 16:41:00.270 rtc::[PCON]<106525069, R:Offer> Closing 2020-04-13 16:41:00.270 rtc::[TASK]<ID:15, l:com.quickblox.connection.dialing.timer> Invalidate. 2020-04-13 16:41:00.276 rtc::[PCON]<106525069, R:Offer> Did change ice connection state to CLOSED 2020-04-13 16:41:00.276 rtc::[PCON]<106525069, R:Offer> Signaling state CLOSED 2020-04-13 16:41:00.280 rtc::[TASK]<ID:0, l:com.quickblox.connection.dialing.timer> Dealloc. 2020-04-13 16:41:00.280 rtc::Destroyed local media stream. 2020-04-13 16:41:00.280 rtc::Deallocating local media stream. 2020-04-13 16:41:00.280 rtc::dealloc QBRTCLocalAudioTrack 2020-04-13 16:41:00.280 rtc::[TASK]<ID:14, l:Stats report> Invalidate. 2020-04-13 16:41:00.280 rtc::dealloc - <QBRTCRecorder: 0x7f8569557d40> 2020-04-13 16:41:00.302 rtc::[RTCClient] <QBRTCClient: 0x600000b94280> removed <sample_videochat_webrtc_swift.CallViewController: 0x7f856a0b7e00> from list of delegates 2020-04-13 16:41:00.319 rtc::[RTCClient] Deinitializing SSL... "[CallKitManager] transaction successfully!!!" 2020-04-13 16:41:00.320 rtc::[SESS]<7FB4ED16-36CC-4ED0-ADB6-1EE4A378D13E, I:106077683, O:[106525069], T:A> Hang Up call "[CallKitManager] transaction successfully!!!" 2020-04-13 16:41:00:544 sample-videochat-webrtc-swift[49131:d51f] RECV:
2020-04-13 16:41:00:544 sample-videochat-webrtc-swift[49131:151b] SEND:
2020-04-13 16:41:00.664 rtc::[TASK]<ID:0, l:Stats report> Dealloc.
"[CallKitManager] Dectivated audio session."
"Deinitializing session in CallKit callback."
2020-04-13 16:41:00.700 rtc::[QBRTCAudioSession] Deinitializing audio session.