Re: [sr-dev] [kamailio/kamailio] Core dumps possibly related to #2616 or http_async_query (#2632)

2021-03-19 Thread Anthony Messina
Thank you @bjokax, you are correct -- I was not aware of the implementation 
detail related to http2, though it's promising that your 
`curl_easy_setopt(cell->easy, CURLOPT_SSL_ENABLE_ALPN, 0L);` may resolve the 
issue.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2632#issuecomment-803143438___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] phonenum: cannot build on fresh dist (#2684)

2021-03-19 Thread sergey-safarov
Closed #2684.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2684#event-4484169936___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] phonenum: cannot build on fresh dist (#2684)

2021-03-19 Thread sergey-safarov
I will close the issue.
If some think similar will rise with CentOS, then will open new.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2684#issuecomment-803108034___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Core dumps possibly related to #2616 or http_async_query (#2632)

2021-03-19 Thread Björn Kaxe
I can confirm that patching http_async_client module by adding 
`curl_easy_setopt(cell->easy, CURLOPT_SSL_ENABLE_ALPN, 0L);` solved our 
problems. Now we don't see any spinning Kamailio processes anymore.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2632#issuecomment-803055188___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Core dumps possibly related to #2616 or http_async_query (#2632)

2021-03-19 Thread Federico Cabiddu
Thank you for the report. I'll try to have a look on it in the next couple of 
days.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2632#issuecomment-802922909___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] cplc and pua_dialoginfo enhancement (#2676)

2021-03-19 Thread Frédéric Gaisnon
Ok sorry, I note it for future commits.
However is this validation may be done before 5.5 release?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2676#issuecomment-802888954___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:db2bc62c: stirshaken: enhance documentation

2021-03-19 Thread Piotr Gregor
Module: kamailio
Branch: master
Commit: db2bc62c6577547c1ad1564a77f6aafb688937a0
URL: 
https://github.com/kamailio/kamailio/commit/db2bc62c6577547c1ad1564a77f6aafb688937a0

Author: Piotr Gregor 
Committer: Piotr Gregor 
Date: 2021-03-19T14:31:14Z

stirshaken: enhance documentation

---

Modified: src/modules/stirshaken/doc/stirshaken_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/db2bc62c6577547c1ad1564a77f6aafb688937a0.diff
Patch: 
https://github.com/kamailio/kamailio/commit/db2bc62c6577547c1ad1564a77f6aafb688937a0.patch

---

diff --git a/src/modules/stirshaken/doc/stirshaken_admin.xml 
b/src/modules/stirshaken/doc/stirshaken_admin.xml
index a78eed9050..55ef50a837 100644
--- a/src/modules/stirshaken/doc/stirshaken_admin.xml
+++ b/src/modules/stirshaken/doc/stirshaken_admin.xml
@@ -148,7 +148,7 @@ modparam("stirshaken", "vs_crl_dir", "/path/to/crl_dir")



-   vs_identity_expire_s (str)
+   vs_identity_expire_s (int)

This parameter defines a maximum time in seconds for which 
PASSporT is considered valid.



___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Core dumps possibly related to #2616 or http_async_query (#2632)

2021-03-19 Thread Björn Kaxe
We suspect that the issue only happens with http2. @amessina I can see that the 
server you connect to is also using http2. Looking at the implementation of 
http_async_client it doesn't seem to handle http2 properly. 
If you understood the implementation correctly these is an association between 
the Curl_easy and the fd, when registering in libevents. That does not work in 
http2, where several requests are multiplexed over the same TLS connection.

A quick fix could be to disable ALPN  `curl_easy_setopt(curl_, 
CURLOPT_SSL_ENABLE_ALPN, 0L);`. 


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2632#issuecomment-802806829___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:b5a6e7d7: stirshaken: enhance documentation

2021-03-19 Thread Piotr Gregor
Module: kamailio
Branch: master
Commit: b5a6e7d7900ab9255ba10bd7aded9e60a9fc3d9e
URL: 
https://github.com/kamailio/kamailio/commit/b5a6e7d7900ab9255ba10bd7aded9e60a9fc3d9e

Author: Piotr Gregor 
Committer: Piotr Gregor 
Date: 2021-03-19T12:02:17Z

stirshaken: enhance documentation

---

Modified: src/modules/stirshaken/doc/stirshaken_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/b5a6e7d7900ab9255ba10bd7aded9e60a9fc3d9e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b5a6e7d7900ab9255ba10bd7aded9e60a9fc3d9e.patch

---

