]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip_pubsub: Use ast_true for "prune_on_boot".
authorJoshua Colp <jcolp@digium.com>
Sat, 28 Jul 2018 13:00:40 +0000 (13:00 +0000)
committerJoshua Colp <jcolp@digium.com>
Sat, 28 Jul 2018 13:01:19 +0000 (08:01 -0500)
Change-Id: Iedec4e7390b3e821987681da24d0298632b9873d

res/res_pjsip_pubsub.c

index 0dda52914e3bb41a6664898ebb44fca841b7f069..b5ee15923d15c971de0b35a3668a9942c1428e15 100644 (file)
@@ -5522,7 +5522,7 @@ static int load_module(void)
                persistence_expires_str2struct, persistence_expires_struct2str, NULL, 0, 0);
        ast_sorcery_object_field_register(sorcery, "subscription_persistence", "contact_uri", "", OPT_CHAR_ARRAY_T, 0,
                CHARFLDSET(struct subscription_persistence, contact_uri));
-       ast_sorcery_object_field_register(sorcery, "subscription_persistence", "prune_on_boot", "no", OPT_YESNO_T, 0,
+       ast_sorcery_object_field_register(sorcery, "subscription_persistence", "prune_on_boot", "no", OPT_YESNO_T, 1,
                FLDSET(struct subscription_persistence, prune_on_boot));
 
        if (apply_list_configuration(sorcery)) {