]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
func_scramble: Add example to XML documentation.
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 29 Sep 2025 16:15:39 +0000 (12:15 -0400)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 30 Sep 2025 15:09:43 +0000 (15:09 +0000)
The previous lack of an example made it ambiguous if the arguments went
inside the function arguments or were part of the right-hand value.

Resolves: #1485

funcs/func_scramble.c

index d05ede6b01e8107a138b03e95742fd5beccac779..f760e2efdead949492874c2cc7bb503d68f2ba68 100644 (file)
@@ -52,6 +52,9 @@
                        This is not intended to be used for securely scrambling
                        audio. It merely renders obfuscates audio on a channel
                        to render it unintelligible, as a privacy enhancement.</para>
+                       <example title="Scramble speech in both directions">
+                       same => n,Set(SCRAMBLE()=both)
+                       </example>
                </description>
                <see-also>
                        <ref type="application">ChanSpy</ref>