Changeset 5788 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- May 9, 2018 6:58:48 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r5774 r5788 579 579 pj_sockaddr_cp(&skinfo->rtcp_addr_name, &mapped_addr[1]); 580 580 581 PJ_LOG(4,(THIS_FILE, "RTP socket reachable at %s", 581 PJ_LOG(4,(THIS_FILE, "RTP%s socket reachable at %s", 582 (call_med->enable_rtcp_mux? " & RTCP": ""), 582 583 pj_sockaddr_print(&skinfo->rtp_addr_name, addr_buf, 583 584 sizeof(addr_buf), 3))); … … 1832 1833 1833 1834 if (call_med->tp) { 1835 unsigned options = (call_med->enable_rtcp_mux? 1836 PJMEDIA_TPMED_RTCP_MUX: 0); 1834 1837 status = pjmedia_transport_media_create( 1835 1838 call_med->tp, tmp_pool, 1836 0, call->async_call.rem_sdp, mi);1839 options, call->async_call.rem_sdp, mi); 1837 1840 } 1838 1841 if (status != PJ_SUCCESS) { … … 2154 2157 2155 2158 if (enabled) { 2159 call_med->enable_rtcp_mux = acc->cfg.enable_rtcp_mux; 2160 2156 2161 status = pjsua_call_media_init(call_med, media_type, 2157 2162 &acc->cfg.rtp_cfg, … … 2790 2795 * internally by ICE and does not need to cause media restart. 2791 2796 */ 2797 if (old_si->rtcp_mux != new_si->rtcp_mux) 2798 return PJ_TRUE; 2792 2799 if (!is_ice_running(call_med->tp) && 2793 2800 pj_sockaddr_cmp(&old_si->rem_addr, &new_si->rem_addr)) … … 2852 2859 * internally by ICE and does not need to cause media restart. 2853 2860 */ 2861 if (old_si->rtcp_mux != new_si->rtcp_mux) 2862 return PJ_TRUE; 2854 2863 if (!is_ice_running(call_med->tp) && 2855 2864 pj_sockaddr_cmp(&old_si->rem_addr, &new_si->rem_addr)) … … 3027 3036 call_id, mi)); 3028 3037 goto on_check_med_status; 3038 } 3039 3040 /* Check if remote wants RTP and RTCP multiplexing, 3041 * but we don't enable it. 3042 */ 3043 if (si->rtcp_mux && !call_med->enable_rtcp_mux) { 3044 si->rtcp_mux = PJ_FALSE; 3029 3045 } 3030 3046 … … 3071 3087 3072 3088 if (call->inv->following_fork) { 3089 unsigned options = (call_med->enable_rtcp_mux? 3090 PJMEDIA_TPMED_RTCP_MUX: 0); 3073 3091 /* Normally media transport will automatically restart 3074 3092 * itself (if needed, based on info from the SDP) in … … 3088 3106 status = pjmedia_transport_media_create(call_med->tp, 3089 3107 tmp_pool, 3090 0, NULL, mi);3108 options, NULL, mi); 3091 3109 if (status != PJ_SUCCESS) { 3092 3110 PJ_PERROR(1,(THIS_FILE, status, … … 3205 3223 } 3206 3224 3225 /* Check if remote wants RTP and RTCP multiplexing, 3226 * but we don't enable it. 3227 */ 3228 if (si->rtcp_mux && !call_med->enable_rtcp_mux) { 3229 si->rtcp_mux = PJ_FALSE; 3230 } 3231 3207 3232 /* Check if this media is changed */ 3208 3233 stream_info.type = PJMEDIA_TYPE_VIDEO;
Note: See TracChangeset
for help on using the changeset viewer.