Changeset 5977


Ignore:
Timestamp:
May 6, 2019 10:44:20 AM (5 months ago)
Author:
ming
Message:

Fixed #2195: Assertion when receiving more calls than the configured maximum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r5973 r5977  
    13971397    int sip_err_code = PJSIP_SC_INTERNAL_SERVER_ERROR; 
    13981398    pjmedia_sdp_session *offer=NULL; 
    1399     pj_bool_t should_dec_dlg = PJ_TRUE; 
     1399    pj_bool_t should_dec_dlg = PJ_FALSE; 
    14001400    pj_status_t status; 
    14011401 
     
    17851785 
    17861786    pjsip_dlg_inc_session(dlg, &pjsua_var.mod); 
     1787    should_dec_dlg = PJ_TRUE; 
    17871788 
    17881789    /* Init media channel, only when there is offer or call replace request. 
     
    20142015on_return: 
    20152016    if (dlg) { 
     2017        if (should_dec_dlg) 
     2018            pjsip_dlg_dec_session(dlg, &pjsua_var.mod); 
     2019 
    20162020        pjsip_dlg_dec_lock(dlg); 
    2017     } 
    2018  
    2019     if (should_dec_dlg) { 
    2020         pjsip_dlg_dec_session(dlg, &pjsua_var.mod); 
    20212021    } 
    20222022 
Note: See TracChangeset for help on using the changeset viewer.