summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-07-01 16:16:28 +0000
committerMark Spencer <markster@digium.com>2003-07-01 16:16:28 +0000
commit16b14c89451b5f94fa198624efebaed65bfa5840 (patch)
tree0a8aab8709e7f8b13a51ef6f7b39de16ecee8fdc /file.c
parent65ed20b4f47d177d4999d1b8f4908fa7dfb64fe0 (diff)
Create concept of a "pending agent", so you can have agents access pending calls
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1145 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'file.c')
-rwxr-xr-xfile.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/file.c b/file.c
index 6b5f5af4e..b3e92e315 100755
--- a/file.c
+++ b/file.c
@@ -778,10 +778,7 @@ char ast_waitstream(struct ast_channel *c, char *breakon)
while(c->stream) {
res = ast_sched_wait(c->sched);
if ((res < 0) && !c->timingfunc) {
- if (c->stream)
- ast_closestream(c->stream);
- if (c->vstream)
- ast_closestream(c->vstream);
+ ast_stopstream(c);
break;
}
if (res < 0)
@@ -835,10 +832,7 @@ char ast_waitstream_fr(struct ast_channel *c, char *breakon, char *forward, char
while(c->stream) {
res = ast_sched_wait(c->sched);
if ((res < 0) && !c->timingfunc) {
- if (c->stream)
- ast_closestream(c->stream);
- if (c->vstream)
- ast_closestream(c->vstream);
+ ast_stopstream(c);
break;
}
if (res < 0)
@@ -903,10 +897,7 @@ char ast_waitstream_full(struct ast_channel *c, char *breakon, int audiofd, int
while(c->stream) {
ms = ast_sched_wait(c->sched);
if ((ms < 0) && !c->timingfunc) {
- if (c->stream)
- ast_closestream(c->stream);
- if (c->vstream)
- ast_closestream(c->vstream);
+ ast_stopstream(c);
break;
}
if (ms < 0)