summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-04-21 20:28:32 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-04-21 20:28:32 +0000
commit7e0d402e8841a86ebe86442a2b972f497c10e975 (patch)
treeafa0bc4a9718214b473e0ee1a40981e66fbeb85d /include
parent5fa0dc431620d4c8d36a72c87106366aeee6818c (diff)
move wait_and_stream to ast_wait_and_stream() because equivalent
code is replicated in way too many places not to have a global function for that. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/file.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/file.h b/include/asterisk/file.h
index f8ac14b04..395b41c5d 100644
--- a/include/asterisk/file.h
+++ b/include/asterisk/file.h
@@ -162,6 +162,14 @@ int ast_format_unregister(const char *name);
*/
int ast_streamfile(struct ast_channel *c, const char *filename, const char *preflang);
+/*
+ * if the file name is non-empty, try to play it.
+ * Return 0 if success, -1 if error, digit if interrupted by a digit.
+ * If digits == "" then we can simply check for non-zero.
+ */
+int ast_stream_and_wait(struct ast_channel *chan, const char *file,
+ const char *language, const char *digits);
+
/*! Stops a stream */
/*!
* \param c The channel you wish to stop playback on