aboutsummaryrefslogtreecommitdiffstats
path: root/indications.c
diff options
context:
space:
mode:
Diffstat (limited to 'indications.c')
-rwxr-xr-xindications.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/indications.c b/indications.c
index 9598c5438..02cc9d016 100755
--- a/indications.c
+++ b/indications.c
@@ -84,7 +84,10 @@ static void * playtones_alloc(struct ast_channel *chan, void *params)
ps->items = pd->items;
}
/* Let interrupts interrupt :) */
- chan->writeinterrupt = pd->interruptible;
+ if (pd->interruptible)
+ ast_set_flag(chan, AST_FLAG_WRITE_INT);
+ else
+ ast_clear_flag(chan, AST_FLAG_WRITE_INT);
return ps;
}