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

error connecting to rtpengine #27

Open
sashasaturn opened this issue Jan 15, 2020 · 1 comment
Open

error connecting to rtpengine #27

sashasaturn opened this issue Jan 15, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@sashasaturn
Copy link

Hi Dave,

I have a feature request. I've noticed that sometimes when RTPEngine is busy and unable to respond to the connection request - the application crashes with an error "error connecting to rtpengine"

Is it possible to add a code that will try to connect to a different RTPEngine server from config or will try to connect to the same RTPEngine server a few more times?

Thanks,

Alex

@davehorton davehorton added enhancement New feature or request good first issue Good for newcomers labels Jan 22, 2020
@davehorton
Copy link
Collaborator

I dont have time immediately, but this would be pretty easy. There is a utility function getAvailableRtpengine which already takes the array of configured rtpengines and returns the next one (round robin). In the case of the failure above, it would simply be a matter of calling this function again, checking to see if it is a different IP (as long as there are more than one rtpengine it will be) and then trying again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants