diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-19 19:50:48 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-09-19 19:50:48 +0000 |
commit | e2df9155d9c1a8cc26e1256ab0ef50ecf18467c4 (patch) | |
tree | 1705a640e6d933e9101a496777203da3d64a0201 /apps | |
parent | 29f3074aa5559f6766d547ef0266ab9081804276 (diff) |
The System() and TrySystem() applications can take a substantial amount of
time to execute while not servicing the channel. So, put the channel in
autoservice while the command is being executed.
(closes issue #10726, reported by mnicholson)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@83179 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_system.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/app_system.c b/apps/app_system.c index 4bada66b2..b60e11c5a 100644 --- a/apps/app_system.c +++ b/apps/app_system.c @@ -95,6 +95,8 @@ static int system_exec_helper(struct ast_channel *chan, void *data, int failmode u = ast_module_user_add(chan); + ast_autoservice_start(chan); + /* Do our thing here */ res = ast_safe_system((char *)data); if ((res < 0) && (errno != ECHILD)) { @@ -118,6 +120,8 @@ static int system_exec_helper(struct ast_channel *chan, void *data, int failmode res = 0; } + ast_autoservice_stop(chan); + ast_module_user_remove(u); return res; |