[sr-dev] git:5.7:0a481501: tls_wolfssl: clean-up OpenSSL compatibility

2024-01-23 Thread S-P Chan via sr-dev
Module: kamailio
Branch: 5.7
Commit: 0a481501024b0e85bde8fa74cde1df2bebaa167b
URL: 
https://github.com/kamailio/kamailio/commit/0a481501024b0e85bde8fa74cde1df2bebaa167b

Author: S-P Chan 
Committer: S-P Chan 
Date: 2024-01-24T15:52:08+08:00

tls_wolfssl: clean-up OpenSSL compatibility

- remove unneeded OpenSSL-isms

(cherry-pick from 255e563e94e9536f0e541c3baeec45cbc68fac5b)

---

Modified: src/modules/tls_wolfssl/tls_config.h
Modified: src/modules/tls_wolfssl/tls_ct_wrq.h
Modified: src/modules/tls_wolfssl/tls_domain.c
Modified: src/modules/tls_wolfssl/tls_init.h
Modified: src/modules/tls_wolfssl/tls_util.h
Modified: src/modules/tls_wolfssl/tls_verify.c
Modified: src/modules/tls_wolfssl/tls_verify.h
Modified: src/modules/tls_wolfssl/tls_wolfssl_mod.c
Removed: src/modules/tls_wolfssl/tls_rand.c
Removed: src/modules/tls_wolfssl/tls_rand.h

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:5.7:4240cbc1: tls_wolfssl: refactor custom BIO

2024-01-23 Thread S-P Chan via sr-dev
Module: kamailio
Branch: 5.7
Commit: 4240cbc1bdbf9eb5d8b3f7473fbf4ee9d4d90650
URL: 
https://github.com/kamailio/kamailio/commit/4240cbc1bdbf9eb5d8b3f7473fbf4ee9d4d90650

Author: S-P Chan 
Committer: S-P Chan 
Date: 2024-01-24T15:52:46+08:00

tls_wolfssl: refactor custom BIO

- remove use of custom BIO at the expense of some memory copies

(cherry-pick from 32089e134413200bf5d1a97f207378b7d10e65a2)

---

Modified: src/modules/tls_wolfssl/tls_rpc.c
Modified: src/modules/tls_wolfssl/tls_server.c
Modified: src/modules/tls_wolfssl/tls_server.h
Removed: src/modules/tls_wolfssl/tls_bio.c
Removed: src/modules/tls_wolfssl/tls_bio.h

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:5.7:8e7df134: tls_wolfssl: use shared WOLFSSL_CTX

2024-01-23 Thread S-P Chan via sr-dev
Module: kamailio
Branch: 5.7
Commit: 8e7df1345c828eeb6b999c30069e75ccdd440200
URL: 
https://github.com/kamailio/kamailio/commit/8e7df1345c828eeb6b999c30069e75ccdd440200

Author: S-P Chan 
Committer: S-P Chan 
Date: 2024-01-24T15:52:22+08:00

tls_wolfssl: use shared WOLFSSL_CTX

(cherry-pick from 88f27e2b89142652ea1b8f133df1ff403f9f61b2)

---

Modified: src/modules/tls_wolfssl/tls_domain.c
Modified: src/modules/tls_wolfssl/tls_server.c

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:5.7:893e9ea4: tls_wolfssl: clean-up; remove OpenSSL-isms

2024-01-23 Thread S-P Chan via sr-dev
Module: kamailio
Branch: 5.7
Commit: 893e9ea4364f60c32a5477c5b75bdc24b619dd52
URL: 
https://github.com/kamailio/kamailio/commit/893e9ea4364f60c32a5477c5b75bdc24b619dd52

Author: S-P Chan 
Committer: S-P Chan 
Date: 2024-01-24T15:53:01+08:00

tls_wolfssl: clean-up; remove OpenSSL-isms

(cherry-pick from 3d0e7521c6de4023b6595685fc306129ef57b8ac)

---

Modified: src/modules/tls_wolfssl/tls_cfg.c
Modified: src/modules/tls_wolfssl/tls_cfg.h
Modified: src/modules/tls_wolfssl/tls_domain.c
Modified: src/modules/tls_wolfssl/tls_init.c
Modified: src/modules/tls_wolfssl/tls_init.h
Modified: src/modules/tls_wolfssl/tls_rpc.c
Modified: src/modules/tls_wolfssl/tls_server.c
Modified: src/modules/tls_wolfssl/tls_util.c
Modified: src/modules/tls_wolfssl/tls_util.h
Modified: src/modules/tls_wolfssl/tls_wolfssl_mod.c
Removed: src/modules/tls_wolfssl/tls_dump_vf.c
Removed: src/modules/tls_wolfssl/tls_dump_vf.h
Removed: src/modules/tls_wolfssl/tls_map.c
Removed: src/modules/tls_wolfssl/tls_map.h

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:3d0e7521: tls_wolfssl: clean-up; remove OpenSSL-isms

