]> 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:00:40 +0000 (13:00 +0000)
Change-Id: Iedec4e7390b3e821987681da24d0298632b9873d

res/res_pjsip_pubsub.c

index a0ec02f09c9e6c4bc269f120ad3fa1d8489a56b0..1c0145cff943678b75517971915f05d0e62db6aa 100644 (file)
@@ -5589,7 +5589,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)) {