diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-12 01:34:06 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-07-12 01:34:06 +0000 |
commit | 97671a2b05191d16deaaed38325d7173b819f636 (patch) | |
tree | 541ccb821abf48c8f8b2ca3d669469db5f09eb61 /include | |
parent | e2d42d25511f0e533dbb5605a638bf29b396f04b (diff) |
add 'exit context' and 'only stop on match' options to Background app (bug #4511)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/file.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/file.h b/include/asterisk/file.h index 8b6104df8..7c4442f67 100755 --- a/include/asterisk/file.h +++ b/include/asterisk/file.h @@ -124,6 +124,16 @@ int ast_filecopy(const char *oldname, const char *newname, const char *fmt); */ int ast_waitstream(struct ast_channel *c, const char *breakon); +/*! Waits for a stream to stop or digit matching a valid one digit exten to be pressed */ +/*! + * \param c channel to waitstram on + * \param context string of context to match digits to break upon + * Begins playback of a stream... + * Wait for a stream to stop or for any one of a valid extension digit to arrive, Returns 0 + * if the stream finishes, the character if it was interrupted, and -1 on error + */ +int ast_waitstream_exten(struct ast_channel *c, const char *context); + /*! Same as waitstream but allows stream to be forwarded or rewound */ /*! * \param c channel to waitstram on |