Change the default value for "allowsubscribe" to yes to match chan_sip.
authorJoshua Colp <jcolp@digium.com>
Thu, 25 Jul 2013 19:18:42 +0000 (19:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 25 Jul 2013 19:18:42 +0000 (19:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@395439 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_sip.c
res/res_sip/sip_configuration.c

index 30724ae..9b05235 100644 (file)
                                                See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for more information about QoS settings
                                        </para></description>
                                </configOption>
-                               <configOption name="allowsubscribe" default="no">
+                               <configOption name="allowsubscribe" default="yes">
                                        <synopsis>Determines if endpoint is allowed to initiate subscriptions with Asterisk.</synopsis>
                                </configOption>
                                <configOption name="subminexpiry" default="60">
index 809430a..37a225f 100644 (file)
@@ -679,7 +679,7 @@ int ast_res_sip_initialize_configuration(void)
        ast_sorcery_object_field_register(sip_sorcery, "endpoint", "tos_video", "0", OPT_UINT_T, 0, FLDSET(struct ast_sip_endpoint, tos_video));
        ast_sorcery_object_field_register(sip_sorcery, "endpoint", "cos_audio", "0", OPT_UINT_T, 0, FLDSET(struct ast_sip_endpoint, cos_audio));
        ast_sorcery_object_field_register(sip_sorcery, "endpoint", "cos_video", "0", OPT_UINT_T, 0, FLDSET(struct ast_sip_endpoint, cos_video));
-       ast_sorcery_object_field_register(sip_sorcery, "endpoint", "allowsubscribe", "no", OPT_BOOL_T, 1, FLDSET(struct ast_sip_endpoint, allowsubscribe));
+       ast_sorcery_object_field_register(sip_sorcery, "endpoint", "allowsubscribe", "yes", OPT_BOOL_T, 1, FLDSET(struct ast_sip_endpoint, allowsubscribe));
        ast_sorcery_object_field_register(sip_sorcery, "endpoint", "subminexpiry", "0", OPT_UINT_T, 0, FLDSET(struct ast_sip_endpoint, subminexpiry));
        ast_sorcery_object_field_register(sip_sorcery, "endpoint", "subminexpirey", "0", OPT_UINT_T, 0, FLDSET(struct ast_sip_endpoint, subminexpiry));
        ast_sorcery_object_field_register(sip_sorcery, "endpoint", "fromuser", "", OPT_STRINGFIELD_T, 0, STRFLDSET(struct ast_sip_endpoint, fromuser));