From 71ba863750e062a4acea08ce042e6e5ba7e293a8 Mon Sep 17 00:00:00 2001 From: Riza Sulistyo Date: Fri, 19 Feb 2016 03:16:24 +0000 Subject: Misc (Re #1882): When finding a dialog, use normal check for the dialog id instead an assertion check. Thanks for Andrey Kovalenko for the patch. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5243 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsip/sip_ua_layer.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pjsip/src/pjsip/sip_ua_layer.c b/pjsip/src/pjsip/sip_ua_layer.c index 716d25a2..7b6c11b5 100644 --- a/pjsip/src/pjsip/sip_ua_layer.c +++ b/pjsip/src/pjsip/sip_ua_layer.c @@ -479,8 +479,14 @@ PJ_DEF(pjsip_dialog*) pjsip_ua_find_dialog(const pj_str_t *call_id, } /* Dialog has been found. It SHOULD have the right Call-ID!! */ - PJ_ASSERT_ON_FAIL(pj_strcmp(&dlg->call_id->id, call_id)==0, - {pj_mutex_unlock(mod_ua.mutex); return NULL;}); + if (pj_strcmp(&dlg->call_id->id, call_id)!=0) { + + PJ_LOG(6, (THIS_FILE, "Dialog not found: local and remote tags " + "matched but not call id")); + + pj_mutex_unlock(mod_ua.mutex); + return NULL; + } if (lock_dialog) { if (pjsip_dlg_try_inc_lock(dlg) != PJ_SUCCESS) { -- cgit v1.2.3