]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] Module load will fail if ext-rtp-ip or ext-sip-ip configuration param...
authorAndrey Volk <andywolk@gmail.com>
Tue, 29 Oct 2019 15:30:46 +0000 (19:30 +0400)
committerAndrey Volk <andywolk@gmail.com>
Mon, 30 Dec 2019 22:17:17 +0000 (02:17 +0400)
src/mod/endpoints/mod_sofia/sofia.c

index aedfb66e5697243126262d70c1a2587fd53488ef..b9eab1939b8d6e57f174ed1e7653e3efdce1bcd7 100644 (file)
@@ -5056,6 +5056,7 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                                        }
                                                } else {
                                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid ext-rtp-ip\n");
+                                                       switch_goto_status(SWITCH_STATUS_GENERR, done);
                                                }
                                        } else if (!strcasecmp(var, "rtp-ip")) {
                                                char *ip = mod_sofia_globals.guess_ip;
@@ -5150,6 +5151,7 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                                        }
                                                } else {
                                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Invalid ext-sip-ip\n");
+                                                       switch_goto_status(SWITCH_STATUS_GENERR, done);
                                                }
                                        } else if (!strcasecmp(var, "local-network-acl")) {
                                                if (val && !strcasecmp(val, "none")) {