Module: kamailio
Branch: master
Commit: cf82852199f1fee7ee01e4a25d5e79a2ab1bbf8d
URL: https://github.com/kamailio/kamailio/commit/cf82852199f1fee7ee01e4a25d5e79a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-06-17T16:35:55+02:00
secsipid: docs for secsipid_build_identity(...) function
---
Modified: src/modules/secsipid/doc/secsipid_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]cf82852199f1fee7ee01e4a25d5e79a…
Patch: https://github.com/kamailio/kamailio/commit/cf82852199f1fee7ee01e4a25d5e79a…
---
diff --git a/src/modules/secsipid/doc/secsipid_admin.xml b/src/modules/secsipid/doc/secsipid_admin.xml
index 527db1aecf..bc1a8ac332 100644
--- a/src/modules/secsipid/doc/secsipid_admin.xml
+++ b/src/modules/secsipid/doc/secsipid_admin.xml
@@ -322,6 +322,42 @@ request_route {
...
}
...
+</programlisting>
+ </example>
+ </section>
+ <section id="secsipid.f.secsipid_build_identity">
+ <title>
+ <function moreinfo="none">secsipid_build_identity(origTN, destTN, attest, origID, x5u, keyPath)</function>
+ </title>
+ <para>
+ Build Identity value using the key specified by "keyPath" to sign the JWT body.
+ If origID is empty, a UUID string is generated to fill the field. The origTN
+ represents the origination telephone number; destTN represents the destination
+ telephone number; x5u is the HTTP URL referencing to the public key that
+ should be used to verify the signature; attest represents the attestation
+ level (should be "A", "B" or "C"). On success, the Indentity value is
+ stored in variable $secsipid(val). It also sets $secsipid(ret) to
+ the return value of the libsecsipid functions.
+ </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</function> usage</title>
+ <programlisting format="linespecific">
+...
+request_route {
+ ...
+ if(secsipid_build_identity("$fU", "$rU", "A", "",
+ "https://kamailio.org/stir/$rd/cert.pem", "/secsipid/$rd/key.pem")) {
+ xinfo("Identity value: $secsipid(val)\n");
+ }
+ ...
+}
+...
</programlisting>
</example>
</section>
[View Less]
Hello,
Kamailio SIP Server v5.5.1 stable release is out.
This is a maintenance release of the latest stable branch, 5.5, that
includes fixes since the release of v5.5.0. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.5.x. Deployments running previous v5.5.x
versions are strongly recommended to be upgraded to v5.5.1.
For more details about version 5.5.1 (including links and guidelines to
download the tarball or …
[View More]from GIT repository), visit:
* https://www.kamailio.org/w/2021/06/kamailio-v5-5-1-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
[View Less]