From b6b97560c99171b434d2cbcae6e039cd3109c108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Bj=C3=B8rnskov?= <19725+henrikbjorn@users.noreply.github.com> Date: Wed, 12 May 2021 08:28:31 +0200 Subject: [PATCH 1/2] new pjsip --- ios/RTCPjSip/PjSipModule.m | 6 ++++-- libs.sh | 4 ++-- package.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ios/RTCPjSip/PjSipModule.m b/ios/RTCPjSip/PjSipModule.m index ee2ed12a..43dfc3c4 100755 --- a/ios/RTCPjSip/PjSipModule.m +++ b/ios/RTCPjSip/PjSipModule.m @@ -292,9 +292,11 @@ + (BOOL)requiresMainQueueSetup{ if (status != PJ_SUCCESS) { NSLog(@"Failed to active audio session"); + + reject(status); + } else { + resolve(@TRUE); } - - resolve(@TRUE); } RCT_EXPORT_METHOD(deactivateAudioSession:(RCTPromiseResolveBlock) resolve rejecter:(RCTPromiseRejectBlock) reject) { diff --git a/libs.sh b/libs.sh index cafd9e21..1a3bfb4e 100755 --- a/libs.sh +++ b/libs.sh @@ -1,8 +1,8 @@ #!/bin/bash set -e -VERSION="v2.8.0" -URL="https://github.com/datso/react-native-pjsip-builder/releases/download/${VERSION}/release.tar.gz" +VERSION="v3.5" +URL="https://cdn.rela.tel/www/public/phon/pjsip-3.5.tar.gz" LOCK=".libs.lock" DEST=".libs.tar.gz" DOWNLOAD=true diff --git a/package.json b/package.json index 1022751c..3ac50a8d 100644 --- a/package.json +++ b/package.json @@ -47,5 +47,5 @@ "type": "git", "url": "git+https://github.com/datso/react-native-pjsip.git" }, - "version": "2.8.0" + "version": "3.5.0" } From 2f334b6b99012ddafd11c1c4ca4b9b7f5e760b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Bj=C3=B8rnskov?= <19725+henrikbjorn@users.noreply.github.com> Date: Wed, 12 May 2021 09:28:43 +0200 Subject: [PATCH 2/2] back off --- ios/RTCPjSip/PjSipModule.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ios/RTCPjSip/PjSipModule.m b/ios/RTCPjSip/PjSipModule.m index 43dfc3c4..4952f44f 100755 --- a/ios/RTCPjSip/PjSipModule.m +++ b/ios/RTCPjSip/PjSipModule.m @@ -292,11 +292,9 @@ + (BOOL)requiresMainQueueSetup{ if (status != PJ_SUCCESS) { NSLog(@"Failed to active audio session"); - - reject(status); - } else { - resolve(@TRUE); } + + resolve(@TRUE); } RCT_EXPORT_METHOD(deactivateAudioSession:(RCTPromiseResolveBlock) resolve rejecter:(RCTPromiseRejectBlock) reject) {