Changeset 2945 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Oct 14, 2009 1:13:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r2943 r2945 822 822 pjsua_var.ua_cfg.cb.on_call_media_state(id); 823 823 } 824 } else { 825 /* Send UPDATE if default transport address is different than 826 * what was advertised (ticket #881) 827 */ 828 pjmedia_transport_info tpinfo; 829 pjmedia_ice_transport_info *ii = NULL; 830 unsigned i; 831 832 pjmedia_transport_info_init(&tpinfo); 833 pjmedia_transport_get_info(tp, &tpinfo); 834 for (i=0; i<tpinfo.specific_info_cnt; ++i) { 835 if (tpinfo.spc_info[i].type==PJMEDIA_TRANSPORT_TYPE_ICE) { 836 ii = (pjmedia_ice_transport_info*) 837 tpinfo.spc_info[i].buffer; 838 break; 839 } 840 } 841 842 if (ii && ii->role==PJ_ICE_SESS_ROLE_CONTROLLING && 843 pj_sockaddr_cmp(&tpinfo.sock_info.rtp_addr_name, 844 &pjsua_var.calls[id].med_rtp_addr)) 845 { 846 PJ_LOG(4,(THIS_FILE, 847 "ICE default transport address has changed for " 848 "call %d, sending UPDATE", id)); 849 pjsua_call_update(id, 0, NULL); 850 } 824 851 } 825 852 break; … … 1321 1348 } 1322 1349 1350 /* Update currently advertised RTP source address */ 1351 pj_memcpy(&call->med_rtp_addr, &tpinfo.sock_info.rtp_addr_name, 1352 sizeof(pj_sockaddr)); 1353 1323 1354 *p_sdp = sdp; 1324 1355 return PJ_SUCCESS; … … 1483 1514 pjmedia_transport_get_info(call->med_tp, &tp_info); 1484 1515 if (tp_info.specific_info_cnt > 0) { 1485 inti;1516 unsigned i; 1486 1517 for (i = 0; i < tp_info.specific_info_cnt; ++i) { 1487 1518 if (tp_info.spc_info[i].type == PJMEDIA_TRANSPORT_TYPE_SRTP)
Note: See TracChangeset
for help on using the changeset viewer.