]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8425 #resolve [DTMF sometimes missed on PSTN call]
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 6 Nov 2015 20:33:07 +0000 (14:33 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 13 Nov 2015 16:55:47 +0000 (10:55 -0600)
src/switch_rtp.c

index 97650b3019ffc615156acfd9f09726f032ca2fbb..86283587f49a9b31966f4fffc95fce4706b37af3 100644 (file)
@@ -5508,7 +5508,7 @@ static switch_status_t read_rtp_packet(switch_rtp_t *rtp_session, switch_size_t
        if (rtp_session->last_rtp_hdr.pt == rtp_session->recv_te || 
                (*bytes < rtp_header_len && *bytes > 0) ||
                rtp_session->flags[SWITCH_RTP_FLAG_PROXY_MEDIA] || rtp_session->flags[SWITCH_RTP_FLAG_UDPTL]) {
-               return SWITCH_STATUS_SUCCESS;
+               return SWITCH_STATUS_BREAK;
        }
 
        if (ts) {
@@ -6101,10 +6101,10 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
                                                goto rtcp;
                                        }
 
-                                       //if (status != SWITCH_STATUS_FALSE) {
-                                       //      read_pretriggered = 1;
-                                       //      break;
-                                       //}
+                                       if (status == SWITCH_STATUS_BREAK) {
+                                               read_pretriggered = 1;
+                                               break;
+                                       }
                                }
                                
                        } else if ((rtp_session->flags[SWITCH_RTP_FLAG_AUTOFLUSH] || rtp_session->flags[SWITCH_RTP_FLAG_STICKY_FLUSH])) {