Ignore:
Timestamp:
Feb 5, 2016 4:29:17 AM (9 years ago)
Author:
nanang
Message:

Fixed #1902:

  • Crash when endpoint has multiple worker threads and SIP TCP transport is disconnected during incoming call handling.
  • Deprecated pjsip_dlg_create_uas(), replaced by pjsip_dlg_create_uas_and_inc_lock().
  • Serialized transaction state notifications (of 'terminated' and 'destroyed') in case of transport error.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/inv_offer_answer_test.c

    r3553 r5241  
    309309         */ 
    310310        uri = pj_str(CONTACT); 
    311         status = pjsip_dlg_create_uas(pjsip_ua_instance(), rdata, 
    312                                       &uri, &dlg); 
     311        status = pjsip_dlg_create_uas_and_inc_lock(pjsip_ua_instance(), rdata, 
     312                                                   &uri, &dlg); 
    313313        pj_assert(status == PJ_SUCCESS); 
    314314 
     
    322322        status = pjsip_inv_create_uas(dlg, rdata, sdp, inv_test.param.inv_option, &inv_test.uas); 
    323323        pj_assert(status == PJ_SUCCESS); 
     324        pjsip_dlg_dec_lock(dlg); 
    324325 
    325326        TRACE_((THIS_FILE, "    Sending 183 with SDP")); 
Note: See TracChangeset for help on using the changeset viewer.