From 4d91d01df180a712485aa60d14fda2aa9e5063d2 Mon Sep 17 00:00:00 2001
From: Richard Mudgett <rmudgett@digium.com>
Date: Wed, 9 Sep 2015 12:24:31 -0500
Subject: [PATCH] res_pjsip_pubsub.c: Add some notification comments.

Change-Id: Ie62ff1f4b7adc1a12fa0303f53926af249b25e20
---
 res/res_pjsip_pubsub.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 194107f139..c28446e680 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -1171,6 +1171,7 @@ static void shutdown_subscriptions(struct ast_sip_subscription *sub)
 		return;
 	}
 
+	/* We notify subscription shutdown only on the tree leaves. */
 	if (sub->handler->subscription_shutdown) {
 		sub->handler->subscription_shutdown(sub);
 	}
@@ -2523,6 +2524,7 @@ static int generate_initial_notify(struct ast_sip_subscription *sub)
 		return 0;
 	}
 
+	/* We notify subscription establishment only on the tree leaves. */
 	if (sub->handler->notifier->subscription_established(sub)) {
 		return -1;
 	}
-- 
GitLab