diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2018-03-19 12:53:12 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2018-03-19 12:53:12 -0500 |
commit | 5843a197979d10b336a041c6cb8bef90dfa0484a (patch) | |
tree | 22aa499f23f61300a044c6b9a49a77cfb68ccf1e /main/channel.c | |
parent | c9dffc4c6201a6254c5dfc5cf011616cda4ce148 (diff) | |
parent | 572a508ef2ae7cd86e0ffd8ad6d1c5997e988c26 (diff) |
Merge "loader: Convert reload_classes to built-in modules."
Diffstat (limited to 'main/channel.c')
-rw-r--r-- | main/channel.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/main/channel.c b/main/channel.c index 304fae18a..c7847cbd4 100644 --- a/main/channel.c +++ b/main/channel.c @@ -7581,22 +7581,6 @@ static int ast_channel_hash_cb(const void *obj, const int flags) return ast_str_case_hash(name); } -int ast_plc_reload(void) -{ - struct ast_variable *var; - struct ast_flags config_flags = { 0 }; - struct ast_config *cfg = ast_config_load("codecs.conf", config_flags); - if (cfg == CONFIG_STATUS_FILEMISSING || cfg == CONFIG_STATUS_FILEUNCHANGED || cfg == CONFIG_STATUS_FILEINVALID) - return 0; - for (var = ast_variable_browse(cfg, "plc"); var; var = var->next) { - if (!strcasecmp(var->name, "genericplc")) { - ast_set2_flag(&ast_options, ast_true(var->value), AST_OPT_FLAG_GENERIC_PLC); - } - } - ast_config_destroy(cfg); - return 0; -} - /*! * \internal * \brief Print channel object key (name). @@ -7820,8 +7804,6 @@ int ast_channels_init(void) ast_cli_register_multiple(cli_channel, ARRAY_LEN(cli_channel)); - ast_plc_reload(); - ast_register_cleanup(channels_shutdown); AST_RWLIST_HEAD_INIT(&ami_vars); |