Changes between Initial Version and Version 1 of Ticket #865, comment 11


Ignore:
Timestamp:
Mar 8, 2018 2:08:03 AM (7 years ago)
Author:
ming
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #865, comment 11

    initial v1  
    11In [changeset:5752]: 
    2 {{{ 
    3 #!CommitTicketReference repository="" revision="5752" 
     2 
    43Fixed #865: More clever RTP transport remote address switch 
    54 
    65The summary of changes: 
    7 - To solve no 2: 
    8 Add callback rtp_cb2(pjmedia_tp_cb_param *param) which allows application to get more info from the media transport, such as the packet's source address. 
    9 - To solve no 3: 
    10 Add compile time option PJMEDIA_TRANSPORT_SWITCH_REMOTE_ADDR (by default enabled). Currently, there are already runtime options PJMEDIA_UDP_NO_SRC_ADDR_CHECKING and PJMEDIA_ICE_NO_SRC_ADDR_CHECKING, but there are a few drawbacks: 
     6- To solve no 2:[[br]] 
     7 Add callback rtp_cb2(pjmedia_tp_cb_param *param) which allows application to get more info from the media transport, such as the packet's source address. 
     8- To solve no 3:[[br]] 
     9 Add compile time option PJMEDIA_TRANSPORT_SWITCH_REMOTE_ADDR (by default enabled). Currently, there are already runtime options PJMEDIA_UDP_NO_SRC_ADDR_CHECKING and PJMEDIA_ICE_NO_SRC_ADDR_CHECKING, but there are a few drawbacks: 
    1110 * the options are not exported to the higher level, such as stream, or pjsua. 
    1211 * the options are separate for each transport, UDP and ICE, there's no single option to do this. 
    13 - To solve no 1: 
    14 Using the new rtp_cb2() callback, move the functionality to check the packet's source address to the stream/video stream. 
    15 By checking the RTP pt and SSRC, there are a few advantages: 
     12- To solve no 1:[[br]] 
     13 Using the new rtp_cb2() callback, move the functionality to check the packet's source address to the stream/video stream. [[br]]By checking the RTP pt and SSRC, there are a few advantages: 
    1614 * When receiving packets from multiple sources, stream can choose the packet with the correct SSRC as advertised from the SDP, and discard the others (see also ticket #1366). 
    1715 * If remote address switch is enabled, a faster switch can be achieved as soon as packet with correct ssrc is received, instead of waiting for several consecutive packets (according to setting PJMEDIA_RTP_NAT_PROBATION_CNT). 
    18 }}}