Module: kamailio
Branch: master
Commit: e183a3e25c3f2088435b3911d13fcb376a89f5c0
URL: 
https://github.com/kamailio/kamailio/commit/e183a3e25c3f2088435b3911d13fcb376a89f5c0

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <22965395+xkara...@users.noreply.github.com>
Date: 2024-11-25T11:31:56+02:00

rtpengine: Re-enable down servers (but not disabled ones)

---

Modified: src/modules/rtpengine/rtpengine.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/e183a3e25c3f2088435b3911d13fcb376a89f5c0.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e183a3e25c3f2088435b3911d13fcb376a89f5c0.patch

---

diff --git a/src/modules/rtpengine/rtpengine.c 
b/src/modules/rtpengine/rtpengine.c
index cd3a76b1403..bdb4b76e4f1 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -1898,6 +1898,12 @@ static int rtpengine_iter_cb_ping(
                *found_rtpp_disabled = 1;
                crt_rtpp->rn_disabled = 1;
        }
+       /* if ping success, enable the rtpp and reset ticks, ONLY IF was not 
disabled manually */
+       else if(crt_rtpp->rn_recheck_ticks != RTPENGINE_MAX_RECHECK_TICKS) {
+               crt_rtpp->rn_recheck_ticks = RTPENGINE_MIN_RECHECK_TICKS;
+               crt_rtpp->rn_disabled = 0;
+               *found_rtpp_disabled = 0;
+       }
        return 0;
 }
 

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to