### Description
We tried to use the `xhttp_prom` module, but our Prometheus couldn't read it, because of metrics conflicting with Prometheus data model.
For us, the problem lies in the usrloc module. It exports the following metrics:
```
usrloc:location-contacts = 0
usrloc:location-expires = 0
usrloc:location-users = 0
usrloc:registered_users = 0
```
However, Prometheus allows only ascii characters and digits, as well as underscores and colons.
See: https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels
The metrics names should not contain `-`, so they should get converted to `_`.
#### Reproduction
Setup Kamailio with `usrloc`, `xhttp` and `xhttp_prom` module and let Prometheus query it. It will stumble upon the first entry of `usrloc` module stats.
### Possible Solutions
Either the `usrloc` module could export its stats with the dash replaced by underscores, or the xhttp_prom module could sanitize the output. The first one would be a breaking change, I guess, making this a change for a major release.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
root@ifens5:/# kamailio -v
version: kamailio 5.3.8 (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_BLACKLIST, 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 7.5.0```
* **Operating System**:
```
Ubuntu 18.04
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2644
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for feature requests.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If you submit a feature request (or enhancement) add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
Sometimes need to add rport on outbound uac reg, but seems it's not possible in the current uac module. Would be good to an an extra param to do it, or is it possible to trigger a KEMI event route so a script can add whatever it need before sending the register msg?
Thanks.
### Expected behavior
#### Actual observed behavior
#### Debugging Data
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a improvement.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
(paste your output here)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2639
Retry build_rtpp_socks() if any DNS or create, bind, connect
issues happened when kamailio started, and at least one node
from list was skipped.
This retry will happen automatically, when select_rtpp_node() is called
and will avoid a need for a "kamcmd rtpengine.reload"
<!-- 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 you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [X] 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 #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Described above.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2633
-- Commit Summary --
* rtpengine: rebuild sockets if any skipped nodes
-- File Changes --
M src/modules/rtpengine/rtpengine.c (28)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2633.patchhttps://github.com/kamailio/kamailio/pull/2633.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2633
Hi, I am running docker with this:
https://hub.docker.com/layers/kamailio/kamailio/5.4.3-trusty/images/sha256-…
and
https://hub.docker.com/layers/mysql/library/mysql/8.0.23/images/sha256-8708…
I made some configurations in Kamailio:
/etc/default/kamailio
RUN_KAMAILIO=yes
USER=kamailio
GROUP=kamailio
CFGFILE=/etc/kamailio/kamailio.cfg
DUMP_CORE=yes
/etc/kamailio/kamailio.cfg
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
/etc/kamailio/kamctlrc
SIP_DOMAIN=kamailio.org
DBENGINE=MYSQL
DBHOST=172.19.0.3
DBPORT=3306
DBNAME=kamailio
DBRWUSER="kamailio"
DBRWPW="kamailiorw"
DBROUSER="kamailioro"
DBROPW="kamailioro"
DBACCESSHOST=172.19.0.5
DBROOTUSER="root"
DBROOTPW="negro"
CHARSET="latin1"
USERCOL="user"
Then I run creation of database:
/usr/sbin/kamdbctl create
All was ok so I can see in database:
+------------------+------------+-----------------------+
| user | host | plugin |
+------------------+------------+-----------------------+
| root | % | mysql_native_password |
| kamailio | 172.19.0.3 | mysql_native_password |
| kamailioro | 172.19.0.3 | mysql_native_password |
| kamailio | 172.19.0.5 | mysql_native_password |
| kamailioro | 172.19.0.5 | mysql_native_password |
| kamailio | localhost | mysql_native_password |
| kamailioro | localhost | mysql_native_password |
| mysql.infoschema | localhost | caching_sha2_password |
| mysql.session | localhost | caching_sha2_password |
| mysql.sys | localhost | caching_sha2_password |
| root | localhost | mysql_native_password |
+------------------+------------+-----------------------+
At this point, if I try to restart kamailio i got an error and container never go up again, I have to delete it and restart the installation and configuration process with this log:
ON RESTART KAMAILIO FROM CONTAINER CONSOLE:
Listening on
udp: 127.0.0.1:5060
udp: 172.17.0.4:5060
tcp: 127.0.0.1:5060
tcp: 172.17.0.4:5060
Aliases:
tcp: mykamailio:5060
tcp: localhost:5060
udp: mykamailio:5060
udp: localhost:5060
0(1) INFO: <core> [core/tcp_main.c:4984]: init_tcp(): using epoll_lt as the io watch method (auto detected)
0(1) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded
0(1) INFO: rr [rr_mod.c:185]: mod_init(): outbound module not available
0(1) INFO: <core> [main.c:2834]: main(): processes (at least): 33 - shm size: 67108864 - pkg size: 8388608
0(1) INFO: <core> [core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
0(1) INFO: <core> [core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
0(1) INFO: <core> [core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 212992
0(1) INFO: <core> [core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
21(28) INFO: jsonrpcs [jsonrpcs_sock.c:443]: jsonrpc_dgram_process(): a new child 0/28
23(30) INFO: ctl [io_listener.c:214]: io_listen_loop(): io_listen_loop: using epoll_lt io watch method (config)
0(1) ALERT: <core> [main.c:774]: handle_sigs(): child process 205 exited normally, status=255
0(1) INFO: <core> [main.c:802]: handle_sigs(): terminating due to SIGCHLD
2(9) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
1(8) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
3(10) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
4(11) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
6(13) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
5(12) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
7(14) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
10(17) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
12(19) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
14(21) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
29(36) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
24(31) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
28(35) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
15(22) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
19(26) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
13(20) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
17(24) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
8(15) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
23(30) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
22(29) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
21(28) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
26(33) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
20(27) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
31(38) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
32(39) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
9(16) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
30(37) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
11(18) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
16(23) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
27(34) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
18(25) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
25(32) INFO: <core> [main.c:857]: sig_usr(): signal 15 received
0(1) ERROR: ctl [ctl.c:390]: mod_destroy(): ERROR: ctl: could not delete unix socket /var/run/kamailio//kamailio_ctl: No such file or directory (2)
0(1) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
SO CONTAINER WAS DOWN, AND THEN IF I TRY TO START CONTAINER AGAIN:
Listening on
udp: 127.0.0.1:5060
udp: 172.17.0.4:5060
udp: 172.19.0.5:5060
tcp: 127.0.0.1:5060
tcp: 172.17.0.4:5060
tcp: 172.19.0.5:5060
Aliases:
tcp: mykamailio:5060
tcp: localhost:5060
udp: mykamailio:5060
udp: localhost:5060
0(1) INFO: <core> [core/tcp_main.c:4984]: init_tcp(): using epoll_lt as the io watch method (auto detected)
0(1) INFO: rr [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module is not loaded
0(1) INFO: rr [rr_mod.c:185]: mod_init(): outbound module not available
0(1) INFO: auth [auth_mod.c:346]: mod_init(): qop set, but nonce-count (nonce_count) support disabled
0(1) INFO: <core> [main.c:2834]: main(): processes (at least): 41 - shm size: 67108864 - pkg size: 8388608
0(1) ERROR: db_mysql [km_my_con.c:163]: db_mysql_new_connection(): driver error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
0(1) ERROR: <core> [db.c:319]: db_do_init2(): could not add connection to the pool
0(1) ERROR: usrloc [dlist.c:852]: register_udomain(): failed to open database connection
0(1) ERROR: registrar [registrar.c:711]: domain_fixup(): failed to register domain
0(1) ERROR: <core> [core/route.c:1167]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:698
0(1) ERROR: <core> [core/rvalue.c:3869]: fix_rval_expr(): failure in cfg at line: 698 col: 22
0(1) ERROR: <core> [core/rvalue.c:3869]: fix_rval_expr(): failure in cfg at line: 698 col: 22
0(1) ERROR: <core> [core/route.c:1167]: fix_actions(): fixing failed (code=-1) at cfg:/etc/kamailio/kamailio.cfg:701
error -1 while trying to fix configuration
0(1) INFO: <core> [core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
SO NO WAY TO GET IT UP.
Any idea on what is the problem here? I tried giving permissions to some folders in Kamailio docker container:
chown kamailio:kamailio /usr/sbin/kam*
chmod 755 /usr/sbin/kam*
chown -R kamailio:kamailio /etc/kamailio
chmod -R 755 /etc/kamailio
chown -R root:kamailio /var/run
chmod -R 755 /var/run
chown -R kamailio:kamailio /run/kamailio
chown -R 755 /run/kamailio
But had no effect...
thank you in advance.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2640
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* http://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
update libphonenum for the latest metadata please (currently v8.12.18)
### Additional Information
OS is CentOS 8 Stream
```# dnf list installed | grep phone
kamailio-phonenum.x86_64 5.4.3-0.el8.centos @kamailio
libphonenumber.x86_64 8.12.11-2.el8 @kamailio
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2635
**core/receive.c:300 - CentOS 7**
```
CC (gcc) [kamailio] core/ip_addr.o
CC (gcc) [kamailio] core/rvalue.o
CC (gcc) [kamailio] core/receive.o
core/receive.c: In function 'receive_msg':
core/receive.c:300:2: warning: missing braces around initializer [-Wmissing-braces]
sr_net_info_t netinfo = {0};
^
core/receive.c:300:2: warning: (near initialization for 'netinfo.data') [-Wmissing-braces]
CC (gcc) [kamailio] core/timer_proc.o
CC (gcc) [kamailio] core/lock_ops.o
CC (gcc) [kamailio] core/counters.o
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2636
Hello,
Kamailio SIP Server v5.4.4 stable release is out.
This is a maintenance release of the latest stable branch, 5.4, that
includes fixes since the release of v5.4.3. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.4.x. Deployments running previous v5.4.x
versions are strongly recommended to be upgraded to v5.4.4.
For more details about version 5.4.4 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2021/02/kamailio-v5-4-4-released/
RPM, Debian/Ubuntu packages will be available soon as well.
Many thanks to all contributing and using Kamailio!
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Module: kamailio
Branch: master
Commit: 2664a51c35a1e8b5adc4c7e6cedde60bc01f0b28
URL: https://github.com/kamailio/kamailio/commit/2664a51c35a1e8b5adc4c7e6cedde60…
Author: Juha Heinanen <jh(a)tutpro.com>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2021-02-11T17:27:44+02:00
Fixed typo.
---
Modified: src/modules/rr/doc/rr_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/2664a51c35a1e8b5adc4c7e6cedde60…
Patch: https://github.com/kamailio/kamailio/commit/2664a51c35a1e8b5adc4c7e6cedde60…
---
diff --git a/src/modules/rr/doc/rr_admin.xml b/src/modules/rr/doc/rr_admin.xml
index a925014715..7dc08b7b5c 100644
--- a/src/modules/rr/doc/rr_admin.xml
+++ b/src/modules/rr/doc/rr_admin.xml
@@ -560,7 +560,7 @@ remove_record_route();
scheme (sip: or sips:), one is added based on routing requirements. Thus
the value has to be like "address:port;parameters", the port and
parameters are optional. If the second parameter is provided, do not
- forget to add the parameter "r2=0" so the proxy processes both
+ forget to add the parameter "r2=on" so the proxy processes both
corresponding Route headers at once.</para>
<para>When the <quote>outbound</quote> module was loaded before this
Module: kamailio
Branch: master
Commit: 5064ffc6490ed9db3f92a171e6b950fd0e8056e6
URL: https://github.com/kamailio/kamailio/commit/5064ffc6490ed9db3f92a171e6b950f…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-02-15T08:46:22+01:00
modules: readme files regenerated - secsipid ... [skip ci]
---
Modified: src/modules/secsipid/README
---
Diff: https://github.com/kamailio/kamailio/commit/5064ffc6490ed9db3f92a171e6b950f…
Patch: https://github.com/kamailio/kamailio/commit/5064ffc6490ed9db3f92a171e6b950f…
---
diff --git a/src/modules/secsipid/README b/src/modules/secsipid/README
index c125b689d6..87ed1f9287 100644
--- a/src/modules/secsipid/README
+++ b/src/modules/secsipid/README
@@ -30,6 +30,7 @@ Daniel-Constantin Mierla
3.2. timeout (int)
3.3. cache_dir (str)
3.4. cache_expire (int)
+ 3.5. modproc (str)
4. Functions
@@ -47,11 +48,12 @@ Daniel-Constantin Mierla
1.2. Set timeout parameter
1.3. Set cache_dir parameter
1.4. Set cache_expire parameter
- 1.5. secsipid_check_identity usage
- 1.6. secsipid_check_identity_pubkey usage
- 1.7. secsipid_get_url usage
- 1.8. secsipid_add_identity usage
- 1.9. Libsecsipid usage
+ 1.5. Set modproc parameter
+ 1.6. secsipid_check_identity usage
+ 1.7. secsipid_check_identity_pubkey usage
+ 1.8. secsipid_get_url usage
+ 1.9. secsipid_add_identity usage
+ 1.10. Libsecsipid usage
Chapter 1. Admin Guide
@@ -69,6 +71,7 @@ Chapter 1. Admin Guide
3.2. timeout (int)
3.3. cache_dir (str)
3.4. cache_expire (int)
+ 3.5. modproc (str)
4. Functions
@@ -89,6 +92,11 @@ Chapter 1. Admin Guide
It exports the functions to check and generate SIP Identity header.
+ Note that this module needs "secsipid_proc.so" module to be installed,
+ but without loading the "secsipid_proc.so" via "loadmodule". This
+ module loads "secsipid_proc.so" in child init callback in order to
+ initialize the "libsecsipid" per child process.
+
2. Dependencies
2.1. Kamailio Modules
@@ -96,14 +104,15 @@ Chapter 1. Admin Guide
2.1. Kamailio Modules
- The following modules must be loaded before this module:
- * No dependencies on other Kamailio modules.
+ The following modules must be installed (but not loaded) to use this
+ module:
+ * secsipid_proc.
2.2. External Libraries or Applications
The following libraries or applications must be installed before
running Kamailio with this module loaded:
- * libsecsipid - https://github.com/asipto/secsipidx/.
+ * none.
3. Parameters
@@ -111,6 +120,7 @@ Chapter 1. Admin Guide
3.2. timeout (int)
3.3. cache_dir (str)
3.4. cache_expire (int)
+ 3.5. modproc (str)
3.1. expire (int)
@@ -160,6 +170,17 @@ modparam("secsipid", "cache_dir", "/tmp/kamailio/secsipid")
modparam("secsipid", "cache_expire", 7200)
...
+3.5. modproc (str)
+
+ The name of or the path to the required per-process API module.
+
+ Default value is "secsipid_proc.so".
+
+ Example 1.5. Set modproc parameter
+...
+modparam("secsipid", "modproc", "secsipid_proc2.so")
+...
+
4. Functions
4.1. secsipid_check_identity(keyPath)
@@ -181,7 +202,7 @@ modparam("secsipid", "cache_expire", 7200)
This function can be used from ANY_ROUTE.
- Example 1.5. secsipid_check_identity usage
+ Example 1.6. secsipid_check_identity usage
...
request_route {
...
@@ -205,7 +226,7 @@ request_route {
This function can be used from ANY_ROUTE.
- Example 1.6. secsipid_check_identity_pubkey usage
+ Example 1.7. secsipid_check_identity_pubkey usage
...
request_route {
...
@@ -226,7 +247,7 @@ request_route {
This function can be used from ANY_ROUTE.
- Example 1.7. secsipid_get_url usage
+ Example 1.8. secsipid_get_url usage
...
request_route {
...
@@ -250,7 +271,7 @@ request_route {
This function can be used from ANY_ROUTE.
- Example 1.8. secsipid_add_identity usage
+ Example 1.9. secsipid_add_identity usage
...
request_route {
...
@@ -274,7 +295,7 @@ request_route {
installed and its environment configured, then run the following
commands:
- Example 1.9. Libsecsipid usage
+ Example 1.10. Libsecsipid usage
...
go get https://github.com/asipto/secsipidx
cd $GOPATH/src/github.com/asipto/secsipidx/csecsipid/
Module: kamailio
Branch: master
Commit: 25b1a51806dfa661f987958c8e84a16e60e37a4f
URL: https://github.com/kamailio/kamailio/commit/25b1a51806dfa661f987958c8e84a16…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-15T08:33:07+01:00
core: split function that locates a module file
---
Modified: src/core/sr_module.c
Modified: src/core/sr_module.h
---
Diff: https://github.com/kamailio/kamailio/commit/25b1a51806dfa661f987958c8e84a16…
Patch: https://github.com/kamailio/kamailio/commit/25b1a51806dfa661f987958c8e84a16…
---
diff --git a/src/core/sr_module.c b/src/core/sr_module.c
index a021cb92c3..0a7ba37848 100644
--- a/src/core/sr_module.c
+++ b/src/core/sr_module.c
@@ -376,44 +376,24 @@ static inline int version_control(void *handle, char *path)
}
/**
- * \brief load a sr module
+ * \brief lookup a module and fill the new path
*
- * tries to load the module specified by mod_path.
- * If mod_path is 'modname' or 'modname.so' then
- * \<MODS_DIR\>/\<modname\>.so will be tried and if this fails
- * \<MODS_DIR\>/\<modname\>/\<modname\>.so
- * If mod_path contain a '/' it is assumed to be the
- * path to the module and tried first. If fails and mod_path is not
- * absolute path (not starting with '/') then will try:
- * \<MODS_DIR\>/mod_path
* @param mod_path path or module name
+ * @param new_path resolved path to the module, must be pkg_free() if != mod_path
* @return 0 on success , <0 on error
*/
-int load_module(char* mod_path)
+int ksr_locate_module(char *mod_path, char **new_path)
{
- void* handle;
- char* error;
- mod_register_function mr;
- module_exports_t* exp;
- struct sr_module* t;
struct stat stat_buf;
str modname;
char* mdir;
char* nxt_mdir;
char* path;
int mdir_len;
- int len;
- int dlflags;
- int new_dlflags;
- int retries;
int path_type;
- str expref;
- char exbuf[64];
+ int len;
-#ifndef RTLD_NOW
-/* for openbsd */
-#define RTLD_NOW DL_LAZY
-#endif
+ *new_path = NULL;
path=mod_path;
path_type = 0;
modname.s = path;
@@ -523,6 +503,57 @@ int load_module(char* mod_path)
goto error;
}
}
+
+ LM_DBG("found module to load <%s>\n", path);
+ *new_path = path;
+ return 0;
+
+error:
+ if(path!=mod_path) {
+ pkg_free(path);
+ }
+
+ return -1;
+}
+
+/**
+ * \brief load a sr module
+ *
+ * tries to load the module specified by mod_path.
+ * If mod_path is 'modname' or 'modname.so' then
+ * \<MODS_DIR\>/\<modname\>.so will be tried and if this fails
+ * \<MODS_DIR\>/\<modname\>/\<modname\>.so
+ * If mod_path contain a '/' it is assumed to be the
+ * path to the module and tried first. If fails and mod_path is not
+ * absolute path (not starting with '/') then will try:
+ * \<MODS_DIR\>/mod_path
+ * @param mod_path path or module name
+ * @return 0 on success , <0 on error
+ */
+int load_module(char* mod_path)
+{
+ void* handle;
+ char* error;
+ mod_register_function mr;
+ module_exports_t* exp;
+ struct sr_module* t;
+ int dlflags;
+ int new_dlflags;
+ int retries;
+ char* path = NULL;
+ str expref;
+ char exbuf[64];
+ char* mdir;
+
+#ifndef RTLD_NOW
+/* for openbsd */
+#define RTLD_NOW DL_LAZY
+#endif
+
+ if(ksr_locate_module(mod_path, &path)<0) {
+ return -1;
+ }
+
LM_DBG("trying to load <%s>\n", path);
retries=2;
diff --git a/src/core/sr_module.h b/src/core/sr_module.h
index 1d3150b326..8de9026c2a 100644
--- a/src/core/sr_module.h
+++ b/src/core/sr_module.h
@@ -549,4 +549,6 @@ int destroy_modules_phase(void);
int ksr_shutdown_phase_init(void);
int ksr_shutdown_phase(void);
+int ksr_locate_module(char *mod_path, char **new_path);
+
#endif /* sr_module_h */
Hello,
I am considering to release Kamailio v5.4.4 sometime next week, likely
on Monday, February 15, 2020. This is the usual heads up notification to
see if anyone is aware of issues not yet reported to bug tracker and if
yes, do it as soon as possible to give them a chance to be fixed.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla
Module: kamailio
Branch: master
Commit: e0dcb1617bedf13cc3fc76cf7f3b5cd516806bc8
URL: https://github.com/kamailio/kamailio/commit/e0dcb1617bedf13cc3fc76cf7f3b5cd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-11T17:33:14+01:00
htable: docs - not about use of event_route[htable:mod-init]
---
Modified: src/modules/htable/doc/htable_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/e0dcb1617bedf13cc3fc76cf7f3b5cd…
Patch: https://github.com/kamailio/kamailio/commit/e0dcb1617bedf13cc3fc76cf7f3b5cd…
---
diff --git a/src/modules/htable/doc/htable_admin.xml b/src/modules/htable/doc/htable_admin.xml
index 573d801bba..3a7f101bca 100644
--- a/src/modules/htable/doc/htable_admin.xml
+++ b/src/modules/htable/doc/htable_admin.xml
@@ -1528,6 +1528,18 @@ kamcmd htable.stats
once, after core and module initialization, but before &kamailio; forks any
child processes.
</para>
+ <para>
+ Note: do not expect to use functions from all other modules here,
+ even if they are loaded before the htable module, because many of
+ them initialize their runtime structures inside child init callbacks,
+ which are executed after this moment, when forking child processes.
+ For example, sqlops cannot be used, connections to database are
+ initialized in child init. Even more, it is recommended not to use
+ functions from other modules, because it can mess up what they
+ created in mod init callback and expect in child init callback. It
+ should be ok to use functions from htable module or assignment
+ operations.
+ </para>
<programlisting format="linespecific">
...
event_route[htable:mod-init] {
### Description
CSeq fails to increment on CANCEL in v5.4.3. Possible regression of problem fixed in issue #918. Not reproducible in v5.3.8, nor in v5.5 nightly debian package.
_Note: I have another (production) system running v.5.4.1 that does not exhibit this behavior, so it's possible it broke in 5.4.2 or 5.4.3 specifically._
### Troubleshooting
Compared behavior of 5.4.3 with 5.3.8 and 5.5 nightly Debian packages.
#### Reproduction:
Using `track_cseq_updates` parameter in the Dialog module, the CSeq offset should be automatically tracked if the UAC module is performing authentication.
#### Log Messages
Provided as attachment.
#### SIP Traffic
Full SIP Dialog will be provided as attachment, but here is the call ladder from v5.4.3 illustrating that the Cseq in Frames 12, 14, 15, and 16 do not increment downstream after authentication. They should match the Cseq from the re-INVITE in frame 7. In v5.3.8 and v5.5-nightly, using the same configuration file the Cseq in frame 12 is 2, matching the Cseq in the re-INVITE, and the downstream party then recognizes the transaction and responds to the cancel.
```
213.173.185.50:5060 10.0.0.4:5060 65.254.44.194:5060
─────┬───────────── ─────────┬──────── ──────────┬─────────
#1 │ INVITE (SDP) Cseq:1 │ │
│ ──────────────────────────> │ │
#2 │ 100 trying -- your call is │ │
│ <────────────────────────── │ │
#3 │ │ INVITE (SDP) Cseq:1 │
│ │ ──────────────────────────> │
#4 │ │ 100 Trying │
│ │ <────────────────────────── │
#5 │ │ 407 Proxy Authentication R │
│ │ <────────────────────────── │
#6 │ │ ACK │
│ │ ──────────────────────────> │
#7 │ │ INVITE (SDP) Cseq:2 │
│ │ ──────────────────────────> │
#8 │ │ 100 Trying │
│ │ <────────────────────────── │
#9 │ │ 183 Session Progress (SDP) │
│ │ <────────────────────────── │
#10 │ 183 Session Progress (SDP) │ │
│ <────────────────────────── │ │
#11 │ CANCEL Cseq:1 │ │
│ ──────────────────────────> │ │
#12 │ │ CANCEL Cseq:1 │
│ │ ──────────────────────────> │
#13 │ 200 canceling │ │
│ <────────────────────────── │ │
#14 │ │ CANCEL Cseq:1 │
│ │ ────────────────────────>>> │
#15 │ │ CANCEL Cseq:1 │
│ │ ────────────────────────>>> │
#16 │ │ CANCEL Cseq:1 │
│ │ ────────────────────────>>> │
```
### Possible Solutions
This matches the description from issue #918.
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.4.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_BLACKLIST, 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 8.3.0
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
uname -a :
```
Linux aarenet-sipdir1 4.19.0-13-cloud-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
```
lsb_release -a:
```
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2637
Module: kamailio
Branch: 5.4
Commit: 807ff5d216ad0dd8a620201b49c125c9c26d3559
URL: https://github.com/kamailio/kamailio/commit/807ff5d216ad0dd8a620201b49c125c…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-02-12T16:16:30+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/htable/README
Modified: src/modules/rr/README
---
Diff: https://github.com/kamailio/kamailio/commit/807ff5d216ad0dd8a620201b49c125c…
Patch: https://github.com/kamailio/kamailio/commit/807ff5d216ad0dd8a620201b49c125c…
---
diff --git a/src/modules/htable/README b/src/modules/htable/README
index ca193e2213..85f19c7102 100644
--- a/src/modules/htable/README
+++ b/src/modules/htable/README
@@ -1165,6 +1165,16 @@ kamcmd htable.stats
items in hash tables. The event route is executed only once, after core
and module initialization, but before Kamailio forks any child
processes.
+
+ Note: do not expect to use functions from all other modules here, even
+ if they are loaded before the htable module, because many of them
+ initialize their runtime structures inside child init callbacks, which
+ are executed after this moment, when forking child processes. For
+ example, sqlops cannot be used, connections to database are initialized
+ in child init. Even more, it is recommended not to use functions from
+ other modules, because it can mess up what they created in mod init
+ callback and expect in child init callback. It should be ok to use
+ functions from htable module or assignment operations.
...
event_route[htable:mod-init] {
$sht(a=>x) = 1;
diff --git a/src/modules/rr/README b/src/modules/rr/README
index 9f3917c484..0ac7812437 100644
--- a/src/modules/rr/README
+++ b/src/modules/rr/README
@@ -370,7 +370,8 @@ modparam("rr", "ignore_sips", 1)
4.9. sockname_mode (int)
If set to 1, the Record-Route URI is built to contain socket name in
- 'sn' parameter.
+ 'sn' parameter and then it is used to lookup the local socket for Route
+ header processing.
Default value is 0.
@@ -502,8 +503,8 @@ remove_record_route();
5.5. record_route_preset(string [,string2])
- This function will put the string into Record-Route, don't use unless
- you know what you are doing.
+ This function will put the string params into Record-Route, avoid to
+ use it unless you know what you are doing.
Meaning of the parameters is as follows:
* string - String to be inserted into the first header field; it may
@@ -515,6 +516,13 @@ remove_record_route();
the outbound interface and the 'string2' param is pointing to the
inbound interface.
+ Note: The value of parameters must not contain the SIP protocol scheme
+ (sip: or sips:), one is added based on routing requirements. Thus the
+ value has to be like "address:port;parameters", the port and parameters
+ are optional. If the second parameter is provided, do not forget to add
+ the parameter "r2=on" so the proxy processes both corresponding Route
+ headers at once.
+
When the “outbound” module was loaded before this module this function
will determine whether outbound is required for the request and
generate and add a flow-token as the username part of the
@@ -559,9 +567,9 @@ record_route_advertised_address("1.2.3.4:5080");
Adds a parameter to the Record-Route URI (param must be in
“;name=value” format. The function may be called also before or after
- the record_route() or record_route_advertised_address() calls (see
- Section 5.3, “record_route([sparams])” or Section 5.6,
- “record_route_advertised_address(address)”)).
+ the record_route(), record_route_advertised_address(), and
+ record_route_preset() calls (see Section 5.3, “record_route([sparams])”
+ or Section 5.6, “record_route_advertised_address(address)”)).
Meaning of the parameters is as follows:
* param - String containing the URI parameter to be added. It must
Module: kamailio
Branch: master
Commit: 5727a6f1e67a699ebc79f3df248a4ffda52b66e4
URL: https://github.com/kamailio/kamailio/commit/5727a6f1e67a699ebc79f3df248a4ff…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-02-12T16:16:13+01:00
modules: readme files regenerated - rr ... [skip ci]
---
Modified: src/modules/rr/README
---
Diff: https://github.com/kamailio/kamailio/commit/5727a6f1e67a699ebc79f3df248a4ff…
Patch: https://github.com/kamailio/kamailio/commit/5727a6f1e67a699ebc79f3df248a4ff…
---
diff --git a/src/modules/rr/README b/src/modules/rr/README
index 4225d0dc37..0f6cd7fd32 100644
--- a/src/modules/rr/README
+++ b/src/modules/rr/README
@@ -373,7 +373,8 @@ modparam("rr", "ignore_sips", 1)
4.9. sockname_mode (int)
If set to 1, the Record-Route URI is built to contain socket name in
- 'sn' parameter.
+ 'sn' parameter and then it is used to lookup the local socket for Route
+ header processing.
Default value is 0.
- URL: https://github.com/kamailio/kamailio/commit/be0e0fc4da2a6a901cacda9b3574147…
Author: tsearle <tsearle(a)gmail.com>
Date: 2021-02-12T15:34:53+01:00
modules/siptrace: fix regression preventing variables to be used (#2588)
* modules/siptrace: fix regression preventing variables to be used
Commit fa7eb2a switched the 2 parameter version of sip_trace from
using the builtin fixup_spve_spve to the custom fixup method to
using the custom fixup_siptrace. As it is a custom fixup method,
the corresponding free method can not be auto-detected causing the
config parser to require the parameters to be a constant. This
patch adds a free method, allowing variables to be once again passed
as the 2nd parameter of this method (as well as fixing a memory leak
for the 3rd parameter).
* change free for parameter 3
Co-authored-by: Torrey Searle <tsearle(a)voxbone.com>
(cherry picked from commit 7c98d547996637a7bf1c7025c93142f574fe3ac9)
- URL: https://github.com/kamailio/kamailio/commit/91ae11588b6d038b97e803f4afaf44d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:41:06+01:00
core: added --no-atexit cli parameter
- skip atexit callbacks execution from external libraries which may access
destroyed shm memory causing crash on shutdown
(cherry picked from commit 9f12d314268d1d2cd990cb3c5556f79343869e47)
- URL: https://github.com/kamailio/kamailio/commit/eadd50a92bfe7fb0cdfa90276cdb5df…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:41:30+01:00
core: take in consideration --no-atexit for daemonize()
(cherry picked from commit 7ab2e85437482b4dba86937a29da025503450014)
- URL: https://github.com/kamailio/kamailio/commit/0dbdf13df804e26337a7b88b16f18c3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:41:42+01:00
core: use macro for exit variants based on --no-atexit
(cherry picked from commit 06aec5a81cb22d06ad3bf613a05951f91e7e21bc)
- URL: https://github.com/kamailio/kamailio/commit/c603f69179872775fcf8f35fd0a0d2c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2021-02-12T15:41:54+01:00
doc: update options at manpage
* put them in order too
(cherry picked from commit 377bb3bdfd20bedabbe0f92e53bdded44be267e9)
- URL: https://github.com/kamailio/kamailio/commit/97ba470451ecde8c97531fdce3ddd2e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:43:41+01:00
core: replaced --no-atexit with --atexit=val
- val can be y[es] or 1 to enable execution of atexit callbacks; n[o] or
0 to disable the execution of atexit callbacks
- default yes
- simplified ksr_exit() macro
(cherry picked from commit 9b1472275530ed4cc32a65cd247dc9997e8b964b)
- URL: https://github.com/kamailio/kamailio/commit/e4994b28b2052ff864c16aaa2305d73…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2021-02-12T15:43:58+01:00
doc: update manpage for atexit option
(cherry picked from commit 351efd29d332703e79104a106ade08c9d1df6e20)
- URL: https://github.com/kamailio/kamailio/commit/2f912a17d09a6e7aad89b5df4629a36…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:44:36+01:00
keepalive: check if the destinations list is initialized at runtime use
- do not initialize, because is no longer seen in all processes,
initialization must be done in mod init
(cherry picked from commit b2b7ec826055fd67ecf5ffb052afa609e0aa9e5b)
- URL: https://github.com/kamailio/kamailio/commit/1c6a04517d924d3f806573529f915a4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:53:45+01:00
core: more use of ksr_exit() macro to follow --atexit param
(cherry picked from commit 4f6243e8e6e2012af35aae67da7b93af2127f02c)
- URL: https://github.com/kamailio/kamailio/commit/1202f7ba0033a83ade2839cab06b2f2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:54:16+01:00
core: cfg.lex - overwrite yy_fatal_error() to use ksr_exit() macro
(cherry picked from commit 9f326234f40f2c02f4833647112c3a4f4912aa17)
- URL: https://github.com/kamailio/kamailio/commit/cfd9a30e5cad869c7188a524e24d1b6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:54:26+01:00
core: cfg.lex - declare auto-generated yy_fatal_error() with unused attribute
(cherry picked from commit 346d99d1f98178a71d482e5724135f65257427dd)
- URL: https://github.com/kamailio/kamailio/commit/58dfc4cb7e1de233dfb2ceed2fb2a17…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:54:36+01:00
core: main - terminate using ksr_exit() instead of return
(cherry picked from commit d8643cd2caf38aa1efaeff73783920fab1d9bf0d)
- URL: https://github.com/kamailio/kamailio/commit/bf8ab95cffdb1d2ab98c68ca84ad806…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:54:47+01:00
core: cfg.lex - removed __attribute__((unused))
- not supported on some distros
- workaround to avoid unused warning
(cherry picked from commit 20fdab545a5f5c3ef1b8d8c4c392acaf4f9e8aae)
- URL: https://github.com/kamailio/kamailio/commit/e4fd58083274a774dae528437a01200…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:55:03+01:00
cfg.lex: removed yynoreturn attribute for ksr_yy_fatal_error()
- it is defined only by newer flex version, resulting in compile
failure on older versions (e.g., centos 7)
(cherry picked from commit f230035d8275cbad8d7515f73ba242f77a7a16db)
- URL: https://github.com/kamailio/kamailio/commit/a36805a26aa84e865ba18260d94587b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:55:27+01:00
tls: fixed small typo in log message
(cherry picked from commit 3c1a454a1ac4fe8e668f709d3e278bbce59c51d3)
- URL: https://github.com/kamailio/kamailio/commit/bc65cba661747c960d6d62807e0bedf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:57:14+01:00
core: keep a global flag in shm for shut down phase
- set when destroy modules is starting
- useful to check from other processes if shut down started
(cherry picked from commit 6da946e4a3d6d6949dd6babe9cf3919edc0b4519)
- URL: https://github.com/kamailio/kamailio/commit/72b88989f359ddd14e83a7b2f8c1087…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T15:57:27+01:00
core: proper test when initializing _ksr_shutdown_phase shm pointer
(cherry picked from commit 27b2ddf926240b1dd269eb1d96767d73edf9c6e6)
- URL: https://github.com/kamailio/kamailio/commit/23d24f9db87e5b5d384af70e466df9d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:04:21+01:00
core: test if shm is initialized on early shutdown
(cherry picked from commit b7d42f248bef70a06d8ae23f4a7652fd3f0e4e61)
- URL: https://github.com/kamailio/kamailio/commit/57c9794350d36fe1965212bca2bd42f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:05:05+01:00
ctl: skip handling rpc commands if kamilio is in shutdown phase
- related to #2433
(cherry picked from commit 6d928b59a3dbd6eb291da3d3936be6e8f18588af)
- URL: https://github.com/kamailio/kamailio/commit/ee6b30c1556d4591ef92f8696e583a9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:05:17+01:00
ctl: fail when requested to process rpc commands in shutdown phase
(cherry picked from commit 2015cfdfd777085dad98a606fc41946af186db1b)
- URL: https://github.com/kamailio/kamailio/commit/f1a4f695e530e387e2f14d257263b7c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:06:07+01:00
core: initialize allocated _ksr_shutdown_phase pointer
(cherry picked from commit f27c2e06d7467c4c33ff289175862ae7614a3018)
- URL: https://github.com/kamailio/kamailio/commit/38dd7fd703f043c51756df936abc561…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:06:46+01:00
core: cfg.lex - do not destroy action if pre-fixup fails
- params might be in inconsistent state, shutdown is triggered which
cleans the pkg anyhow
- GH #2630
(cherry picked from commit dddd530ed9fa7b6ca8b31ff299105a53c39c1a5e)
- URL: https://github.com/kamailio/kamailio/commit/a0e796754a0e51f635d6bf899711294…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:07:10+01:00
rr: use rr params with record_route_preset()
- param buffer was checked, but not used
(cherry picked from commit 76b886da8ddf11a94a62850c19bad8c83bd113fc)
- URL: https://github.com/kamailio/kamailio/commit/2e6a4024ae35b95d3f4b777ec6eb346…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:07:19+01:00
rr: docs - note about format of record_route_preset() parameters
(cherry picked from commit f318fab629c308250531046d453a8ac76f80ca42)
- URL: https://github.com/kamailio/kamailio/commit/a61d308c4460afcaab19934ade23a7e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:07:28+01:00
rr: docs - added missing end tag for para introduced in previous commit
(cherry picked from commit f8e60bcba548b25657cc295f8a593adf371f9fda)
- URL: https://github.com/kamailio/kamailio/commit/73e849cb3e5771402fb1a9249457ae3…
Author: Juha Heinanen <jh(a)tutpro.com>
Date: 2021-02-12T16:07:36+01:00
Fixed typo.
(cherry picked from commit 2664a51c35a1e8b5adc4c7e6cedde60bc01f0b28)
- URL: https://github.com/kamailio/kamailio/commit/0f4eecdca36e9fc3311175a354a2404…
Author: Juha Heinanen <jh(a)tutpro.com>
Date: 2021-02-12T16:07:48+01:00
Improved README.
(cherry picked from commit 857e9deb4c2455ee2ea0c05446da54f97e1f0a63)
- URL: https://github.com/kamailio/kamailio/commit/e0461d1c4026dd2953e4352bea05864…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:08:02+01:00
htable: docs - not about use of event_route[htable:mod-init]
(cherry picked from commit e0dcb1617bedf13cc3fc76cf7f3b5cd516806bc8)
- URL: https://github.com/kamailio/kamailio/commit/48e84d70e42f17712e4718fc1ae9418…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:08:15+01:00
rr: compare sockname parameter name with the attribute name
(cherry picked from commit 86e8bfdee87558fcee3e5b821b506b934c6b6790)
- URL: https://github.com/kamailio/kamailio/commit/9f7cb97ded57e6980dcb86752484ed8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:08:40+01:00
core: define sockname attribute name
- used in the sockname r-r parameter
(cherry picked from commit 274d32651d7886b7f424239565a2714e2dd0991d)
- URL: https://github.com/kamailio/kamailio/commit/0e0d067be489296ccffbc0a44ca37c8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:15:11+01:00
rr: docs - more details for sockname_mode param
(cherry picked from commit 86a5f81b776eab3e2b9a3a5470094546b94253f7)
Module: kamailio
Branch: master
Commit: 86a5f81b776eab3e2b9a3a5470094546b94253f7
URL: https://github.com/kamailio/kamailio/commit/86a5f81b776eab3e2b9a3a547009454…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-02-12T16:14:18+01:00
rr: docs - more details for sockname_mode param
---
Modified: src/modules/rr/doc/rr_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/86a5f81b776eab3e2b9a3a547009454…
Patch: https://github.com/kamailio/kamailio/commit/86a5f81b776eab3e2b9a3a547009454…
---
diff --git a/src/modules/rr/doc/rr_admin.xml b/src/modules/rr/doc/rr_admin.xml
index 7916789a82..98bad1239f 100644
--- a/src/modules/rr/doc/rr_admin.xml
+++ b/src/modules/rr/doc/rr_admin.xml
@@ -317,7 +317,8 @@ modparam("rr", "ignore_sips", 1)
<title><varname>sockname_mode</varname> (int)</title>
<para>
If set to 1, the Record-Route URI is built to contain socket name in 'sn'
- parameter.
+ parameter and then it is used to lookup the local socket for Route header
+ processing.
</para>
<para>
<emphasis>