Module: kamailio
Branch: master
Commit: 3debbb5a608c135c628799546ee95c96abe18824
URL:
https://github.com/kamailio/kamailio/commit/3debbb5a608c135c628799546ee95c9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-08-21T09:30:50+02:00
corex: docs for forward_uac() function
---
Modified: src/modules/corex/doc/corex_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/3debbb5a608c135c628799546ee95c9…
Patch:
https://github.com/kamailio/kamailio/commit/3debbb5a608c135c628799546ee95c9…
---
diff --git a/src/modules/corex/doc/corex_admin.xml
b/src/modules/corex/doc/corex_admin.xml
index 3d6ff893808..61529f94335 100644
--- a/src/modules/corex/doc/corex_admin.xml
+++ b/src/modules/corex/doc/corex_admin.xml
@@ -977,6 +977,34 @@ event_route[dispatcher:dst-down] {
xinfo("matched local socket name\n");
}
...
+</programlisting>
+ </example>
+ </section>
+ <section id="corex.f.forward_uac">
+ <title>
+ <function moreinfo="none">forward_uac()</function>
+ </title>
+ <para>
+ Forward received request with a single Via header, the one added
+ by &kamailio;, the other ones being removed. Useful in cases when
+ its reply should not be sent back (e.g., the reply was already sent
+ out from &kamailio;).
+ </para>
+ <para>
+ This function can be used in REQUEST_ROUTE.
+ </para>
+ <example>
+ <title><function>forward_uac</function> usage</title>
+ <programlisting format="linespecific">
+...
+request_route {
+ ...
+ sl_send_reply("200", "OK");
+ $du = "sip:mirror.com:5080";
+ forward_uac();
+ ...
+}
+...
</programlisting>
</example>
</section>