}
for (map = m->m_rtpmaps; map; map = map->rm_next) {
- int32_t i;
const char *rm_encoding;
- uint32_t map_bit_rate = 0;
- switch_codec_fmtp_t codec_fmtp = { 0 };
- if (x++ < skip) {
- continue;
- }
-
if (!(rm_encoding = map->rm_encoding)) {
rm_encoding = "";
}
-
+
+
if (!strcasecmp(rm_encoding, "telephone-event")) {
if (!best_te || map->rm_rate == a_engine->codec_params.rm_rate) {
best_te = (switch_payload_t) map->rm_pt;
}
}
+ }
+
+ for (map = m->m_rtpmaps; map; map = map->rm_next) {
+ int32_t i;
+ const char *rm_encoding;
+ uint32_t map_bit_rate = 0;
+ switch_codec_fmtp_t codec_fmtp = { 0 };
+ printf("WTF %d %s\n", x, map->rm_encoding);
+ if (x++ < skip) {
+ continue;
+ }
+
+ if (!(rm_encoding = map->rm_encoding)) {
+ rm_encoding = "";
+ }
+
if (match) {
continue;
}
if (!zstr(a_engine->local_dtls_fingerprint.str) && switch_rtp_has_dtls()) {
dtls_type_t xtype, dtype = switch_channel_direction(smh->session->channel) == SWITCH_CALL_DIRECTION_INBOUND ? DTLS_TYPE_CLIENT : DTLS_TYPE_SERVER;
+
xtype = DTLS_TYPE_RTP;
if (a_engine->rtcp_mux > 0) xtype |= DTLS_TYPE_RTCP;