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

    r5712 r5755  
    115115    cfg->use_timer = PJSUA_SIP_TIMER_OPTIONAL; 
    116116    pjsip_timer_setting_default(&cfg->timer_setting); 
     117    pjsua_srtp_opt_default(&cfg->srtp_opt); 
    117118} 
    118119 
     
    253254    } 
    254255} 
     256 
     257 
     258PJ_DEF(void) pjsua_srtp_opt_default(pjsua_srtp_opt *cfg) 
     259{ 
     260    pj_bzero(cfg, sizeof(*cfg)); 
     261} 
     262 
    255263 
    256264PJ_DEF(void) pjsua_acc_config_default(pjsua_acc_config *cfg) 
     
    289297    cfg->srtp_secure_signaling = pjsua_var.ua_cfg.srtp_secure_signaling; 
    290298    cfg->srtp_optional_dup_offer = pjsua_var.ua_cfg.srtp_optional_dup_offer; 
     299    cfg->srtp_opt = pjsua_var.ua_cfg.srtp_opt; 
    291300    cfg->reg_retry_interval = PJSUA_REG_RETRY_INTERVAL; 
    292301    cfg->reg_retry_random_interval = 10; 
Note: See TracChangeset for help on using the changeset viewer.