Changeset 3919


Ignore:
Timestamp:
Dec 23, 2011 3:07:33 AM (12 years ago)
Author:
ming
Message:

Re #1430: Fixed crash when STUN & ICE is off

File:
1 edited

Legend:

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

    r3918 r3919  
    713713    call->async_call.dlg = dlg; 
    714714 
     715    /* Temporarily increment dialog session. Without this, dialog will be 
     716     * prematurely destroyed if dec_lock() is called on the dialog before 
     717     * the invite session is created. 
     718     */ 
     719    pjsip_dlg_inc_session(dlg, &pjsua_var.mod); 
     720 
    715721    /* Init media channel */ 
    716722    status = pjsua_media_channel_init(call->index, PJSIP_ROLE_UAC,  
     
    724730    } else if (status != PJ_EPENDING) { 
    725731        pjsua_perror(THIS_FILE, "Error initializing media channel", status); 
     732        pjsip_dlg_dec_session(dlg, &pjsua_var.mod); 
    726733        goto on_error; 
    727734    } 
    728  
    729     /* Temporarily increment dialog session. Without this, dialog will be 
    730      * prematurely destroyed if dec_lock() is called on the dialog before 
    731      * the invite session is created. 
    732      */ 
    733     pjsip_dlg_inc_session(dlg, &pjsua_var.mod); 
    734735 
    735736    /* Done. */ 
Note: See TracChangeset for help on using the changeset viewer.