Ignore:
Timestamp:
Jul 26, 2018 7:19:39 AM (6 years ago)
Author:
nanang
Message:

Re #2096:

  • Added new error code for sending RTP/RTCP failure when DTLS-SRTP nego is in progress.
  • When sending RTP/RTCP fails, only print error message once for consecutive same errors.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c

    r5811 r5845  
    11901190    if (!srtp->session_inited) { 
    11911191        pj_lock_release(srtp->mutex); 
    1192         return PJ_EINVALIDOP; 
     1192        return PJMEDIA_SRTP_EKEYNOTREADY; 
    11931193    } 
    11941194    err = srtp_protect(srtp->srtp_tx_ctx, srtp->rtp_tx_buffer, &len); 
     
    12361236    if (!srtp->session_inited) { 
    12371237        pj_lock_release(srtp->mutex); 
    1238         return PJ_EINVALIDOP; 
     1238        return PJMEDIA_SRTP_EKEYNOTREADY; 
    12391239    } 
    12401240    err = srtp_protect_rtcp(srtp->srtp_tx_ctx, srtp->rtcp_tx_buffer, &len); 
Note: See TracChangeset for help on using the changeset viewer.