From: Mathieu Parent Date: Thu, 22 Jul 2010 21:28:26 +0000 (+0200) Subject: Skinny: corrected early media X-Git-Tag: v1.2-rc1~526^2~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b40804a5e337437d7478f1526aee0dfa025e20ab;p=thirdparty%2Ffreeswitch.git Skinny: corrected early media This is part of MODSKINNY-8 --- 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);