Ignore:
Timestamp:
May 10, 2016 2:58:41 PM (8 years ago)
Author:
riza
Message:

Fixed #1914: onCreateMediaTransport() callback might not be called on PJSUA2.

File:
1 edited

Legend:

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

    r5252 r5288  
    11011101    pjsip_inv_session *inv = NULL; 
    11021102    int acc_id; 
    1103     pjsua_call *call; 
     1103    pjsua_call *call = NULL; 
    11041104    int call_id = -1; 
    11051105    int sip_err_code = PJSIP_SC_INTERNAL_SERVER_ERROR; 
     
    12221222            goto on_return; 
    12231223        } 
     1224    } 
     1225 
     1226    if (!replaced_dlg) { 
     1227        /* Clone rdata. */ 
     1228        pjsip_rx_data_clone(rdata, 0, &call->incoming_data); 
    12241229    } 
    12251230 
     
    16371642    if (dlg) { 
    16381643        pjsip_dlg_dec_lock(dlg); 
     1644    } 
     1645 
     1646    if (call && call->incoming_data) { 
     1647        pjsip_rx_data_free_cloned(call->incoming_data); 
     1648        call->incoming_data = NULL; 
    16391649    } 
    16401650     
Note: See TracChangeset for help on using the changeset viewer.