```
secsipid_proc_mod.c: In function 'secsipid_proc_bind':
secsipid_proc_mod.c:41:42: error: 'SecSIPIDSignJSONHPPrvKey' undeclared (first use in this function); did you mean 'SecSIPIDSignJSONHP'?
41 | papi->SecSIPIDSignJSONHPPrvKey = SecSIPIDSignJSONHPPrvKey;
| ^~~~~~~~~~~~~~~~~~~~~~~~
| SecSIPIDSignJSONHP
secsipid_proc_mod.c:41:42: note: each undeclared identifier is reported only once for each function it appears in
```
This broke bookworm bullseye and jammy builds:
https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/2517/console
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/commit/c8d56ed3afa19c29279e54fffd40b98…
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/commit/c8d56ed3afa19c29279e54fffd40b9810bb0d67c/131337436(a)github.com>
### Description
Add a function `secsipid_sign_privkey(sheaders, spaypload, keyData)` that accepts a pseudovariable with the PEM data analagous to the difference between the following functions:
- `secsipid_build_identity(origTN, destTN, attest, origID, x5u, keyPath)`
- `secsipid_build_identity_prvkey(origTN, destTN, attest, origID, x5u, keyData)`
With the difference being that ``secsipid_build_identity()` takes a key file as it's argument, and ``secsipid_build_identity_privkey()` allows having the key data in a pseudovariable.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3620
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3620(a)github.com>
Hi All,
I'm going to release a new module that I've been developing, Real Time
Streaming is a protocol to connect to camera devices to record video.
Using this module, you can connect to all kinds of cameras and map them to
internal numbers. When you call these numbers, the recorded video will
appear on your video call station and change between cameras by DTMF.
In addition, This module is used for video surveillance solutions.
Please let me know your ideas on this. I am looking forward to hearing new
ideas in this regard.
With best regards
--Mojtaba Esfandiari.S
Module: kamailio
Branch: master
Commit: 1cfd694e3bad62e9c4fc31073fcebe7707c5968c
URL: https://github.com/kamailio/kamailio/commit/1cfd694e3bad62e9c4fc31073fcebe7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-10-30T13:27:49+01:00
secsipid: docs for secsipid_sign_prvkey()
---
Modified: src/modules/secsipid/doc/secsipid_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/1cfd694e3bad62e9c4fc31073fcebe7…
Patch: https://github.com/kamailio/kamailio/commit/1cfd694e3bad62e9c4fc31073fcebe7…
---
diff --git a/src/modules/secsipid/doc/secsipid_admin.xml b/src/modules/secsipid/doc/secsipid_admin.xml
index 97306c649b3..7ea74f525a0 100644
--- a/src/modules/secsipid/doc/secsipid_admin.xml
+++ b/src/modules/secsipid/doc/secsipid_admin.xml
@@ -460,6 +460,39 @@ request_route {
...
}
...
+</programlisting>
+ </example>
+ </section>
+ <section id="secsipid.f.secsipid_sign_prvkey">
+ <title>
+ <function moreinfo="none">secsipid_sign_prvkey(sheaders, spaypload, keyData)</function>
+ </title>
+ <para>
+ Build Identity value using the private key given by "keyData" to sign the JWT body.
+ The sheaders and spayload have to be string representation of JSON
+ headers and payload to be signed. 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_sign_prvkey</function> usage</title>
+ <programlisting format="linespecific">
+...
+request_route {
+ ...
+ if(secsipid_sign_prvkey("_JSON_HEADERS_", "_JSON_PAYLOAD_",
+ "_PRIVATE_KEY_")) {
+ xinfo("Identity value: $secsipid(val)\n");
+ }
+ ...
+}
+...
</programlisting>
</example>
</section>