Merge "res_agi: Clarify 'RECORD FILE' documentation" into 13

certified/13.18
Jenkins2 8 years ago committed by Gerrit Code Review
commit a3684b74e6

@ -451,13 +451,34 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
Records to a given file. Records to a given file.
</synopsis> </synopsis>
<syntax> <syntax>
<parameter name="filename" required="true" /> <parameter name="filename" required="true">
<parameter name="format" required="true" /> <para>The destination filename of the recorded audio.</para>
<parameter name="escape_digits" required="true" /> </parameter>
<parameter name="timeout" required="true" /> <parameter name="format" required="true">
<parameter name="offset samples" /> <para>The audio format in which to save the resulting file.</para>
<parameter name="BEEP" /> </parameter>
<parameter name="s=silence" /> <parameter name="escape_digits" required="true">
<para>The DTMF digits that will terminate the recording process.</para>
</parameter>
<parameter name="timeout" required="true">
<para>The maximum recording time in milliseconds. Set to -1 for no
limit.</para>
</parameter>
<parameter name="offset_samples">
<para>Causes the recording to first seek to the specified offset before
recording begins.</para>
</parameter>
<parameter name="beep">
<para>Causes Asterisk to play a beep as recording begins. This argument
can take any value.</para>
</parameter>
<parameter name="s=silence">
<para>The number of seconds of silence that are permitted before the
recording is terminated, regardless of the
<replaceable>escape_digits</replaceable> or <replaceable>timeout</replaceable>
arguments. If specified, this parameter must be preceded by
<literal>s=</literal>.</para>
</parameter>
</syntax> </syntax>
<description> <description>
<para>Record to a file until a given dtmf digit in the sequence is received. <para>Record to a file until a given dtmf digit in the sequence is received.
@ -465,7 +486,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
will be recorded. The <replaceable>timeout</replaceable> is the maximum record time in will be recorded. The <replaceable>timeout</replaceable> is the maximum record time in
milliseconds, or <literal>-1</literal> for no <replaceable>timeout</replaceable>. milliseconds, or <literal>-1</literal> for no <replaceable>timeout</replaceable>.
<replaceable>offset samples</replaceable> is optional, and, if provided, will seek <replaceable>offset samples</replaceable> is optional, and, if provided, will seek
to the offset without exceeding the end of the file. <replaceable>silence</replaceable> is to the offset without exceeding the end of the
file. <replaceable>beep</replaceable> can take any value, and causes Asterisk
to play a beep to the channel that is about to be recorded. <replaceable>silence</replaceable> is
the number of seconds of silence allowed before the function returns despite the the number of seconds of silence allowed before the function returns despite the
lack of dtmf digits or reaching <replaceable>timeout</replaceable>. <replaceable>silence</replaceable> lack of dtmf digits or reaching <replaceable>timeout</replaceable>. <replaceable>silence</replaceable>
value must be preceded by <literal>s=</literal> and is also optional.</para> value must be preceded by <literal>s=</literal> and is also optional.</para>

Loading…
Cancel
Save