aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/file.h
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-03 07:37:30 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-04-03 07:37:30 +0000
commitb1f950e2b13d972d40be337c5b4737814604d72e (patch)
treef246c3821894bf87dc93ab78f75145591ef40cf2 /include/asterisk/file.h
parent55126ae685c0c7110a6db49380c55f7d308e3b6a (diff)
Add fast-forward and rewind to voicemail
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@741 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/file.h')
-rwxr-xr-xinclude/asterisk/file.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/file.h b/include/asterisk/file.h
index e7f19825d..45b947b9b 100755
--- a/include/asterisk/file.h
+++ b/include/asterisk/file.h
@@ -123,6 +123,18 @@ int ast_filecopy(char *oldname, char *newname, char *fmt);
*/
char ast_waitstream(struct ast_channel *c, char *breakon);
+//! Same as waitstream but allows stream to be forwarded or rewound
+/*!
+ * \param c channel to waitstram on
+ * \param breakon string of DTMF digits to break upon
+ * \param forward DTMF digit to fast forward upon
+ * \param rewind DTMF digit to rewind upon
+ * Begins playback of a stream...
+ * Wait for a stream to stop or for any one of a given digit to arrive, Returns 0
+ * if the stream finishes, the character if it was interrupted, and -1 on error
+ */
+char ast_waitstream_fr(struct ast_channel *c, char *breakon, char *forward, char *rewind);
+
/* Same as waitstream, but with audio output to fd and monitored fd checking. Returns
1 if monfd is ready for reading */
char ast_waitstream_full(struct ast_channel *c, char *breakon, int audiofd, int monfd);