Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjsip/src/pjsip/sip_ua_layer.c

    r4537 r5513  
    278278/* 
    279279 * Register new dialog. Called by pjsip_dlg_create_uac() and 
    280  * pjsip_dlg_create_uas(); 
     280 * pjsip_dlg_create_uas_and_inc_lock(); 
    281281 */ 
    282282PJ_DEF(pj_status_t) pjsip_ua_register_dlg( pjsip_user_agent *ua, 
     
    411411{ 
    412412    return (pjsip_dialog*) rdata->endpt_info.mod_data[mod_ua.mod.id]; 
     413} 
     414 
     415PJ_DEF(pjsip_dialog*) pjsip_tdata_get_dlg( pjsip_tx_data *tdata ) 
     416{ 
     417    return (pjsip_dialog*) tdata->mod_data[mod_ua.mod.id]; 
    413418} 
    414419 
     
    480485 
    481486    /* 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;}); 
     487    if (pj_strcmp(&dlg->call_id->id, call_id)!=0) { 
     488 
     489        PJ_LOG(6, (THIS_FILE, "Dialog not found: local and remote tags " 
     490                              "matched but not call id")); 
     491 
     492        pj_mutex_unlock(mod_ua.mutex); 
     493        return NULL; 
     494    } 
    484495 
    485496    if (lock_dialog) { 
Note: See TracChangeset for help on using the changeset viewer.