summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-06-21 01:16:18 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-06-21 01:16:18 +0000
commit767f019264968e4ba4d46ee7fd08b623e452438e (patch)
treeb444aa3127e9807ba76c0a7ba3ef2791adb97a81 /include/asterisk
parent4e6d610317d975ddf12567efdf93b11907a23000 (diff)
add AGI 'RECEIVE TEXT' command (bug #4525)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/channel.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index a98442f76..0ed9d00cc 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -737,6 +737,15 @@ int ast_senddigit(struct ast_channel *chan, char digit);
int ast_recvchar(struct ast_channel *chan, int timeout);
+/*! Receives a text string from a channel */
+/*!
+ * \param chan channel to act upon
+ * \param timeout timeout in milliseconds (0 for infinite wait)
+ * \return the received text, or NULL to signify failure.
+ * Read a string of text from a channel
+ */
+char *ast_recvtext(struct ast_channel *chan, int timeout);
+
/*! Browse channels in use */
/*!
* \param prev where you want to start in the channel list