VoIPGRID / VialerSIPLib

An Objective-c wrapper for PJSIP
GNU General Public License v3.0
133 stars 69 forks source link

VOIP socket will not wake in iOS 16 and above #255

Open BrahmamM opened 9 months ago

BrahmamM commented 9 months ago

The following message comes from XCode 15 on iOS 16 iPhone

libsp.dylib`spd_checkin_socket.cold.1: 0x226f13364 <+0>: adrp x8, 192463 0x226f13368 <+4>: adrp x9, 0 0x226f1336c <+8>: add x9, x9, #0xa3f ; "Linked against modern SDK, VOIP socket will not wake. Use Local Push Connectivity instead" 0x226f13370 <+12>: str x9, [x8, #0xb10] -> 0x226f13374 <+16>: brk #0x1

I want to achieve, TLS Connection need to work and able to make calls.

BrahmamM commented 9 months ago

VSLEndpoint.m

pj_activesock_enable_iphone_os_bg(PJ_FALSE);
[self createPoolForPJSIP];

I added " pj_activesock_enable_iphone_os_bg(PJ_FALSE);" above "createPoolForPJSIP". It's working.

BrahmamM commented 9 months ago

Podfile

`# Uncomment the next line to define a global platform for your project platform :ios, '13.0'

target 'VialerSIPLib_Example' do

use_frameworks!

pod 'VialerSIPLib', "3.7.3" pod 'SPLumberjackLogFormatter', :git => 'https://github.com/VoIPGRID/SPLumberjackLogFormatter.git'

end

pre_install do |installer|

workaround for https://github.com/CocoaPods/CocoaPods/issues/3289

Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {} end

post_install do |installer_representation| installer_representation.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO' config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)'] config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] << 'PJ_AUTOCONF=1' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' end end end `