Changeset 2724 for pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
- Timestamp:
- May 29, 2009 1:04:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sdp_neg.c
r2643 r2724 866 866 { 867 867 /* Further check for G7221, negotiate bitrate. */ 868 if (pj_str cmp2(&or_.enc_name, "G7221") == 0) {868 if (pj_stricmp2(&or_.enc_name, "G7221") == 0) { 869 869 if (match_g7221(offer, i, answer, j)) 870 870 break; 871 871 } else 872 872 /* Further check for AMR, negotiate fmtp. */ 873 if (pj_strcmp2(&or_.enc_name, "AMR") == 0) { 873 if (pj_stricmp2(&or_.enc_name, "AMR") == 0 || 874 pj_stricmp2(&or_.enc_name, "AMR-WB") == 0) 875 { 874 876 if (match_amr(offer, i, answer, j, PJ_FALSE, 875 877 NULL)) … … 1071 1073 pjmedia_sdp_attr_get_rtpmap(a, &or_); 1072 1074 1073 if (!pj_str cmp2(&or_.enc_name, "telephone-event")) {1075 if (!pj_stricmp2(&or_.enc_name, "telephone-event")) { 1074 1076 master_has_telephone_event = 1; 1075 1077 if (found_matching_telephone_event) … … 1098 1100 if (!pj_stricmp(&or_.enc_name, &lr.enc_name) && 1099 1101 or_.clock_rate == lr.clock_rate && 1100 (pj_str cmp(&or_.param, &lr.param)==0 ||1102 (pj_stricmp(&or_.param, &lr.param)==0 || 1101 1103 (or_.param.slen==1 && *or_.param.ptr=='1'))) 1102 1104 { … … 1104 1106 if (is_codec) { 1105 1107 /* Further check for G7221, negotiate bitrate */ 1106 if (pj_str cmp2(&or_.enc_name, "G7221") == 0 &&1108 if (pj_stricmp2(&or_.enc_name, "G7221") == 0 && 1107 1109 !match_g7221(master, i, slave, j)) 1108 1110 { … … 1110 1112 } else 1111 1113 /* Further check for AMR, negotiate fmtp */ 1112 if (pj_strcmp2(&or_.enc_name, "AMR")==0) { 1114 if (pj_stricmp2(&or_.enc_name, "AMR")==0 || 1115 pj_stricmp2(&or_.enc_name, "AMR-WB")==0) 1116 { 1113 1117 unsigned o_med_idx, a_med_idx; 1114 1118
Note: See TracChangeset
for help on using the changeset viewer.