@@ -147,6 +147,7 @@ public class Call: @unchecked Sendable, WSEventsSubscriber {
147
147
notify: Bool = false ,
148
148
callSettings: CallSettings ? = nil
149
149
) async throws -> JoinCallResponse {
150
+ let joinSource = await state. joinSource ?? . inApp
150
151
let result : Any ? = stateMachine. withLock { currentStage, transitionHandler in
151
152
if
152
153
currentStage. id == . joined,
@@ -194,6 +195,7 @@ public class Call: @unchecked Sendable, WSEventsSubscriber {
194
195
options: options,
195
196
ring: ring,
196
197
notify: notify,
198
+ source: joinSource,
197
199
deliverySubject: deliverySubject
198
200
)
199
201
)
@@ -1371,8 +1373,8 @@ public class Call: @unchecked Sendable, WSEventsSubscriber {
1371
1373
/// - Parameter policy: A conforming `AudioSessionPolicy` that defines
1372
1374
/// the audio session configuration to be applied.
1373
1375
/// - Throws: An error if the update fails.
1374
- public func updateAudioSessionPolicy( _ policy: AudioSessionPolicy ) async throws {
1375
- try await callController. updateAudioSessionPolicy ( policy)
1376
+ public func updateAudioSessionPolicy( _ policy: AudioSessionPolicy ) async {
1377
+ await callController. updateAudioSessionPolicy ( policy)
1376
1378
}
1377
1379
1378
1380
/// Adds a proximity policy to manage device proximity behavior during the call.
@@ -1473,28 +1475,6 @@ public class Call: @unchecked Sendable, WSEventsSubscriber {
1473
1475
)
1474
1476
}
1475
1477
1476
- // MARK: - CallKit
1477
-
1478
- /// Notifies the `Call` instance that CallKit has activated the system audio
1479
- /// session.
1480
- ///
1481
- /// This method should be called when the system activates the `AVAudioSession`
1482
- /// as a result of an incoming or outgoing CallKit-managed call. It allows the
1483
- /// call to update the provided CallKit AVAudioSession based on the internal CallSettings.
1484
- ///
1485
- /// - Parameter audioSession: The active `AVAudioSession` instance provided by
1486
- /// CallKit.
1487
- /// - Throws: An error if the call controller fails to handle the activation.
1488
- internal func callKitActivated( _ audioSession: AVAudioSessionProtocol ) async throws {
1489
- try await callController. callKitActivated ( audioSession)
1490
- didPerform ( . didActivateAudioSession)
1491
- }
1492
-
1493
- func callKitDeactivated( _ audioSession: AVAudioSessionProtocol ) async throws {
1494
- try await callController. callKitDeactivated ( audioSession)
1495
- didPerform ( . didDeactivateAudioSession)
1496
- }
1497
-
1498
1478
internal func didPerform( _ action: WebRTCTrace . CallKitAction ) {
1499
1479
Task ( disposableBag: disposableBag) { [ weak callController] in
1500
1480
await callController? . didPerform ( action)
0 commit comments