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/branches/1.4@83179
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
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)) {
res = 0;
}
+ ast_autoservice_stop(chan);
+
ast_module_user_remove(u);
return res;