2024-01-23 Thread S-P Chan via sr-dev
Module: kamailio
Branch: master
Commit: 3d0e7521c6de4023b6595685fc306129ef57b8ac
URL: 
https://github.com/kamailio/kamailio/commit/3d0e7521c6de4023b6595685fc306129ef57b8ac

Author: S-P Chan 
Committer: S-P Chan 
Date: 2024-01-24T15:32:26+08:00

tls_wolfssl: clean-up; remove OpenSSL-isms

---

Modified: src/modules/tls_wolfssl/tls_cfg.c
Modified: src/modules/tls_wolfssl/tls_cfg.h
Modified: src/modules/tls_wolfssl/tls_domain.c
Modified: src/modules/tls_wolfssl/tls_init.c
Modified: src/modules/tls_wolfssl/tls_init.h
Modified: src/modules/tls_wolfssl/tls_rpc.c
Modified: src/modules/tls_wolfssl/tls_server.c
Modified: src/modules/tls_wolfssl/tls_util.c
Modified: src/modules/tls_wolfssl/tls_util.h
Modified: src/modules/tls_wolfssl/tls_wolfssl_mod.c
Removed: src/modules/tls_wolfssl/tls_dump_vf.c
Removed: src/modules/tls_wolfssl/tls_dump_vf.h
Removed: src/modules/tls_wolfssl/tls_map.c
Removed: src/modules/tls_wolfssl/tls_map.h

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [Kamailio-Business] Roadmap to next major Kamailio release series v5.8.x

2024-01-23 Thread Henning Westerholt via sr-dev
Hello Daniel,

we are working on a new module right now (related to special logging for high 
CPS setups), which would be nice to integrate if possible. Its isolated, so 
would not touch any other module and/or the core. There is also another core 
refactoring in progress (to replace the atomic operations with the standard 
Linux kernel support for better support of non-Intel/AMD architectures), but 
this probably needs to wait to the next release cycle then.

Best regards,

Henning Westerholt

-- 
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com

> -Original Message-
> From: Daniel-Constantin Mierla 
> Sent: Montag, 15. Januar 2024 11:33
> To: Henning Westerholt ; Kamailio (SER) - Devel Mailing List
> 
> Cc: busin...@lists.kamailio.org; Kamailio (SER) - Users Mailing List  us...@lists.kamailio.org>
> Subject: Re: [Kamailio-Business] Roadmap to next major Kamailio release
> series v5.8.x
> 
> Hello,
> 
> first week of February is a semester school break in many regions, if someone
> announces that he has ongoing work to a new module/feature, then freezing
> can be postponed.
> 
> But if not, I would rather do it earlier than waiting for nothing, because
> starting later could end up in getting closer the Catholic Easter, which is 
> earlier
> this year, by end of March, a week before another holiday starts. Considering
> the constraints on late March and April, if not out by mid of March or so, 
> next
> time frame will be end of April or during May.
> 
> Cheers,
> Daniel
> 
> On 11.01.24 17:12, Henning Westerholt wrote:
> > Hello,
> >
> > early February as a freezing date sounds good to me, just to have one full
> month after the holiday season/vacation period to allow other people to finish
> eventual contributions.
> >
> > Cheers,
> >
> > Henning
> >
> > --
> > Henning Westerholt - https://skalatan.de/blog/ Kamailio services -
> > https://gilawa.com
> >
> >> -Original Message-
> >> From: Daniel-Constantin Mierla via business
> >> 
> >> Sent: Mittwoch, 10. Januar 2024 10:11
> >> To: Kamailio (SER) - Users Mailing List
> >> ; Kamailio
> >> (SER) - Devel Mailing List ;
> >> busin...@lists.kamailio.org
> >> Subject: [Kamailio-Business] Roadmap to next major Kamailio release
> >> series v5.8.x
> >>
> >> Hello,
> >>
> >> discussed a bit during the online Kamailio devel meeting, it is time
> >> to set the milestones towards the next major Kamailio release series 
> >> v5.8.x.
> >>
> >> If no other suggestions that suit more developers, I would propose to
> >> freeze by end of this month or early February, then test for about 4
> >> weeks as usual and release by end of February or during March.
> >>
> >> If anyone wants to add new features/modules, they have to be
> >> published till freezing date, either pushed in the git repository or 
> >> proposed
> as pull request.
> >>
> >> Cheers,
> >> Daniel
> >>
> >> --
> >> Daniel-Constantin Mierla (@ asipto.com) twitter.com/miconda --
> >> linkedin.com/in/miconda Kamailio Consultancy, Training and
> >> Development Services -- asipto.com Kamailio Advanced Training,
> >> February 20-22, 2024 -- asipto.com Kamailio World Conference, April
> >> 18-19, 2024, Berlin -- kamailioworld.com
> >>
> >> ___
> >> Kamailio (OpenSER) - business mailing list --
> >> busin...@lists.kamailio.org To unsubscribe send an email to
> >> business-le...@lists.kamailio.org
> >> http://lists.openser-project.org/cgi-
> >> bin/mailman/listinfo%(cgiext)s/%(_internal_name)s
> 
> --
> Daniel-Constantin Mierla (@ asipto.com)
> twitter.com/miconda -- linkedin.com/in/miconda Kamailio Consultancy,
> Training and Development Services -- asipto.com Kamailio Advanced Training,
> February 20-22, 2024 -- asipto.com Kamailio World Conference, April 18-19,
> 2024, Berlin -- kamailioworld.com

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:33b2e513: tm: release transaction on kill if a final response was sent

