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

[FEATURE] Rtpengine keepalive function #3440

Open
volga629-1 opened this issue Aug 15, 2024 · 8 comments
Open

[FEATURE] Rtpengine keepalive function #3440

volga629-1 opened this issue Aug 15, 2024 · 8 comments

Comments

@volga629-1
Copy link

volga629-1 commented Aug 15, 2024

Hello Everyone,
I have small request to add rtpengine function to test if rtpengine node is alive from script level.
Might be as improvement will be possible to use $avp(setid) or mod params.

New function

Options

  1. rtpengine control socket ip
  2. result avp
  3. amount probes to send ( default 2)
option 1 
$avp(rtp_ip) = "10.10.10.1";
rtpengine_probe("$avp(rtp_ip)","$avp(probe)",2);
if($avp(probe)>=0) {
      xlog("[RTP_PROBE] Rtpengine probe failed with return values $$avp(probe) | $avp(probe)\n");
}
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Aug 31, 2024
@volga629-1
Copy link
Author

In progress

@stale stale bot removed the stale label Aug 31, 2024
Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Sep 16, 2024
@volga629-1
Copy link
Author

in progress

@github-actions github-actions bot removed the stale label Oct 16, 2024
Copy link

github-actions bot commented Nov 1, 2024

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Nov 1, 2024
@volga629-1
Copy link
Author

in progress

@stale stale bot removed the stale label Nov 1, 2024
@razvancrainea
Copy link
Member

Starting with OpenSIPS 3.6, using the new ping_enabled parameter you can constantly ping each RTPEngine node, and catch when it is disabled using the E_RTPENGINE_STATUS event. Can't you use these mechanisms to implement your functionality?

@volga629-1
Copy link
Author

volga629-1 commented Nov 5, 2024

Hello @razvancrainea ,
How will be possible to detect fail state in event route ?
Is inactive mean completely offline or fail ping ?

status - active if the RTPEngine instance responds to probing or inactive if the instance was deactivated.

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

No branches or pull requests

2 participants