Ignore:
Timestamp:
Mar 15, 2018 3:00:59 AM (7 years ago)
Author:
nanang
Message:

Close #2100:

  • Added new APIs:
    • PJMEDIA: pjmedia_srtp_enum_crypto(), pjmedia_srtp_enum_keying()
    • PJSUA: pjsua_config.srtp_opt, pjsua_acc_config.srtp_opt, pjsua_srtp_opt_default()
    • PJSUA2: AccountMediaConfig::srtpOpt, Endpoint::srtpCryptoEnum()
  • Deprecated PJSUA callback on_create_media_transport_srtp() (not removed yet, just warnings).
  • Slightly refactored SRTP code:
    • Fixed potential issue with on_create_media_transport_srtp(), some PJSUA internal values in pjmedia_srtp_setting may be overridden by app.
    • Fixed few issues in SRTP and keying mechanism, e.g: premature local SDP modification (it should be done after verification).
    • Potential minor backward compatibility issue: default value of pjmedia_srtp_setting.crypto_count is now zero, previously it was initialized with all crypto via pjmedia_srtp_setting_default(), actually zero and all cryptos in this setting semantically are the same.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua2/call.hpp

    r5676 r5755  
    965965     */ 
    966966    unsigned        flags; 
    967 }; 
    968  
    969 /** 
    970  * SRTP crypto. 
    971  */ 
    972 struct SrtpCrypto 
    973 { 
    974     /** 
    975      * Optional key. If empty, a random key will be autogenerated. 
    976      */ 
    977     string      key; 
    978  
    979     /** 
    980      * Crypto name. 
    981      */ 
    982     string      name; 
    983  
    984     /** 
    985      * Flags, bitmask from #pjmedia_srtp_crypto_option 
    986      */ 
    987     unsigned    flags; 
    988967}; 
    989968 
     
    18081787 
    18091788    /** 
     1789     * Warning: deprecated and may be removed in future release. 
     1790     * Application can set SRTP crypto settings (including keys) and 
     1791     * keying methods via AccountConfig.mediaConfig.srtpOpt. 
     1792     * See also ticket #2100. 
     1793     * 
    18101794     * This callback is called when SRTP media transport is created. 
    18111795     * Application can modify the SRTP setting \a srtpOpt to specify 
Note: See TracChangeset for help on using the changeset viewer.