Changeset 4509


Ignore:
Timestamp:
Apr 29, 2013 5:30:57 AM (12 years ago)
Author:
nanang
Message:

Fixed #1662: Reset/nullify the pointer to dialog in internal PJSUA call structure after an incoming call is terminated due to media channel init error.

File:
1 edited

Legend:

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

    r4460 r4509  
    13721372                pjsip_dlg_respond(dlg, rdata, sip_err_code, NULL, NULL, NULL); 
    13731373                pjsip_inv_terminate(call->inv, sip_err_code, PJ_FALSE);  
    1374                 call->inv = NULL;  
     1374                call->inv = NULL; 
     1375                call->async_call.dlg = NULL; 
    13751376                goto on_return; 
    13761377            } 
     
    13801381            pjsip_inv_terminate(call->inv, sip_err_code, PJ_FALSE);  
    13811382            call->inv = NULL;  
     1383            call->async_call.dlg = NULL; 
    13821384            goto on_return; 
    13831385        } 
     
    14061408        pjsua_media_channel_deinit(call->index); 
    14071409        call->inv = NULL; 
     1410        call->async_call.dlg = NULL; 
    14081411 
    14091412        goto on_return; 
     
    14451448        pjsua_media_channel_deinit(call->index); 
    14461449        call->inv = NULL; 
     1450        call->async_call.dlg = NULL; 
    14471451        goto on_return; 
    14481452 
     
    14531457            pjsua_media_channel_deinit(call->index); 
    14541458            call->inv = NULL; 
     1459            call->async_call.dlg = NULL; 
    14551460            goto on_return; 
    14561461        } 
Note: See TracChangeset for help on using the changeset viewer.