[svn-commits] murf: trunk r70607 - in /trunk: apps/app_dial.c apps/app_queue.c main/pbx.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Jun 20 18:26:07 CDT 2007
Author: murf
Date: Wed Jun 20 18:26:07 2007
New Revision: 70607
URL: http://svn.digium.com/view/asterisk?view=rev&rev=70607
Log:
Cleaning up a small disaster I created earlier
Modified:
trunk/apps/app_dial.c
trunk/apps/app_queue.c
trunk/main/pbx.c
Modified: trunk/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dial.c?view=diff&rev=70607&r1=70606&r2=70607
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Wed Jun 20 18:26:07 2007
@@ -224,10 +224,6 @@
" The 'dialargs' are specified in the same format that arguments are provided\n"
"to the Dial application.\n";
-static char *kapp = "KeepAlive";
-static char *ksynopsis = "DO NOT USE";
-static char *kdescrip = "";
-
enum {
OPT_ANNOUNCE = (1 << 0),
OPT_RESETCDR = (1 << 1),
@@ -1934,11 +1930,6 @@
return res;
}
-static int keepalive_exec(struct ast_channel *chan, void *data)
-{
- return AST_PBX_KEEPALIVE;
-}
-
static int unload_module(void)
{
int res;
@@ -1946,7 +1937,6 @@
res = ast_unregister_application(app);
res |= ast_unregister_application(rapp);
- res |= ast_unregister_application(kapp);
ast_module_user_hangup_all();
@@ -1972,7 +1962,6 @@
res = ast_register_application(app, dial_exec, synopsis, descrip);
res |= ast_register_application(rapp, retrydial_exec, rsynopsis, rdescrip);
- res |= ast_register_application(kapp, keepalive_exec, ksynopsis, kdescrip);
return res;
}
Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=70607&r1=70606&r2=70607
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Wed Jun 20 18:26:07 2007
@@ -4717,15 +4717,6 @@
qrm_cmd_usage, complete_queue_remove_member, NULL },
};
-static char *kapp = "KeepAlive";
-static char *ksynopsis = "DO NOT USE";
-static char *kdescrip = "";
-
-static int keepalive_exec(struct ast_channel *chan, void *data)
-{
- return AST_PBX_KEEPALIVE;
-}
-
static int unload_module(void)
{
int res;
@@ -4754,7 +4745,6 @@
res |= ast_unregister_application(app_upqm);
res |= ast_unregister_application(app_ql);
res |= ast_unregister_application(app);
- res |= ast_unregister_application(kapp);
res |= ast_custom_function_unregister(&queuevar_function);
res |= ast_custom_function_unregister(&queuemembercount_function);
res |= ast_custom_function_unregister(&queuememberlist_function);
@@ -4782,9 +4772,9 @@
if (!reload_queues())
return AST_MODULE_LOAD_DECLINE;
- con = ast_context_find("app_dial_queue_virtual_context");
+ con = ast_context_find("app_queue_gosub_virtual_context");
if (!con)
- con = ast_context_create(NULL, "app_queue_gosub_virtual_context", "app_dial");
+ con = ast_context_create(NULL, "app_queue_gosub_virtual_context", "app_queue");
if (!con)
ast_log(LOG_ERROR, "Queue virtual context 'app_queue_gosub_virtual_context' does not exist and unable to create\n");
else
@@ -4804,7 +4794,6 @@
res |= ast_register_application(app_pqm, pqm_exec, app_pqm_synopsis, app_pqm_descrip);
res |= ast_register_application(app_upqm, upqm_exec, app_upqm_synopsis, app_upqm_descrip);
res |= ast_register_application(app_ql, ql_exec, app_ql_synopsis, app_ql_descrip);
- res |= ast_register_application(kapp, keepalive_exec, ksynopsis, kdescrip);
res |= ast_manager_register("Queues", 0, manager_queues_show, "Queues");
res |= ast_manager_register("QueueStatus", 0, manager_queues_status, "Queue Status");
res |= ast_manager_register("QueueSummary", 0, manager_queues_summary, "Queue Summary");
Modified: trunk/main/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/main/pbx.c?view=diff&rev=70607&r1=70606&r2=70607
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Wed Jun 20 18:26:07 2007
@@ -250,6 +250,7 @@
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 *);
@@ -509,6 +510,12 @@
" Options:\n"
" m[(x)] - Provide music on hold to the caller while waiting for an extension.\n"
" 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"
},
};
@@ -5472,6 +5479,11 @@
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),
More information about the svn-commits
mailing list