Module: kamailio
Branch: 5.4
Commit: e46c76a135ae24794748de8bdf87ae46f4ad7199
URL: https://github.com/kamailio/kamailio/commit/e46c76a135ae24794748de8bdf87ae4…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-04-13T09:16:23+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/textopsx/README
---
Diff: https://github.com/kamailio/kamailio/commit/e46c76a135ae24794748de8bdf87ae4…
Patch: https://github.com/kamailio/kamailio/commit/e46c76a135ae24794748de8bdf87ae4…
---
diff --git a/src/modules/textopsx/README b/src/modules/textopsx/README
index 8b87eb20d3..43270eec79 100644
--- a/src/modules/textopsx/README
+++ b/src/modules/textopsx/README
@@ -223,7 +223,7 @@ if(fnmatch("$rU", "123*"))
Meaning of the parameters is as follows:
* hf - Header field to be appended. Format: HFNAME [ [IDX] ]. If
index is not specified new header is inserted at the end of
- message.
+ message. The index 1 correxponds to the first header.
* hvalue - Value to be added, config var formatting supported.
Example 1.6. append_hf_value usage
@@ -244,7 +244,7 @@ ot exists add new header
Meaning of the parameters is as follows:
* hf - Header field to be appended. Format: HFNAME [ [IDX] ]. If
index is not specified new header is inserted at the top of
- message.
+ message. The index 1 correxponds to the first header.
* hvalue - Value to be added, config var formatting supported.
Example 1.7. insert_hf_value usage
@@ -262,7 +262,7 @@ insert_hf_value("foo[1]", "gogo") # try add to the first header
Meaning of the parameters is as follows:
* hf_par - Header field/param to be removed. Format: HFNAME [ [IDX] ]
[. PARAM ] If asterisk is specified as index then all values are
- affected.
+ affected. The index 1 correxponds to the first header.
Example 1.8. remove_hf_value usage
...
@@ -282,7 +282,7 @@ remove_hf_value("foo[*].bar") # for each foo delete bar parameters
Meaning of the parameters is as follows:
* hf_par - Header/param to be removed. Format: HFNAME [ [IDX] ] [.
PARAM ] If asterisk is specified as index then all values are
- affected.
+ affected. The index 1 correxponds to the first header.
Example 1.9. remove_hf_value2 usage
...
@@ -301,7 +301,7 @@ remove_hf_value2("foo[*].bar") # for each foo delete bar parameters
Meaning of the parameters is as follows:
* hf_para - Header field value / param to be appended. Format: HFNAME
[ [IDX] ] [. PARAM] If asterisk is specified as index then all
- values are affected.
+ values are affected. The index 1 correxponds to the first header.
* hvalue - Value to be assigned, config var formatting supported. If
value is empty then no equal sign appears in param.
@@ -325,7 +325,7 @@ assign_hf_value("foo[*].bar", "") # set empty value (ex. lr)
Meaning of the parameters is as follows:
* hf_para - Header field value / param to be appended. Format: HFNAME
[ [IDX] ] [. PARAM] If asterisk is specified as index then all
- values are affected.
+ values are affected. The index 1 correxponds to the first header.
* hvalue - Value to be assigned, config var formatting supported. If
value is empty then no equal sign appears in param.
Module: kamailio
Branch: master
Commit: 91ec4259465fdaab41749b8fed0f96636a0619e5
URL: https://github.com/kamailio/kamailio/commit/91ec4259465fdaab41749b8fed0f966…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-04-12T18:46:13+02:00
modules: readme files regenerated - secsipid ... [skip ci]
---
Modified: src/modules/secsipid/README
---
Diff: https://github.com/kamailio/kamailio/commit/91ec4259465fdaab41749b8fed0f966…
Patch: https://github.com/kamailio/kamailio/commit/91ec4259465fdaab41749b8fed0f966…
---
diff --git a/src/modules/secsipid/README b/src/modules/secsipid/README
index ec12000f65..c96b7830c6 100644
--- a/src/modules/secsipid/README
+++ b/src/modules/secsipid/README
@@ -55,7 +55,7 @@ Daniel-Constantin Mierla
1.8. secsipid_check_identity_pubkey usage
1.9. secsipid_get_url usage
1.10. secsipid_add_identity usage
- 1.11. Libsecsipid usage
+ 1.11. Libsecsipid Usage
Chapter 1. Admin Guide
@@ -299,25 +299,32 @@ request_route {
5. Installation
- The module depends on "libsecsipid", which is a component of
- "sipsecidx" project from https://github.com/asipto/secsipidx/. The
- library is implemented in Go language, with generated C API and
- library. Until the libsecsipid is going to be packaged in OS
- distributions, the secsipid module can be compiled by copying
- secsipid.h libsecsipid.h and libsecsipid.a files in the folder of the
- module.
+ The module needs "secsipdi_proc.so" module thatdepends on
+ "libsecsipid", which is a component of "sipsecidx" project from
+ https://github.com/asipto/secsipidx/. The library is implemented in Go
+ language, with generated C API and library. Until the libsecsipid is
+ going to be packaged in OS distributions, the secsipid_proc module can
+ be compiled by copying secsipid.h libsecsipid.h and libsecsipid.a files
+ in the folder of the module.
To generate the libsecsipid.a file, it requires to have Go language
installed and its environment configured, then run the following
commands:
- Example 1.11. Libsecsipid usage
+ Example 1.11. Libsecsipid Usage
...
go get https://github.com/asipto/secsipidx
cd $GOPATH/src/github.com/asipto/secsipidx/csecsipid/
make liba
cp secsipid.h libsecsipid.h libsecsipid.a \
- /path/to/kamailio/src/modules/secsipid/
+ /path/to/kamailio/src/modules/secsipid_proc/
+
cd /path/to/kamailio/
-make modules modules=src/modules/secsipid/
+make include_modules="secsipid secsipid_proc ..." cfg
+make all
+make install
+
+## or compiling individual modules for use inside source tree
+# make modules modules=src/modules/secsipid_proc
+# make modules modules=src/modules/secsipid
...
Module: kamailio
Branch: master
Commit: 7018672d9881ab97848b4e1131d73412b0db221d
URL: https://github.com/kamailio/kamailio/commit/7018672d9881ab97848b4e1131d7341…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-12T18:39:25+02:00
secsipid: docs - updates to installation section with secsipid_proc
---
Modified: src/modules/secsipid/doc/secsipid_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/7018672d9881ab97848b4e1131d7341…
Patch: https://github.com/kamailio/kamailio/commit/7018672d9881ab97848b4e1131d7341…
---
diff --git a/src/modules/secsipid/doc/secsipid_admin.xml b/src/modules/secsipid/doc/secsipid_admin.xml
index 9360d788a4..d9d622af17 100644
--- a/src/modules/secsipid/doc/secsipid_admin.xml
+++ b/src/modules/secsipid/doc/secsipid_admin.xml
@@ -318,10 +318,11 @@ request_route {
<section id="secsipid.s.installation">
<title>Installation</title>
<para>
- The module depends on "libsecsipid", which is a component of "sipsecidx"
- project from https://github.com/asipto/secsipidx/. The library is
+ The module needs "secsipdi_proc.so" module thatdepends on "libsecsipid",
+ which is a component of "sipsecidx" project from
+ https://github.com/asipto/secsipidx/. The library is
implemented in Go language, with generated C API and library. Until the
- libsecsipid is going to be packaged in OS distributions, the secsipid
+ libsecsipid is going to be packaged in OS distributions, the secsipid_proc
module can be compiled by copying secsipid.h libsecsipid.h and libsecsipid.a
files in the folder of the module.
</para>
@@ -330,16 +331,23 @@ request_route {
installed and its environment configured, then run the following commands:
</para>
<example>
- <title>Libsecsipid usage</title>
+ <title>Libsecsipid Usage</title>
<programlisting format="linespecific">
...
go get https://github.com/asipto/secsipidx
cd $GOPATH/src/github.com/asipto/secsipidx/csecsipid/
make liba
cp secsipid.h libsecsipid.h libsecsipid.a \
- /path/to/kamailio/src/modules/secsipid/
+ /path/to/kamailio/src/modules/secsipid_proc/
+
cd /path/to/kamailio/
-make modules modules=src/modules/secsipid/
+make include_modules="secsipid secsipid_proc ..." cfg
+make all
+make install
+
+## or compiling individual modules for use inside source tree
+# make modules modules=src/modules/secsipid_proc
+# make modules modules=src/modules/secsipid
...
</programlisting>
</example>
Module: kamailio
Branch: master
Commit: ea628d35917036a252a3a0094a250b5df3cfe037
URL: https://github.com/kamailio/kamailio/commit/ea628d35917036a252a3a0094a250b5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-12T07:51:41+02:00
secsipid_proc: synced with the upstream library api
---
Modified: src/modules/secsipid_proc/libsecsipid.h
Modified: src/modules/secsipid_proc/secsipid_proc_mod.c
---
Diff: https://github.com/kamailio/kamailio/commit/ea628d35917036a252a3a0094a250b5…
Patch: https://github.com/kamailio/kamailio/commit/ea628d35917036a252a3a0094a250b5…
---
diff --git a/src/modules/secsipid_proc/libsecsipid.h b/src/modules/secsipid_proc/libsecsipid.h
index f0b8d51ebc..b95393ed39 100644
--- a/src/modules/secsipid_proc/libsecsipid.h
+++ b/src/modules/secsipid_proc/libsecsipid.h
@@ -92,6 +92,19 @@ extern int SecSIPIDSignJSONHP(char* headerJSON, char* payloadJSON, char* prvkeyP
// * return: the length of `*outPtr`
extern int SecSIPIDGetIdentity(char* origTN, char* destTN, char* attestVal, char* origID, char* x5uVal, char* prvkeyPath, char** outPtr);
+// SecSIPIDGetIdentityPrvKey --
+// Generate the Identity header content using the input attributes
+// * origTN - calling number
+// * destTN - called number
+// * attestVal - attestation level
+// * origID - unique ID for tracking purposes, if empty string a UUID is generated
+// * x5uVal - location of public certificate
+// * prvkeyData - content of private key to be used to generate the signature
+// * outPtr - to be set to the pointer containing the output (it is a
+// 0-terminated string); the `*outPtr` must be freed after use
+// * return: the length of `*outPtr`
+extern int SecSIPIDGetIdentityPrvKey(char* origTN, char* destTN, char* attestVal, char* origID, char* x5uVal, char* prvkeyData, char** outPtr);
+
// SecSIPIDCheck --
// check the Identity header value
// * identityVal - identity header value
@@ -143,6 +156,26 @@ extern int SecSIPIDSetFileCacheOptions(char* dirPath, int expireVal);
// * return: 0 - on success; -1 - on failure
extern int SecSIPIDGetURLContent(char* urlVal, int timeoutVal, char** outPtr, int* outLen);
+// SecSIPIDOptSetS --
+// set a string option for the library
+// * optName - name of the option
+// * optVal - value of the option
+// * return: 0 if option was set, -1 otherwise
+extern int SecSIPIDOptSetS(char* optName, char* optVal);
+
+// SecSIPIDOptSetN --
+// set a number (integer) option for the library
+// * optName - name of the option
+// * optVal - value of the option
+// * 0 if option was set, -1 otherwise
+extern int SecSIPIDOptSetN(char* optName, int optVal);
+
+// SecSIPIDOptSetV --
+// set an option for the library
+// * optNameVal - string with name=value of the option
+// * 0 if option was set, -1 otherwise
+extern int SecSIPIDOptSetV(char* optNameVal);
+
#ifdef __cplusplus
}
#endif
diff --git a/src/modules/secsipid_proc/secsipid_proc_mod.c b/src/modules/secsipid_proc/secsipid_proc_mod.c
index 9356101d3a..1054582b17 100644
--- a/src/modules/secsipid_proc/secsipid_proc_mod.c
+++ b/src/modules/secsipid_proc/secsipid_proc_mod.c
@@ -44,6 +44,9 @@ int secsipid_proc_bind(secsipid_papi_t *papi)
papi->SecSIPIDCheckFullPubKey = SecSIPIDCheckFullPubKey;
papi->SecSIPIDSetFileCacheOptions = SecSIPIDSetFileCacheOptions;
papi->SecSIPIDGetURLContent = SecSIPIDGetURLContent;
+ papi->SecSIPIDOptSetS = SecSIPIDOptSetS;
+ papi->SecSIPIDOptSetN = SecSIPIDOptSetN;
+ papi->SecSIPIDOptSetV = SecSIPIDOptSetV;
return 0;
}