summaryrefslogtreecommitdiff
path: root/res/res_pjsip_pubsub.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2015-08-21 18:01:59 -0500
committerRichard Mudgett <rmudgett@digium.com>2015-09-10 13:13:38 -0500
commitf36a9d122171781dd8a99d32792a0c19103b1f15 (patch)
treed3d790d4bf244d2c026cd1da6e6ac0263ae92c86 /res/res_pjsip_pubsub.c
parent94582f8fabb926d197ce0f3a01208b385975ec09 (diff)
res_pjsip_pubsub.c: Set dlg_status code instead of sending SIP response.
We should not try to send a SIP response message because we may be restoring a persistent subscription where we are not responding to a SIP request. Change-Id: Id89167ef90320c5563f37e632db0dda6cb9e7dec
Diffstat (limited to 'res/res_pjsip_pubsub.c')
-rw-r--r--res/res_pjsip_pubsub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 4436717d1..194107f13 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -1263,7 +1263,7 @@ static struct sip_subscription_tree *create_subscription_tree(const struct ast_s
sub_tree = allocate_subscription_tree(endpoint);
if (!sub_tree) {
- pjsip_endpt_respond_stateless(ast_sip_get_pjsip_endpoint(), rdata, 500, NULL, NULL, NULL);
+ *dlg_status = PJ_ENOMEM;
return NULL;
}
sub_tree->role = AST_SIP_NOTIFIER;