From b6be24372a79c5fe8568a831bab188db9ea98e8c Mon Sep 17 00:00:00 2001 From: matteo Date: Sun, 23 Feb 2003 06:00:11 +0000 Subject: Sun Feb 23 07:00:00 CET 2003 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@621 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/channel.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/asterisk/channel.h') diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 9673fb099..b14d3c928 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -465,6 +465,10 @@ struct ast_channel *ast_channel_walk(struct ast_channel *prev); * Wait for a digit. Returns <0 on error, 0 on no entry, and the digit on success. */ char ast_waitfordigit(struct ast_channel *c, int ms); +/* Same as above with audio fd for outputing read audio and ctrlfd to monitor for + reading. Returns 1 if ctrlfd becomes available */ +char ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int ctrlfd); + //! Reads multiple digits /*! * \param c channel to read from @@ -476,8 +480,10 @@ char ast_waitfordigit(struct ast_channel *c, int ms); * Read in a digit string "s", max length "len", maximum timeout between digits "timeout" (-1 for none), terminated by anything in "enders". Give them rtimeout for the first digit. Returns 0 on normal return, or 1 on a timeout. In the case of - a timeout, any digits that were read before the timeout will still be available in s. */ + a timeout, any digits that were read before the timeout will still be available in s. + RETURNS 2 in full version when ctrlfd is available, NOT 1*/ int ast_readstring(struct ast_channel *c, char *s, int len, int timeout, int rtimeout, char *enders); +int ast_readstring_full(struct ast_channel *c, char *s, int len, int timeout, int rtimeout, char *enders, int audiofd, int ctrlfd); /*! Report DTMF on channel 0 */ #define AST_BRIDGE_DTMF_CHANNEL_0 (1 << 0) -- cgit v1.2.3