Skip to content

Conversation

@amolghode1981
Copy link
Contributor

Proposed changes (including videos or screenshots)

This PR implements a connection retries in case the asterisk connection dies for some reason.
It does 5 retries with backoff options. The retries will not be done for connectivity check.

Once the retries are exhausted, and server comes up, there is no way to connect back but to restart
the voip service. This works only for management connection. Call Server connection, if dies, there are no
retries.

Issue(s)

https://app.clickup.com/t/22qmrw3

Steps to test or reproduce

  1. start rocket chat server with voip enabled.
  2. Stop asterisk.
  3. Access extensions.
    APIs get stuck as server does not check if the socket is up while running a command.

After this PR is merged, server will return error if the connection is dead. It will also retry to connect after detecting disconnection

Further comments

Description:
This PR implements a connection retries in case the asterisk connection dies for some reason.
It does 5 retries with backoff options. The retries will not be done for connectivity check.

Once the retries are exhausted, and server comes up, there is no way to connect back but to restart
the voip service. This works only for management connection. Call Server connection, if dies, there are no
retries.
@renatobecker renatobecker added this to the 4.5.0 milestone Feb 25, 2022
@casalsgh casalsgh merged commit c349fef into develop Feb 25, 2022
@casalsgh casalsgh deleted the new/manager_connectivity branch February 25, 2022 22:40
gabriellsh added a commit that referenced this pull request Feb 28, 2022
…age-template-2

* 'develop' of github.com:RocketChat/Rocket.Chat: (61 commits)
  Regression: Server crashing if Voip credentials are invalid (#24646)
  Regression: Extension List panel UI not aligned with designs (#24645)
  Regression: Queue counter aggregator for incoming/hanged calls (#24635)
  Regression: Fix double value on holdTime and empty msg on last message (#24630)
  Regression: If Asterisk suddenly goes down, server has no way to know. Causes server to get stuck. Needs restart (#24624)
  Regression: Prevent connect to asterisk when VoIP is disabled (#24601)
  Regression: Encode registration info as JWT when signing key is provided (#24626)
  Regression: Fix time fields and wrap up in Voip Room Contexual bar (#24625)
  Regression: Fix in-correct room status shown to agents (#24592)
  Regression: Do not show toast on incoming voip calls (#24619)
  Regression: Fix incoming voip call ringtone is not ringing (#24616)
  Regression: Mark all rooms as read modal closing instantly. (#24610)
  Regression: Fix translations for call started message (#24615)
  Regression: Bunch of settings fixes for VoIP (#24594)
  Regression: Admin Sidebar colors inverted (#24609)
  Regression: No audio when call comes from Skype/IP phone (#24602)
  Regression: Fixes in Voice Contextual Bar and Directory (#24596)
  Regression: Fix time format on Voip system messages (#24603)
  Regression: VoIP service button displayed when VoIP is disabled (#24598)
  Add support to namespace within micro services (#24581)
  ...
@pierre-lehnen-rc pierre-lehnen-rc mentioned this pull request Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants