]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: don't hangup remote calls
authorMathieu Parent <math.parent@gmail.com>
Tue, 27 Jul 2010 21:47:44 +0000 (23:47 +0200)
committerMathieu Parent <math.parent@gmail.com>
Tue, 27 Jul 2010 21:48:21 +0000 (23:48 +0200)
src/mod/endpoints/mod_skinny/skinny_server.c

index b0f622c2124d6a0b6e692673e863530cd3993b85..194157a2159422330b9f856d36a1a6b4585c8cc4 100644 (file)
@@ -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) {