twilio / voice-quickstart-ios

Twilio Voice Quickstart for iOS with Swift
MIT License
181 stars 95 forks source link

Call failed to connect: Decline #508

Closed abdallahnh closed 1 year ago

abdallahnh commented 1 year 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

I'm testing the sample and as soon as i click call it gives me Decline

Steps to Reproduce

  1. [Step one] just run the sample app and put the correct token
  2. [Step two]
  3. [Insert as many steps as needed]

Code

the same sample code

Expected Behavior

Call should be successful

Actual Behavior

Decline

Reproduces How Often

[What percentage of the time does it reproduce?]

Twilio Call SID(s)

You can find the Call SID in the SDK from TVOCall.sid or TVOCallInvite.callSid. The Call SID can also be found on the Twilio Calls Console: https://www.twilio.com/console/voice/calls/logs.

Logs

2022-09-27 13:04:28.408853+0300 SwiftVoiceQuickstart[7630:334666] StartCallAction transaction request successful
2022-09-27 13:04:28.417428+0300 SwiftVoiceQuickstart[7630:334134] provider:performStartCallAction:
2022-09-27 13:04:28.883010+0300 SwiftVoiceQuickstart[7630:334134] provider:didActivateAudioSession:
2022-09-27 13:04:29.062853+0300 SwiftVoiceQuickstart[7630:334134] Call failed to connect: Decline
2022-09-27 13:04:29.062921+0300 SwiftVoiceQuickstart[7630:334134] performVoiceCall() failed
2022-09-27 13:04:30.073840+0300 SwiftVoiceQuickstart[7630:334134] provider:didDeactivateAudioSession:
2022-09-27 13:04:30.473481+0300 SwiftVoiceQuickstart[7630:334666] [connection] nw_resolver_start_query_timer_block_invoke [C4.1.1] Query fired: did not receive all answers in time for eventgw.twilio.com:443

Versions

All relevant version information for the issue.

Voice iOS SDK

[e.g. 6.4.3 Package]

Xcode

[e.g. 13.4.1]

iOS Version

[e.g. 16]

iOS Device

[e.g. iPhone 11 Pro]

bobiechen-twilio commented 1 year ago

@abdallahnh Thanks for reaching out. While this doesn't seem to be an SDK issue, it looks like there might be something wrong with TwiML response. Please check the Twilio developer console and see if there is any error/warning and details about this call. You can contact Twilio Support with your account information (please don't share here) if the issue persists and you are not able to connect the call successfully.

-bobie