Changeset 5954
- Timestamp:
- Mar 19, 2019 8:24:57 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r5939 r5954 1377 1377 int sip_err_code = PJSIP_SC_INTERNAL_SERVER_ERROR; 1378 1378 pjmedia_sdp_session *offer=NULL; 1379 pj_bool_t should_dec_dlg = PJ_TRUE; 1379 1380 pj_status_t status; 1380 1381 … … 1803 1804 &sip_err_code, PJ_TRUE, 1804 1805 &on_incoming_call_med_tp_complete); 1805 if (status == PJ_SUCCESS) { 1806 if (status == PJ_EPENDING) { 1807 /* on_incoming_call_med_tp_complete() will call 1808 * pjsip_dlg_dec_session(). 1809 */ 1810 should_dec_dlg = PJ_FALSE; 1811 } else if (status == PJ_SUCCESS) { 1812 /* on_incoming_call_med_tp_complete2() will call 1813 * pjsip_dlg_dec_session(). 1814 */ 1815 should_dec_dlg = PJ_FALSE; 1816 1806 1817 status = on_incoming_call_med_tp_complete2(call_id, NULL, 1807 1818 rdata, &sip_err_code, … … 1842 1853 } 1843 1854 pjsip_dlg_dec_lock(dlg); 1844 1845 pjsip_dlg_dec_session(dlg, &pjsua_var.mod);1846 1855 1847 1856 call->inv = NULL; … … 1986 1995 if (dlg) { 1987 1996 pjsip_dlg_dec_lock(dlg); 1997 } 1998 1999 if (should_dec_dlg) { 2000 pjsip_dlg_dec_session(dlg, &pjsua_var.mod); 1988 2001 } 1989 2002
Note: See TracChangeset
for help on using the changeset viewer.