[Asterisk-code-review] func_srv: Document field parameter. (asterisk[16])

N A asteriskteam at digium.com
Wed Jul 27 12:10:30 CDT 2022


N A has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/18872 )


Change subject: func_srv: Document field parameter.
......................................................................

func_srv: Document field parameter.

Adds missing documentation for the field parameter
for the SRVRESULT function.

ASTERISK-30151
Reported by: Chris Young

Change-Id: I4385a2e0892a07e30dea1a8a0588e2c1bea2b1f1
---
M funcs/func_srv.c
1 file changed, 10 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/72/18872/1

diff --git a/funcs/func_srv.c b/funcs/func_srv.c
index c8506b3..4ac9e69 100644
--- a/funcs/func_srv.c
+++ b/funcs/func_srv.c
@@ -65,6 +65,16 @@
 				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

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18872
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I4385a2e0892a07e30dea1a8a0588e2c1bea2b1f1
Gerrit-Change-Number: 18872
Gerrit-PatchSet: 1
Gerrit-Owner: N A <mail at interlinked.x10host.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220727/60a31ca3/attachment-0001.html>


More information about the asterisk-code-review mailing list