Re: [sr-dev] [kamailio/kamailio] rtpengine: fixed set id value in log lines (PR #3265)

2022-10-14 Thread Richard Fuchs
Merged #3265 into master.

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

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


[sr-dev] git:master:0d363cf1: rtpengine: fixed set id value in log lines (#3265)

2022-10-14 Thread GitHub
Module: kamailio
Branch: master
Commit: 0d363cf1c1f09b4920e137eac74e1593e7120531
URL: 
https://github.com/kamailio/kamailio/commit/0d363cf1c1f09b4920e137eac74e1593e7120531

Author: korayvt 
Committer: GitHub 
Date: 2022-10-14T14:27:03-04:00

rtpengine: fixed set id value in log lines (#3265)

---

Modified: src/modules/rtpengine/rtpengine.c

---

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

---

diff --git a/src/modules/rtpengine/rtpengine.c 
b/src/modules/rtpengine/rtpengine.c
index ac1387bb39..d3f8e599db 100644
--- a/src/modules/rtpengine/rtpengine.c
+++ b/src/modules/rtpengine/rtpengine.c
@@ -3818,13 +3818,13 @@ set_rtpengine_set_n(struct sip_msg *msg, 
rtpp_set_link_t *rtpl, struct rtpp_set
if ( nb_active_nodes > 0 )
{
LM_DBG("rtpp: selected proxy set ID %d with %d active nodes.\n",
-   current_msg_id, nb_active_nodes);
+   (*out)->id_set, nb_active_nodes);
return nb_active_nodes;
}
else
{
LM_WARN("rtpp: selected proxy set ID %d but it has no active 
node.\n",
-   current_msg_id);
+   (*out)->id_set);
return -2;
}
 }


___
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] rtpengine: fixed set id value in log lines (PR #3265)

2022-10-14 Thread Richard Fuchs
LGTM, thanks

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

Message ID: ___
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] dialog: Add dlg_get_matches function (PR #3005)

2022-10-14 Thread Henning Westerholt
@rhys-hanrahan any update from your side?

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

Message ID: ___
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] rtpengine: fixed set id value in log lines (PR #3265)

2022-10-14 Thread Henning Westerholt
Thanks for the PR, looks good to me. Maybe @rfuchs like to comment as well, 
otherwise it will be merged after some days.

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

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


[sr-dev] [kamailio/kamailio] rtpengine: fixed set id value in log lines (PR #3265)

2022-10-14 Thread korayvt
!-- Kamailio Pull Request Template --

!--
IMPORTANT:
  - for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
  - pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
  - backports to stable branches must be done with git cherry-pick -x 
...
  - code is contributed under BSD for core and main components (tm, sl, auth, 
tls)
  - code is contributed GPLv2 or a compatible license for the other components
  - GPL code is contributed with OpenSSL licensing exception
--

 Pre-Submission Checklist
!-- Go over all points below, and after creating the PR, tick all the 
checkboxes that apply --
!-- All points should be verified, otherwise, read the CONTRIBUTING 
guidelines from above--
!-- If youre unsure about any of these, dont hesitate to ask on 
sr-dev mailing list --
- [ ] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, 
...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook 
files
in `doc/` subfolder, the README file is autogenerated)

 Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)

 Checklist:
!-- Go over all points below, and after creating the PR, tick the 
checkboxes that apply --
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue # (replace  with an open issue number)

 Description
!-- Describe your changes in detail --
In the two log lines, message id is written instead of rtpengine set id.
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3265

-- Commit Summary --

  * rtpengine: fixed set id value in log lines

-- File Changes --

M src/modules/rtpengine/rtpengine.c (4)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/3265.patch
https://github.com/kamailio/kamailio/pull/3265.diff

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

Message ID: kamailio/kamailio/pull/3...@github.com
___
Kamailio (SER) - Development Mailing List
sr-dev@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev


Re: [sr-dev] [SR-Users] Testing dialog module (and acc with dialog cdrs)

2022-10-14 Thread Daniel-Constantin Mierla
Based on your parameters, it seems that acc should send cdrs also to
syslog. I think I identified an issue on that code and pushed a fix, can
you test with latest master git branch?

Cheers,
Daniel

