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/pjsip/src/pjsua-lib/pjsua_media.c

    r3553 r3571  
    15311531    pjsua_call *call = &pjsua_var.calls[call_id]; 
    15321532 
     1533    if (call->session) 
     1534        pjmedia_session_send_rtcp_bye(call->session); 
     1535 
    15331536    stop_media_session(call_id); 
    15341537 
     
    15741577                                       const pjmedia_sdp_session *remote_sdp) 
    15751578{ 
     1579    unsigned i; 
    15761580    int prev_media_st = 0; 
    15771581    pjsua_call *call = &pjsua_var.calls[call_id]; 
     
    15981602    if (status != PJ_SUCCESS) 
    15991603        return status; 
     1604 
     1605    for (i = 0; i < sess_info.stream_cnt; ++i) { 
     1606        sess_info.stream_info[i].rtcp_sdes_bye_disabled = PJ_TRUE; 
     1607    } 
    16001608 
    16011609    /* Update audio index from the negotiated SDP */ 
     
    17171725            return status; 
    17181726        } 
     1727 
     1728        if (prev_media_st == PJSUA_CALL_MEDIA_NONE) 
     1729            pjmedia_session_send_rtcp_sdes(call->session); 
    17191730 
    17201731        /* If DTMF callback is installed by application, install our 
Note: See TracChangeset for help on using the changeset viewer.