Module: kamailio
Branch: master
Commit: 624da2b7deb2539064be70a7566783fd36a15886
URL:
https://github.com/kamailio/kamailio/commit/624da2b7deb2539064be70a7566783f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-05-07T08:09:11+02:00
uac: docs for uac_reg_lookup_uri()
---
Modified: src/modules/uac/doc/uac_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/624da2b7deb2539064be70a7566783f…
Patch:
https://github.com/kamailio/kamailio/commit/624da2b7deb2539064be70a7566783f…
---
diff --git a/src/modules/uac/doc/uac_admin.xml b/src/modules/uac/doc/uac_admin.xml
index 352d038ea2..52362af1e3 100644
--- a/src/modules/uac/doc/uac_admin.xml
+++ b/src/modules/uac/doc/uac_admin.xml
@@ -1005,6 +1005,31 @@ if(uac_reg_lookup("$rU", "$ru"))
{
lookup("location");
}
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="uac.f.uac_reg_lookup_uri">
+ <title>
+ <function moreinfo="none">uac_reg_lookup_uri(uri,
dst)</function>
+ </title>
+ <para>
+ This function sets the PV dst to SIP URI that correspond to the URI user
+ in uac registrations table. The uri can contain pseudo-variables and
+ dst must be the name of a pseudo-variable.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>uac_reg_lookup_uri</function> usage</title>
+ <programlisting format="linespecific">
+...
+
+if(uac_reg_lookup("$var(uri)", "$ru"))
+{
+ lookup("location");
+}
...
</programlisting>
</example>