- Timestamp:
- Mar 15, 2018 3:00:59 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_srtp_dtls.c
r5750 r5755 1016 1016 */ 1017 1017 pjmedia_sdp_media *m_rem = sdp_remote->media[media_index]; 1018 pjmedia_sdp_attr *attr_setup; 1018 1019 1019 1020 if (pj_stricmp(&m_rem->desc.transport, &ID_TP_DTLS_SRTP)!=0) { … … 1021 1022 status = PJMEDIA_SRTP_ESDPINTRANSPORT; 1022 1023 goto on_return; 1024 } 1025 1026 /* Check for a=setup in remote SDP. */ 1027 attr_setup = pjmedia_sdp_media_find_attr(m_rem, &ID_SETUP, NULL); 1028 if (!attr_setup) 1029 attr_setup = pjmedia_sdp_attr_find(sdp_remote->attr_count, 1030 sdp_remote->attr, &ID_SETUP, NULL); 1031 switch (ds->srtp->setting.use) { 1032 case PJMEDIA_SRTP_DISABLED: 1033 if (attr_setup) 1034 return PJMEDIA_SRTP_ESDPINTRANSPORT; 1035 break; 1036 case PJMEDIA_SRTP_OPTIONAL: 1037 break; 1038 case PJMEDIA_SRTP_MANDATORY: 1039 if (!attr_setup) 1040 return PJMEDIA_SRTP_ESDPINTRANSPORT; 1041 break; 1023 1042 } 1024 1043 }
Note: See TracChangeset
for help on using the changeset viewer.