summaryrefslogtreecommitdiff
path: root/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'app.c')
-rwxr-xr-xapp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.c b/app.c
index 5e57a86fb..dc078ce2a 100755
--- a/app.c
+++ b/app.c
@@ -364,9 +364,9 @@ static void *linear_alloc(struct ast_channel *chan, void *params)
if (params) {
ls = params;
if (ls->allowoverride)
- chan->writeinterrupt = 1;
+ ast_set_flag(chan, AST_FLAG_WRITE_INT);
else
- chan->writeinterrupt = 0;
+ ast_clear_flag(chan, AST_FLAG_WRITE_INT);
ls->origwfmt = chan->writeformat;
if (ast_set_write_format(chan, AST_FORMAT_SLINEAR)) {
ast_log(LOG_WARNING, "Unable to set '%s' to linear format (write)\n", chan->name);