On 14.10.22 10:25, Daniel-Constantin Mierla wrote:
>
> OK. Can you run the tests for a while and then execute:
>
> kamctl rpc corex.pkg_summary idx 1
>
> The value for idx should be the kamailio process expected to handle
> sip traffic. If it is mostly udp and the first socket is the
> corresponding udp socket, then the value 1, like above, is ok. If it
> is tcp/tls or you have different listen parameters on udp, see the
> processes index with:
>
> kamctl ps
>
> It should not be required to wait till you get out of memory errors,
> but be sure you run it long enough to have many accounting records
> written by the process that is going to print the pkg summary. You can
> eventually set the children to 1 or 2, to "force" traffic via a
> smaller group of processes.
>
> Cheers,
> Daniel
>
> On 14.10.22 10:12, mayamatakeshi wrote:
>> Hi,
>> I am using acc for CDR generation. Here is the module configuration
>> I'm using:
>>
>> modparam("acc", "db_url",
>> "mysql://kamailio:kamailiorw@localhost/kamailio")
>> modparam("acc", "db_flag", 1)
>> modparam("acc", "db_missed_flag", 2)
>> modparam("acc", "failed_transaction_flag", 3)
>> modparam("acc", "cdr_enable", 1)
>> modparam("acc", "cdrs_table", "cdr")
>> modparam("acc", "cdr_extra",
>> "callid=$ci;caller_domain=$dlg_var(caller_domain);callee_domain=$dlg_var(callee_domain);caller_username=$dlg_var(caller_username);callee_username=$dlg_var(callee_username);calling_number=$dlg_var(calling_number);destination=$dlg_var(destination);anonymous=$dlg_var(anonymous);forwarding=$dlg_var(forwarding);tracing=$dlg_var(tracing);relay=$dlg_var(relay);sip_code=$dlg_var(sip_code);status_code=$dlg_var(status_code);start_time=$dlg_var(start_time)")
>> modparam("acc", "cdr_start_on_confirmed", 1)
>> modparam("acc", "cdr_start_id", "answer_time")
>> modparam("acc", "log_level", 9)
>> modparam("acc", "log_facility", "LOG_LOCAL0")
>> modparam("acc", "log_flag", 10)
>> modparam("acc", "cdr_facility", "LOG_LOCAL0")
>> modparam("acc", "cdr_log_enable", 1)
>>
>>
>> On Fri, Oct 14, 2022 at 3:57 PM Daniel-Constantin Mierla
>>  wrote:
>>
>> Hello,
>>
>> are you using accounting to generate CDRs with dialog module
>> (records in acc_cdrs table)? Or only for getting the event
>> records in the acc table?
>>
>> Cheers,
>> Daniel
>>
>> On 13.10.22 23:19, mayamatakeshi wrote:
>>>
>>>
>>> On Mon, Oct 3, 2022 at 11:41 AM mayamatakeshi
>>>  wrote:
>>>
>>>
>>>
>>> On Mon, Sep 26, 2022 at 8:32 PM Daniel-Constantin Mierla
>>>  wrote:
>>>
>>> Hello,
>>>
>>> as I am not a user of dialog variables, I am turning to
>>> community to ask
>>> for help testing the current master branch with
>>> configurations that make
>>> use of dialog variables and acc dialog-based cdr generation.
>>>
>>> With a few reports of issues related to dialog modules
>>> and unexpected
>>> crashes, I looked over the code and noticed that the
>>> access of the value
>>> for dialog variables was not protected, making them
>>> vulnerable of
>>> invalid memory access in case of the variable was
>>> updated by another
>>> process or dialog was terminated.
>>>
>>> I introduced a couple of new functions to try to cover
>>> different use
>>> cases of getting the dlg variable values, dialog
>>> management code was not
>>> affected, but given that these commits need to be
>>> backported to stable
>>> branch (5.6), I want to get proper feedback from
>>> community that things
>>> work fine.
>>>
>>> A previous attempt of a simpler fix was not enough,
>>> having side effects
>>> to acc module for dialog-based cdr generation, because
>>> it was keeping
>>> referenced to many dlg variables at the same time.
>>>
>>> In short, it would be appreciated any feedback on
>>> testing dialog and acc
>>> with dialog-based cdr generation using git master branch.
>>>
>>>
>>> I have started 4 load test environments today with latest
>>> commit 6f400a8074fe60916867596431ca26dff00435d1.
>>> I usually leave a commit load test running for 2 months
>>> before consider it ready for production release.
>>> I will report any crash/problem.
>>>
>>>
>>> After a few hours of load test, all 4 load test environments
>>> start to log memory allocation problems:
>>>
>>> [root@lab002107-flip-server ~]$ grep memory
>>> /var/log/kamailio/kamailio.log |head
>>> 2022-10-13T01:36:10.429809+09:00 

[sr-dev] git:master:721ec276: acc: init to 0 the arrays allocated for accounting

2022-10-14 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 721ec276f2bfcc18236e0b9de1f5552f505f0cda
URL: 
https://github.com/kamailio/kamailio/commit/721ec276f2bfcc18236e0b9de1f5552f505f0cda

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2022-10-14T11:17:25+02:00

acc: init to 0 the arrays allocated for accounting

---

Modified: src/modules/acc/acc.c

---

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

---

