diff options
author | Mark Michelson <mmichelson@digium.com> | 2014-08-20 20:40:33 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2014-08-20 20:40:33 +0000 |
commit | 12891b608bfb422b05da71f56ed4474234659e82 (patch) | |
tree | d4f4b1665d3b73c9e8374dace5d932f966a7f705 /res/res_pjsip_pubsub.c | |
parent | 04876df6a220373d9db0d83f0f0d655c59312322 (diff) |
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.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@421585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_pubsub.c')
-rw-r--r-- | res/res_pjsip_pubsub.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c index 90be60d4e..530a3b81b 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) { |