mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-10 11:50:53 +00:00
rearrange things to work better
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4311 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
4913ae24e1
commit
368ac20dc1
3 files changed
+43
-17
No files matched your search
+3
-4
@@ -2195,12 +2195,11 @@ SWITCH_DECLARE(void) switch_core_session_reset(switch_core_session_t *session)
|
||||
switch_buffer_destroy(&session->raw_read_buffer);
|
||||
switch_buffer_destroy(&session->raw_write_buffer);
|
||||
|
||||
/* reset state handlers and flush dtmf */
|
||||
/* flush dtmf */
|
||||
channel = switch_core_session_get_channel(session);
|
||||
switch_channel_clear_state_handler(channel, NULL);
|
||||
|
||||
if ((has = switch_channel_has_dtmf(channel))) {
|
||||
switch_channel_dequeue_dtmf(channel, buf, has);
|
||||
while ((has = switch_channel_has_dtmf(channel))) {
|
||||
switch_channel_dequeue_dtmf(channel, buf, sizeof(buf));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user