twilio / twilio-voice.js

Twilio's JavaScript Voice SDK
Other
53 stars 53 forks source link

[BUG] ConnectionError: ConnectionError (31005): Error sent from gateway in HANGUP when answerOnBridge #140

Open ppascualv opened 1 year ago

ppascualv commented 1 year ago

Code to reproduce the issue:

 def response(call)
        res = Twilio::TwiML::VoiceResponse.new do |response|
          dial = create_dial(call)
          dial.number(contact.phone)
          response.append(dial)
        end

        res.to_s
      end

      def create_dial(call)
        Twilio::TwiML::Dial.new(
          caller_id: from_phone,
          answerOnBridge: true,
          timeout: 18
        )
      end
const startCall = async (userId, contactId, contactTitle, extraParams = {}) => {
    const params = { UserId: userId, ContactId: contactId, ...extraParams }
    const newConnection = await device.current.connect({
      params
    })

Expected behavior:

When client A (Browser user) calls client B (mobile phone) if client B hangs up without picking up the phone, this error appears on the console.

Actual behavior:

No error should be shown.

Software versions:

mhuynh5757 commented 1 year ago

Hi @ppascualv, thanks for bringing this one up to our attention. We've filed an internal issue for this to investigate further.

nicwise commented 4 days ago

@mhuynh5757 or @charliesantos did you ever find out what the issue was? I'm using 2.6.1 and getting this. about to update to 2.12.1 to see if its fixed.

basically it stays connected until our user reloads the page.

charliesantos commented 3 days ago

@nicwise thanks for the ping. I looked at this a bit more and for this type of issue, you may want to submit a support ticket via your console account.