]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
func_srv: Document field parameter.
authorNaveen Albert <asterisk@phreaknet.org>
Sat, 23 Jul 2022 22:37:17 +0000 (22:37 +0000)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 1 Aug 2022 11:58:48 +0000 (06:58 -0500)
Adds missing documentation for the field parameter
for the SRVRESULT function.

ASTERISK-30151
Reported by: Chris Young

Change-Id: I4385a2e0892a07e30dea1a8a0588e2c1bea2b1f1

funcs/func_srv.c

index c8506b3a76c543255c8217e64dc43d4020b5fe71..4ac9e6972167bef21f93c9205f01e51db4446d5f 100644 (file)
                                as <literal>getnum</literal>, then it will return the total number of results
                                that are available.</para>
                        </parameter>
+                       <parameter name="field" required="false">
+                               <para>The field of the result to retrieve.</para>
+                               <para>The fields that can be retrieved are:</para>
+                               <enumlist>
+                                       <enum name="host"/>
+                                       <enum name="port"/>
+                                       <enum name="priority"/>
+                                       <enum name="weight"/>
+                               </enumlist>
+                       </parameter>
                </syntax>
                <description>
                        <para>This function will retrieve results from a previous use