twilio / twilio-voice-ios

Programmable Voice SDK by Twilio
https://www.twilio.com/voice
38 stars 14 forks source link

Outgoing calls are silent for both parties #98

Closed liyamahendra closed 1 year ago

liyamahendra commented 2 years ago

Before filing an issue please check that the issue is not already addressed by the following:

Please ensure that you are not sharing any Personally Identifiable Information(PII) or sensitive account information (API keys, credentials, etc.) when reporting an issue.

Description

We have been using Twilio Voice in our Android & iOS apps successfully to make and receive calls. Unfortunately, Past couple of days we have been receiving a lot of complaints from users saying when they make an outbound call and the call is connected, neither of the party is able to hear. This has been a serious issue and affecting the business adversely.

We are using TwilioVoice 6.2.2 One of the recent Call SID where the issue was seen is CA7b63ca623133555d5a9cbc822e9769e7 Attaching the logs from iOS debug console with debug tracing enabled.

Please help us resolve this issue asap.

Steps to Reproduce

  1. Make an outgoing call using Twilio Voice SDK 6.2.22.
  2. Notice there is no sound for both parties

Code

// Code that helps reproduce the issue

Expected Behavior

Both parties should be able to hear each other

Actual Behavior

No sound is heard for both parties

Reproduces How Often

It happens intermittently.

So, in my testing earlier today, it worked in one of my tests… test 1: i called my phone from the app (it failed) test 2: i called the app from my phone (it worked) test 3: i repeated test 1, and it worked

Logs

ios-outbound-call-logs.txt

Versions

6.2.2

Voice iOS SDK

v6.2.2 via Cocoapods

Xcode

13.4.1

iOS Version

15.5

iOS Device

iPhone 12

bobiechen-twilio commented 2 years ago

Hi @liyamahendra

Thanks for reaching out and providing SDK debugging log. I've checked the log, as well as the Call SID - it seems the establishment of the media connection went well. For the past two week there is no media connection related error recorded under your Twilio account SID.

Can you check if the app is configuring the audio device properly in the CallKit callback as the quickstart example is doing? https://github.com/twilio/voice-quickstart-ios/blob/master/ObjcVoiceQuickstart/ViewController.m#L606

liyamahendra commented 2 years ago

Hi @bobiechen-twilio

Yes, I'm doing that

image
bobiechen-twilio commented 2 years ago

Thanks @liyamahendra

While we do not have the exact code of your application to debug, could you use your account credentials (access token) in the quickstart and see if the audio device issue still persists? CallKit requires a specific sequence of call progress reporting from the application so that calls can be recorded and removed from the list once done, including audio session activation and deactivation. You should find example in the quickstart.

bobiechen-twilio commented 1 year ago

Closing for inactivity. Please feel free to reach out if you still need assistance. Thank you!