Asterisk - The Open Source Telephony Project  21.4.1
Macros | Functions | Variables
app_if.c File Reference

If Branch Implementation. More...

#include "asterisk.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/channel.h"

Go to the source code of this file.

Macros

#define VAR_SIZE   64
 

Functions

 AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY,"If Branch and Conditional Execution")
 
static int else_exec (struct ast_channel *chan, const char *data)
 
static int elseif_exec (struct ast_channel *chan, const char *data)
 
static int end_exec (struct ast_channel *chan, const char *data)
 
static int exit_exec (struct ast_channel *chan, const char *data)
 
static int find_matching_endif (struct ast_channel *chan, const char *otherapp)
 
static struct ast_extenfind_matching_priority (struct ast_context *c, const char *exten, int priority, const char *callerid)
 
static const char * get_index (struct ast_channel *chan, const char *prefix, int idx)
 
static int if_exec (struct ast_channel *chan, const char *data)
 
static int if_helper (struct ast_channel *chan, const char *data, int end)
 
static int load_module (void)
 
static int unload_module (void)
 

Variables

static char * else_app = "Else"
 
static char * elseif_app = "ElseIf"
 
static char * exit_app = "ExitIf"
 
static char * if_app = "If"
 
static char * stop_app = "EndIf"
 

Detailed Description

If Branch Implementation.

Author
Naveen Albert aster.nosp@m.isk@.nosp@m.phrea.nosp@m.knet.nosp@m..org

Definition in file app_if.c.