Changeset 5243 for pjproject


Ignore:
Timestamp:
Feb 19, 2016 3:16:24 AM (5 years ago)
Author:
riza
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c

    r5241 r5243  
    480480 
    481481    /* Dialog has been found. It SHOULD have the right Call-ID!! */ 
    482     PJ_ASSERT_ON_FAIL(pj_strcmp(&dlg->call_id->id, call_id)==0,  
    483                         {pj_mutex_unlock(mod_ua.mutex); return NULL;}); 
     482    if (pj_strcmp(&dlg->call_id->id, call_id)!=0) { 
     483 
     484        PJ_LOG(6, (THIS_FILE, "Dialog not found: local and remote tags " 
     485                              "matched but not call id")); 
     486 
     487        pj_mutex_unlock(mod_ua.mutex); 
     488        return NULL; 
     489    } 
    484490 
    485491    if (lock_dialog) { 
Note: See TracChangeset for help on using the changeset viewer.