36eacfcb0b4a862f4fdf295f8e696ed862375a7b
[feed/telephony.git] /
1 From ac685b30c17be461b2bf5b46a772ed9742b8e985 Mon Sep 17 00:00:00 2001
2 From: Riza Sulistyo <trengginas@users.noreply.github.com>
3 Date: Thu, 9 Feb 2023 13:19:23 +0700
4 Subject: [PATCH] Make sure that NOTIFY tdata is set before sending it.
5
6 ---
7 pjsip/src/pjsip-simple/evsub.c | 9 ++++++---
8 1 file changed, 6 insertions(+), 3 deletions(-)
9
10 --- a/pjsip/src/pjsip-simple/evsub.c
11 +++ b/pjsip/src/pjsip-simple/evsub.c
12 @@ -2224,9 +2224,12 @@ static void on_tsx_state_uas( pjsip_evsu
13 /* Send the pending NOTIFY sent by app from inside
14 * on_rx_refresh() callback.
15 */
16 - pj_assert(sub->pending_notify);
17 - status = pjsip_evsub_send_request(sub, sub->pending_notify);
18 - sub->pending_notify = NULL;
19 + //pj_assert(sub->pending_notify);
20 + /* Make sure that pending_notify is set. */
21 + if (sub->pending_notify) {
22 + status = pjsip_evsub_send_request(sub, sub->pending_notify);
23 + sub->pending_notify = NULL;
24 + }
25
26 } else if (pjsip_method_cmp(&tsx->method, &pjsip_notify_method)==0) {
27