Ignore:
Timestamp:
May 19, 2011 8:05:23 AM (13 years ago)
Author:
ming
Message:

Fixed #1268: Option for automatic/manual sending of RTCP SDES/BYE for the stream.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/src/pjmedia/session.c

    r3553 r3571  
    814814 
    815815/** 
     816 * Send RTCP SDES for the session. 
     817 */ 
     818PJ_DEF(pj_status_t)  
     819pjmedia_session_send_rtcp_sdes( const pjmedia_session *session ) 
     820{ 
     821    unsigned i; 
     822 
     823    PJ_ASSERT_RETURN(session, PJ_EINVAL); 
     824 
     825    for (i=0; i<session->stream_cnt; ++i) { 
     826        pjmedia_stream_send_rtcp_sdes(session->stream[i]); 
     827    } 
     828 
     829    return PJ_SUCCESS; 
     830} 
     831 
     832/** 
     833 * Send RTCP BYE for the session. 
     834 */ 
     835PJ_DEF(pj_status_t)  
     836pjmedia_session_send_rtcp_bye( const pjmedia_session *session ) 
     837{ 
     838    unsigned i; 
     839 
     840    PJ_ASSERT_RETURN(session, PJ_EINVAL); 
     841 
     842    for (i=0; i<session->stream_cnt; ++i) { 
     843        pjmedia_stream_send_rtcp_bye(session->stream[i]); 
     844    } 
     845 
     846    return PJ_SUCCESS; 
     847} 
     848 
     849/** 
    816850 * Enumerate media stream in the session. 
    817851 */ 
Note: See TracChangeset for help on using the changeset viewer.