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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-07-01T07:19:11+02:00

etc/kamailio.cfg: define option to relay RTP always

- skip the NAT condition for RTP relaying, can be helpful for ALGs that
  fix the signaling but leave direct RTP streams blocked

---

Modified: etc/kamailio.cfg

---

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

---

diff --git a/etc/kamailio.cfg b/etc/kamailio.cfg
index 4cdd0091cb3..43c16b796b2 100644
--- a/etc/kamailio.cfg
+++ b/etc/kamailio.cfg
@@ -53,6 +53,7 @@
 # *** To enable nat traversal execute:
 #     - define WITH_NAT
 #     - option for NAT SIP OPTIONS keepalives: WITH_NATSIPPING
+#     - option to relay RTP always (with RTPProxy or RTPEngine): WITH_RTPRELAY
 #     - install RTPProxy: http://www.rtpproxy.org
 #     - start RTPProxy:
 #        rtpproxy -l _your_public_ip_ -s udp:localhost:7722
@@ -897,7 +898,10 @@ route[NATMANAGE] {
                        }
                }
        }
+
+#!ifndef WITH_RTPRELAY
        if (!(isflagset(FLT_NATS) || isbflagset(FLB_NATB))) return;
+#!endif
 
 #!ifdef WITH_RTPENGINE
        if(nat_uac_test("8")) {

_______________________________________________
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