Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks
ppascualv opened this issue Jan 26, 2023 · 1 comment
Labels
bug Something isn't working jira added

Comments

@ppascualv
Copy link

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:

  • Browser(s):
  • Operating System:
  • twilio.js: 2.2.0
  • Third-party libraries (e.g., Angular, React, etc.):
@ppascualv ppascualv added the bug Something isn't working label Jan 26, 2023
@mhuynh5757
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jira added
Projects
None yet
Development

No branches or pull requests

3 participants