From 97671a2b05191d16deaaed38325d7173b819f636 Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Tue, 12 Jul 2005 01:34:06 +0000 Subject: 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 --- include/asterisk/file.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 -- cgit v1.2.3