diff options
author | Joshua Colp <jcolp@digium.com> | 2017-07-19 13:09:56 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-07-19 13:09:56 -0500 |
commit | f43fc9191132d93918a2e4c173c876dd1cbfe4d2 (patch) | |
tree | 788868ae28128a2586c2996ad160a67076ffbd5f /include/asterisk/channel.h | |
parent | 66b8c454d139cd51ededad78ec34fef99c7e2dd6 (diff) | |
parent | 6b138046e7db59e975fc06ee3aea54fe0c143f5d (diff) |
Merge "core: Add digit filtering to ast_waitfordigit_full"
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 55126b472..f0fe5b212 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -2239,11 +2239,12 @@ int ast_waitfordigit(struct ast_channel *c, int ms); * Same as ast_waitfordigit() with audio fd for outputting read audio and ctrlfd to monitor for reading. * \param c channel to wait for a digit on * \param ms how many milliseconds to wait (<0 for indefinite). + * \param breakon string of DTMF digits to break upon or NULL for any. * \param audiofd audio file descriptor to write to if audio frames are received * \param ctrlfd control file descriptor to monitor for reading * \return Returns 1 if ctrlfd becomes available */ -int ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int ctrlfd); +int ast_waitfordigit_full(struct ast_channel *c, int ms, const char *breakon, int audiofd, int ctrlfd); /*! * \brief Reads multiple digits |