mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
Merged revisions 79207 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r79207 | file | 2007-08-13 11:51:09 -0300 (Mon, 13 Aug 2007) | 2 lines Add an API call to allow the engine to know that DTMF was received. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79208 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -153,6 +153,21 @@ int ast_speech_write(struct ast_speech *speech, void *data, int len)
|
||||
return speech->engine->write(speech, data, len);
|
||||
}
|
||||
|
||||
/*! \brief Signal to the engine that DTMF was received */
|
||||
int ast_speech_dtmf(struct ast_speech *speech, char dtmf)
|
||||
{
|
||||
int res = 0;
|
||||
|
||||
if (speech->state != AST_SPEECH_STATE_READY)
|
||||
return -1;
|
||||
|
||||
if (speech->engine->dtmf != NULL) {
|
||||
res = speech->engine->dtmf(speech, dtmf);
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
/*! \brief Change an engine specific attribute */
|
||||
int ast_speech_change(struct ast_speech *speech, char *name, const char *value)
|
||||
{
|
||||
|
Reference in New Issue
Block a user