diff --git a/src/modules/acc/acc.c b/src/modules/acc/acc.c
index dce7ee0a8b..1c1b07f6a9 100644
--- a/src/modules/acc/acc.c
+++ b/src/modules/acc/acc.c
@@ -633,32 +633,32 @@ void acc_api_set_arrays(acc_info_t *inf)
 }
 
 int acc_arrays_alloc(void) {
-   if ((val_arr = pkg_malloc((ACC_CORE_LEN + acc_extra_size + MAX_ACC_LEG 
+ 3) * sizeof(str))) == NULL) {
+   if ((val_arr = pkg_mallocxz((ACC_CORE_LEN + acc_extra_size + 
MAX_ACC_LEG + 3) * sizeof(str))) == NULL) {
LM_ERR("failed to alloc val_arr\n");
return -1;
}
 
-   if ((int_arr = pkg_malloc((ACC_CORE_LEN + acc_extra_size + MAX_ACC_LEG 
+ 3) * sizeof(int))) == NULL) {
+   if ((int_arr = pkg_mallocxz((ACC_CORE_LEN + acc_extra_size + 
MAX_ACC_LEG + 3) * sizeof(int))) == NULL) {
LM_ERR("failed to alloc int_arr\n");
return -1;
}
 
-   if ((type_arr = pkg_malloc((ACC_CORE_LEN + acc_extra_size + MAX_ACC_LEG 
+ 3) * sizeof(char))) == NULL) {
+   if ((type_arr = pkg_mallocxz((ACC_CORE_LEN + acc_extra_size + 
MAX_ACC_LEG + 3) * sizeof(char))) == NULL) {
LM_ERR("failed to alloc type_arr\n");
return -1;
}
 
-   if ((log_attrs = pkg_malloc((ACC_CORE_LEN + acc_extra_size + 
MAX_ACC_LEG + 3) * sizeof(str))) == NULL) {
+   if ((log_attrs = pkg_mallocxz((ACC_CORE_LEN + acc_extra_size + 
MAX_ACC_LEG + 3) * sizeof(str))) == NULL) {
LM_ERR("failed to alloc log_attrs\n");
return -1;
}
 
-   if ((db_keys = pkg_malloc((ACC_CORE_LEN + acc_extra_size + MAX_ACC_LEG 
+ 3) * sizeof(db_key_t))) == NULL) {
+   if ((db_keys = pkg_mallocxz((ACC_CORE_LEN + acc_extra_size + 
MAX_ACC_LEG + 3) * sizeof(db_key_t))) == NULL) {
LM_ERR("failed to alloc db_keys\n");
return -1;
}
 
-   if ((db_vals = pkg_malloc((ACC_CORE_LEN + acc_extra_size + MAX_ACC_LEG 
+ 3) * sizeof(db_val_t))) == NULL) {
+   if ((db_vals = pkg_mallocxz((ACC_CORE_LEN + acc_extra_size + 
MAX_ACC_LEG + 3) * sizeof(db_val_t))) == NULL) {
LM_ERR("failed to alloc db_vals\n");
return -1;
}


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


[sr-dev] git:master:932062fc: acc: free core attributes for cdrs sent to log file

2022-10-14 Thread Daniel-Constantin Mierla
Module: kamailio
Branch: master
Commit: 932062fc84048eaa38144cf0bbfa7a2cae95a258
URL: 
https://github.com/kamailio/kamailio/commit/932062fc84048eaa38144cf0bbfa7a2cae95a258

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2022-10-14T11:15:38+02:00

acc: free core attributes for cdrs sent to log file

---

Modified: src/modules/acc/acc_cdr.c

---

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

---

diff --git a/src/modules/acc/acc_cdr.c b/src/modules/acc/acc_cdr.c
index ab1938a9f87..bccc61cedc5 100644
--- a/src/modules/acc/acc_cdr.c
+++ b/src/modules/acc/acc_cdr.c
@@ -314,40 +314,43 @@ static int log_write_cdr( struct dlg_cell* dialog,
MAX_SYSLOG_SIZE -
2;// -2 because of the string ending '\n\0'
char* message_position = NULL;
-   int message_index = 0;
-   int extra_index = 0;
int counter = 0;
+   int attr_cnt = 0;
+   int core_cnt = 0;
+   int extra_cnt = 0;
 
if(cdr_log_enable==0)
return 0;
 
/* get default values */
-   message_index = cdr_core2strar( dialog,
+   core_cnt = cdr_core2strar( dialog,
cdr_value_array,
cdr_int_array,
cdr_type_array);
+   attr_cnt += core_cnt;
 
/* get extra values */
if (message)
{
-   extra_index += extra2strar( cdr_extra,
+   extra_cnt += extra2strar(cdr_extra,
message,
-   cdr_value_array + message_index,
-   cdr_int_array + message_index,
-   cdr_type_array + message_index);
+   cdr_value_array + attr_cnt,
+   cdr_int_array + attr_cnt,
+   cdr_type_array + attr_cnt);
+   attr_cnt += extra_cnt;;
} else if (cdr_expired_dlg_enable){
LM_DBG("fallback to dlg_only search because of message does not 
exist.\n");
-   extra_index += extra2strar_dlg_only( cdr_extra,
+   extra_cnt += extra2strar_dlg_only(cdr_extra,
dialog,
-   cdr_value_array + message_index,
-   cdr_int_array + message_index,
-   cdr_type_array + message_index,
+   cdr_value_array + attr_cnt,
+   cdr_int_array + attr_cnt,
+   cdr_type_array + attr_cnt,
);
+   attr_cnt += extra_cnt;;
}
-   message_index += extra_index;
 
for( counter = 0, message_position = cdr_message;
-   counter < message_index ;
+   counter < attr_cnt ;
counter++ )
{
const char* const next_message_end = message_position +
@@ -391,9 +394,9 @@ static int log_write_cdr( struct dlg_cell* dialog,
 
LM_GEN2( cdr_facility, log_level, "%s", cdr_message);
 
-   /* free memory allocated by extra2strar, nothing is done in case no 
extra strings were found by extra2strar */
-   free_strar_mem( &(cdr_type_array[message_index-extra_index]), 
&(cdr_value_array[message_index-extra_index]),
-   extra_index, message_index);
+   /* Free memory allocated by core+extra attrs */
+   free_strar_mem( &(cdr_type_array[0]), &(cdr_value_array[0]),
+   attr_cnt, attr_cnt);
return 0;
 }
 


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


Re: [sr-dev] [SR-Users] Testing dialog module (and acc with dialog cdrs)

2022-10-14 Thread Daniel-Constantin Mierla
OK. Can you run the tests for a while and then execute:

kamctl rpc corex.pkg_summary idx 1

The value for idx should be the kamailio process expected to handle sip
traffic. If it is mostly udp and the first socket is the corresponding
udp socket, then the value 1, like above, is ok. If it is tcp/tls or you
have different listen parameters on udp, see the processes index with:

kamctl ps

It should not be required to wait till you get out of memory errors, but
be sure you run it long enough to have many accounting records written
by the process that is going to print the pkg summary. You can
eventually set the children to 1 or 2, to "force" traffic via a smaller
group of processes.

Cheers,
Daniel

On 14.10.22 10:12, mayamatakeshi wrote:
> Hi,
> I am using acc for CDR generation. Here is the module configuration
> I'm using:
>
> modparam("acc", "db_url",
> "mysql://kamailio:kamailiorw@localhost/kamailio")
> modparam("acc", "db_flag", 1)
> modparam("acc", "db_missed_flag", 2)
> modparam("acc", "failed_transaction_flag", 3)
> modparam("acc", "cdr_enable", 1)
> modparam("acc", "cdrs_table", "cdr")
> modparam("acc", "cdr_extra",
> "callid=$ci;caller_domain=$dlg_var(caller_domain);callee_domain=$dlg_var(callee_domain);caller_username=$dlg_var(caller_username);callee_username=$dlg_var(callee_username);calling_number=$dlg_var(calling_number);destination=$dlg_var(destination);anonymous=$dlg_var(anonymous);forwarding=$dlg_var(forwarding);tracing=$dlg_var(tracing);relay=$dlg_var(relay);sip_code=$dlg_var(sip_code);status_code=$dlg_var(status_code);start_time=$dlg_var(start_time)")
> modparam("acc", "cdr_start_on_confirmed", 1)
> modparam("acc", "cdr_start_id", "answer_time")
> modparam("acc", "log_level", 9)
> modparam("acc", "log_facility", "LOG_LOCAL0")
> modparam("acc", "log_flag", 10)
> modparam("acc", "cdr_facility", "LOG_LOCAL0")
> modparam("acc", "cdr_log_enable", 1)
>
>
> On Fri, Oct 14, 2022 at 3:57 PM Daniel-Constantin Mierla
>  wrote:
>
> Hello,
>
> are you using accounting to generate CDRs with dialog module
> (records in acc_cdrs table)? Or only for getting the event records
> in the acc table?
>
> Cheers,
> Daniel
>
> On 13.10.22 23:19, mayamatakeshi wrote:
>>
>>
>> On Mon, Oct 3, 2022 at 11:41 AM mayamatakeshi
>>  wrote:
>>
>>
>>
>> On Mon, Sep 26, 2022 at 8:32 PM Daniel-Constantin Mierla
>>  wrote:
>>
>> Hello,
>>
>> as I am not a user of dialog variables, I am turning to
>> community to ask
>> for help testing the current master branch with
>> configurations that make
>> use of dialog variables and acc dialog-based cdr generation.
>>
>> With a few reports of issues related to dialog modules
>> and unexpected
>> crashes, I looked over the code and noticed that the
>> access of the value
>> for dialog variables was not protected, making them
>> vulnerable of
>> invalid memory access in case of the variable was updated
>> by another
>> process or dialog was terminated.
>>
>> I introduced a couple of new functions to try to cover
>> different use
>> cases of getting the dlg variable values, dialog
>> management code was not
>> affected, but given that these commits need to be
>> backported to stable
>> branch (5.6), I want to get proper feedback from
>> community that things
>> work fine.
>>
>> A previous attempt of a simpler fix was not enough,
>> having side effects
>> to acc module for dialog-based cdr generation, because it
>> was keeping
>> referenced to many dlg variables at the same time.
>>
>> In short, it would be appreciated any feedback on testing
>> dialog and acc
>> with dialog-based cdr generation using git master branch.
>>
>>
>> I have started 4 load test environments today with latest
>> commit 6f400a8074fe60916867596431ca26dff00435d1.
>> I usually leave a commit load test running for 2 months
>> before consider it ready for production release.
>> I will report any crash/problem.
>>
>>
>> After a few hours of load test, all 4 load test environments
>> start to log memory allocation problems:
>>
>> [root@lab002107-flip-server ~]$ grep memory
>> /var/log/kamailio/kamailio.log |head
>> 2022-10-13T01:36:10.429809+09:00 lab002107-flip-server
>> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR:
>> rtpengine [rtpengine.c:2721]: rtpp_function_call(): out of memory
>> - bencode failed
>> 2022-10-13T01:36:12.923609+09:00 lab002107-flip-server
>> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR:
>> rtpengine [rtpengine.c:2721]: rtpp_function_call(): out of 

Re: [sr-dev] [SR-Users] Testing dialog module (and acc with dialog cdrs)

2022-10-14 Thread mayamatakeshi
Hi,
I am using acc for CDR generation. Here is the module configuration I'm
using:

modparam("acc", "db_url", "mysql://kamailio:kamailiorw@localhost/kamailio")
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)
modparam("acc", "failed_transaction_flag", 3)
modparam("acc", "cdr_enable", 1)
modparam("acc", "cdrs_table", "cdr")
modparam("acc", "cdr_extra",
"callid=$ci;caller_domain=$dlg_var(caller_domain);callee_domain=$dlg_var(callee_domain);caller_username=$dlg_var(caller_username);callee_username=$dlg_var(callee_username);calling_number=$dlg_var(calling_number);destination=$dlg_var(destination);anonymous=$dlg_var(anonymous);forwarding=$dlg_var(forwarding);tracing=$dlg_var(tracing);relay=$dlg_var(relay);sip_code=$dlg_var(sip_code);status_code=$dlg_var(status_code);start_time=$dlg_var(start_time)")
modparam("acc", "cdr_start_on_confirmed", 1)
modparam("acc", "cdr_start_id", "answer_time")
modparam("acc", "log_level", 9)
modparam("acc", "log_facility", "LOG_LOCAL0")
modparam("acc", "log_flag", 10)
modparam("acc", "cdr_facility", "LOG_LOCAL0")
modparam("acc", "cdr_log_enable", 1)


On Fri, Oct 14, 2022 at 3:57 PM Daniel-Constantin Mierla 
wrote:

> Hello,
>
> are you using accounting to generate CDRs with dialog module (records in
> acc_cdrs table)? Or only for getting the event records in the acc table?
>
> Cheers,
> Daniel
> On 13.10.22 23:19, mayamatakeshi wrote:
>
>
>
> On Mon, Oct 3, 2022 at 11:41 AM mayamatakeshi 
> wrote:
>
>>
>>
>> On Mon, Sep 26, 2022 at 8:32 PM Daniel-Constantin Mierla <
>> mico...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> as I am not a user of dialog variables, I am turning to community to ask
>>> for help testing the current master branch with configurations that make
>>> use of dialog variables and acc dialog-based cdr generation.
>>>
>>> With a few reports of issues related to dialog modules and unexpected
>>> crashes, I looked over the code and noticed that the access of the value
>>> for dialog variables was not protected, making them vulnerable of
>>> invalid memory access in case of the variable was updated by another
>>> process or dialog was terminated.
>>>
>>> I introduced a couple of new functions to try to cover different use
>>> cases of getting the dlg variable values, dialog management code was not
>>> affected, but given that these commits need to be backported to stable
>>> branch (5.6), I want to get proper feedback from community that things
>>> work fine.
>>>
>>> A previous attempt of a simpler fix was not enough, having side effects
>>> to acc module for dialog-based cdr generation, because it was keeping
>>> referenced to many dlg variables at the same time.
>>>
>>> In short, it would be appreciated any feedback on testing dialog and acc
>>> with dialog-based cdr generation using git master branch.
>>>
>>>
>> I have started 4 load test environments today with latest
>> commit 6f400a8074fe60916867596431ca26dff00435d1.
>> I usually leave a commit load test running for 2 months before consider
>> it ready for production release.
>> I will report any crash/problem.
>>
>
> After a few hours of load test, all 4 load test environments start to log
> memory allocation problems:
>
> [root@lab002107-flip-server ~]$ grep memory
> /var/log/kamailio/kamailio.log |head
> 2022-10-13T01:36:10.429809+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: rtpengine
> [rtpengine.c:2721]: rtpp_function_call(): out of memory - bencode failed
> 2022-10-13T01:36:12.923609+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: rtpengine
> [rtpengine.c:2721]: rtpp_function_call(): out of memory - bencode failed
> 2022-10-13T01:36:12.961677+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory from
> pkg pool
> 2022-10-13T01:36:14.983281+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: rtpengine
> [rtpengine.c:2721]: rtpp_function_call(): out of memory - bencode failed
> 2022-10-13T01:36:14.983537+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory from
> pkg pool
> 2022-10-13T01:36:14.983665+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory from
> pkg pool
> 2022-10-13T01:36:20.861558+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: rtpengine
> [rtpengine.c:2721]: rtpp_function_call(): out of memory - bencode failed
> 2022-10-13T01:36:20.864388+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory from
> pkg pool
> 

Re: [sr-dev] git:master:2bb8b568: mqtt: Add tls_alpn module option

2022-10-14 Thread Henning Westerholt
Hello,

this caused the nightly builds to fail for older Debian distributions.
It should be fixed now. I also pushed a commit to adapt the coding style of the 
newly added code to the existing file regarding whitespaces/tabs, as I also did 
a mistake by not seeing it correctly in my editor.

Cheers,

Henning

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

-Original Message-
From: sr-dev  On Behalf Of Andreas Granig
Sent: Thursday, October 13, 2022 5:43 PM
To: sr-dev@lists.kamailio.org
Subject: [sr-dev] git:master:2bb8b568: mqtt: Add tls_alpn module option

Module: kamailio
Branch: master
Commit: 2bb8b5689c3064bd0ad1da80bdcfa36f29d2b8e3
URL: 
https://github.com/kamailio/kamailio/commit/2bb8b5689c3064bd0ad1da80bdcfa36f29d2b8e3

Author: Andreas Granig 
Committer: Andreas Granig 
Date: 2022-10-13T17:42:47+02:00

mqtt: Add tls_alpn module option

This is used when a service (like AWS IoT Core) uses one TLS port for multiple 
services (like https and mqtt), so you have to set the ALPN to 'mqtt' to be 
able to connect kamailio.

---

Modified: src/modules/mqtt/doc/mqtt_admin.xml
Modified: src/modules/mqtt/mqtt_dispatch.c
Modified: src/modules/mqtt/mqtt_dispatch.h
Modified: src/modules/mqtt/mqtt_mod.c

---

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


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

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


[sr-dev] git:master:304bf9ca: mqtt: add missing semicolon to #ifdef else case after 2bb8b568

2022-10-14 Thread Henning Westerholt
Module: kamailio
Branch: master
Commit: 304bf9cab6d50231c9c948ed7d252d91631e7f30
URL: 
https://github.com/kamailio/kamailio/commit/304bf9cab6d50231c9c948ed7d252d91631e7f30

Author: Henning Westerholt 
Committer: Henning Westerholt 
Date: 2022-10-14T07:09:23Z

mqtt: add missing semicolon to #ifdef else case after 2bb8b568

---

Modified: src/modules/mqtt/mqtt_dispatch.c

---

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

---

diff --git a/src/modules/mqtt/mqtt_dispatch.c b/src/modules/mqtt/mqtt_dispatch.c
index eaf2f51f91..a67f20e4a1 100644
--- a/src/modules/mqtt/mqtt_dispatch.c
+++ b/src/modules/mqtt/mqtt_dispatch.c
@@ -232,7 +232,7 @@ int mqtt_run_dispatcher(mqtt_dispatcher_cfg_t* cfg)
return -1;
}
 #else
-   LM_WARN("unable to set TLS ALPN due to outdated 
mosquitto library version, upgrade it to >= 1.6.0\n")
+   LM_WARN("unable to set TLS ALPN due to outdated 
mosquitto library version, upgrade it to >= 1.6.0\n");
 #endif
}
}


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


[sr-dev] git:master:0994754b: mqtt: use same coding style regarding whitespace/tabs after 2bb8b568

2022-10-14 Thread Henning Westerholt
Module: kamailio
Branch: master
Commit: 0994754b9925dad3f306a3ecb9c62c41588390d1
URL: 
https://github.com/kamailio/kamailio/commit/0994754b9925dad3f306a3ecb9c62c41588390d1

Author: Henning Westerholt 
Committer: Henning Westerholt 
Date: 2022-10-14T07:06:54Z

mqtt: use same coding style regarding whitespace/tabs after 2bb8b568

---

Modified: src/modules/mqtt/mqtt_dispatch.c

---

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

---

diff --git a/src/modules/mqtt/mqtt_dispatch.c b/src/modules/mqtt/mqtt_dispatch.c
index a402947353..eaf2f51f91 100644
--- a/src/modules/mqtt/mqtt_dispatch.c
+++ b/src/modules/mqtt/mqtt_dispatch.c
@@ -224,17 +224,17 @@ int mqtt_run_dispatcher(mqtt_dispatcher_cfg_t* cfg)
LM_ERR("mosquitto_tls_set() failed: %d %s\n",errno, 
strerror(errno));
return -1;
}
-if (cfg->tls_alpn != NULL) {
+   if (cfg->tls_alpn != NULL) {
 #if LIBMOSQUITTO_VERSION_NUMBER >= 1006000
-res = mosquitto_string_option(_mosquitto, MOSQ_OPT_TLS_ALPN, 
cfg->tls_alpn);
-if (res != MOSQ_ERR_SUCCESS) {
-LM_ERR("mosquitto_string_option() failed setting TLS ALPN: %d 
%s\n",errno, strerror(errno));
-return -1;
-}
+   res = mosquitto_string_option(_mosquitto, 
MOSQ_OPT_TLS_ALPN, cfg->tls_alpn);
+   if (res != MOSQ_ERR_SUCCESS) {
+   LM_ERR("mosquitto_string_option() failed 
setting TLS ALPN: %d %s\n",errno, strerror(errno));
+   return -1;
+   }
 #else
-   LM_WARN("unable to set TLS ALPN due to outdated mosquitto 
library version, upgrade it to >= 1.6.0\n")
+   LM_WARN("unable to set TLS ALPN due to outdated 
mosquitto library version, upgrade it to >= 1.6.0\n")
 #endif
-}
+   }
}
 
res = mosquitto_connect(_mosquitto, cfg->host, cfg->port, 
cfg->keepalive);


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


[sr-dev] git:master:846ed0ab: Revert "mqtt: fix double brackets introduced in 2bb8b568"

2022-10-14 Thread Henning Westerholt
Module: kamailio
Branch: master
Commit: 846ed0ab0d9ed11c9df2636d4061a64aca539a66
URL: 
https://github.com/kamailio/kamailio/commit/846ed0ab0d9ed11c9df2636d4061a64aca539a66

Author: Henning Westerholt 
Committer: Henning Westerholt 
Date: 2022-10-14T07:05:10Z

Revert "mqtt: fix double brackets introduced in 2bb8b568"

This reverts commit 96e28f8c1ce22042bd1f59dea7607aef51ac1f58.

---

Modified: src/modules/mqtt/mqtt_dispatch.c

---

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

---

diff --git a/src/modules/mqtt/mqtt_dispatch.c b/src/modules/mqtt/mqtt_dispatch.c
index 8a38111e4c..a402947353 100644
--- a/src/modules/mqtt/mqtt_dispatch.c
+++ b/src/modules/mqtt/mqtt_dispatch.c
@@ -234,6 +234,7 @@ int mqtt_run_dispatcher(mqtt_dispatcher_cfg_t* cfg)
 #else
LM_WARN("unable to set TLS ALPN due to outdated mosquitto 
library version, upgrade it to >= 1.6.0\n")
 #endif
+}
}
 
res = mosquitto_connect(_mosquitto, cfg->host, cfg->port, 
cfg->keepalive);


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


[sr-dev] git:master:96e28f8c: mqtt: fix double brackets introduced in 2bb8b568

2022-10-14 Thread Henning Westerholt
Module: kamailio
Branch: master
Commit: 96e28f8c1ce22042bd1f59dea7607aef51ac1f58
URL: 
https://github.com/kamailio/kamailio/commit/96e28f8c1ce22042bd1f59dea7607aef51ac1f58

Author: Henning Westerholt 
Committer: Henning Westerholt 
Date: 2022-10-14T06:57:52Z

mqtt: fix double brackets introduced in 2bb8b568

---

Modified: src/modules/mqtt/mqtt_dispatch.c

---

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

---

diff --git a/src/modules/mqtt/mqtt_dispatch.c b/src/modules/mqtt/mqtt_dispatch.c
index a402947353..8a38111e4c 100644
--- a/src/modules/mqtt/mqtt_dispatch.c
+++ b/src/modules/mqtt/mqtt_dispatch.c
@@ -234,7 +234,6 @@ int mqtt_run_dispatcher(mqtt_dispatcher_cfg_t* cfg)
 #else
LM_WARN("unable to set TLS ALPN due to outdated mosquitto 
library version, upgrade it to >= 1.6.0\n")
 #endif
-}
}
 
res = mosquitto_connect(_mosquitto, cfg->host, cfg->port, 
cfg->keepalive);


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


Re: [sr-dev] [SR-Users] Testing dialog module (and acc with dialog cdrs)

2022-10-14 Thread Daniel-Constantin Mierla
Hello,

are you using accounting to generate CDRs with dialog module (records in
acc_cdrs table)? Or only for getting the event records in the acc table?

Cheers,
Daniel

On 13.10.22 23:19, mayamatakeshi wrote:
>
>
> On Mon, Oct 3, 2022 at 11:41 AM mayamatakeshi
>  wrote:
>
>
>
> On Mon, Sep 26, 2022 at 8:32 PM Daniel-Constantin Mierla
>  wrote:
>
> Hello,
>
> as I am not a user of dialog variables, I am turning to
> community to ask
> for help testing the current master branch with configurations
> that make
> use of dialog variables and acc dialog-based cdr generation.
>
> With a few reports of issues related to dialog modules and
> unexpected
> crashes, I looked over the code and noticed that the access of
> the value
> for dialog variables was not protected, making them vulnerable of
> invalid memory access in case of the variable was updated by
> another
> process or dialog was terminated.
>
> I introduced a couple of new functions to try to cover
> different use
> cases of getting the dlg variable values, dialog management
> code was not
> affected, but given that these commits need to be backported
> to stable
> branch (5.6), I want to get proper feedback from community
> that things
> work fine.
>
> A previous attempt of a simpler fix was not enough, having
> side effects
> to acc module for dialog-based cdr generation, because it was
> keeping
> referenced to many dlg variables at the same time.
>
> In short, it would be appreciated any feedback on testing
> dialog and acc
> with dialog-based cdr generation using git master branch.
>
>
> I have started 4 load test environments today with latest
> commit 6f400a8074fe60916867596431ca26dff00435d1.
> I usually leave a commit load test running for 2 months before
> consider it ready for production release.
> I will report any crash/problem.
>
>
> After a few hours of load test, all 4 load test environments start to
> log memory allocation problems:
>
> [root@lab002107-flip-server ~]$ grep memory
> /var/log/kamailio/kamailio.log |head
> 2022-10-13T01:36:10.429809+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR:
> rtpengine [rtpengine.c:2721]: rtpp_function_call(): out of memory -
> bencode failed
> 2022-10-13T01:36:12.923609+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR:
> rtpengine [rtpengine.c:2721]: rtpp_function_call(): out of memory -
> bencode failed
> 2022-10-13T01:36:12.961677+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory
> from pkg pool
> 2022-10-13T01:36:14.983281+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR:
> rtpengine [rtpengine.c:2721]: rtpp_function_call(): out of memory -
> bencode failed
> 2022-10-13T01:36:14.983537+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory
> from pkg pool
> 2022-10-13T01:36:14.983665+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory
> from pkg pool
> 2022-10-13T01:36:20.861558+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR:
> rtpengine [rtpengine.c:2721]: rtpp_function_call(): out of memory -
> bencode failed
> 2022-10-13T01:36:20.864388+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory
> from pkg pool
> 2022-10-13T01:36:20.878469+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR: acc
> [acc_extra.c:234]: extra2strar(): could not allocate private memory
> from pkg pool
> 2022-10-13T01:36:23.174159+09:00 lab002107-flip-server
> /usr/local/src/git/kamailio-master/src/kamailio[3286370]: ERROR:
> rtpengine [rtpengine.c:2721]: rtpp_function_call(): out of memory -
> bencode failed 
>
>
> I reverted 2 of the load test envs to previous kamailio 5.6 commit
> 61e86a1f502388ffd4dce6e52811ba640337c813 and restarted the load tests,
> then again, kamailio master commit
> 6f400a8074fe60916867596431ca26dff00435d1 started to write the above
> logs but this doesn't happen with 5.6.
>
>
>
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
  Nov 7-10, 2022 (Europe Timezone)
  * https://www.asipto.com/sw/kamailio-advanced-training-online/

[sr-dev] Build failed in Jenkins: kamailiodev-nightly-binaries » amd64,buster #2295

2022-10-14 Thread kamailio
See 


Changes:


--
[...truncated 1.83 MB...]
cnode.c: In function 'cnode_connect_to':
cnode.c:56:18: note: 'addr' declared here
  struct sockaddr addr = { 0 };
  ^~~~
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+bpo10.20221014005610.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 8.3.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.10.4/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c pv_pid.c -o pv_pid.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+bpo10.20221014005610.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 8.3.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.10.4/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c pv_tuple.c -o pv_tuple.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+bpo10.20221014005610.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 8.3.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.10.4/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c pv_xbuff.c -o pv_xbuff.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+bpo10.20221014005610.2317=. 

[sr-dev] Build failed in Jenkins: kamailiodev-nightly-binaries » amd64,stretch #2295

2022-10-14 Thread kamailio
See 


Changes:


--
[...truncated 1.86 MB...]
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+bpo9.20221014005510.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 6.3.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.9.2/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c pv_ref.c -o pv_ref.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+bpo9.20221014005510.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 6.3.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.9.2/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c epmd.c -o epmd.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+bpo9.20221014005510.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 6.3.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.9.2/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c erl_api.c -o erl_api.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+bpo9.20221014005510.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' 

[sr-dev] Build failed in Jenkins: kamailiodev-nightly-binaries » amd64,xenial #2295

2022-10-14 Thread kamailio
See 


Changes:


--
[...truncated 1.71 MB...]
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -Wall 
-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -DVERSION_NODATE   -DNAME='"kamailio"' 
-DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' 
-DCOMPILER='"gcc 5.4.0"' -D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=5007000 
-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/usr/include/json-c -I/usr/include/uuid   -DMOD_NAME='"kazoo"' -c kz_fixup.c 
-o kz_fixup.o -MMD -MP
Makefile.defs defs skipped
make[4]: 'libsrdb1.so.1.0' is up to date.
gcc -shared -g -m64 -Wl,-O2 -Wl,-E  -Wl,-Bsymbolic-functions -Wl,-z,relro  
kz_trans.o kz_hash.o kz_amqp.o kazoo.o const.o kz_json.o kz_pua.o kz_fixup.o  
-lm -ljson-c -luuid -lrabbitmq -levent  -L../../lib/srdb1/ -lsrdb1 
-Wl,-rpath,/build/kamailio-5.7.0~dev1+ubuntu16.04.20221014005639.2317/src/lib/srdb1
 -o kazoo.so
make[2]: Leaving directory 
'/build/kamailio-5.7.0~dev1+ubuntu16.04.20221014005639.2317/src'
make[1]: Leaving directory 
'/build/kamailio-5.7.0~dev1+ubuntu16.04.20221014005639.2317'
/usr/bin/make every-module group_include="kcnxcc" quiet=verbose
make[1]: warning: jobserver unavailable: using -j1.  Add '+' to parent make 
rule.
make[1]: Entering directory 
'/build/kamailio-5.7.0~dev1+ubuntu16.04.20221014005639.2317'
/usr/bin/make -C src/ every-module 
make[2]: Entering directory 
'/build/kamailio-5.7.0~dev1+ubuntu16.04.20221014005639.2317/src'
config.mak loaded
Makefile.defs defs skipped
Makefile.defs defs skipped
Makefile.defs defs skipped
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -Wall 
-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -DVERSION_NODATE   -DNAME='"kamailio"' 
-DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' 
-DCOMPILER='"gcc 5.4.0"' -D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=5007000 
-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  
-D_FILE_OFFSET_BITS=64 -I/usr/include/hiredis  -DMOD_NAME='"cnxcc"' -c 
cnxcc_redis.c -o cnxcc_redis.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -Wall 
-Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -DVERSION_NODATE   -DNAME='"kamailio"' 
-DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' 
-DCOMPILER='"gcc 5.4.0"' -D__CPU_x86_64 -D__OS_linux -DVERSIONVAL=5007000 
-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 

[sr-dev] Build failed in Jenkins: kamailiodev-nightly-binaries » amd64,bionic #2295

2022-10-14 Thread kamailio
See 


Changes:


--
[...truncated 1.85 MB...]
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+ubuntu18.04.20221014005709.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 7.5.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.10.1/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c pv_ref.c -o pv_ref.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+ubuntu18.04.20221014005709.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 7.5.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.10.1/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c epmd.c -o epmd.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+ubuntu18.04.20221014005709.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' -DARCH='"x86_64"' -DOS='linux_' 
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 7.5.0"' -D__CPU_x86_64 -D__OS_linux 
-DVERSIONVAL=5007000 -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/usr/lib/erlang/lib/erl_interface-3.10.1/include -D_REENTRANT 
-DMOD_NAME='"erlang"' -c erl_api.c -o erl_api.o -MMD -MP
gcc -fPIC -DPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops 
-falign-loops -ftree-vectorize -fno-strict-overflow -mtune=generic -pthread 
-DKSR_PTHREAD_MUTEX_SHARED -Wall -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 
-fdebug-prefix-map=/build/kamailio-5.7.0~dev1+ubuntu18.04.20221014005709.2317=. 
-fstack-protector-strong -Wformat -Werror=format-security -DVERSION_NODATE   
-DNAME='"kamailio"' -DVERSION='"5.7.0-dev1"' 

[sr-dev] git:master:2bb8b568: mqtt: Add tls_alpn module option

2022-10-14 Thread Andreas Granig
Module: kamailio
Branch: master
Commit: 2bb8b5689c3064bd0ad1da80bdcfa36f29d2b8e3
URL: 
https://github.com/kamailio/kamailio/commit/2bb8b5689c3064bd0ad1da80bdcfa36f29d2b8e3

Author: Andreas Granig 
Committer: Andreas Granig 
Date: 2022-10-13T17:42:47+02:00

mqtt: Add tls_alpn module option

This is used when a service (like AWS IoT Core) uses one TLS port
for multiple services (like https and mqtt), so you have to set
the ALPN to 'mqtt' to be able to connect kamailio.

---

Modified: src/modules/mqtt/doc/mqtt_admin.xml
Modified: src/modules/mqtt/mqtt_dispatch.c
Modified: src/modules/mqtt/mqtt_dispatch.h
Modified: src/modules/mqtt/mqtt_mod.c

---

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


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