I use the linphone-sdk in the Linphone-desktop Linux version with sip.linphone.org for my company. I want to do a simple call between an Android phone and a iOS client.
ios APP There are two LinphonesDKs at the same time. Our static library integrates Linphone, and another third-party static library inherits linphoneSDK. When the program starts, linphoneSDK in the third-party static library is loaded first, but when it is executed to linphoneSDK in my static library, it crashes. I am currently using linphoneSDK version 5.0.47, what can I do to avoid this crash?
Context
I use the linphone-sdk in the Linphone-desktop Linux version with sip.linphone.org for my company. I want to do a simple call between an Android phone and a iOS client. ios APP There are two LinphonesDKs at the same time. Our static library integrates Linphone, and another third-party static library inherits linphoneSDK. When the program starts, linphoneSDK in the third-party static library is loaded first, but when it is executed to linphoneSDK in my static library, it crashes. I am currently using linphoneSDK version 5.0.47, what can I do to avoid this crash?
General information
Expected behaviour
what can I do to avoid this crash?
To Reproduce
LinphoneFactory factory = linphone_factory_get(); LinphoneCoreCbs cbs = linphone_factory_create_core_cbs(factory); linphone_core_cbs_set_account_registration_state_changed(cbs,linphone_iphone_registration_state); linphone_core_cbs_set_notify_presence_received_for_uri_or_tel(cbs, linphone_iphone_notify_presence_received_for_uri_or_tel); linphone_core_cbs_set_authentication_requested(cbs, linphone_iphone_popup_password_request); linphone_core_cbs_set_message_received(cbs, linphone_iphone_message_received); linphone_core_cbs_set_message_received_unable_decrypt(cbs, linphone_iphone_message_received_unable_decrypt); linphone_core_cbs_set_transfer_state_changed(cbs, linphone_iphone_transfer_state_changed); linphone_core_cbs_set_is_composing_received(cbs, linphone_iphone_is_composing_received); linphone_core_cbs_set_configuring_status(cbs, linphone_iphone_configuring_status_changed); linphone_core_cbs_set_global_state_changed(cbs, linphone_iphone_global_state_changed); linphone_core_cbs_set_notify_received(cbs, linphone_iphone_notify_received); linphone_core_cbs_set_call_encryption_changed(cbs, linphone_iphone_call_encryption_changed); linphone_core_cbs_set_chat_room_state_changed(cbs, linphone_iphone_chatroom_state_changed); linphone_core_cbs_set_version_update_check_result_received(cbs, linphone_iphone_version_update_check_result_received); linphone_core_cbs_set_qrcode_found(cbs, linphone_iphone_qr_code_found); linphone_core_cbs_set_call_log_updated(cbs, linphone_iphone_call_log_updated); linphone_core_cbs_set_call_id_updated(cbs, linphone_iphone_call_id_updated); linphone_core_cbs_set_user_data(cbs, (__bridge void *)(self)); linphone_core_cbs_set_chat_room_ephemeral_message_deleted(cbs, linphone_iphone_ephemeral_message_deleted); linphone_core_cbs_set_conference_state_changed(cbs, linphone_iphone_conference_state_changed);
// FWTheLinphoneCore = linphone_factory_create_shared_core_with_config(factory, _configDb, NULL, [kLinphoneMsgNotificationAppGroupId UTF8String], true);
Additional context
2022-06-08 17:51:55:216 belle-sip-fatal-Bad cast to belle_sip_cpp_object_t at /Users/bear/Desktop/orgLinphone/belle-sip/src/object++.cc:130 dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/GPUTools.framework/libglInterpose.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib ![Uploading wecom-temp-c0f72ba388249394bff7e85a80e33289.png…]()
SDK logs URL
No response