[asterisk-commits] gtjoseph: trunk r429700 - in /trunk: ./ res/res_pjsip_config_wizard.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 17 17:06:04 CST 2014


Author: gtjoseph
Date: Wed Dec 17 17:06:01 2014
New Revision: 429700

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=429700
Log:
res_pjsip_config_wizard: Change FILEUNCHANGED config_load2 flag determination

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

Modified:
    trunk/   (props changed)
    trunk/res/res_pjsip_config_wizard.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.

Modified: trunk/res/res_pjsip_config_wizard.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_pjsip_config_wizard.c?view=diff&rev=429700&r1=429699&r2=429700
==============================================================================
--- trunk/res/res_pjsip_config_wizard.c (original)
+++ trunk/res/res_pjsip_config_wizard.c Wed Dec 17 17:06:01 2014
@@ -801,7 +801,7 @@
 	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)) {
@@ -815,8 +815,8 @@
 		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);




More information about the asterisk-commits mailing list