[asterisk-commits] russell: branch 1.4 r83179 - /branches/1.4/apps/app_system.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 19 14:50:49 CDT 2007
Author: russell
Date: Wed Sep 19 14:50:48 2007
New Revision: 83179
URL: http://svn.digium.com/view/asterisk?view=rev&rev=83179
Log:
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)
Modified:
branches/1.4/apps/app_system.c
Modified: branches/1.4/apps/app_system.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_system.c?view=diff&rev=83179&r1=83178&r2=83179
==============================================================================
--- branches/1.4/apps/app_system.c (original)
+++ branches/1.4/apps/app_system.c Wed Sep 19 14:50:48 2007
@@ -95,6 +95,8 @@
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)) {
@@ -117,6 +119,8 @@
pbx_builtin_setvar_helper(chan, chanvar, "SUCCESS");
res = 0;
}
+
+ ast_autoservice_stop(chan);
ast_module_user_remove(u);
More information about the asterisk-commits
mailing list