Ignore:
Timestamp:
Jan 23, 2008 8:39:07 PM (16 years ago)
Author:
bennylp
Message:

Ticket #61: Implement SRTP support in PJMEDIA and PJSUA-LIB, and updated applications because of the changes. This is a major modification back ported from SRTP branch. See ticket #61 for changelog detail of this commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c

    r1705 r1735  
    8888    cfg->thread_cnt = 1; 
    8989    cfg->nat_type_in_sdp = 1; 
     90#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
     91    cfg->use_srtp = PJSUA_DEFAULT_USE_SRTP; 
     92    cfg->srtp_secure_signaling = PJSUA_DEFAULT_SRTP_SECURE_SIGNALING; 
     93#endif 
    9094} 
    9195 
     
    143147    cfg->ka_interval = 15; 
    144148    cfg->ka_data = pj_str("\r\n"); 
     149#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 
     150    cfg->use_srtp = pjsua_var.ua_cfg.use_srtp; 
     151    cfg->srtp_secure_signaling = pjsua_var.ua_cfg.srtp_secure_signaling; 
     152#endif 
    145153} 
    146154 
Note: See TracChangeset for help on using the changeset viewer.