Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

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

Open
BrahmamM opened this issue Nov 18, 2023 · 2 comments
Open

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

BrahmamM opened this issue Nov 18, 2023 · 2 comments

Comments

@BrahmamM
Copy link

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
Copy link
Author

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
Copy link
Author

BrahmamM commented Nov 20, 2023

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 CocoaPods/CocoaPods#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
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant