]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
call directly the cli command to implement hangup.
authorLuigi Rizzo <rizzo@icir.org>
Tue, 1 Jan 2008 23:55:19 +0000 (23:55 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Tue, 1 Jan 2008 23:55:19 +0000 (23:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95673 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/console_gui.c

index f733a1a0ad2c9c2ac6d578a87ce2ab1241a671d7..73aa94a0578e2c62b5588b55652e9dc5b592c71c 100644 (file)
@@ -4,7 +4,6 @@
  * $Revision$
  */
 
-
 #include "asterisk.h"
 #include "console_video.h"
 #include "asterisk/lock.h"
@@ -423,7 +422,7 @@ static void handle_button_event(struct video_desc *env, SDL_MouseButtonEvent but
                keypad_pick_up(env);
                break;
        case KEY_HANG_UP:
-               keypad_send_command(env, "console hangup");
+               ast_cli_command(gui->outfd, "console hangup");
                break;
 
        /* other functions */