From 2462d5ab4f33278cd547c2142370090b70905578 Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Wed, 20 Jun 2007 23:26:07 +0000 Subject: Cleaning up a small disaster I created earlier git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@70607 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'main/pbx.c') 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), -- cgit v1.2.3