Module: kamailio
Branch: master
Commit: 326ad479fb9e09f4f3a177606f2b5dcc09fbbd62
URL: https://github.com/kamailio/kamailio/commit/326ad479fb9e09f4f3a177606f2b5dc…
Author: �������������������� �������������������������������� <git-dpa(a)aegee.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-04-25T22:11:28+02:00
ims_registrar_pcscf: typo
---
Modified: src/modules/ims_registrar_pcscf/save.c
---
Diff: https://github.com/kamailio/kamailio/commit/326ad479fb9e09f4f3a177606f2b5dc…
Patch: https://github.com/kamailio/kamailio/commit/326ad479fb9e09f4f3a177606f2b5dc…
---
diff --git a/src/modules/ims_registrar_pcscf/save.c b/src/modules/ims_registrar_pcscf/save.c
index 88c0c008a8e..db9b7e73877 100644
--- a/src/modules/ims_registrar_pcscf/save.c
+++ b/src/modules/ims_registrar_pcscf/save.c
@@ -254,7 +254,7 @@ static inline int update_contacts(struct sip_msg *req,struct sip_msg *rpl, udoma
}
/**
- * Save contact based on REGISTER request. this will be a pending save, until we receive response
+ * Save contact based on REGISTER request. This will be a pending save, until we receive response
* from SCSCF. If no response after pending_timeout seconds, the contacts is removed. Can only be used from REQUEST ROUTE
*/
int save_pending(struct sip_msg* _m, udomain_t* _d) {
Module: kamailio
Branch: master
Commit: b1f783df4ceb2a1d4a525c3802707105b6f1a0c6
URL: https://github.com/kamailio/kamailio/commit/b1f783df4ceb2a1d4a525c380270710…
Author: �������������������� �������������������������������� <git-dpa(a)aegee.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-04-25T22:11:28+02:00
call_control: typos
---
Modified: src/modules/call_control/call_control.c
Modified: src/modules/call_control/doc/call_control.8
Modified: src/modules/call_control/doc/call_control_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/b1f783df4ceb2a1d4a525c380270710…
Patch: https://github.com/kamailio/kamailio/commit/b1f783df4ceb2a1d4a525c380270710…
---
diff --git a/src/modules/call_control/call_control.c b/src/modules/call_control/call_control.c
index f9d152f85f2..1da3cf38f82 100644
--- a/src/modules/call_control/call_control.c
+++ b/src/modules/call_control/call_control.c
@@ -102,7 +102,7 @@ typedef struct AVP_List {
typedef struct CallControlSocket {
char *name; // name
int sock; // socket
- int timeout; // how many miliseconds to wait for an answer
+ int timeout; // how many milliseconds to wait for an answer
time_t last_failure; // time of the last failure
char data[BUFFER_SIZE]; // buffer for the answer data
} CallControlSocket;
@@ -124,7 +124,7 @@ int parse_param_stop(unsigned int type, void *val);
static CallControlSocket callcontrol_socket = {
"/run/callcontrol/socket", // name
-1, // sock
- 500, // timeout in 500 miliseconds if there is no answer
+ 500, // timeout in 500 milliseconds if there is no answer
0, // time of the last failure
"" // data
};
diff --git a/src/modules/call_control/doc/call_control.8 b/src/modules/call_control/doc/call_control.8
index ea3d50d25b4..d94d647dcd3 100644
--- a/src/modules/call_control/doc/call_control.8
+++ b/src/modules/call_control/doc/call_control.8
@@ -115,11 +115,11 @@ see
.BR kamailio.cfg(5)
.PP
Full documentation on Kamailio is available at
-.I http://www.kamailio.org/.
+.I https://www.kamailio.org/.
.PP
Mailing lists:
.nf
-users(a)lists.kamailio.org - Kamailio user community
+sr-users(a)lists.kamailio.org - Kamailio user community
.nf
-devel(a)lists.kamailio.org - Kamailio development, new features and unstable version
+sr-dev(a)lists.kamailio.org - Kamailio development, new features and unstable version
diff --git a/src/modules/call_control/doc/call_control_admin.xml b/src/modules/call_control/doc/call_control_admin.xml
index a7a57a8d735..0dd52f026ad 100644
--- a/src/modules/call_control/doc/call_control_admin.xml
+++ b/src/modules/call_control/doc/call_control_admin.xml
@@ -76,7 +76,7 @@
<para>
Callcontrol is invoked by calling the call_control() function for the
initial INVITE of every call we want to apply a limit to. This will end
- up as a request to the callcontrol application, which will interogate
+ up as a request to the callcontrol application, which will interrogate
the rating engine for a time limit for the given caller and destination.
The rating engine will determine if the destination has any associated
cost and if the caller has any credit limit and if so will return the
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3415
-- Commit Summary --
* call_control: typos
* cfgutils: typos
* ims_registrar_pcscf: typo
* janssonrpcc: typo
* jsonrpcs: typos
* jwt: typo algoritm → algorithm
* kazoo: typos
* keepalive: typos
* kemix: update Kamailio URLs to HTTP → HTTPS
* kex: typos
-- File Changes --
M src/modules/call_control/call_control.c (4)
M src/modules/call_control/doc/call_control.8 (6)
M src/modules/call_control/doc/call_control_admin.xml (2)
M src/modules/cfgutils/cfgutils.c (16)
M src/modules/cfgutils/doc/cfgutils_admin.xml (2)
M src/modules/ims_registrar_pcscf/save.c (2)
M src/modules/janssonrpcc/doc/janssonrpcc_admin.xml (2)
M src/modules/jsonrpcs/doc/jsonrpcs_admin.xml (2)
M src/modules/jsonrpcs/jsonrpcs_mod.c (6)
M src/modules/jwt/doc/jwt_admin.xml (6)
M src/modules/kazoo/doc/kazoo_admin.xml (2)
M src/modules/kazoo/kazoo.c (2)
M src/modules/kazoo/kz_amqp.c (4)
M src/modules/keepalive/doc/keepalive_admin.xml (12)
M src/modules/keepalive/keepalive.h (2)
M src/modules/keepalive/keepalive_rpc.c (30)
M src/modules/kemix/doc/kemix_admin.xml (4)
M src/modules/kemix/kemix_mod.c (4)
M src/modules/kex/core_stats.c (4)
M src/modules/kex/doc/kex_admin.xml (8)
M src/modules/kex/kex_mod.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3415.patchhttps://github.com/kamailio/kamailio/pull/3415.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3415
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3415(a)github.com>
### Description
I want to add addresses to dispatcher.list dynamically
```
modparam("dispatcher", "db_url", DBURL)
modparam("dispatcher", "table_name", "dispatcher")
modparam("dispatcher", "ds_ping_interval", 10)
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_inactive_threshold", 1)
modparam("dispatcher", "ds_probing_threshold", 1)
modparam("dispatcher", "reload_delta", 0)
modparam("dispatcher", "ds_timer_mode", 1)
...
if(!ds_is_from_list("1","0","$var(contact)")) {
jsonrpc_exec(
'{
"jsonrpc": "2.0",
"method": "dispatcher.add",
"params": [1, "$var(contact)"],
"id": 1
}'
);
}
```
this scheme works with low load(one or two UAs) but it doesn't work with dozens of requests, kamailio crashes
### Troubleshooting
```
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6832]: CRITICAL: {1 12016 REGISTER db88353a-66cf-4ca6-91e2-6f306e43cee9} <core> [core/mem/q_malloc.c:519]: qm_free(): BUG: freeing already freed pointer (0x7f2f964578b8), called from dispatcher: dispatch.c: reindex_dests(790), first free dispatcher: dispatch.c: ds_avl_destroy(4013) - ignoring
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6832]: INFO: {1 12016 REGISTER db88353a-66cf-4ca6-91e2-6f306e43cee9} dispatcher [dispatch.c:682]: dp_init_relative_weights(): extra rweight 100 for last active destination in group 1
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6827]: INFO: {1 16898 REGISTER eebaeca9-c642-465f-bc09-67d1448ba6b7} dispatcher [dispatch.c:682]: dp_init_relative_weights(): extra rweight 100 for last active destination in group 1
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6825]: ERROR: {1 27217 REGISTER 885dc562-c8f3-477a-bc4b-ba3718cdf8db} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6825]: WARNING: {1 27217 REGISTER 885dc562-c8f3-477a-bc4b-ba3718cdf8db} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6825]: ERROR: {1 27217 REGISTER 885dc562-c8f3-477a-bc4b-ba3718cdf8db} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6825]: WARNING: {1 27217 REGISTER 885dc562-c8f3-477a-bc4b-ba3718cdf8db} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6825]: ERROR: {1 27217 REGISTER 885dc562-c8f3-477a-bc4b-ba3718cdf8db} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6825]: WARNING: {1 27217 REGISTER 885dc562-c8f3-477a-bc4b-ba3718cdf8db} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6829]: ERROR: {1 40473 REGISTER bd8d332f-d896-4dab-b4ab-3904f8a29dda} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6829]: WARNING: {1 40473 REGISTER bd8d332f-d896-4dab-b4ab-3904f8a29dda} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6829]: ERROR: {1 40473 REGISTER bd8d332f-d896-4dab-b4ab-3904f8a29dda} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6829]: WARNING: {1 40473 REGISTER bd8d332f-d896-4dab-b4ab-3904f8a29dda} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6829]: ERROR: {1 40473 REGISTER bd8d332f-d896-4dab-b4ab-3904f8a29dda} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6829]: WARNING: {1 40473 REGISTER bd8d332f-d896-4dab-b4ab-3904f8a29dda} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6832]: ERROR: {1 55015 REGISTER bfc85ce0-6aee-40c3-9b73-d0f64e835dc1} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6832]: WARNING: {1 55015 REGISTER bfc85ce0-6aee-40c3-9b73-d0f64e835dc1} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6832]: ERROR: {1 55015 REGISTER bfc85ce0-6aee-40c3-9b73-d0f64e835dc1} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6832]: WARNING: {1 55015 REGISTER bfc85ce0-6aee-40c3-9b73-d0f64e835dc1} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6832]: ERROR: {1 55015 REGISTER bfc85ce0-6aee-40c3-9b73-d0f64e835dc1} dispatcher [dispatch.c:407]: pack_dest(): bad uri []
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6832]: WARNING: {1 55015 REGISTER bfc85ce0-6aee-40c3-9b73-d0f64e835dc1} dispatcher [dispatch.c:2624]: ds_add_dest_cb(): failed to add destination in group 1 -
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6808]: ALERT: <core> [main.c:774]: handle_sigs(): child process 6825 exited by a signal 11
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6808]: ALERT: <core> [main.c:777]: handle_sigs(): core was not generated
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6808]: INFO: <core> [main.c:799]: handle_sigs(): terminating due to SIGCHLD
Apr 22 22:18:09 kamailio /usr/sbin/kamailio[6827]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received
Apr 22 22:18:10 kamailio /usr/sbin/kamailio[6808]: INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Apr 22 22:18:10 kamailio systemd[1]: kamailio.service: Main process exited, code=exited, status=1/FAILURE
Apr 22 22:18:10 kamailio systemd[1]: kamailio.service: Failed with result 'exit-code'.
Apr 22 22:18:10 kamailio systemd[1]: kamailio.service: Consumed 1.304s CPU time.
```
#### Reproduction
use code from Description section on request route
#### Debugging Data
```
(gdb) bt full
#0 0x000055945e0ccd20 in ?? ()
No symbol table info available.
#1 0x000055945e0cd6ee in qm_malloc ()
No symbol table info available.
#2 0x000055945e0da9c9 in qm_shm_malloc ()
No symbol table info available.
#3 0x00007f325a05e921 in pack_dest () from /usr/lib/x86_64-linux-gnu/kamailio/modules/dispatcher.so
No symbol table info available.
#4 0x00007f325a060ad4 in add_dest2list () from /usr/lib/x86_64-linux-gnu/kamailio/modules/dispatcher.so
No symbol table info available.
#5 0x00007f325a087cf9 in ds_filter_dest_cb () from /usr/lib/x86_64-linux-gnu/kamailio/modules/dispatcher.so
No symbol table info available.
#6 0x00007f325a05affb in ds_iter_set () from /usr/lib/x86_64-linux-gnu/kamailio/modules/dispatcher.so
No symbol table info available.
#7 0x00007f325a088706 in ds_remove_dst () from /usr/lib/x86_64-linux-gnu/kamailio/modules/dispatcher.so
No symbol table info available.
#8 0x00007f325a0af7a8 in ?? () from /usr/lib/x86_64-linux-gnu/kamailio/modules/dispatcher.so
No symbol table info available.
#9 0x00007f325e7e82f5 in jsonrpc_exec_ex () from /usr/lib/x86_64-linux-gnu/kamailio/modules/jsonrpcs.so
No symbol table info available.
#10 0x00007f325e7e875e in ?? () from /usr/lib/x86_64-linux-gnu/kamailio/modules/jsonrpcs.so
No symbol table info available.
#11 0x000055945ddce3f3 in do_action ()
No symbol table info available.
#12 0x000055945dddd391 in run_actions ()
No symbol table info available.
#13 0x000055945ddce2d3 in do_action ()
No symbol table info available.
#14 0x000055945dddd391 in run_actions ()
No symbol table info available.
#15 0x000055945ddce2d3 in do_action ()
No symbol table info available.
#16 0x000055945dddd391 in run_actions ()
No symbol table info available.
#17 0x000055945ddca244 in do_action ()
No symbol table info available.
--Type <RET> for more, q to quit, c to continue without paging--
#18 0x000055945dddd391 in run_actions ()
No symbol table info available.
#19 0x000055945ddce2d3 in do_action ()
No symbol table info available.
#20 0x000055945dddd391 in run_actions ()
No symbol table info available.
#21 0x000055945ddddc0b in run_top_route ()
No symbol table info available.
#22 0x000055945df3b1b2 in receive_msg ()
No symbol table info available.
#23 0x000055945e09ea5d in udp_rcv_loop ()
No symbol table info available.
#24 0x000055945ddb709b in main_loop ()
No symbol table info available.
#25 0x000055945ddc420c in main ()
No symbol table info available.
```
```(gdb) info locals
No symbol table info available.```
```(gdb) list
1 ../sysdeps/unix/sysv/linux/dl-vdso-setup.c: No such file or directory.```
#### SIP Traffic
[kamailio.txt](https://github.com/kamailio/kamailio/files/11302151/kamailio.…
### Possible Solutions
no idea
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
root@kamailio:[/etc]: kamailio -v
version: kamailio 5.6.3 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 10.2.1
```
* **Operating System**:
```
root@kamailio:[/etc]: uname -a
Linux kamailio 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3424
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3424(a)github.com>
#### Pre-Submission Checklist
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] 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:
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Created GitHub action script to allow build Alpine docker image and push to GitHub packages as `kamailio/kamailio-ci` docker image
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3425
-- Commit Summary --
* .github/workflows: added GitHub action script to build Alpine based docker image
-- File Changes --
A .github/workflows/alpine.yml (179)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3425.patchhttps://github.com/kamailio/kamailio/pull/3425.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3425
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3425(a)github.com>