2024-01-23 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 33b2e513aefe00bf166cdcae360e305615b223da
URL: 
https://github.com/kamailio/kamailio/commit/33b2e513aefe00bf166cdcae360e305615b223da

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2024-01-23T21:05:41+01:00

tm: release transaction on kill if a final response was sent

- do not send another final response for error cases

---

Modified: src/modules/tm/t_funcs.c

---

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

---

diff --git a/src/modules/tm/t_funcs.c b/src/modules/tm/t_funcs.c
index b9f9949d0fb..5515a4aba6f 100644
--- a/src/modules/tm/t_funcs.c
+++ b/src/modules/tm/t_funcs.c
@@ -177,6 +177,11 @@ int kill_transaction(struct cell *trans, int error)
int reply_ret;
int ret;
 
+   if((trans->uas.request != NULL)
+   && (trans->uas.request->msg_flags & FL_FINAL_REPLY)) {
+   return t_release_transaction(trans);
+   }
+
/*  we reply statefully and enter WAIT state since error might
have occurred in middle of forking and we do not
want to put the forking burden on upstream client;
@@ -205,6 +210,11 @@ int kill_transaction_unsafe(struct cell *trans, int error)
int reply_ret;
int ret;
 
+   if((trans->uas.request != NULL)
+   && (trans->uas.request->msg_flags & FL_FINAL_REPLY)) {
+   return t_release_transaction(trans);
+   }
+
/*  we reply statefully and enter WAIT state since error might
have occurred in middle of forking and we do not
want to put the forking burden on upstream client;

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:aa167c41: auth: removed commented code and prefixed short global variable

2024-01-23 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: aa167c410860732918061106c4a84a7c6b030d69
URL: 
https://github.com/kamailio/kamailio/commit/aa167c410860732918061106c4a84a7c6b030d69

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2024-01-23T14:25:09+01:00

auth: removed commented code and prefixed short global variable

---

Modified: src/modules/auth/auth_mod.c
Modified: src/modules/auth/auth_mod.h
Modified: src/modules/auth/nid.c
Modified: src/modules/auth/nonce.c

---

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

---

diff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c
index fb633a10259..9bf4ac2923a 100644
--- a/src/modules/auth/auth_mod.c
+++ b/src/modules/auth/auth_mod.c
@@ -138,7 +138,7 @@ calc_response_t calc_response;
 
 
 /*! SL API structure */
-sl_api_t slb;
+sl_api_t _auth_slb;
 
 /*
  * Exported functions
@@ -248,8 +248,6 @@ static inline int generate_random_secret(void)
secret2.s = sec_rand2;
secret2.len = RAND_SECRET_LEN;
 
-   /* DBG("Generated secret: '%.*s'\n", secret.len, secret.s); */
-
return 0;
 }
 
@@ -263,7 +261,7 @@ static int mod_init(void)
auth_realm_prefix.len = strlen(auth_realm_prefix.s);
 
