Changeset 3858


Ignore:
Timestamp:
Oct 25, 2011 1:39:06 PM (8 years ago)
Author:
bennylp
Message:

Fixed call_med->rtp_addr is not initialized causing UPDATE to be sent after every ICE negotiation (misc re #1392)

File:
1 edited

Legend:

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

    r3849 r3858  
    827827                PJ_LOG(4,(THIS_FILE,  
    828828                          "ICE default transport address has changed for " 
    829                           "call %d, sending %s", call_med->call->index, 
     829                          "call %d, sending %s", 
     830                          call_med->call->index, 
    830831                          (use_update ? "UPDATE" : "re-INVITE"))); 
    831832 
     
    12931294{ 
    12941295    pjsua_acc *acc = &pjsua_var.acc[call_med->call->acc_id]; 
     1296    pjmedia_transport_info tpinfo; 
    12951297    int err_code = 0; 
    12961298 
     
    13521354    PJ_UNUSED_ARG(security_level); 
    13531355#endif 
     1356 
     1357 
     1358    pjmedia_transport_info_init(&tpinfo); 
     1359    pjmedia_transport_get_info(call_med->tp, &tpinfo); 
     1360 
     1361    pj_sockaddr_cp(&call_med->rtp_addr, &tpinfo.sock_info.rtp_addr_name); 
     1362 
    13541363 
    13551364on_error: 
Note: See TracChangeset for help on using the changeset viewer.