From 2091f4f0d31712556648276407d0c3fb0a83c67e Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Thu, 21 Jun 2012 09:52:13 -0500 Subject: [PATCH] FS-4319 --resolve portaudio not always moving the active call to the top of its internal list (invalid ringing) --- src/mod/endpoints/mod_portaudio/mod_portaudio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod/endpoints/mod_portaudio/mod_portaudio.c b/src/mod/endpoints/mod_portaudio/mod_portaudio.c index c66ed8a95b..abc36620dd 100644 --- a/src/mod/endpoints/mod_portaudio/mod_portaudio.c +++ b/src/mod/endpoints/mod_portaudio/mod_portaudio.c @@ -2806,6 +2806,9 @@ static switch_status_t answer_call(char **argv, int argc, switch_stream_handle_t } else { switch_channel_t *channel = switch_core_session_get_channel(tp->session); switch_set_flag_locked(tp, TFLAG_ANSWER); + if (tp != globals.call_list) { + remove_pvt(tp); + } add_pvt(tp, PA_MASTER); switch_channel_mark_answered(channel); }