Skinny: don't hangup remote calls

This commit is contained in:
Mathieu Parent 2010-07-27 23:47:44 +02:00
parent 165140e076
commit 2d1c5c8dfa
1 changed files with 3 additions and 1 deletions

View 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) {