diff options
author | Jonathan Rose <jrose@digium.com> | 2014-04-17 21:57:36 +0000 |
---|---|---|
committer | Jonathan Rose <jrose@digium.com> | 2014-04-17 21:57:36 +0000 |
commit | a8742e327f8de3866526a653977c0eae58d85d40 (patch) | |
tree | 02464cf2984c6beb6efe2864e252b33aefab899c /include/asterisk/app.h | |
parent | c3497aa2bbfcf2e78d479a9d586b0320ba2b7cb0 (diff) |
ARI: Add tones playback resource
Adds a tones URI type to the playback resource. The tone can be specified by
name (from indications.conf) or by a tone pattern. In addition, tonezone can
be specified in the URI (by appending ;tonezone=<zone>). Tones must be
stopped manually in order for a stasis control to move on from playback of
the tone. Tones may be paused, resumed, restarted, and stopped. They may
not be rewound or fast forwarded (tones can't be controlled in a way that
lets you skip around from note to note and pausing and resuming will also
restart the tone from the beginning). Tests are currently in development
for this feature (https://reviewboard.asterisk.org/r/3428/).
(closes issue ASTERISK-23433)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/3427/
........
Merged revisions 412535 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/app.h')
-rw-r--r-- | include/asterisk/app.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 70cf75270..65d74dcd1 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -880,6 +880,14 @@ int ast_control_streamfile_lang(struct ast_channel *chan, const char *file, const char *restart, int skipms, const char *lang, long *offsetms); /*! + * \brief Controls playback of a tone + * + * \retval 0 on success + * \retval Non-zero on failure + */ +int ast_control_tone(struct ast_channel *chan, const char *tone); + +/*! * \brief Stream a file with fast forward, pause, reverse, restart. * \param chan * \param file filename |