From: Luigi Rizzo Date: Tue, 1 Jan 2008 23:55:19 +0000 (+0000) Subject: call directly the cli command to implement hangup. X-Git-Tag: 1.6.0-beta1~3^2~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7f195e82ab286c925153ffcff1c9e6e66e2ede2;p=thirdparty%2Fasterisk.git call directly the cli command to implement hangup. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95673 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/console_gui.c b/channels/console_gui.c index f733a1a0ad..73aa94a057 100644 --- a/channels/console_gui.c +++ b/channels/console_gui.c @@ -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 */