mirror of https://github.com/asterisk/asterisk
Merge musiconhold stuff (bug #2027), restructure AGI to eventually support registration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3460 65c4cc65-6c06-0410-ace0-fbb531ad65f31.0
parent
f10148d3e3
commit
de4188df06
@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* Asterisk -- A telephony toolkit for Linux.
|
||||||
|
*
|
||||||
|
* AGI Extension interfaces
|
||||||
|
*
|
||||||
|
* Copyright (C) 1999, Mark Spencer
|
||||||
|
*
|
||||||
|
* Mark Spencer <markster@linux-support.net>
|
||||||
|
*
|
||||||
|
* This program is free software, distributed under the terms of
|
||||||
|
* the GNU General Public License
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _ASTERISK_AGI_H
|
||||||
|
#define _ASTERISK_AGI_H
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef struct agi_state {
|
||||||
|
int fd; /* FD for general output */
|
||||||
|
int audio; /* FD for audio output */
|
||||||
|
int ctrl; /* FD for input control */
|
||||||
|
} AGI;
|
||||||
|
|
||||||
|
typedef struct agi_command {
|
||||||
|
/* Null terminated list of the words of the command */
|
||||||
|
char *cmda[AST_MAX_CMD_LEN];
|
||||||
|
/* Handler for the command (channel, AGI state, # of arguments, argument list).
|
||||||
|
Returns RESULT_SHOWUSAGE for improper arguments */
|
||||||
|
int (*handler)(struct ast_channel *chan, AGI *agi, int argc, char *argv[]);
|
||||||
|
/* Summary of the command (< 60 characters) */
|
||||||
|
char *summary;
|
||||||
|
/* Detailed usage information */
|
||||||
|
char *usage;
|
||||||
|
struct agi_command *next;
|
||||||
|
} agi_command;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in new issue