From c29e2a2152f4656c474e00bbce986fb0006b48f5 Mon Sep 17 00:00:00 2001 From: tilghman Date: Mon, 23 Jul 2007 22:02:05 +0000 Subject: Enhance AGI with several fixes: - Makes the structures handling external AGI commands a bit more thread-safe - Makes AGI transparently work with both live and hungup channels - DeadAGI is hence no longer necessary and is deprecated - CLI bug fixes - Commands will refuse to run if the channel is dead and the command is nonsensical for dead channels. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@76707 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/agi.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/asterisk/agi.h') diff --git a/include/asterisk/agi.h b/include/asterisk/agi.h index 5a0edc83f..ac85db181 100644 --- a/include/asterisk/agi.h +++ b/include/asterisk/agi.h @@ -43,11 +43,14 @@ typedef struct agi_command { char *summary; /* Detailed usage information */ char *usage; - struct agi_command *next; + /* Does this application run dead */ + int dead; + /* Linked list pointer */ + AST_LIST_ENTRY(agi_command) list; } agi_command; int ast_agi_register(agi_command *cmd); -void ast_agi_unregister(agi_command *cmd); +int ast_agi_unregister(agi_command *cmd); #if defined(__cplusplus) || defined(c_plusplus) } -- cgit v1.2.3