]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 May 2006 01:44:41 +0000 (01:44 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 4 May 2006 01:44:41 +0000 (01:44 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1343 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c
src/switch_ivr.c

index 7a709459deb83dd8b175771d141c3457327f4c93..d38e7bc9c5d96a7a5093be0b70dd86a28de97898 100644 (file)
@@ -243,8 +243,8 @@ SWITCH_DECLARE(switch_status_t) switch_channel_queue_dtmf(switch_channel_t *chan
                } else {
                        break;
                }
+               p++;
        }
-
        status = switch_buffer_write(channel->dtmf_buffer, dtmf, wr) ? SWITCH_STATUS_SUCCESS : SWITCH_STATUS_MEMERR;
        switch_mutex_unlock(channel->dtmf_mutex);
 
index f517fcd712bd9f47b34ee893857a9b0e51938b24..90694088276606229b24f075360b39e97f9dd450 100644 (file)
@@ -767,6 +767,8 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
                                }
                                ans_a++;
                        }
+                       
+
 
                        /* if 1 channel has DTMF pass it to the other */
                        if (switch_channel_has_dtmf(chan_a)) {
@@ -781,7 +783,7 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
                                                break;
                                        }
                                }
-                       }
+                       } 
                }
 
                /* read audio from 1 channel and write it to the other */
@@ -793,7 +795,7 @@ static void *audio_bridge_thread(switch_thread_t *thread, void *obj)
                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "write: %s Bad Frame....[%u] Bubye!\n", switch_channel_get_name(chan_b), read_frame->datalen);
                                        data->running = -1;
                                }
-                       }
+                       } 
                } else {
                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "read: %s Bad Frame.... Bubye!\n", switch_channel_get_name(chan_a));
                        data->running = -1;