]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
allow none to not generate an err in vad opts
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 29 Oct 2008 14:43:07 +0000 (14:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 29 Oct 2008 14:43:07 +0000 (14:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10188 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index ad6eb07d082359090d6d903cc6cb75a85256ab0e..293bd8cecc0e1443231cd0c6391a735db7550f54 100644 (file)
@@ -1133,7 +1133,7 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
                                                } else if (!strcasecmp(val, "both")) {
                                                        switch_set_flag(profile, TFLAG_VAD_IN);
                                                        switch_set_flag(profile, TFLAG_VAD_OUT);
-                                               } else {
+                                               } else if (strcasecmp(val, "none")) {
                                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid option %s for VAD\n", val);
                                                }
                                        } else if (!strcasecmp(var, "unregister-on-options-fail")) {
@@ -1494,7 +1494,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                } else if (!strcasecmp(val, "both")) {
                                                        switch_set_flag(profile, TFLAG_VAD_IN);
                                                        switch_set_flag(profile, TFLAG_VAD_OUT);
-                                               } else {
+                                               } else if (strcasecmp(val, "none")) {
                                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid option %s for VAD\n", val);
                                                }
                                        } else if (!strcasecmp(var, "ext-rtp-ip")) {