Unable to RTCPeerConnection::createOffer: peerConnectionCreateOffer(): WEBRTC_CREATE_OFFER_ERROR
karishkutty opened this issue · comments
I am getting such error while hitting the call after the registration of sip . I am not able to figure it out why is this issue happening . Please do guide me where am i going wrong.
- I/flutter (26190): [2023-12-18 16:08:46.456] Level.debug sip_ua_helper.dart:226 ::: call connecting
I/flutter (26190): [2023-12-18 16:08:46.460] Level.debug rtc_session.dart:1609 ::: createLocalDescription()
D/FlutterWebRTCPlugin(26190): addTrack(): peerConnection is null
D/FlutterWebRTCPlugin(26190): peerConnectionCreateOffer(): WEBRTC_CREATE_OFFER_ERROR
E/flutter (26190): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unable to RTCPeerConnection::addTrack: addTrack(): peerConnection is null
E/flutter (26190): #0 RTCPeerConnectionNative.addTrack (package:flutter_webrtc/src/native/rtc_peerconnection_impl.dart:578:7)
E/flutter (26190):
E/flutter (26190):
I/flutter (26190): [2023-12-18 16:08:46.466] Level.error rtc_session.dart:1637 ::: emit "peerconnection:createofferfailed" [error:Unable to RTCPeerConnection::createOffer: peerConnectionCreateOffer(): WEBRTC_CREATE_OFFER_ERROR]
I/flutter (26190): [2023-12-18 16:08:46.468] Level.error rtc_session.dart:1705 ::: emit "peerconnection:setlocaldescriptionfailed" [error:LateInitializationError: Local 'desc' has not been initialized.]
I/flutter (26190): [2023-12-18 16:08:46.469] Level.error rtc_session.dart:2286 ::: Bad state: Future already completed
I/flutter (26190): #0 _Completer.completeError (dart:async/future_impl.dart:19:31)
I/flutter (26190): #1 RTCSession._createLocalDescription (package:sip_ua/src/rtc_session.dart:1708:17)
I/flutter (26190):
I/flutter (26190): #2 RTCSession._sendInitialRequest (package:sip_ua/src/rtc_session.dart:2271:11)
I/flutter (26190):
I/flutter (26190): #3 RTCSession.connect (package:sip_ua/src/rtc_session.dart:337:5)
I/flutter (26190):
I/flutter (26190): [2023-12-18 16:08:46.472] Level.debug rtc_session.dart:2955 ::: emit "_failed"
I/flutter (26190): [2023-12-18 16:08:46.474] Level.debug rtc_session.dart:1448 ::: close()
I/flutter (26190): [2023-12-18 16:08:46.476] Level.debug rtc_session.dart:2966 ::: emit "failed"
I/flutter (26190): [2023-12-18 16:08:46.477] Level.debug sip_ua_helper.dart:235 ::: call failed with cause: Code: [500], Cause: WebRTC Error, Reason: Can't create local SDP
E/flutter (26190): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unable to RTCPeerConnection::createOffer: peerConnectionCreateOffer(): WEBRTC_CREATE_OFFER_ERROR
E/flutter (26190):
D/FlutterWebRTCPlugin(26190): peerConnectionClose() peerConnection is null
W/WindowOnBackDispatcher(26190): OnBackInvokedCallback is not enabled for the application.
W/WindowOnBackDispatcher(26190): Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
I/org.webrtc.Logging(26190): EglRenderer: Initializing EglRenderer
I/org.webrtc.Logging(26190): EglRenderer: EglBase.create shared context
I/org.webrtc.Logging(26190): EglBase14Impl: Using OpenGL ES version 2
D/FlutterWebRTCPlugin(26190): peerConnectionDispose() peerConnection is null
I/org.webrtc.Logging(26190): EglRenderer: Initializing EglRenderer
I/org.webrtc.Logging(26190): EglRenderer: EglBase.create shared context
I/org.webrtc.Logging(26190): EglBase14Impl: Using OpenGL ES version 2
I/flutter (26190): [2023-12-18 16:08:46.574] Level.error sip_ua_helper.dart:396 ::: Call ************************* not found!
D/EGL_emulation(26190): app_time_stats: avg=45.65ms min=1.35ms max=733.05ms count=23