aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/file.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 01:34:06 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-12 01:34:06 +0000
commit95b685631fa4db9ab4c9d271862c00776692c634 (patch)
tree541ccb821abf48c8f8b2ca3d669469db5f09eb61 /include/asterisk/file.h
parentd7d26d14c9fc999c78f8d7cc4e6fcdeed5d765bd (diff)
add 'exit context' and 'only stop on match' options to Background app (bug #4511)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6093 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/file.h')
-rwxr-xr-xinclude/asterisk/file.h10
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