From 2d1c5c8dfa4670b97ab3a87733dc717f85529b6c Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Tue, 27 Jul 2010 23:47:44 +0200 Subject: [PATCH] Skinny: don't hangup remote calls --- 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 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) {