aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/func_cut.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-11 21:48:08 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-11 21:48:08 +0000
commit3bd44b188a531fa57bfa5b9a131a45cb8c3166c7 (patch)
treeefa9caf440f2ede6614e87f9ad6eb1419fb89378 /funcs/func_cut.c
parent4e006d017efca7ec6da6b6f4e1826f7e37fa6d56 (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: http://svn.digium.com/svn/asterisk/trunk@163254 f38db490-d61c-443f-a65b-d21fe96a405b
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;
}