summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2007-11-28 22:10:36 +0000
committerMark Michelson <mmichelson@digium.com>2007-11-28 22:10:36 +0000
commit0b3ab17bfa4b1f6c734ed95c0d8e7adf3deb4985 (patch)
tree9ff50aead014f208554bb715a9c607d1a30fa7c4
parent58e43103d8281c84b2b166f63159db832ed8cefc (diff)
Merged revisions 90059 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r90059 | mmichelson | 2007-11-28 16:08:50 -0600 (Wed, 28 Nov 2007) | 13 lines Removing some seemingly pointless code. This sets a channel variable for every priority executed in the dialplan if you have debug set to anything non-zero. This seems pointless due to the fact that these channel variables are not referenced anywhere else in the code and their names are esoteric enough that they would not be practical to reference in the dialplan. Plus the fact that this behavior isn't documented anywhere means that the change is not likely to cause any disruption. If anything, this may actually cause a slight performance increase if running with debug on. The motivating influence for this code change is the eventwhencalled option for queues. If set to vars, all channel variables will be output to the manager. These unnecessary channel variables make the output a lot more difficult to deal with. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90060 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--main/pbx.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 972d8e24b..19f40c658 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -2649,13 +2649,7 @@ static int pbx_extension_helper(struct ast_channel *c, struct ast_context *con,
c->priority = priority;
pbx_substitute_variables(passdata, sizeof(passdata), c, e);
if (option_debug) {
- char atmp[80];
- char atmp2[EXT_DATA_SIZE+100];
ast_debug(1, "Launching '%s'\n", app->name);
- snprintf(atmp, sizeof(atmp), "STACK-%s-%s-%d", context, exten, priority);
- snprintf(atmp2, sizeof(atmp2), "%s(\"%s\", \"%s\") %s",
- app->name, c->name, passdata, "in new stack");
- pbx_builtin_setvar_helper(c, atmp, atmp2);
}
if (option_verbose > 2) {
char tmp[80], tmp2[80], tmp3[EXT_DATA_SIZE];