mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Extend the ast_senddigit and ast_dtmf_stream API calls to allow the duration of the DTMF digit(s) to be specified and make the SendDTMF application have the capability to use it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78278 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -950,9 +950,10 @@ int ast_recvchar(struct ast_channel *chan, int timeout);
|
||||
* Send a DTMF digit to a channel.
|
||||
* \param chan channel to act upon
|
||||
* \param digit the DTMF digit to send, encoded in ASCII
|
||||
* \param duration the duration of the digit ending in ms
|
||||
* \return Returns 0 on success, -1 on failure
|
||||
*/
|
||||
int ast_senddigit(struct ast_channel *chan, char digit);
|
||||
int ast_senddigit(struct ast_channel *chan, char digit, unsigned int duration);
|
||||
|
||||
/*! \brief Send a DTMF digit to a channel
|
||||
* Send a DTMF digit to a channel.
|
||||
|
Reference in New Issue
Block a user