From: Mathieu Parent Date: Tue, 27 Jul 2010 21:47:44 +0000 (+0200) Subject: Skinny: don't hangup remote calls X-Git-Tag: v1.2-rc1~526^2~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d1c5c8dfa4670b97ab3a87733dc717f85529b6c;p=thirdparty%2Ffreeswitch.git Skinny: don't hangup remote calls --- diff --git a/src/mod/endpoints/mod_skinny/skinny_server.c b/src/mod/endpoints/mod_skinny/skinny_server.c index b0f622c212..194157a215 100644 --- a/src/mod/endpoints/mod_skinny/skinny_server.c +++ b/src/mod/endpoints/mod_skinny/skinny_server.c @@ -1268,7 +1268,9 @@ switch_status_t skinny_handle_on_hook_message(listener_t *listener, skinny_messa channel = switch_core_session_get_channel(session); - switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); + if (skinny_line_get_state(listener, line_instance, call_id) != SKINNY_IN_USE_REMOTELY) { + switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); + } } if(session) {