Changeset 5417 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Aug 12, 2016 3:47:26 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r5384 r5417 1481 1481 else 1482 1482 srtp_opt.use = acc->cfg.use_srtp; 1483 1484 if (pjsua_var.ua_cfg.cb.on_create_media_transport_srtp) { 1485 pjsua_call *call = call_med->call; 1486 pjmedia_srtp_use srtp_use = srtp_opt.use; 1487 1488 (*pjsua_var.ua_cfg.cb.on_create_media_transport_srtp) 1489 (call->index, call_med->idx, &srtp_opt); 1490 1491 /* Close_member_tp must not be overwritten by app */ 1492 srtp_opt.close_member_tp = PJ_TRUE; 1493 1494 /* Revert SRTP usage policy if media is reinitialized */ 1495 if (call->inv && call->inv->state == PJSIP_INV_STATE_CONFIRMED) { 1496 srtp_opt.use = srtp_use; 1497 } 1498 } 1483 1499 1484 1500 status = pjmedia_transport_srtp_create(pjsua_var.med_endpt,
Note: See TracChangeset
for help on using the changeset viewer.