From b40804a5e337437d7478f1526aee0dfa025e20ab Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Thu, 22 Jul 2010 23:28:26 +0200 Subject: [PATCH] Skinny: corrected early media This is part of MODSKINNY-8 --- src/mod/endpoints/mod_skinny/skinny_server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_skinny/skinny_server.c b/src/mod/endpoints/mod_skinny/skinny_server.c index 56decd0036..0210333825 100644 --- a/src/mod/endpoints/mod_skinny/skinny_server.c +++ b/src/mod/endpoints/mod_skinny/skinny_server.c @@ -1654,7 +1654,9 @@ switch_status_t skinny_handle_open_receive_channel_ack_message(listener_t *liste ); switch_set_flag_locked(tech_pvt, TFLAG_IO); - switch_channel_mark_answered(channel); + if (switch_channel_test_flag(channel, CF_OUTBOUND)) { + switch_channel_mark_answered(channel); + } if (switch_channel_test_flag(channel, CF_HOLD)) { switch_ivr_unhold(session); send_set_lamp(listener, SKINNY_BUTTON_LINE, line_instance, SKINNY_LAMP_ON);