|
|
@ -165,13 +165,14 @@ static void run_ras(struct ast_channel *chan, char *args)
|
|
|
|
if (res < 0) {
|
|
|
|
if (res < 0) {
|
|
|
|
ast_log(LOG_WARNING, "wait4 returned %d: %s\n", res, strerror(errno));
|
|
|
|
ast_log(LOG_WARNING, "wait4 returned %d: %s\n", res, strerror(errno));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (WIFEXITED(status))
|
|
|
|
if (WIFEXITED(status)) {
|
|
|
|
ast_verb(3, "RAS on %s terminated with status %d\n", chan->name, WEXITSTATUS(status));
|
|
|
|
ast_verb(3, "RAS on %s terminated with status %d\n", chan->name, WEXITSTATUS(status));
|
|
|
|
else if (WIFSIGNALED(status))
|
|
|
|
} else if (WIFSIGNALED(status)) {
|
|
|
|
ast_verb(3, "RAS on %s terminated with signal %d\n", chan->name, WTERMSIG(status));
|
|
|
|
ast_verb(3, "RAS on %s terminated with signal %d\n",
|
|
|
|
else
|
|
|
|
chan->name, WTERMSIG(status));
|
|
|
|
ast_verbose(VERBOSE_PREFIX_3 "RAS on %s terminated weirdly.\n", chan->name);
|
|
|
|
} else {
|
|
|
|
|
|
|
|
ast_verb(3, "RAS on %s terminated weirdly.\n", chan->name);
|
|
|
|
|
|
|
|
}
|
|
|
|
/* Throw back into audio mode */
|
|
|
|
/* Throw back into audio mode */
|
|
|
|
x = 1;
|
|
|
|
x = 1;
|
|
|
|
ioctl(chan->fds[0], ZT_AUDIOMODE, &x);
|
|
|
|
ioctl(chan->fds[0], ZT_AUDIOMODE, &x);
|
|
|
|