Module: kamailio
Branch: master
Commit: c8d8e50fe23d3310796c8615ccce346b4522fc7c
URL:
https://github.com/kamailio/kamailio/commit/c8d8e50fe23d3310796c8615ccce346…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-08-30T11:05:52+02:00
secsipid: docs for secsipid_build_identity_prvkey()
---
Modified: src/modules/secsipid/doc/secsipid_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/c8d8e50fe23d3310796c8615ccce346…
Patch:
https://github.com/kamailio/kamailio/commit/c8d8e50fe23d3310796c8615ccce346…
---
diff --git a/src/modules/secsipid/doc/secsipid_admin.xml
b/src/modules/secsipid/doc/secsipid_admin.xml
index 88c4e761db..be388c17d6 100644
--- a/src/modules/secsipid/doc/secsipid_admin.xml
+++ b/src/modules/secsipid/doc/secsipid_admin.xml
@@ -397,6 +397,36 @@ request_route {
...
}
...
+</programlisting>
+ </example>
+ </section>
+ <section id="secsipid.f.secsipid_build_identity_prvkey">
+ <title>
+ <function moreinfo="none">secsipid_build_identity_prvkey(origTN,
destTN, attest, origID, x5u, keyData)</function>
+ </title>
+ <para>
+ Similar to secsipid_build_identity(), but the private key data is
+ provided as parameter instead to the file path.
+ </para>
+ <para>
+ The parameters can contain pseudo-variables.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>secsipid_build_identity_prvkey</function>
usage</title>
+ <programlisting format="linespecific">
+...
+request_route {
+ ...
+ if(secsipid_build_identity_prvkey("$fU", "$rU", "A",
"",
+ "https://kamailio.org/stir/$rd/cert.pem",
"$var(prvkey)")) {
+ xinfo("Identity value: $secsipid(val)\n");
+ }
+ ...
+}
+...
</programlisting>
</example>
</section>