Browse code

uac: docs for uac_reg_lookup_uri()

Daniel-Constantin Mierla authored on 07/05/2021 06:09:11
Showing 1 changed files
... ...
@@ -1005,6 +1005,31 @@ if(uac_reg_lookup("$rU", "$ru"))
1005 1005
 {
1006 1006
     lookup("location");
1007 1007
 }
1008
+...
1009
+				</programlisting>
1010
+			</example>
1011
+		</section>
1012
+		<section id="uac.f.uac_reg_lookup_uri">
1013
+			<title>
1014
+				<function moreinfo="none">uac_reg_lookup_uri(uri, dst)</function>
1015
+			</title>
1016
+			<para>
1017
+			This function sets the PV dst to SIP URI that correspond to the URI user
1018
+			in uac registrations table. The uri can contain pseudo-variables and
1019
+			dst must be the name of a pseudo-variable.
1020
+			</para>
1021
+			<para>
1022
+			This function can be used from ANY_ROUTE.
1023
+			</para>
1024
+			<example>
1025
+				<title><function>uac_reg_lookup_uri</function> usage</title>
1026
+				<programlisting format="linespecific">
1027
+...
1028
+
1029
+if(uac_reg_lookup("$var(uri)", "$ru"))
1030
+{
1031
+    lookup("location");
1032
+}
1008 1033
 ...
1009 1034
 				</programlisting>
1010 1035
 			</example>