mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Merged revisions 83179 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r83179 | russell | 2007-09-19 14:50:48 -0500 (Wed, 19 Sep 2007) | 5 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@83180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -79,6 +79,8 @@ static int system_exec_helper(struct ast_channel *chan, void *data, int failmode
|
|||||||
return failmode;
|
return failmode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ast_autoservice_start(chan);
|
||||||
|
|
||||||
/* Do our thing here */
|
/* Do our thing here */
|
||||||
res = ast_safe_system((char *)data);
|
res = ast_safe_system((char *)data);
|
||||||
if ((res < 0) && (errno != ECHILD)) {
|
if ((res < 0) && (errno != ECHILD)) {
|
||||||
@@ -99,6 +101,8 @@ static int system_exec_helper(struct ast_channel *chan, void *data, int failmode
|
|||||||
res = 0;
|
res = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ast_autoservice_stop(chan);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user