Changeset 5746 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Feb 26, 2018 7:50:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r5677 r5746 1011 1011 } 1012 1012 1013 /* 1014 * This callback is called when media transport SRTP needs to be created. 1015 */ 1016 static void on_create_media_transport_srtp(pjsua_call_id call_id, 1017 unsigned media_idx, 1018 pjmedia_srtp_setting *srtp_opt) 1019 { 1020 PJ_UNUSED_ARG(call_id); 1021 PJ_UNUSED_ARG(media_idx); 1022 1023 /* Set SRTP keying to use DTLS over SDES */ 1024 if (app_config.srtp_keying == 1) { 1025 srtp_opt->keying_count = 2; 1026 srtp_opt->keying[0] = PJMEDIA_SRTP_KEYING_DTLS_SRTP; 1027 srtp_opt->keying[1] = PJMEDIA_SRTP_KEYING_SDES; 1028 } 1029 } 1030 1031 1013 1032 #ifdef TRANSPORT_ADAPTER_SAMPLE 1014 1033 /* … … 1344 1363 app_config.cfg.cb.on_snd_dev_operation = &on_snd_dev_operation; 1345 1364 app_config.cfg.cb.on_call_media_event = &on_call_media_event; 1365 app_config.cfg.cb.on_create_media_transport_srtp = 1366 &on_create_media_transport_srtp; 1346 1367 #ifdef TRANSPORT_ADAPTER_SAMPLE 1347 1368 app_config.cfg.cb.on_create_media_transport = &on_create_media_transport;
Note: See TracChangeset
for help on using the changeset viewer.