diff options
author | Riza Sulistyo <riza@teluu.com> | 2016-02-19 03:16:24 +0000 |
---|---|---|
committer | Riza Sulistyo <riza@teluu.com> | 2016-02-19 03:16:24 +0000 |
commit | 71ba863750e062a4acea08ce042e6e5ba7e293a8 (patch) | |
tree | ccfb510b0e5c8b45d8cdb151dff666b47d4f3328 /pjsip/src | |
parent | 9a0b39a7dd33817f1b5068e0ad719aba4ddc00b7 (diff) |
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
Diffstat (limited to 'pjsip/src')
-rw-r--r-- | pjsip/src/pjsip/sip_ua_layer.c | 10 |
1 files 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) { |