summaryrefslogtreecommitdiff
path: root/channel.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-04-21 20:39:50 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-04-21 20:39:50 +0000
commite48275fea3738b75a705fa32c6928dac2e086ca8 (patch)
treee1da85f9e19535a1fa40d480f4912c83ed2bb25f /channel.c
parent7e0d402e8841a86ebe86442a2b972f497c10e975 (diff)
convert to use ast_stream_and_wait
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/channel.c b/channel.c
index 80b1109ba..a1ba62df4 100644
--- a/channel.c
+++ b/channel.c
@@ -3230,24 +3230,20 @@ static void bridge_playfile(struct ast_channel *chan, struct ast_channel *peer,
}
if (!strcmp(sound,"timeleft")) { /* Queue support */
- ast_streamfile(chan, "vm-youhave", chan->language);
- ast_waitstream(chan, "");
+ ast_stream_and_wait(chan, "vm-youhave", chan->language, "");
if (min) {
ast_say_number(chan, min, AST_DIGIT_ANY, chan->language, NULL);
- ast_streamfile(chan, "queue-minutes", chan->language);
- ast_waitstream(chan, "");
+ ast_stream_and_wait(chan, "queue-minutes", chan->language, "");
}
if (sec) {
ast_say_number(chan, sec, AST_DIGIT_ANY, chan->language, NULL);
- ast_streamfile(chan, "queue-seconds", chan->language);
- ast_waitstream(chan, "");
+ ast_stream_and_wait(chan, "queue-seconds", chan->language, "");
}
} else {
- ast_streamfile(chan, sound, chan->language);
- ast_waitstream(chan, "");
+ ast_stream_and_wait(chan, sound, chan->language, "");
}
- check = ast_autoservice_stop(peer);
+ ast_autoservice_stop(peer);
}
static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct ast_channel *c1,