]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 5 Jun 2008 20:04:33 +0000 (20:04 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 5 Jun 2008 20:04:33 +0000 (20:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8772 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 7236706a3b87c122e52a5720a57e488e653338cd..d67d0c2ac1509c124da7417001a3cfcbc17c79f1 100644 (file)
@@ -1082,7 +1082,9 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                        profile->dtmf_type = DTMF_NONE;
                                                }
                                        } else if (!strcasecmp(var, "NDLB-force-rport")) {
-                                               profile->rport_level = 2;
+                                               if (switch_true(val)) {
+                                                       profile->rport_level = 2;
+                                               }
                                        } else if (!strcasecmp(var, "record-template")) {
                                                profile->record_template = switch_core_strdup(profile->pool, val);;
                                        } else if (!strcasecmp(var, "inbound-no-media") && switch_true(val)) {