summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorSteve Murphy <murf@digium.com>2007-06-20 23:26:07 +0000
committerSteve Murphy <murf@digium.com>2007-06-20 23:26:07 +0000
commit2462d5ab4f33278cd547c2142370090b70905578 (patch)
treecd8307c6ac2e57979dbecae087964e8b36697df8 /main/pbx.c
parent21c8795c1db585ad31136807367566d5a6ccf949 (diff)
Cleaning up a small disaster I created earlier
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70607 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 74235f581..dba568a45 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -250,6 +250,7 @@ static int pbx_builtin_hangup(struct ast_channel *, void *);
static int pbx_builtin_background(struct ast_channel *, void *);
static int pbx_builtin_wait(struct ast_channel *, void *);
static int pbx_builtin_waitexten(struct ast_channel *, void *);
+static int pbx_builtin_keepalive(struct ast_channel *, void *);
static int pbx_builtin_resetcdr(struct ast_channel *, void *);
static int pbx_builtin_setamaflags(struct ast_channel *, void *);
static int pbx_builtin_ringing(struct ast_channel *, void *);
@@ -511,6 +512,12 @@ static struct pbx_builtin {
" Optionally, specify the class for music on hold within parenthesis.\n"
},
+ { "KeepAlive", pbx_builtin_keepalive,
+ "returns AST_PBX_KEEPALIVE value",
+ " KeepAlive(): This application is chiefly meant for internal use with Gosubs.\n"
+ "Please do not run it alone from the dialplan!\n"
+ },
+
};
static struct ast_context *contexts;
@@ -5472,6 +5479,11 @@ static int pbx_builtin_answer(struct ast_channel *chan, void *data)
return __ast_answer(chan, delay);
}
+static int pbx_builtin_keepalive(struct ast_channel *chan, void *data)
+{
+ return AST_PBX_KEEPALIVE;
+}
+
AST_APP_OPTIONS(resetcdr_opts, {
AST_APP_OPTION('w', AST_CDR_FLAG_POSTED),
AST_APP_OPTION('a', AST_CDR_FLAG_LOCKED),