Once in a while making an outbound call doesn't connect the audio in the device.
Trying later during the call to change audio port throws error The operation couldn’t be completed. (OSStatus error -50.)
In our breadcrumbs we usually have something like that:
Error starting audio session The operation couldn’t be completed. (OSStatus error -50.)
Setting audio route to voice chat
provider did activate
POST https://eventgw.twilio.com/v4/EndpointEvents [200] -- (few more of those)
Call started ringing
POST https://eventgw.twilio.com/v4/EndpointEvents [200] -- (usually few of those)
{ action: UIKeyboardDidHideNotification }
provider start call action
Reporting call to CallKitProvider
Versions
Voice iOS SDK
6.10.0 via CocoaPods
Xcode
15.2
iOS Version
17.x (most of them are from 17.2.1)
iOS Device
A lot of different versions, most of them relatively new (14, 14 pro max, 13, etc)
Description
Once in a while making an outbound call doesn't connect the audio in the device. Trying later during the call to change audio port throws error
The operation couldn’t be completed. (OSStatus error -50.)
Since this happened we tried according to some articles we found to implement a recovery using the following code:
but this action also fails with the same error.
This is very hard to reproduce so we weren't able to debug a solution, but when it does happens it really bothers our clients.
Is there any advice for anything we can do to either avoid this error or to recover from it after it happens?
Steps to Reproduce
I am not sure what exact steps can reproduce this, though from what I saw it only happens with outgoing calls.
Reproduces How Often
Happens about twice a day for the affected users
Twilio Call SID(s)
CA77581c11071259972cbee70785ec126c, CA77581c11071259972cbee70785ec126c, CA77581c11071259972cbee70785ec126c
*the examples are all from the same client that is very troubled by this issue
Logs
In our breadcrumbs we usually have something like that:
Versions
Voice iOS SDK
6.10.0 via CocoaPods
Xcode
15.2
iOS Version
17.x (most of them are from 17.2.1)
iOS Device
A lot of different versions, most of them relatively new (14, 14 pro max, 13, etc)