]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make room for t38 packets
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 21 Oct 2008 17:16:39 +0000 (17:16 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 21 Oct 2008 17:16:39 +0000 (17:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10092 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index 54ff9f76883d0fcbfa7a5ef6a8984a0626899732..96f9c5c2b0986888268cee845c14d99a641a6a58 100644 (file)
@@ -980,7 +980,7 @@ SWITCH_DECLARE(void) switch_rtp_break(switch_rtp_t *rtp_session)
        switch_set_flag(rtp_session, SWITCH_RTP_FLAG_BREAK);
 
        if (rtp_session->sock_input) {
-               char o[8] = "PING...";
+               char o[4] = "DOH";
                switch_size_t len = sizeof(o);
                
                switch_socket_sendto(rtp_session->sock_input, rtp_session->local_addr, 0, (void *) o, &len);
@@ -1275,7 +1275,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_
                        return_cng_frame();
                }
 
-               if (bytes && bytes <= 12) {
+               if (bytes && bytes < 8) {
                        continue;
                }