- Timestamp:
- Dec 1, 2010 8:20:28 AM (14 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_srtp.c
r3348 r3376 646 646 647 647 p_srtp->session_inited = PJ_FALSE; 648 pj_bzero(&p_srtp->rx_policy, sizeof(p_srtp->rx_policy)); 649 pj_bzero(&p_srtp->tx_policy, sizeof(p_srtp->tx_policy)); 648 650 649 651 pj_lock_release(p_srtp->mutex); … … 1222 1224 1223 1225 srtp->offerer_side = sdp_remote == NULL; 1226 srtp->bypass_srtp = PJ_FALSE; 1224 1227 1225 1228 m_rem = sdp_remote ? sdp_remote->media[media_index] : NULL; … … 1577 1580 srtp->bypass_srtp = PJ_TRUE; 1578 1581 srtp->peer_use = PJMEDIA_SRTP_DISABLED; 1582 if (srtp->session_inited) { 1583 pjmedia_transport_srtp_stop(tp); 1584 } 1579 1585 1580 1586 PROPAGATE_MEDIA_START: -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3334 r3376 1248 1248 1249 1249 #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 1250 srtp_active = acc->cfg.use_srtp && srtp != NULL;1250 srtp_active = acc->cfg.use_srtp; 1251 1251 #else 1252 1252 srtp_active = PJ_FALSE; … … 1300 1300 if (call->med_tp == NULL) { 1301 1301 return PJ_EBUSY; 1302 } 1303 1304 if (rem_sdp && rem_sdp->media_count != 0) { 1305 pj_bool_t srtp_active; 1306 1307 #if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0) 1308 srtp_active = pjsua_var.acc[call->acc_id].cfg.use_srtp; 1309 #else 1310 srtp_active = PJ_FALSE; 1311 #endif 1312 1313 call->audio_idx = find_audio_index(rem_sdp, srtp_active); 1302 1314 } 1303 1315
Note: See TracChangeset
for help on using the changeset viewer.