mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 19:16:46 +00:00
res_pjsip_pubsub.c: Add some notification comments.
Change-Id: Ie62ff1f4b7adc1a12fa0303f53926af249b25e20
This commit is contained in:
@@ -1171,6 +1171,7 @@ static void shutdown_subscriptions(struct ast_sip_subscription *sub)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We notify subscription shutdown only on the tree leaves. */
|
||||||
if (sub->handler->subscription_shutdown) {
|
if (sub->handler->subscription_shutdown) {
|
||||||
sub->handler->subscription_shutdown(sub);
|
sub->handler->subscription_shutdown(sub);
|
||||||
}
|
}
|
||||||
@@ -2523,6 +2524,7 @@ static int generate_initial_notify(struct ast_sip_subscription *sub)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We notify subscription establishment only on the tree leaves. */
|
||||||
if (sub->handler->notifier->subscription_established(sub)) {
|
if (sub->handler->notifier->subscription_established(sub)) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user