mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 08:44:14 +00:00
Merge "res_pjsip_pubsub: On notify fail deleted sub_tree is then referenced" into 13
This commit is contained in:
@@ -2601,11 +2601,12 @@ static pj_bool_t pubsub_on_rx_subscribe_request(pjsip_rx_data *rdata)
|
|||||||
sip_subscription_accept(sub_tree, rdata, resp);
|
sip_subscription_accept(sub_tree, rdata, resp);
|
||||||
if (generate_initial_notify(sub_tree->root)) {
|
if (generate_initial_notify(sub_tree->root)) {
|
||||||
pjsip_evsub_terminate(sub_tree->evsub, PJ_TRUE);
|
pjsip_evsub_terminate(sub_tree->evsub, PJ_TRUE);
|
||||||
|
} else {
|
||||||
|
send_notify(sub_tree, 1);
|
||||||
|
ast_test_suite_event_notify("SUBSCRIPTION_ESTABLISHED",
|
||||||
|
"Resource: %s",
|
||||||
|
sub_tree->root->resource);
|
||||||
}
|
}
|
||||||
send_notify(sub_tree, 1);
|
|
||||||
ast_test_suite_event_notify("SUBSCRIPTION_ESTABLISHED",
|
|
||||||
"Resource: %s",
|
|
||||||
sub_tree->root->resource);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resource_tree_destroy(&tree);
|
resource_tree_destroy(&tree);
|
||||||
|
Reference in New Issue
Block a user