]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8275 #resolve [RFC2833 DTMF broken in recent master]
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 2 Oct 2015 00:43:51 +0000 (19:43 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 2 Oct 2015 00:43:51 +0000 (19:43 -0500)
src/switch_core_media.c

index edcd43a9b2af102ea52e120d43e09d93ed2b6e98..1775b8062592489a33734b65f1bd01d952566313 100644 (file)
@@ -4434,7 +4434,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s
                        }
 
                        if (best_te) {
-                               if (sdp_type == SDP_TYPE_REQUEST) {
+                               if (sdp_type == SDP_TYPE_RESPONSE) {
                                        te = smh->mparams->te = (switch_payload_t) best_te;
                                        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s Set 2833 dtmf send payload to %u\n", 
                                                                          switch_channel_get_name(session->channel), best_te);