/* bind the SL API */
-   if(sl_load_api() != 0) {
+   if(sl_load_api(&_auth_slb) != 0) {
LM_ERR("cannot bind to SL API\n");
return -1;
}
@@ -949,8 +947,8 @@ static int auth_send_reply(
reason_str.s = reason;
reason_str.len = strlen(reason);
 
-   return force_stateless_reply ? slb.sreply(msg, code, _str)
-: 
slb.freply(msg, code, _str);
+   return force_stateless_reply ? _auth_slb.sreply(msg, code, _str)
+: 
_auth_slb.freply(msg, code, _str);
 }
 
 /**
diff --git a/src/modules/auth/auth_mod.h b/src/modules/auth/auth_mod.h
index ea3617e3d5e..48066750d2d 100644
--- a/src/modules/auth/auth_mod.h
+++ b/src/modules/auth/auth_mod.h
@@ -38,7 +38,6 @@ extern str secret1;/* secret phrase used 
to generate nonce */
 extern str secret2; /* secret phrase used to generate 
nonce */
 extern int nonce_expire;/* nonce expire interval */
 extern int protect_contacts; /* Enable/disable contact hashing in nonce */
-extern sl_api_t sl;
 extern avp_ident_t challenge_avpid;
 extern str proxy_challenge_header;
 extern str www_challenge_header;
diff --git a/src/modules/auth/nid.c b/src/modules/auth/nid.c
index 408e6ab3e14..3aee167c633 100644
--- a/src/modules/auth/nid.c
+++ b/src/modules/auth/nid.c
@@ -77,11 +77,6 @@ int init_nonce_id()
for(r = 0; r < nid_pool_no; r++)
atomic_set(_crt[r].id, random());
return 0;
-   /*
-error:
-   destroy_nonce_id();
-   return -1;
-*/
 }
 
 
diff --git a/src/modules/auth/nonce.c b/src/modules/auth/nonce.c
index 0304b394bd7..56cd49b7ec2 100644
--- a/src/modules/auth/nonce.c
+++ b/src/modules/auth/nonce.c
@@ -223,7 +223,7 @@ int calc_nonce(char *nonce, int *nonce_len, int cfg, 
unsigned int since,
len = calc_bin_nonce_md5(_nonce, cfg, secret1, secret2, msg);
*nonce_len = base64_enc(
_nonce.raw[0], len, (unsigned char *)nonce, 
*nonce_len);
-   assert(*nonce_len >= 0); /*FIXME*/
+   assert(*nonce_len >= 0);
return 0;
 }
 

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:0f8f4d69: auth: reformat exported structures

2024-01-23 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 0f8f4d6926e53ca5e526a11729f6ee6277b185b9
URL: 
https://github.com/kamailio/kamailio/commit/0f8f4d6926e53ca5e526a11729f6ee6277b185b9

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2024-01-23T14:25:09+01:00

auth: reformat exported structures

---

