mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
More generally stop streaming when interrupted
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1739 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -864,6 +864,7 @@ static int play_and_wait(struct ast_channel *chan, char *fn)
|
|||||||
if (d)
|
if (d)
|
||||||
return d;
|
return d;
|
||||||
d = ast_waitstream(chan, AST_DIGIT_ANY);
|
d = ast_waitstream(chan, AST_DIGIT_ANY);
|
||||||
|
ast_stopstream(chan);
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -894,7 +895,6 @@ static int play_and_record(struct ast_channel *chan, char *playfile, char *recor
|
|||||||
d = ast_waitstream(chan,"");
|
d = ast_waitstream(chan,"");
|
||||||
if (d < 0)
|
if (d < 0)
|
||||||
return -1;
|
return -1;
|
||||||
ast_stopstream(chan);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fmts = ast_strdupa(fmt);
|
fmts = ast_strdupa(fmt);
|
||||||
|
|||||||
Reference in New Issue
Block a user