diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-21 01:16:18 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-06-21 01:16:18 +0000 |
commit | 2d0f688cafaebbbc21901710ab13edcf292c4d61 (patch) | |
tree | b444aa3127e9807ba76c0a7ba3ef2791adb97a81 /include/asterisk/channel.h | |
parent | b10a02101a8f084691e8fb8b7a104afe78c55eb1 (diff) |
add AGI 'RECEIVE TEXT' command (bug #4525)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5950 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-x | include/asterisk/channel.h | 9 |
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 |