mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Debug control, debug control.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@58054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -154,7 +154,7 @@ static int pop_exec(struct ast_channel *chan, void *data)
|
||||
|
||||
if (oldframe)
|
||||
gosub_release_frame(chan, oldframe);
|
||||
else
|
||||
else if (option_debug)
|
||||
ast_log(LOG_DEBUG, "%s called with an empty gosub stack\n", app_pop);
|
||||
|
||||
return 0;
|
||||
@@ -210,6 +210,7 @@ static int gosub_exec(struct ast_channel *chan, void *data)
|
||||
u = ast_module_user_add(chan);
|
||||
|
||||
if (!stack_store) {
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Channel %s has no datastore, so we're allocating one.\n", chan->name);
|
||||
stack_store = ast_channel_datastore_alloc(&stack_info, NULL);
|
||||
if (!stack_store) {
|
||||
@@ -258,6 +259,7 @@ static int gosub_exec(struct ast_channel *chan, void *data)
|
||||
for (i = 0; i < args2.argc; i++) {
|
||||
snprintf(argname, sizeof(argname), "ARG%d", i + 1);
|
||||
pbx_builtin_pushvar_helper(chan, argname, args2.argval[i]);
|
||||
if (option_debug)
|
||||
ast_log(LOG_DEBUG, "Setting '%s' to '%s'\n", argname, args2.argval[i]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user