Some minor changes to adapt the config new syntax
--- /root/Sources/opensips_head/examples/nathelper.cfg 2009-01-02 12:14:41.000000000 +0100
+++ nathelper.cfg 2009-01-09 15:04:12.000000000 +0100
@@ -40,9 +40,10 @@
mpath="/usr/local/lib/opensips/modules/"
# Uncomment this if you want to use SQL database
-#loadmodule "mysql.so"
+#loadmodule "db_mysql.so"
loadmodule "sl.so"
+loadmodule "signaling.so"
loadmodule "tm.so"
loadmodule "rr.so"
loadmodule "maxfwd.so"
@@ -92,6 +93,9 @@
modparam("nathelper","sipping_bflag",8)
modparam("nathelper", "ping_nated_only", 1) # Ping only clients behind NAT
+loadmodule "mediaproxy.so"
+modparam("mediaproxy", "mediaproxy_socket", "/var/run/mediaproxy/dispatcher.sock")
+
# ------------------------- request routing logic -------------------
# main routing logic
@@ -207,7 +211,7 @@
# if client or server know to be behind a NAT, enable relay
if (isbflagset(6)) {
- force_rtp_proxy();
+ use_media_proxy();
};
# NAT processing of replies; apply to all transactions (for example,
@@ -227,7 +231,7 @@
# NATed transaction ?
if (isbflagset(6) && status =~ "(183)|2[0-9][0-9]") {
fix_nated_contact();
- force_rtp_proxy();
+ use_media_proxy();
# otherwise, is it a transaction behind a NAT and we did not
# know at time of request processing ? (RFC1918 contacts)
} else if (nat_uac_test("1")) {
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users