]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add example of new option
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 22 May 2008 17:30:11 +0000 (17:30 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 22 May 2008 17:30:11 +0000 (17:30 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8528 d0543943-73ff-0310-b7d9-9358b9ac24b2

conf/sip_profiles/internal.xml
src/mod/endpoints/mod_sofia/sofia.c

index 3166538889d71f3c3fe7e0b399e79ed893533693..624f68c840f07746074a59ac49455d08041eb0e6 100644 (file)
@@ -98,6 +98,8 @@
     <!--<param name="disable-transcoding" value="true"/>-->
     <!-- Used for when phones respond to a challenged ACK with method INVITE in the hash -->
     <!--<param name="NDLB-broken-auth-hash" value="true"/>-->
+    <!-- add a ;received="<ip>:<port>" to the contact when replying to register for nat handling -->
+    <!--<param name="NDLB-received-in-nat-reg-contact" value="true"/>-->
     <param name="auth-calls" value="true"/>
     <!-- on authed calls, authenticate *all* the packets not just invite -->
     <param name="auth-all-packets" value="false"/>
index 419b076f24b509ebd4a81438ee02881170f39704..6513613d701ae836c622bfb0299b40872873fe90 100644 (file)
@@ -1117,7 +1117,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                switch_set_flag(profile, TFLAG_LATE_NEGOTIATION);
                                        } else if (!strcasecmp(var, "inbound-proxy-media") && switch_true(val)) {
                                                switch_set_flag(profile, TFLAG_PROXY_MEDIA);
-                                       } else if (!strcasecmp(var, "received-in-nat-reg-contact") && switch_true(val)) {
+                                       } else if (!strcasecmp(var, "NDLB-received-in-nat-reg-contact") && switch_true(val)) {
                                                profile->pflags |= PFLAG_RECIEVED_IN_NAT_REG_CONTACT;
                                        } else if (!strcasecmp(var, "aggressive-nat-detection") && switch_true(val)) {
                                                profile->pflags |= PFLAG_AGGRESSIVE_NAT_DETECTION;