Sat Mar 26 11:08:46 2011

Asterisk developer's documentation


agi.h File Reference

AGI Extension interfaces - Asterisk Gateway Interface. More...

#include "asterisk/cli.h"
#include "asterisk/xmldoc.h"
#include "asterisk/optional_api.h"

Include dependency graph for agi.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  agi_command
struct  agi_state

Typedefs

typedef struct agi_state AGI

Functions

static void __init__ast_agi_register (void)
static void __init__ast_agi_register_multiple (void)
static void __init__ast_agi_send (void)
static void __init__ast_agi_unregister (void)
static void __init__ast_agi_unregister_multiple (void)
static int __stub__ast_agi_register (struct ast_module *mod, agi_command *cmd)
 Registers an AGI command.
static int __stub__ast_agi_register_multiple (struct ast_module *mod, struct agi_command *cmd, unsigned int len)
 Registers a group of AGI commands, provided as an array of struct agi_command entries.
static int __stub__ast_agi_send (int fd, struct ast_channel *chan, char *fmt,...)
 Sends a string of text to an application connected via AGI.
static int __stub__ast_agi_unregister (struct ast_module *mod, agi_command *cmd)
 Unregisters an AGI command.
static int __stub__ast_agi_unregister_multiple (struct ast_module *mod, struct agi_command *cmd, unsigned int len)
 Unregisters a group of AGI commands, provided as an array of struct agi_command entries.
static typeof (__stub__ast_agi_send) __ref__ast_agi_send
static typeof (__stub__ast_agi_unregister_multiple) __ref__ast_agi_unregister_multiple
static typeof (__stub__ast_agi_register_multiple) __ref__ast_agi_register_multiple
static typeof (__stub__ast_agi_unregister) __ref__ast_agi_unregister
static typeof (__stub__ast_agi_register) __ref__ast_agi_register


Detailed Description

AGI Extension interfaces - Asterisk Gateway Interface.

Definition in file agi.h.


Typedef Documentation

typedef struct agi_state AGI


Function Documentation

static void __init__ast_agi_register ( void   )  [static]

Definition at line 78 of file agi.h.

00078 { return AST_OPTIONAL_API_UNAVAILABLE; });

static void __init__ast_agi_register_multiple ( void   )  [static]

Definition at line 111 of file agi.h.

00111 { return AST_OPTIONAL_API_UNAVAILABLE; });

static void __init__ast_agi_send ( void   )  [static]

Definition at line 144 of file agi.h.

00144 { return AST_OPTIONAL_API_UNAVAILABLE; });

static void __init__ast_agi_unregister ( void   )  [static]

Definition at line 92 of file agi.h.

00092 { return AST_OPTIONAL_API_UNAVAILABLE; });

static void __init__ast_agi_unregister_multiple ( void   )  [static]

Definition at line 129 of file agi.h.

00129 { return AST_OPTIONAL_API_UNAVAILABLE; });

static int __stub__ast_agi_register ( struct ast_module *  mod,
agi_command *  cmd 
) [static]

Registers an AGI command.

Parameters:
mod Pointer to the module_info structure for the module that is registering the command
cmd Pointer to the descriptor for the command
Return values:
1 on success
0 the command is already registered
AST_OPTIONAL_API_UNAVAILABLE the module is not loaded.

Definition at line 78 of file agi.h.

References AST_OPTIONAL_API_UNAVAILABLE.

00078 { return AST_OPTIONAL_API_UNAVAILABLE; });

static int __stub__ast_agi_register_multiple ( struct ast_module *  mod,
struct agi_command *  cmd,
unsigned int  len 
) [static]

Registers a group of AGI commands, provided as an array of struct agi_command entries.

Parameters:
mod Pointer to the module_info structure for the module that is registering the commands
cmd Pointer to the first entry in the array of command descriptors
len Length of the array (use the ARRAY_LEN macro to determine this easily)
Returns:
0 on success, -1 on failure, AST_OPTIONAL_API_UNAVAILABLE if res_agi is not loaded
Note:
If any command fails to register, all commands previously registered during the operation will be unregistered. In other words, this function registers all the provided commands, or none of them.

Definition at line 111 of file agi.h.

References AST_OPTIONAL_API_UNAVAILABLE.

00111 { return AST_OPTIONAL_API_UNAVAILABLE; });

static int __stub__ast_agi_send ( int  fd,
struct ast_channel *  chan,
char *  fmt,
  ... 
) [static]

Sends a string of text to an application connected via AGI.

Parameters:
fd The file descriptor for the AGI session (from struct agi_state)
chan Pointer to an associated Asterisk channel, if any
fmt printf-style format string
Returns:
0 for success, -1 for failure, AST_OPTIONAL_API_UNAVAILABLE if res_agi is not loaded

Definition at line 144 of file agi.h.

References AST_OPTIONAL_API_UNAVAILABLE.

00144 { return AST_OPTIONAL_API_UNAVAILABLE; });

static int __stub__ast_agi_unregister ( struct ast_module *  mod,
agi_command *  cmd 
) [static]

Unregisters an AGI command.

Parameters:
mod Pointer to the module_info structure for the module that is unregistering the command
cmd Pointer to the descriptor for the command
Returns:
1 on success, 0 if the command was not already registered

Definition at line 92 of file agi.h.

References AST_OPTIONAL_API_UNAVAILABLE.

00092 { return AST_OPTIONAL_API_UNAVAILABLE; });

static int __stub__ast_agi_unregister_multiple ( struct ast_module *  mod,
struct agi_command *  cmd,
unsigned int  len 
) [static]

Unregisters a group of AGI commands, provided as an array of struct agi_command entries.

Parameters:
mod Pointer to the module_info structure for the module that is unregistering the commands
cmd Pointer to the first entry in the array of command descriptors
len Length of the array (use the ARRAY_LEN macro to determine this easily)
Returns:
0 on success, -1 on failure, AST_OPTIONAL_API_UNAVAILABLE if res_agi is not loaded
Note:
If any command fails to unregister, this function will continue to unregister the remaining commands in the array; it will not reregister the already-unregistered commands.

Definition at line 129 of file agi.h.

References AST_OPTIONAL_API_UNAVAILABLE.

00129 { return AST_OPTIONAL_API_UNAVAILABLE; });

static typeof ( __stub__ast_agi_send   )  [static]

static typeof ( __stub__ast_agi_unregister_multiple   )  [static]

static typeof ( __stub__ast_agi_register_multiple   )  [static]

static typeof ( __stub__ast_agi_unregister   )  [static]

static typeof ( __stub__ast_agi_register   )  [static]


Generated on Sat Mar 26 11:08:47 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.9