twilio / voice-quickstart-ios

Twilio Voice Quickstart for iOS with Swift
MIT License
183 stars 97 forks source link

Programmable Voice Issue with iOS 16.4 #527

Closed dbarkman closed 6 months ago

dbarkman commented 1 year ago

Description

Note: This issue is not reproducible on iOS 16.3 and earlier, only 16.4. When testing Call Waiting with Programmable Voice, on an iPhone running the new, iOS 16.4, once both calls are on, one on hold the other active, then I try swapping the calls, placing the active on hold and resuming the held call, the Xcode debug view shows many AVAudioSession errors and both calls get disconnected.

Steps to Reproduce

  1. Take an incoming call to the app running the Twilio iOS SDK
  2. Take a second incoming call, puts first call on hold
  3. Swap calls to resume first call and put second call on hold

Code

// no code to show for this error

Expected Behavior

Calls should be able to be switched many times, no known limit to how many times we normally can swap calls.

Actual Behavior

Both calls are hung up.

Reproduces How Often

Every time

Twilio Call SID(s)

CA203dd88fc7638f95865ebd52b8373914 CAbe092384552b6937131a32d531bc1cf4

Logs

2023-03-29 11:25:54.818961-0700 UnnamedApp[2142:710850] [default] Initialize posting message to kill mediaserverd (2138)
2023-03-29 11:25:54.820950-0700 UnnamedApp[2142:710850] [aurioc]            AURemoteIO.cpp:1151  failed: 268451843 (enable 2, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2023-03-29 11:25:55.014964-0700 UnnamedApp[2142:710850] [aurioc]            AURemoteIO.cpp:1151  failed: -50 (enable 2, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2023-03-29 11:25:55.149310-0700 UnnamedApp[2142:710850] [aurioc]            AURemoteIO.cpp:1151  failed: -50 (enable 2, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2023-03-29 11:25:55.255698-0700 UnnamedApp[2142:710850] [aurioc]            AURemoteIO.cpp:1151  failed: -50 (enable 2, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2023-03-29 11:25:55.360796-0700 UnnamedApp[2142:710850] [aurioc]            AURemoteIO.cpp:1151  failed: -50 (enable 2, outf< 1 ch,  48000 Hz, Int16> inf< 1 ch,  48000 Hz, Int16>)
2023-03-29 11:25:55.361176-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.361308-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:55.361499-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:55.361655-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:55.361744-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:55.361862-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:55.361950-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:55.362043-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50
2023-03-29 11:25:55.362130-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.362219-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:55.362433-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.362569-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:55.362644-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentAudioHardwareOutputNumberChannels) failed with error: -50
2023-03-29 11:25:55.362764-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentAudioHardwareInputNumberChannels) failed with error: -50
2023-03-29 11:25:55.362893-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputLatency) failed with error: -50
2023-03-29 11:25:55.362978-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentInputLatency) failed with error: -50
2023-03-29 11:25:55.363066-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (UserVolume) failed with error: -50
2023-03-29 11:25:55.363186-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.363262-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:55.371212-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:2363  Failed to set category, error: -50
2023-03-29 11:25:55.371270-0700 UnnamedApp[2142:711493] AVAudioSession setCategory:options:mode:error: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"
2023-03-29 11:25:55.371385-0700 UnnamedApp[2142:711493] AVAudioSession setPreferredSampleRate:error: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"
2023-03-29 11:25:55.371515-0700 UnnamedApp[2142:711493] AVAudioSession setPreferredIOBufferDuration:error: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"
2023-03-29 11:25:55.371618-0700 UnnamedApp[2142:711493] AVAudioSession setAggregatedIOPreference:error: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"
2023-03-29 11:25:55.371701-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (MaximumNumberOfInputChannels) failed with error: -50
2023-03-29 11:25:55.371773-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (MaximumNumberOfOutputChannels) failed with error: -50
2023-03-29 11:25:55.376572-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.376671-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:55.376751-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.376845-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PreferredOutputSampleRate) failed with error: -50
2023-03-29 11:25:55.376952-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.377024-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:55.377104-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:55.377197-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:55.377290-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:55.377395-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:55.377468-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:55.377594-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50
2023-03-29 11:25:55.377753-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.377890-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:55.378017-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.378211-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:55.378286-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentAudioHardwareInputNumberChannels) failed with error: -50
2023-03-29 11:25:55.378366-0700 UnnamedApp[2142:711493] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentAudioHardwareOutputNumberChannels) failed with error: -50
2023-03-29 11:25:55.979481-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.979856-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:55.980458-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:55.980945-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:55.981386-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:55.981804-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:55.982067-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:55.982452-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50
2023-03-29 11:25:55.982805-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:55.983075-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:55.983330-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:55.983709-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:55.983998-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:55.984322-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:55.984670-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:55.985074-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PreferredOutputSampleRate) failed with error: -50
2023-03-29 11:25:55.985365-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PreferredAudioHardwareIOBufferFrameDuration) failed with error: -50
2023-03-29 11:25:55.985731-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50
2023-03-29 11:25:55.986037-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AudioInputAvailable) failed with error: -50
2023-03-29 11:25:56.258264-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.258649-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:56.258970-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:56.259634-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:56.260187-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:56.260511-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:56.260666-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:56.260832-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50
2023-03-29 11:25:56.260924-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:56.261059-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:56.261149-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:56.261302-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:56.261476-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:56.261625-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:56.261761-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.261913-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PreferredOutputSampleRate) failed with error: -50
2023-03-29 11:25:56.261993-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PreferredAudioHardwareIOBufferFrameDuration) failed with error: -50
2023-03-29 11:25:56.262125-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50
2023-03-29 11:25:56.262309-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AudioInputAvailable) failed with error: -50
2023-03-29 11:25:56.262524-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:2363  Failed to set category, error: -50
2023-03-29 11:25:56.262625-0700 UnnamedApp[2142:710343] AVAudioSession setCategory:options:mode:error: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"
2023-03-29 11:25:56.262791-0700 UnnamedApp[2142:710343] AVAudioSession setPreferredSampleRate:error: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"
2023-03-29 11:25:56.262992-0700 UnnamedApp[2142:710343] AVAudioSession setPreferredIOBufferDuration:error: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"
2023-03-29 11:25:56.263090-0700 UnnamedApp[2142:710343] AVAudioSession setAggregatedIOPreference:error: Error Domain=NSOSStatusErrorDomain Code=-50 "(null)"
2023-03-29 11:25:56.263210-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (MaximumNumberOfInputChannels) failed with error: -50
2023-03-29 11:25:56.263370-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (MaximumNumberOfOutputChannels) failed with error: -50
2023-03-29 11:25:56.268455-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.268561-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:56.268641-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.268722-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PreferredOutputSampleRate) failed with error: -50
2023-03-29 11:25:56.268843-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.268924-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:56.269001-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:56.269078-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:56.269153-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:56.269231-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:56.269304-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:56.269373-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50
2023-03-29 11:25:56.269464-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.269533-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:56.269620-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.269688-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentOutputSampleRate) failed with error: -50
2023-03-29 11:25:56.269791-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentAudioHardwareInputNumberChannels) failed with error: -50
2023-03-29 11:25:56.269938-0700 UnnamedApp[2142:710343] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (CurrentAudioHardwareOutputNumberChannels) failed with error: -50
2023-03-29 11:25:56.270206-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.270284-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:56.270362-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:56.270561-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:56.270649-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:56.270855-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:56.271002-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:56.271175-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50
2023-03-29 11:25:56.271386-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (InterruptionStyle) failed with error: -50
2023-03-29 11:25:56.271497-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (EnableBluetoothRecording) failed with error: -50
2023-03-29 11:25:56.271625-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (DefaultBuiltInRoute) failed with error: -50
2023-03-29 11:25:56.271715-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (WantsToPauseSpokenAudio) failed with error: -50
2023-03-29 11:25:56.271798-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (AllowedRouteTypes) failed with error: -50
2023-03-29 11:25:56.271880-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PrefersNoInterruptionWhenSecureMicrophoneIsEngaged) failed with error: -50
2023-03-29 11:25:56.271960-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1977  Failed to get category, error: -50
2023-03-29 11:25:56.272826-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PreferredOutputSampleRate) failed with error: -50
2023-03-29 11:25:56.273326-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:1238  AudioSessionGetProperty (PreferredAudioHardwareIOBufferFrameDuration) failed with error: -50
2023-03-29 11:25:56.273963-0700 UnnamedApp[2142:710850] [as_client]     AVAudioSession_iOS.mm:4471  Failed to get mode: -50

Versions

All relevant version information for the issue.

Voice iOS SDK

TwilioVoice 6.5.0, via SPM

Xcode

14.3 (14E222b) - beta version downloaded on 3/28/23 for debugging iOS 16.4

iOS Version

iOS 16.4 (no issues with 16.3 and less)

iOS Device

iPhone 12 Pro

dbarkman commented 1 year ago

@bobiechen-twilio would you be able to review this issue?

asemivragovs commented 8 months ago

Hello, To enable support for multiple voice calls at the same time, the maximumCallGroups property needs to be set to a value of 2 or greater when you configure the CXProviderConfiguration for CallKit. After setting this property, the CallKit screen will allow switching between the ongoing calls. The user will only need to update their VoIP app's UI to show the correct information about the current active call. We have opened a PR with the necessary changes to support multiple calls in the Voice iOS Quickstart app: https://github.com/twilio/voice-quickstart-ios/pull/557

bobiechen-twilio commented 6 months ago

Closing as answered