summaryrefslogtreecommitdiff
path: root/funcs/func_cut.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-12-11 21:48:08 +0000
committerRussell Bryant <russell@russellbryant.com>2008-12-11 21:48:08 +0000
commit9d3a417eb5844784099550b5754db2cbb8b69ed0 (patch)
treeefa9caf440f2ede6614e87f9ad6eb1419fb89378 /funcs/func_cut.c
parent06c56e138170f8dea1f2bbeaa338aacf5ec5f327 (diff)
Merged revisions 163253 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r163253 | russell | 2008-12-11 15:46:29 -0600 (Thu, 11 Dec 2008) | 8 lines Fix some observed slowdowns in dialplan processing. The change is to remove autoservice usage from dialplan functions that do not need it because they do not perform operations that potentially block. (closes issue #13940) Reported by: tbelder ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@163254 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_cut.c')
-rw-r--r--funcs/func_cut.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/funcs/func_cut.c b/funcs/func_cut.c
index dda907ca2..3a3c2f309 100644
--- a/funcs/func_cut.c
+++ b/funcs/func_cut.c
@@ -270,9 +270,6 @@ static int acf_cut_exec(struct ast_channel *chan, const char *cmd, char *data, c
{
int ret = -1;
- if (chan)
- ast_autoservice_start(chan);
-
switch (cut_internal(chan, data, buf, len)) {
case ERROR_NOARG:
ast_log(LOG_ERROR, "Syntax: CUT(<varname>,<char-delim>,<range-spec>) - missing argument!\n");
@@ -290,9 +287,6 @@ static int acf_cut_exec(struct ast_channel *chan, const char *cmd, char *data, c
ast_log(LOG_ERROR, "Unknown internal error\n");
}
- if (chan)
- ast_autoservice_stop(chan);
-
return ret;
}