diff --git a/src/modules/stirshaken/doc/stirshaken_admin.xml 
b/src/modules/stirshaken/doc/stirshaken_admin.xml
index b4b5ce1e14..a78eed9050 100644
--- a/src/modules/stirshaken/doc/stirshaken_admin.xml
+++ b/src/modules/stirshaken/doc/stirshaken_admin.xml
@@ -193,8 +193,8 @@ modparam("stirshaken", "vs_connect_timeout_s", 10)

vs_cache_certificates (int)

-   If set, then certificates caching is turned on. This means that 
certificates downloaded during call verification
-   are cached inside vs_cache_dir, and will be loaded from that 
cache as long as they are not there for more than vs_cache_expire_s seconds.
+   If set, then certificates caching is turned on. This means that 
certificates downloaded during call verification with 
stirshaken_check_identity()
+   are cached inside vs_cache_dir, and will be loaded from that 
cache as long as they are not there for more than vs_cache_expire_s seconds 
(see vs_cache_expire_s).
If vs_cache_certificates is set then vs_cache_dir must be set 
too and pointing to existing directory.
This param has no meaning for calls to 
stirshaken_check_identity_with_key(key) and 
stirshaken_check_identity_with_cert(cert).

@@ -239,6 +239,8 @@ modparam("stirshaken", "vs_cache_dir", "/tmp/cert_cache")

If vs_cache_certificates is set then cached certificates are 
saved in vs_cache_dir directory and loaded from there
when needed during a call verification executed with 
stirshaken_check_identity(), as long as they are not there for more than 
vs_cache_expire_s seconds.
+   If they are in cache for more than vs_cache_expire_s seconds, 
then a blocking HTTP(s) call is executed to download a new version of (expired) 
certificate.
+   If this is successful then old version is removed and new 
version is saved in cache.
This param has no meaning for calls to 
stirshaken_check_identity_with_key(key) and 
stirshaken_check_identity_with_cert(cert).




