diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-01 16:16:28 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-07-01 16:16:28 +0000 |
commit | df8907e2c7e1a68e5e176a24dbeaeca42d00871e (patch) | |
tree | 0a8aab8709e7f8b13a51ef6f7b39de16ecee8fdc /file.c | |
parent | 7fc20158c0785cc43b6010fb296608b142848af8 (diff) |
Create concept of a "pending agent", so you can have agents access pending calls
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1145 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'file.c')
-rwxr-xr-x | file.c | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -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) |