Commit 2c44938e authored by Christophe Deschamps's avatar Christophe Deschamps
Browse files

sdk 5.0.0 alpha + disable audio during early media phase

parent 0addb1f1
Pipeline #29846 failed with stage
in 3 minutes and 51 seconds
......@@ -29,6 +29,7 @@ extension Call {
let earlyMediaCallParams: CallParams = try core.createCallParams(call: self)
earlyMediaCallParams.recordFile = callLog!.getHistoryEvent().mediaFileName!
cameraEnabled = false
earlyMediaCallParams.audioEnabled = false
try acceptEarlyMediaWithParams(params: earlyMediaCallParams)
startRecording()
sendVfuRequest()
......@@ -42,6 +43,7 @@ extension Call {
let inCallParams: CallParams = try!core.createCallParams(call: self)
inCallParams.recordFile = callLog!.getHistoryEvent().mediaFileName!
cameraEnabled = false
inCallParams.audioEnabled = true
if let device = DeviceStore.it.findDeviceByAddress(address: remoteAddress!) {
Core.get().useRfc2833ForDtmf = device.actionsMethodType == "method_dtmf_rfc_4733"
Core.get().useInfoForDtmf = device.actionsMethodType == "method_dtmf_sip_info"
......
......@@ -58,6 +58,7 @@ extension Core {
let result = try Factory.Instance.createSharedCoreWithConfig(config: config, systemContext: nil, appGroupId: Config.appGroupName, mainCore: !runsInsideExtension() ) // Shared core makes use of the shared space in AppGroup.
result.autoIterateEnabled = autoIterate
result.disableChat(denyReason: .NotImplemented)
result.nativeRingingEnabled = false
try result.setStaticpicture(newValue: FileUtil.bundleFilePath("nowebcamCIF.jpg")!)
if (!runsInsideExtension()) {
result.ringDuringIncomingEarlyMedia = true
......
......@@ -6,7 +6,7 @@ source "https://github.com/CocoaPods/Specs.git"
def linpod
if ENV['PODFILE_PATH'].nil?
pod 'linphone-sdk', '4.5.0'
pod 'linphone-sdk', '~> 5.0.0-alpha'
else
pod 'linphone-sdk', :path => ENV['PODFILE_PATH'] # loacl sdk : PODFILE_PATH=<Path to>/linphone-sdk.podspec pod install
end
......
No preview for this file type
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment