Changeset 4856 for pjproject


Ignore:
Timestamp:
Jun 5, 2014 5:04:42 AM (10 years ago)
Author:
bennylp
Message:

Misc (re #1751): added additional checking to invite and dialog instances when terminating the call when media initialization fails due to suspected crash

File:
1 edited

Legend:

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

    r4843 r4856  
    13821382                 */ 
    13831383                pjsip_dlg_respond(dlg, rdata, sip_err_code, NULL, NULL, NULL); 
    1384                 pjsip_inv_terminate(call->inv, sip_err_code, PJ_FALSE); 
     1384                if (call->inv && call->inv->dlg) { 
     1385                    pjsip_inv_terminate(call->inv, sip_err_code, PJ_FALSE); 
     1386                } 
    13851387                call->inv = NULL; 
    13861388                call->async_call.dlg = NULL; 
     
    13901392            pjsua_perror(THIS_FILE, "Error initializing media channel", status); 
    13911393            pjsip_dlg_respond(dlg, rdata, sip_err_code, NULL, NULL, NULL); 
    1392             pjsip_inv_terminate(call->inv, sip_err_code, PJ_FALSE); 
     1394            if (call->inv && call->inv->dlg) { 
     1395                pjsip_inv_terminate(call->inv, sip_err_code, PJ_FALSE); 
     1396            } 
    13931397            call->inv = NULL; 
    13941398            call->async_call.dlg = NULL; 
Note: See TracChangeset for help on using the changeset viewer.