]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
EndCall for incoming call while on hold doesn't close both legs on a skinny phone
authorMathieu Parent <math.parent@gmail.com>
Sat, 30 Mar 2013 11:00:58 +0000 (12:00 +0100)
committerMathieu Parent <math.parent@gmail.com>
Sat, 30 Mar 2013 11:00:58 +0000 (12:00 +0100)
Fixes #FS-5232, thanks to Nathan Neulinger for the patch

src/mod/endpoints/mod_skinny/skinny_server.c

index db0ce5b9711dddaab620252c65abfc7572bfe558..21bdf08a2be701af04e1f45b379bb3081ad8ae2c 100644 (file)
@@ -1820,6 +1820,9 @@ switch_status_t skinny_handle_soft_key_event_message(listener_t *listener, skinn
                        session = skinny_profile_find_session(listener->profile, listener, &line_instance, call_id);
                        if(session) {
                                channel = switch_core_session_get_channel(session);
+                               if (switch_channel_test_flag(channel, CF_HOLD)) {
+                                       switch_ivr_unhold(session);
+                               }
                                switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
                        }
                        break;