Module: kamailio
Branch: master
Commit: 1e58a56cb7f9d83ca0c943481d02c429d33e188a
URL:
https://github.com/kamailio/kamailio/commit/1e58a56cb7f9d83ca0c943481d02c42…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-23T09:19:30+01:00
corex: docs - examples with setting xavps for via functions
---
Modified: src/modules/corex/doc/corex_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/1e58a56cb7f9d83ca0c943481d02c42…
Patch:
https://github.com/kamailio/kamailio/commit/1e58a56cb7f9d83ca0c943481d02c42…
---
diff --git a/src/modules/corex/doc/corex_admin.xml
b/src/modules/corex/doc/corex_admin.xml
index 6460d11913..0b1d587e7b 100644
--- a/src/modules/corex/doc/corex_admin.xml
+++ b/src/modules/corex/doc/corex_admin.xml
@@ -662,7 +662,15 @@ via_add_srv("1");
<title><function>via_add_xavp_params</function> usage</title>
<programlisting format="linespecific">
...
-via_add_xavp_params("1");
+xavp_via_params="xvia"
+...
+request_route {
+ ...
+ $xavp(xvia=>srvid) = "1";
+ $xavp(xvia[0]=>myval) = "xyz";
+ via_add_xavp_params("1");
+ ...
+}
...
</programlisting>
</example>
@@ -690,7 +698,15 @@ via_add_xavp_params("1");
<title><function>via_use_xavp_fields</function> usage</title>
<programlisting format="linespecific">
...
-via_use_xavp_fields("1");
+xavp_via_fields="mvia"
+...
+request_route {
+ ...
+ $xavp(mvia=>address) = "10.10.10.10";
+ $xavp(mvia[0]=>port) = "5060";
+ via_use_xavp_fields("1");
+ ...
+}
...
</programlisting>
</example>