Modified: src/modules/auth/auth_mod.c

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Dialog DMQ sync: Timer needs fixing, firing on wrong node! (Issue #3656)

2024-01-23 Thread Benoît Panizzon via sr-dev
Unfortunately not as I'm working with an older version.
But the fix also was for the problem I found with my work-around.
A fix for the original issue that the node not in charge of a dialog might 
delete it, is not solved by this fix.
So the issue that a timer is armed on a 'slave' node still is present and I 
believe this should get addressed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3656#issuecomment-1906220707
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] [kamailio/kamailio] Kamailio 5.6 (and 5.7) core dumps. (Issue #3725)

2024-01-23 Thread Mattis Lind via sr-dev


### Description

We have a quite basic scenario which sends a SIP MESSAGE and then receives SIP 
MESSAGE back. It also sets up two voice calls using SIP INVITE. It is only this 
specific scenario that is causing the core dump. Some time the core dump occur 
just a few seconds after the call/message scenario, but occasionally it takes 
up to 50 minutes. 

We have been using the uac module for sending SIP MESSAGE in several other 
scenarios without experiencing a crash.

We always see the same lines in the log just prior to the core dump: CRITICAL: 
 [core/pass_fd.c:281]: receive_fd(): EOF on 49

We are using Kamailio 5.6 retrieved from the kamailio repository: 
http://deb.kamailio.org/kamailio56. We are running Kamailio in a Docker 
container which runs on "5.10.0-25-cloud-amd64 #1 SMP Debian 5.10.191-1 
(2023-08-16) x86_64 GNU/Linux"

We have also tried Kamailio 5.7 from the same repo which crashes in exactly the 
same way.

### Troubleshooting

 Reproduction

We have troubles to consistently reproduce it and it only happen from time to 
time when running a specific scenario sending SIP MESSAGE using the uac module. 
 It does not happen for every call of this call scenario. At one instance 
Kamailo crashed with just 15 seconds in-between during the call scenario.


 Debugging Data

```
# gdb  /usr/sbin/kamailio  /core
GNU gdb (Debian 10.1-1.7) 10.1.90.20210103-git
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/kamailio...
(No debugging symbols found in /usr/sbin/kamailio)

warning: Can't open file /dev/zero (deleted) during file-backed mapping note 
processing
[New LWP 4777]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/kamailio -DD -M 18 -m 192 -A serverId=17173 -A 
sendTraceLocal="sip:10'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  __strlen_evex () at ../sysdeps/x86_64/multiarch/strlen-evex.S:77
77  ../sysdeps/x86_64/multiarch/strlen-evex.S: No such file or directory.
(gdb) bt full
#0  __strlen_evex () at ../sysdeps/x86_64/multiarch/strlen-evex.S:77
No locals.
#1  0x7f5425e34b78 in __vfprintf_internal (s=s@entry=0x55a06e969a60, 
format=format@entry=0x55a06e558020 "%s: %.*s%s%s%sBUG: qm: fragm. %p 
(address %p) beginning overwritten (%lx)! Memory allocator was called from 
%s:%u. Fragment marked by %s:%lu. Exec from %s:%u.\n", 
ap=ap@entry=0x7ffd6bebfb50, mode_flags=mode_flags@entry=0) at 
vfprintf-internal.c:1647
len = 
step0_jumps = {0, 1717, 1621, 3413, 3317, 3997, 2677, 2837, 3613, 1773, 
4309, 4445, 3517, 4437, 4389, 2789, 4197, 3917, 3221, 2997, 1141, 1365, 1997, 
1925, 1885, 733, 3709, 533, 533, 4101}
space = 
is_short = 
use_outdigits = 0
outc = 
step1_jumps = {0, 0, 0, 0, 0, 0, 0, 0, 0, 1773, 4309, 4445, 3517, 4437, 
4389, 2789, 4197, 3917, 3221, 2997, 1141, 1365, 1997, 1925, 1885, 733, 3709, 
533, 533, 0}
group = 0
prec = -1
step2_jumps = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4309, 4445, 3517, 4437, 
4389, 2789, 4197, 3917, 3221, 2997, 1141, 1365, 1997, 1925, 1885, 733, 3709, 
533, 533, 0}
string = 0x756d6f7266222c22 
left = 0
is_long_double = 
width = 0
signed_number = 
step3a_jumps = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4213, 0, 0, 0, 4389, 
2789, 4197, 3917, 3221, 0, 0, 0, 0, 1925, 0, 0, 0, 0, 0, 0}
alt = 
showsign = 0
is_long = 0
is_char = 
pad = 
step3b_jumps = {0 , 3517, 0, 0, 4389, 2789, 4197, 
3917, 3221, 2997, 1141, 1365, 1997, 1925, 1885, 733, 3709, 0, 0, 0}
step4_jumps = {0 , 4389, 2789, 4197, 3917, 3221, 
2997, 1141, 1365, 1997, 1925, 1885, 733, 3709, 0, 0, 0}
args_value = 
is_negative = 
number = {longlong = , word = }
base = 
the_arg = {pa_wchar = 4777 L'\x12a9', pa_int = 4777, pa_long_int = 
4777, pa_long_long_int = 4777, pa_u_int = 4777, pa_u_long_int = 4777, 
pa_u_long_long_int = 4777, 
  pa_double = 2.3601515901836347e-320, pa_long_double = 
1.74131181638025811763e-4947, pa_float128 = 
3.0931911544459548860449034534676e-4962, 
  pa_string = 0x12a9 , 
pa_wstring = 0x12a9 , pa_pointer 
= 0x12a9, pa_user = 0x12a9}
spec = 115 

[sr-dev] Re: [kamailio/kamailio] xhttp: fix execution of async functions (PR #3723)

2024-01-23 Thread Vadim Saranov via sr-dev
You are right, there are many ways to solve the problem. The presence of an 
HTTP server in kamailio allows you to implement microservices and I suggested 
expanding its use. I don’t think I can convince you otherwise, but kamailio has 
long become a multifunctional tool necessary for processing SIP calls. Our 
company was faced with the need for this functionality to build a system for 
testing, I think that this improvement would allow other clients to use 
Kamailio more efficiently. I think that issuing $hu is easy to fix, since the 
original URI value is not lost :)
Thank you.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3723#issuecomment-1906087474
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:255e563e: tls_wolfssl: clean-up OpenSSL compatibility

2024-01-23 Thread S-P Chan via sr-dev
Module: kamailio
Branch: master
Commit: 255e563e94e9536f0e541c3baeec45cbc68fac5b
URL: 
https://github.com/kamailio/kamailio/commit/255e563e94e9536f0e541c3baeec45cbc68fac5b

Author: S-P Chan 
Committer: S-P Chan 
Date: 2024-01-23T10:51:37+08:00

tls_wolfssl: clean-up OpenSSL compatibility

- remove unneeded OpenSSL-isms

---

Modified: src/modules/tls_wolfssl/tls_config.h
Modified: src/modules/tls_wolfssl/tls_ct_wrq.h
Modified: src/modules/tls_wolfssl/tls_domain.c
Modified: src/modules/tls_wolfssl/tls_init.h
Modified: src/modules/tls_wolfssl/tls_util.h
Modified: src/modules/tls_wolfssl/tls_verify.c
Modified: src/modules/tls_wolfssl/tls_verify.h
Modified: src/modules/tls_wolfssl/tls_wolfssl_mod.c
Removed: src/modules/tls_wolfssl/tls_rand.c
Removed: src/modules/tls_wolfssl/tls_rand.h

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:88f27e2b: tls_wolfssl: use shared WOLFSSL_CTX

2024-01-23 Thread S-P Chan via sr-dev
Module: kamailio
Branch: master
Commit: 88f27e2b89142652ea1b8f133df1ff403f9f61b2
URL: 
https://github.com/kamailio/kamailio/commit/88f27e2b89142652ea1b8f133df1ff403f9f61b2

Author: S-P Chan 
Committer: S-P Chan 
Date: 2024-01-23T10:51:37+08:00

tls_wolfssl: use shared WOLFSSL_CTX

---

Modified: src/modules/tls_wolfssl/tls_domain.c
Modified: src/modules/tls_wolfssl/tls_server.c

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:32089e13: tls_wolfssl: refactor custom BIO

2024-01-23 Thread S-P Chan via sr-dev
Module: kamailio
Branch: master
Commit: 32089e134413200bf5d1a97f207378b7d10e65a2
URL: 
https://github.com/kamailio/kamailio/commit/32089e134413200bf5d1a97f207378b7d10e65a2

Author: S-P Chan 
Committer: S-P Chan 
Date: 2024-01-23T21:02:57+08:00

tls_wolfssl: refactor custom BIO

- remove use of custom BIO at the expense of some memory copies

---

Modified: src/modules/tls_wolfssl/tls_rpc.c
Modified: src/modules/tls_wolfssl/tls_server.c
Modified: src/modules/tls_wolfssl/tls_server.h
Removed: src/modules/tls_wolfssl/tls_bio.c
Removed: src/modules/tls_wolfssl/tls_bio.h

---

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

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] xhttp: fix execution of async functions (PR #3723)

2024-01-23 Thread Daniel-Constantin Mierla via sr-dev
First, this is not a fix, the http traffic was never supposed to be fully 
handled as sip traffic. Kamailio is not a full HTTP server/proxy. The 
workaround for creating a fake sip message was done for local processing, 
mainly to be able to use authentication and authorization functions as well as 
config variables.

The async framework is purely designed for received SIP traffic, creating a SIP 
transaction that stays in memory, runs various timer callbacks and sip-specs 
specific tasks.

You patch creates an internal sip message that does not even follow the strict 
requirements for a sip requests, like tags, via branch, ... CSeq has an 
hardcoded method even there can be different ones even in http. Also it breaks 
the $hu. These are just a few remarks upon a quick look. This PR is not 
appropriate to merge.

If you need to do some async processing in Kamailio, you have to do it with sip 
traffic. You can generate from cli with sipexer or sipsak tools.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3723#issuecomment-1906002120
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] Dialog DMQ sync: Timer needs fixing, firing on wrong node! (Issue #3656)

2024-01-23 Thread Victor Seva via sr-dev
@hb9eue did you test the proposed fix?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3656#issuecomment-1905909309
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org