The module now applies the FILEUNCHANGED flag when both reloaded is
specified AND there's no last_config for the object type.
Tested-by: George Joseph
Review: https://reviewboard.asterisk.org/r/4276/
........
Merged revisions 429699 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429700
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
struct ast_category *category = NULL;
struct object_type_wizard *otw = NULL;
char *filename = "pjsip_wizard.conf";
- struct ast_flags flags = { CONFIG_FLAG_NOCACHE };
+ struct ast_flags flags = { 0 };
struct ast_config *cfg;
if (!strstr("auth aor endpoint identify registration phoneprov", object_type)) {
return;
}
- if (reloaded) {
- flags.flags |= CONFIG_FLAG_FILEUNCHANGED;
+ if (reloaded && otw->last_config) {
+ flags.flags = CONFIG_FLAG_FILEUNCHANGED;
}
cfg = ast_config_load2(filename, object_type, flags);