From: Mark Michelson Date: Wed, 20 Aug 2014 20:41:04 +0000 (+0000) Subject: Set the role for inbound subscriptions correctly. X-Git-Tag: 14.0.0-beta1~1729 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49f8bd4ad4c139b3260a7317d53c226d72f7bc9d;p=thirdparty%2Fasterisk.git Set the role for inbound subscriptions correctly. This was causing the AMI show_subscriptions test in the testsuite to fail since all subscriptions were being seen as subscribers instead of notifiers. ........ Merged revisions 421585 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@421586 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c index 90be60d4e3..530a3b81bc 100644 --- a/res/res_pjsip_pubsub.c +++ b/res/res_pjsip_pubsub.c @@ -1209,6 +1209,7 @@ static struct sip_subscription_tree *create_subscription_tree(const struct ast_s if (!sub_tree) { return NULL; } + sub_tree->role = AST_SIP_NOTIFIER; dlg = ast_sip_create_dialog_uas(endpoint, rdata); if (!dlg) {