___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] stirshaken: handle empty origid, enhance docs (#2683)

2021-03-19 Thread Piotr
Thank you very much @miconda !

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2683#issuecomment-802775631___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] stirshaken: handle empty origid, enhance docs (#2683)

2021-03-19 Thread Piotr
Merged #2683 into master.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2683#event-4481736489___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:7d27ac37: Merge pull request #2683 from signalwire/mod-libstirshaken

2021-03-19 Thread GitHub
Module: kamailio
Branch: master
Commit: 7d27ac370b762c6f6c820c4a74053db569cbb19b
URL: 
https://github.com/kamailio/kamailio/commit/7d27ac370b762c6f6c820c4a74053db569cbb19b

Author: Piotr 
Committer: GitHub 
Date: 2021-03-19T11:44:49Z

Merge pull request #2683 from signalwire/mod-libstirshaken

stirshaken: handle empty origid, enhance docs

---

Modified: src/modules/stirshaken/doc/stirshaken_admin.xml
Modified: src/modules/stirshaken/stirshaken_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/7d27ac370b762c6f6c820c4a74053db569cbb19b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/7d27ac370b762c6f6c820c4a74053db569cbb19b.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:dc851040: stirshaken: handle NULL or empty origid by generating random uuid

2021-03-19 Thread Piotr Gregor
Module: kamailio
Branch: master
Commit: dc851040054692a955b92cf601eb308878017013
URL: 
https://github.com/kamailio/kamailio/commit/dc851040054692a955b92cf601eb308878017013

Author: Piotr Gregor 
Committer: Piotr Gregor 
Date: 2021-03-18T17:58:14Z

stirshaken: handle NULL or empty origid by generating random uuid

---

Modified: src/modules/stirshaken/stirshaken_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/dc851040054692a955b92cf601eb308878017013.diff
Patch: 
https://github.com/kamailio/kamailio/commit/dc851040054692a955b92cf601eb308878017013.patch

---

diff --git a/src/modules/stirshaken/stirshaken_mod.c 
b/src/modules/stirshaken/stirshaken_mod.c
index ce42e57935..bc4a04f0fb 100644
--- a/src/modules/stirshaken/stirshaken_mod.c
+++ b/src/modules/stirshaken/stirshaken_mod.c
@@ -741,7 +741,16 @@ static int ki_stirshaken_add_identity_with_key(sip_msg_t 
*msg, str *x5u, str *at
.origtn_val = origtn_val ? origtn_val->s : NULL,
.origid = origid ? origid->s : NULL
};
+   char uuid_str[37] = { 0 };
 
+   if (!params.origid || !strlen(params.origid)) {
+
+   uuid_t uuid;
+
+   uuid_generate(uuid);
+   uuid_unparse_lower(uuid, uuid_str);
+   params.origid = uuid_str;
+   }
 
if (keypath && keypath->s) {
 


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:3eacb64f: stirshaken: enhance documentation

2021-03-19 Thread Piotr Gregor
Module: kamailio
Branch: master
Commit: 3eacb64f2df8b8ce7816f738b72ec16d5060a576
URL: 
https://github.com/kamailio/kamailio/commit/3eacb64f2df8b8ce7816f738b72ec16d5060a576

Author: Piotr Gregor 
Committer: Piotr Gregor 
Date: 2021-03-18T17:58:14Z

stirshaken: enhance documentation

---

Modified: src/modules/stirshaken/doc/stirshaken_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/3eacb64f2df8b8ce7816f738b72ec16d5060a576.diff
Patch: 
https://github.com/kamailio/kamailio/commit/3eacb64f2df8b8ce7816f738b72ec16d5060a576.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] cplc and pua_dialoginfo enhancement (#2676)

2021-03-19 Thread Daniel-Constantin Mierla
The commit for cplc looks ok, the one for pua_dialoginfo is rather big and 
requires more time to review and understand what it does. But there is no way 
to do a partial merge via github (afaik).

Although not a must, it is recommended to make distinct pull requests in such 
cases, because the two commits are not related one to each other, if you want 
independent review and merge faster for some of the commits.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2676#issuecomment-802744037___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] phonenum: cannot build on fresh dist (#2684)

2021-03-19 Thread Daniel-Constantin Mierla
The problem does not seem related to kamailio code, but some 
conflict/incompatibility between libphonenumber and protobuf.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2684#issuecomment-802740552___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:24cfb577: modules: readme files regenerated - stirshaken ... [skip ci]

2021-03-19 Thread Kamailio Dev
Module: kamailio
Branch: master
Commit: 24cfb577481f267fe584ea63f04ff4004f155e88
URL: 
https://github.com/kamailio/kamailio/commit/24cfb577481f267fe584ea63f04ff4004f155e88

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2021-03-19T15:46:12+01:00

modules: readme files regenerated - stirshaken ... [skip ci]

---

Modified: src/modules/stirshaken/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/24cfb577481f267fe584ea63f04ff4004f155e88.diff
Patch: 
https://github.com/kamailio/kamailio/commit/24cfb577481f267fe584ea63f04ff4004f155e88.patch

---

diff --git a/src/modules/stirshaken/README b/src/modules/stirshaken/README
index caa3a2e5ec..911d6d3231 100644
--- a/src/modules/stirshaken/README
+++ b/src/modules/stirshaken/README
@@ -30,7 +30,7 @@ Piotr Gregor
   3.2. vs_verify_x509_cert_path (int)
   3.3. vs_ca_dir (str)
   3.4. vs_crl_dir (str)
-  3.5. vs_identity_expire_s (str)
+  3.5. vs_identity_expire_s (int)
   3.6. vs_connect_timeout_s (int)
   3.7. vs_cache_certificates (int)
   3.8. vs_cache_dir (str)
@@ -84,7 +84,7 @@ Chapter 1. Admin Guide
 3.2. vs_verify_x509_cert_path (int)
 3.3. vs_ca_dir (str)
 3.4. vs_crl_dir (str)
-3.5. vs_identity_expire_s (str)
+3.5. vs_identity_expire_s (int)
 3.6. vs_connect_timeout_s (int)
 3.7. vs_cache_certificates (int)
 3.8. vs_cache_dir (str)
@@ -142,7 +142,7 @@ Chapter 1. Admin Guide
3.2. vs_verify_x509_cert_path (int)
3.3. vs_ca_dir (str)
3.4. vs_crl_dir (str)
-   3.5. vs_identity_expire_s (str)
+   3.5. vs_identity_expire_s (int)
3.6. vs_connect_timeout_s (int)
3.7. vs_cache_certificates (int)
3.8. vs_cache_dir (str)
@@ -213,7 +213,7 @@ modparam("stirshaken", "vs_ca_dir", "/path/to/ca_dir")
 modparam("stirshaken", "vs_crl_dir", "/path/to/crl_dir")
 ...
 
-3.5. vs_identity_expire_s (str)
+3.5. vs_identity_expire_s (int)
 
This parameter defines a maximum time in seconds for which PASSporT is
considered valid.


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] Errored: kamailio/kamailio#9994 (master - db2bc62)

2021-03-19 Thread Travis CI
Build Update for kamailio/kamailio
-

Build: #9994
Status: Errored

Duration: 7 mins and 34 secs
Commit: db2bc62 (master)
Author: Piotr Gregor
Message: stirshaken: enhance documentation

View the changeset: 
https://github.com/kamailio/kamailio/compare/335150695507...db2bc62c6577

View the full build log and details: 
https://travis-ci.org/github/kamailio/kamailio/builds/763561945?utm_medium=notification&utm_source=email


--

You can unsubscribe from build emails from the kamailio/kamailio repository 
going to 
https://travis-ci.org/account/preferences/unsubscribe?repository=3596148&utm_medium=notification&utm_source=email.
Or unsubscribe from *all* email updating your settings at 
https://travis-ci.org/account/preferences/unsubscribe?utm_medium=notification&utm_source=email.
Or configure specific recipients for build notifications in your .travis.yml 
file. See https://docs.travis-ci.com/user/notifications.

___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] [kamailio/kamailio] phonenum: cannot build on fresh dist (#2684)

2021-03-19 Thread sergey-safarov
```
make[3]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_perlvdb.so] db_perlvdb.so
CC (gcc) [M phonenum.so] phonenum_mod.o
CC (gcc) [M phonenum.so] phonenum_pv.o
Compiling cphonenumber.cpp
g++ -std=c++11 -fPIC -DPIC -g -funroll-loops -Wcast-align -m64 
-minline-all-stringops -falign-loops -ftree-vectorize -fno-strict-overflow 
-mtune=generic -pthread -DKSR_PTHREAD_MUTEX_SHARED -Wall -Wno-write-strings 
-Wno-deprecated -Wno-unused-function -Wno-sign-compare -Wno-strict-aliasing 
-fPIC -DPIC -g -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall  -DNAME='"kamailio"' -DVERSION='"5.5.0-dev4"' 
-DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 10.2.1"' 
-D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=5005000 -DCFG_DIR='"/etc/kamailio/"' 
-DSHARE_DIR='"/usr/share/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' 
-DPKG_MALLOC -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE 
-DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLOCKLIST 
-DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC 
-DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS 
-DMALLOC_STATS -DUSE_SCTP -DFAST_LOCK -DADAPTIVE_WAIT 
-DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 
-DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL 
-DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM 
-DHAVE_SCHED_SETSCHEDULER -DHAVE_IP_MREQN -DUSE_RAW_SOCKS -DHAVE_EPOLL 
-DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT  
-I/opt/local/include -DMOD_NAME='"phonenum"' -c cphonenumber.cpp -o 
cphonenumber.o
In file included from /usr/include/phonenumbers/phonenumberutil.h:31,
 from cphonenumber.cpp:25:
/usr/include/phonenumbers/phonenumber.pb.h:47:51: error: 
'AuxiliaryParseTableField' in namespace 'google::protobuf::internal' does not 
name a type; did you mean 'AuxillaryParseTableField'?
   47 |   static const 
::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  |   
^~~~
  |   
AuxillaryParseTableField
In file included from /usr/include/phonenumbers/phonenumberutil.h:31,
 from cphonenumber.cpp:25:
/usr/include/phonenumbers/phonenumber.pb.h:89:30: error: 'ConstStringParam' is 
not a member of 'google::protobuf'
   89 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, 
PhoneNumber_CountryCodeSource* value);
  |  ^~~~
/usr/include/phonenumbers/phonenumber.pb.h:89:82: error: expected 
primary-expression before '*' token
   89 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, 
PhoneNumber_CountryCodeSource* value);
  | 
 ^
/usr/include/phonenumbers/phonenumber.pb.h:89:84: error: 'value' was not 
declared in this scope
   89 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, 
PhoneNumber_CountryCodeSource* value);
  | 
   ^
/usr/include/phonenumbers/phonenumber.pb.h:89:89: error: expression list 
treated as compound expression in initializer [-fpermissive]
   89 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, 
PhoneNumber_CountryCodeSource* value);
  | 
^
/usr/include/phonenumbers/phonenumber.pb.h:221:71: error: 
'google::protobuf::ConstStringParam' has not been declared
  221 |   static inline bool 
CountryCodeSource_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
  |   
^~~~
/usr/include/phonenumbers/phonenumber.pb.h: In static member function 'static 
bool i18n::phonenumbers::PhoneNumber::CountryCodeSource_Parse(int, 
i18n::phonenumbers::PhoneNumber::CountryCodeSource*)':
/usr/include/phonenumbers/phonenumber.pb.h:223:59: error: 
'i18n::phonenumbers::PhoneNumber_CountryCodeSource_Parse' cannot be used as a 
function
  223 | return PhoneNumber_CountryCodeSource_Parse(name, value);
  |   ^
make[2]: *** [Makefile:23: cphonenumber.o] Error 1
make[1]: *** [Makefile:511: modules] Error 1
make[1]: Leaving directory '/root/rpmbuild/BUILD/kamailio-5.5.0-dev4/src'
make: *** [Makefile:34: every-module] Error 2
```

Compiled on `Fedora 33` with `protobuf 3.12.4`


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2684___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] Kamailio 5.4.4 extremely slow carrierroute preloading (#2653)

2021-03-19 Thread Guybrush T.
I tested the commit again, don't know if it helps:

One with prob 0:
 count | prob 
---+--
 12822 |0
 3 |  0.5
 6 | 0.01
 30102 |1

And one with prob 999:
 count | prob 
---+--
 12822 |999
 3 |  0.5
 6 | 0.01
 30102 |1

Same result in startup speed, around 17s.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2653#issuecomment-802709338___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [kamailio/kamailio] stirshaken: handle empty origid, enhance docs (#2683)

2021-03-19 Thread Daniel-Constantin Mierla
@piotr-gregor: I just sent you the developer access invitation, so you can 
merge commits to your stirshaken module.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2683#issuecomment-802696592___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:33515069: modules: readme files regenerated - stirshaken ... [skip ci]

2021-03-19 Thread Kamailio Dev
Module: kamailio
Branch: master
Commit: 335150695507456224c986720682090b2cb757cc
URL: 
https://github.com/kamailio/kamailio/commit/335150695507456224c986720682090b2cb757cc

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2021-03-19T13:16:17+01:00

modules: readme files regenerated - stirshaken ... [skip ci]

---

Modified: src/modules/stirshaken/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/335150695507456224c986720682090b2cb757cc.diff
Patch: 
https://github.com/kamailio/kamailio/commit/335150695507456224c986720682090b2cb757cc.patch

---

diff --git a/src/modules/stirshaken/README b/src/modules/stirshaken/README
index c956bdb663..caa3a2e5ec 100644
--- a/src/modules/stirshaken/README
+++ b/src/modules/stirshaken/README
@@ -248,9 +248,10 @@ modparam("stirshaken", "vs_connect_timeout_s", 10)
 3.7. vs_cache_certificates (int)
 
If set, then certificates caching is turned on. This means that
-   certificates downloaded during call verification are cached inside
-   vs_cache_dir, and will be loaded from that cache as long as they are
-   not there for more than vs_cache_expire_s seconds. If
+   certificates downloaded during call verification with
+   stirshaken_check_identity() are cached inside vs_cache_dir, and will be
+   loaded from that cache as long as they are not there for more than
+   vs_cache_expire_s seconds (see vs_cache_expire_s). If
vs_cache_certificates is set then vs_cache_dir must be set too and
pointing to existing directory. This param has no meaning for calls to
stirshaken_check_identity_with_key(key) and
@@ -285,8 +286,12 @@ modparam("stirshaken", "vs_cache_dir", "/tmp/cert_cache")
If vs_cache_certificates is set then cached certificates are saved in
vs_cache_dir directory and loaded from there when needed during a call
verification executed with stirshaken_check_identity(), as long as they
-   are not there for more than vs_cache_expire_s seconds. This param has
-   no meaning for calls to stirshaken_check_identity_with_key(key) and
+   are not there for more than vs_cache_expire_s seconds. If they are in
+   cache for more than vs_cache_expire_s seconds, then a blocking HTTP(s)
+   call is executed to download a new version of (expired) certificate. If
+   this is successful then old version is removed and new version is saved
+   in cache. This param has no meaning for calls to
+   stirshaken_check_identity_with_key(key) and
stirshaken_check_identity_with_cert(cert).
 
Default value is 120 seconds.


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


[sr-dev] git:master:a011e766: modules: readme files regenerated - stirshaken ... [skip ci]

2021-03-19 Thread Kamailio Dev
Module: kamailio
Branch: master
Commit: a011e766c146cde9660c0c2ef9eb28dd9f8aeb33
URL: 
https://github.com/kamailio/kamailio/commit/a011e766c146cde9660c0c2ef9eb28dd9f8aeb33

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2021-03-19T12:46:38+01:00

modules: readme files regenerated - stirshaken ... [skip ci]

---

Modified: src/modules/stirshaken/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/a011e766c146cde9660c0c2ef9eb28dd9f8aeb33.diff
Patch: 
https://github.com/kamailio/kamailio/commit/a011e766c146cde9660c0c2ef9eb28dd9f8aeb33.patch


___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev