Module: kamailio
Branch: 5.3
Commit: f35c7fe0016fea44bbfa4d686f985cf5db4a3372
URL: https://github.com/kamailio/kamailio/commit/f35c7fe0016fea44bbfa4d686f985cf…
Author: Victor Seva <vseva(a)sipwise.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-03-15T08:50:54+01:00
db_redis: clean previous connection before trying to reconnect
(cherry picked from commit 78c8d084e30373aacc456fd41062b68e6e82ea6f)
(cherry picked from commit 2e0537ba306219df0ce71605848e811027c69a57)
(cherry picked from commit 78506f7f2dfcdbf2bc9e21168929437516a368bd)
---
Modified: src/modules/db_redis/redis_connection.c
---
Diff: https://github.com/kamailio/kamailio/commit/f35c7fe0016fea44bbfa4d686f985cf…
Patch: https://github.com/kamailio/kamailio/commit/f35c7fe0016fea44bbfa4d686f985cf…
---
diff --git a/src/modules/db_redis/redis_connection.c b/src/modules/db_redis/redis_connection.c
index 5a5887d658..bb7423fcbd 100644
--- a/src/modules/db_redis/redis_connection.c
+++ b/src/modules/db_redis/redis_connection.c
@@ -111,6 +111,11 @@ int db_redis_connect(km_redis_con_t *con) {
db = atoi(con->id->database);
reply = NULL;
+ if(con->con) {
+ LM_DBG("free old connection first\n");
+ redisFree(con->con);
+ }
+
// TODO: introduce require_master mod-param and check if we're indeed master
// TODO: on carrier, if we have db fail-over, the currently connected
// redis server will become slave without dropping connections?
Module: kamailio
Branch: 5.4
Commit: 78506f7f2dfcdbf2bc9e21168929437516a368bd
URL: https://github.com/kamailio/kamailio/commit/78506f7f2dfcdbf2bc9e21168929437…
Author: Victor Seva <vseva(a)sipwise.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-03-15T08:50:01+01:00
db_redis: clean previous connection before trying to reconnect
(cherry picked from commit 78c8d084e30373aacc456fd41062b68e6e82ea6f)
(cherry picked from commit 2e0537ba306219df0ce71605848e811027c69a57)
---
Modified: src/modules/db_redis/redis_connection.c
---
Diff: https://github.com/kamailio/kamailio/commit/78506f7f2dfcdbf2bc9e21168929437…
Patch: https://github.com/kamailio/kamailio/commit/78506f7f2dfcdbf2bc9e21168929437…
---
diff --git a/src/modules/db_redis/redis_connection.c b/src/modules/db_redis/redis_connection.c
index dd421a7844..d6c24163b1 100644
--- a/src/modules/db_redis/redis_connection.c
+++ b/src/modules/db_redis/redis_connection.c
@@ -112,6 +112,11 @@ int db_redis_connect(km_redis_con_t *con) {
db = atoi(con->id->database);
reply = NULL;
+ if(con->con) {
+ LM_DBG("free old connection first\n");
+ redisFree(con->con);
+ }
+
// TODO: introduce require_master mod-param and check if we're indeed master
// TODO: on carrier, if we have db fail-over, the currently connected
// redis server will become slave without dropping connections?
Module: kamailio
Branch: 5.5
Commit: 2e0537ba306219df0ce71605848e811027c69a57
URL: https://github.com/kamailio/kamailio/commit/2e0537ba306219df0ce71605848e811…
Author: Victor Seva <vseva(a)sipwise.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-03-15T08:49:14+01:00
db_redis: clean previous connection before trying to reconnect
(cherry picked from commit 78c8d084e30373aacc456fd41062b68e6e82ea6f)
---
Modified: src/modules/db_redis/redis_connection.c
---
Diff: https://github.com/kamailio/kamailio/commit/2e0537ba306219df0ce71605848e811…
Patch: https://github.com/kamailio/kamailio/commit/2e0537ba306219df0ce71605848e811…
---
diff --git a/src/modules/db_redis/redis_connection.c b/src/modules/db_redis/redis_connection.c
index dd421a7844..d6c24163b1 100644
--- a/src/modules/db_redis/redis_connection.c
+++ b/src/modules/db_redis/redis_connection.c
@@ -112,6 +112,11 @@ int db_redis_connect(km_redis_con_t *con) {
db = atoi(con->id->database);
reply = NULL;
+ if(con->con) {
+ LM_DBG("free old connection first\n");
+ redisFree(con->con);
+ }
+
// TODO: introduce require_master mod-param and check if we're indeed master
// TODO: on carrier, if we have db fail-over, the currently connected
// redis server will become slave without dropping connections?
When running kamdbctl create, it fails. The error is as show below. Can someone with knowledge please help me solve this.
/usr/share/kamailio/mysql$ kamdbctl create
MySQL password for root:
-e database engine 'mysql' loaded
-e \E[37;33mINFO: test server charset
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1682 (HY000) at line 1: Native table 'performance_schema'.'session_variables' has the wrong structure
mysql: [Warning] Using a password on the command line interface can be insecure.
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
/usr/sbin/kamdbctl: 117: [: =: unexpected operator
-e \E[37;33mINFO: creating database kamailio ...
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
-e \E[37;31mERROR: Creatin
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3055
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3055(a)github.com>
### Description
The ds_reload() function in dispatcher.c always returns -1, even when successful.
### Possible Solutions
I think a patch like the following would resolve the issue.
```
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 059df89123..83d6b45ee9 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -963,13 +963,15 @@ static int ds_reload(sip_msg_t *msg)
*ds_rpc_reload_time = time(NULL);
if(!ds_db_url.s) {
- if(ds_load_list(dslistfile) != 0)
+ if(ds_load_list(dslistfile) != 0) {
LM_ERR("Error reloading from list\n");
- return -1;
+ return -1;
+ }
} else {
- if(ds_reload_db() < 0)
+ if(ds_reload_db() < 0) {
LM_ERR("Error reloading from db\n");
- return -1;
+ return -1;
+ }
}
LM_DBG("reloaded dispatcher\n");
return 1;
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
5.5.3
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3054
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3054(a)github.com>
### Description
Ka servers A(172.22.247.37) and B(172.22.247.232) use the keepalive module to check if each other's status is available. When one server such as B is down, server A will still send about 16 OPTIONS messages. When A sends the 14th or 15th OPTIONS, ka on A will change B's status to down. At this point, if B restarts, B will reply 200OK to A’s OPTIONS message, and A will change B's status to alive, but A will not send OPTIONS message to B any more. Even if B dies later, B's status will be alive on A forever.
ps: if B is restart at the 14th OPTIONS or earlier, A will correctly send heartbeat OPTIONS to B later. if B is restart at the 16th or later, A will not change B's status to alive, and certainly will not sends OPTIONS to B anymore, but this is correct isn't it?
question is obviously B’s status is alive on A, but A sends no OPTIONS to B.
### Troubleshooting


#### Reproduction
1. set keepalive config ant A
```
loadmodule "keepalive.so"
modparam("keepalive","ping_interval",3)
modparam("keepalive","destination","172.22.247.232")
```
use ka_is_alive function check B's status.
2. restart A server and confirm that the OPTIONS status is correct.
3. stop the B server until the number of retran messages reaches 15.
4. restart B server, and check OPTIONS
#### Log Messages

#### SIP Traffic

at the time that the arrow points to, 172.22.247.232's status is 1(refers to the log above). but notice that there is no OPTIONS message to 172.22.247.232 anymore.


### Possible Solutions
### Additional Information
* **Operating System**:
```
Linux localhost.localdomain 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
kamailio 5.5.2
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3028
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3028(a)github.com>
hello all
we have seen a segmentation fault on a kamailio 5.4.4
```
#0 0x00007feb664346ad in print_lists (dlg=0x7feaa5f65290) at dlg_var.c:277
277 varlist = varlist->next;
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.6-13.el7.x86_64 cyrus-sasl-lib-2.1.26-20.el7_2.x86_64 elfutils-libelf-0.166-2.el7.x86_64 elfutils-libs-0.166-2.el7.x86_64 glibc-2.17-157.el7_3.5.x86_64 jansson-2.10-1.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libattr-2.4.46-12.el7.x86_64 libcap-2.22-8.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libcurl-7.29.0-35.el7.centos.x86_64 libev-4.15-7.el7.x86_64 libevent-2.0.21-4.el7.x86_64 libgcc-4.8.5-16.el7.x86_64 libidn-1.28-4.el7.x86_64 libselinux-2.5-6.el7.x86_64 libssh2-1.4.3-10.el7_2.1.x86_64 libuuid-2.23.2-33.el7_3.2.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 nspr-4.13.1-1.0.el7_3.x86_64 nss-3.28.4-1.2.el7_3.x86_64 nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 nss-util-3.28.4-1.0.el7_3.x86_64 openldap-2.4.40-13.el7.x86_64 openssl-libs-1.0.2k-19.el7.x86_64 pcre-8.32-15.el7_2.1.x86_64 systemd-libs-219-30.el7_3.9.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0 0x00007feb664346ad in print_lists (dlg=0x7feaa5f65290) at dlg_var.c:277
#1 0x00007feb664367ff in pv_set_dlg_variable (msg=0x7feb6a881bd8, param=0x7feb6adc85a0, op=254, val=0x7ffea166a7a0) at dlg_var.c:443
#2 0x00000000004bbaf2 in lval_pvar_assign (h=0x7ffea166bbd0, msg=0x7feb6a881bd8, lv=0x7feb6adc8668, rv=0x7feb6adc87e8) at core/lvalue.c:352
#3 0x00000000004bc5f0 in lval_assign (h=0x7ffea166bbd0, msg=0x7feb6a881bd8, lv=0x7feb6adc8668, rve=0x7feb6adc87e0) at core/lvalue.c:400
#4 0x0000000000487ddf in do_action (h=0x7ffea166bbd0, a=0x7feb6adc8f80, msg=0x7feb6a881bd8) at core/action.c:1455
#5 0x0000000000489b1b in run_actions (h=0x7ffea166bbd0, a=0x7feb6adc8338, msg=0x7feb6a881bd8) at core/action.c:1581
#6 0x000000000047c6d7 in do_action (h=0x7ffea166bbd0, a=0x7feb6adce4c0, msg=0x7feb6a881bd8) at core/action.c:1067
#7 0x0000000000489b1b in run_actions (h=0x7ffea166bbd0, a=0x7feb6adc3190, msg=0x7feb6a881bd8) at core/action.c:1581
#8 0x000000000048a25f in run_top_route (a=0x7feb6adc3190, msg=0x7feb6a881bd8, c=0x7ffea166bbd0) at core/action.c:1666
#9 0x00007feb69eab0a2 in reply_received (p_msg=0x7feb6a881bd8) at t_reply.c:2543
#10 0x000000000059dc77 in do_forward_reply (msg=0x7feb6a881bd8, mode=0) at core/forward.c:764
#11 0x000000000059f949 in forward_reply (msg=0x7feb6a881bd8) at core/forward.c:865
#12 0x00000000005f095a in receive_msg (
buf=0xacec80 <buf.7134> "SIP/2.0 100 Trying\r\nVia: SIP/2.0/UDP 79.170.70.13;branch=z9hG4bK7837.ffc6315fbd54de1e6a00b32fa1cc0eda.1\r\nVia: SIP/2.0/UDP 79.170.66.28:5080;received=79.170.66.28;rport=5080;branch=z9hG4bK83ve3c7ty27QF"..., len=426, rcv_info=0x7ffea166c6c0) at core/receive.c:509
#13 0x00000000004e3cd7 in udp_rcv_loop () at core/udp_server.c:543
#14 0x0000000000429f56 in main_loop () at main.c:1689
#15 0x0000000000434034 in main (argc=15, argv=0x7ffea166cf58) at main.c:2876
```
[Uploading core_kamailio_mia_osp_feb18.log…]()
could you please take a look to the attached full backtrace?
thanks a lot and regards
david
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3040
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3040(a)github.com>
Fix issues where a non-zero terminated string would get passed to `parse_user_data`.
<!-- 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
- [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 -->
- [X] 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 -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3050
-- Commit Summary --
* ims_registrar_scscf: use xmlParseMemory instead of xmlParseDoc
-- File Changes --
M src/modules/ims_registrar_scscf/userdata_parser.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3050.patchhttps://github.com/kamailio/kamailio/pull/3050.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3050
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3050(a)github.com>
Add the `deregistered` state to IMS_Registrar_events_enum_t, allowing the
registrar to distinguish between UE unregsitration, which do not require
a notification to be sent, and network-originated deregistration requests.
<!-- 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
- [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 #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3051
-- Commit Summary --
* ims_registrar_scscf: add a new contact state for notifications
-- File Changes --
M src/modules/ims_registrar_scscf/registrar_notify.c (5)
M src/modules/ims_registrar_scscf/registrar_notify.h (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3051.patchhttps://github.com/kamailio/kamailio/pull/3051.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3051
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3051(a)github.com>
Module: kamailio
Branch: master
Commit: 07b19ef0604a48148f1bb14787516334820e5a3a
URL: https://github.com/kamailio/kamailio/commit/07b19ef0604a48148f1bb1478751633…
Author: Kristiyan Peychev <kristiyan.peychev(a)flolive.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-11T10:28:22+01:00
ims_registrar_scscf: add a new contact state for notifications
Add the `deregistered` state to IMS_Registrar_events_enum_t, allowing the
registrar to distinguish between UE unregsitration, which do not require
a notification to be sent, and network-originated deregistration requests.
---
Modified: src/modules/ims_registrar_scscf/registrar_notify.c
Modified: src/modules/ims_registrar_scscf/registrar_notify.h
---
Diff: https://github.com/kamailio/kamailio/commit/07b19ef0604a48148f1bb1478751633…
Patch: https://github.com/kamailio/kamailio/commit/07b19ef0604a48148f1bb1478751633…
---
diff --git a/src/modules/ims_registrar_scscf/registrar_notify.c b/src/modules/ims_registrar_scscf/registrar_notify.c
index 761b014624..4dd6223431 100644
--- a/src/modules/ims_registrar_scscf/registrar_notify.c
+++ b/src/modules/ims_registrar_scscf/registrar_notify.c
@@ -495,6 +495,7 @@ int event_reg(udomain_t* _d, impurecord_t* r_passed, ucontact_t* c_passed, int e
//richard: we only use reg unreg expired and refresh
case IMS_REGISTRAR_CONTACT_UNREGISTERED:
+ case IMS_REGISTRAR_CONTACT_DEREGISTERED:
case IMS_REGISTRAR_CONTACT_UNREGISTERED_IMPLICIT:
case IMS_REGISTRAR_CONTACT_REGISTERED:
case IMS_REGISTRAR_CONTACT_REFRESHED:
@@ -1967,7 +1968,8 @@ str get_reginfo_partial(impurecord_t *r, ucontact_t *c, int event_type, unsigned
if (//richard we only use expired and unregistered
(event_type == IMS_REGISTRAR_CONTACT_EXPIRED ||
- event_type == IMS_REGISTRAR_CONTACT_UNREGISTERED)
+ event_type == IMS_REGISTRAR_CONTACT_UNREGISTERED ||
+ event_type == IMS_REGISTRAR_CONTACT_DEREGISTERED)
) {
//check if impu record has any other active contacts - if not then set this to terminated - if so then keep this active
//check if asserted is present in any of the path headers
@@ -2011,6 +2013,7 @@ str get_reginfo_partial(impurecord_t *r, ucontact_t *c, int event_type, unsigned
event = r_expired;
expires = 0;
break;
+ case IMS_REGISTRAR_CONTACT_DEREGISTERED:
case IMS_REGISTRAR_CONTACT_UNREGISTERED:
state = r_terminated;
event = r_unregistered;
diff --git a/src/modules/ims_registrar_scscf/registrar_notify.h b/src/modules/ims_registrar_scscf/registrar_notify.h
index 6bfc6d3ce3..04d4958488 100644
--- a/src/modules/ims_registrar_scscf/registrar_notify.h
+++ b/src/modules/ims_registrar_scscf/registrar_notify.h
@@ -116,7 +116,8 @@ typedef enum {
IMS_REGISTRAR_CONTACT_EXPIRED, /**< A contact has expired and will be removed */
IMS_REGISTRAR_CONTACT_UNREGISTERED, /**< User unregistered with Expires 0 */
IMS_REGISTRAR_CONTACT_UNREGISTERED_IMPLICIT, /**< User unregistered implicitly, ie not via explicit deregister */
- IMS_REGISTRAR_SUBSEQUENT_SUBSCRIBE
+ IMS_REGISTRAR_SUBSEQUENT_SUBSCRIBE,
+ IMS_REGISTRAR_CONTACT_DEREGISTERED, /**< User's registration was terminated with RTR */
} IMS_Registrar_events_enum_t;
extern IMS_Registrar_events_enum_t IMS_Registrar_events;
Module: kamailio
Branch: master
Commit: 0e0bdbf83c7f20bf1814fb58232f8c25e29dd94d
URL: https://github.com/kamailio/kamailio/commit/0e0bdbf83c7f20bf1814fb58232f8c2…
Author: Kristiyan Peychev <kristiyan.peychev(a)flolive.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-11T10:27:56+01:00
ims_registrar_scscf: use xmlParseMemory instead of xmlParseDoc
Fix issues where a non-zero terminated string would get passed to `parse_user_data`.
---
Modified: src/modules/ims_registrar_scscf/userdata_parser.c
---
Diff: https://github.com/kamailio/kamailio/commit/0e0bdbf83c7f20bf1814fb58232f8c2…
Patch: https://github.com/kamailio/kamailio/commit/0e0bdbf83c7f20bf1814fb58232f8c2…
---
diff --git a/src/modules/ims_registrar_scscf/userdata_parser.c b/src/modules/ims_registrar_scscf/userdata_parser.c
index 4880f0289c..d8b08b5491 100644
--- a/src/modules/ims_registrar_scscf/userdata_parser.c
+++ b/src/modules/ims_registrar_scscf/userdata_parser.c
@@ -916,7 +916,7 @@ static ims_subscription* parse_ims_subscription(xmlDocPtr doc, xmlNodePtr root)
/**
* Parses the user data XML and copies data into a new ims_subscription structure.
- * @param xml - the input xml (NB must be null terminated)
+ * @param xml - the input xml
* @returns the ims_subscription* on success or NULL on error
*/
ims_subscription *parse_user_data(str xml)
@@ -927,7 +927,7 @@ ims_subscription *parse_user_data(str xml)
if (!ctxtInit) parser_init(scscf_user_data_dtd,scscf_user_data_xsd);
doc=0;
- doc = xmlParseDoc((unsigned char *)xml.s);
+ doc = xmlParseMemory((unsigned char *)xml.s, xml.len);
if (!doc){
LM_ERR("This is not a valid XML <%.*s>\n", xml.len,xml.s);
goto error;
…es over TCP
<!-- 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
- [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 -->
- [x] 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 -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3048
-- Commit Summary --
* ims_ipsec_pcscf: fix sha1 algorithm and tcp connections for SIP Replies over TCP
-- File Changes --
M src/modules/ims_ipsec_pcscf/cmd.c (16)
M src/modules/ims_ipsec_pcscf/ipsec.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3048.patchhttps://github.com/kamailio/kamailio/pull/3048.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3048
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3048(a)github.com>
siptrace: add X-Siptrace headers when configured core callback mode and SIP URI traffic mirroring
- Added X-Siptrace headers in core callback mode for SIP URI traffic duplication,
headers also available in event route for filtering purporses.
<!-- 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
- [ ] 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
- [ ] 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
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3049
-- Commit Summary --
* siptrace: add X-Siptrace headers when configured core callback mode and SIP URI traffic mirroring
-- File Changes --
M src/modules/siptrace/siptrace.c (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3049.patchhttps://github.com/kamailio/kamailio/pull/3049.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3049
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3049(a)github.com>
<!-- 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
- [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 #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3043
-- Commit Summary --
* smsops: Fix ucs2-to-utf8 for Accent chars
-- File Changes --
M src/modules/smsops/smsops_impl.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3043.patchhttps://github.com/kamailio/kamailio/pull/3043.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3043
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3043(a)github.com>
<!-- 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 -->
This PR adds 1 UAC module function and 1 TM module modparam. It enables "uac:reply" event route trigger on timeout or non-2xx replies. Basically it:
- adds TMCB_ON_FAILURE callback for UAC
- copies the TM uac content into uas; thus failure route will have the uas to work with. => this part of the code was already there, i just enabled it via (another) modparam.
So far, is basically tested on our side, without any apparent issues. More testing will follow.
Please have a look on this and tell me what you think about it.
Thank you,
Stefan
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3047
-- Commit Summary --
* uac: add new function uac_req_send_fr()
* tm: Add enable_uac_fr modparam
-- File Changes --
M src/modules/tm/config.c (5)
M src/modules/tm/config.h (1)
M src/modules/tm/doc/params.xml (16)
M src/modules/tm/tm.c (1)
M src/modules/tm/uac.c (2)
M src/modules/uac/api.h (2)
M src/modules/uac/doc/uac_admin.xml (27)
M src/modules/uac/uac.c (1)
M src/modules/uac/uac_send.c (23)
M src/modules/uac/uac_send.h (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3047.patchhttps://github.com/kamailio/kamailio/pull/3047.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3047
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3047(a)github.com>
Module: kamailio
Branch: master
Commit: b3c301e1c99eb90df1533724442aef7991cd36bc
URL: https://github.com/kamailio/kamailio/commit/b3c301e1c99eb90df1533724442aef7…
Author: Stefan Mititelu <stefan-cristian.mititelu(a)1and1.ro>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-10T10:46:04+01:00
uac: trigger event route for failure and timeout
...when $uac_req(evroute) = 2
---
Modified: src/modules/uac/doc/uac_admin.xml
Modified: src/modules/uac/uac_send.c
---
Diff: https://github.com/kamailio/kamailio/commit/b3c301e1c99eb90df1533724442aef7…
Patch: https://github.com/kamailio/kamailio/commit/b3c301e1c99eb90df1533724442aef7…
---
diff --git a/src/modules/uac/doc/uac_admin.xml b/src/modules/uac/doc/uac_admin.xml
index 188d1b913e..3ce59d3e11 100644
--- a/src/modules/uac/doc/uac_admin.xml
+++ b/src/modules/uac/doc/uac_admin.xml
@@ -1241,11 +1241,20 @@ failure_route[REMOTE_AUTH] {
<function moreinfo="none">event_route[uac:reply]</function>
</title>
<para>
- Event route executed for the final reply of the branch for the
- request sent with uac_req_send(). The associated $uac_req(evroute)
- has to be set to 1. If the request is challenged for authentication
+ The associated $uac_req(evroute) can have either of the following values:
+ <itemizedlist>
+ <listitem><para>
+ <emphasis>1</emphasis> : event route executed for the <emphasis>final reply</emphasis> of the branch for the
+ request sent with uac_req_send(). If the request is challenged for authentication
with 401/407, then the event_route is executed twice, first for
401/407 and second for final reply of the transaction.
+ </para></listitem>
+ <listitem><para>
+ <emphasis>2</emphasis> : event route executed for <emphasis>failure</emphasis> of the branch for the
+ request sent with uac_req_send(). event route will execute also for timeout.
+ In order for this to work, please also enable TM module "enable_uac_fr" modparam.
+ </para></listitem>
+ </itemizedlist>
</para>
<example>
<title><function>event_route[uac:reply]</function> usage</title>
diff --git a/src/modules/uac/uac_send.c b/src/modules/uac/uac_send.c
index 43767c7804..887dc1b4a4 100644
--- a/src/modules/uac/uac_send.c
+++ b/src/modules/uac/uac_send.c
@@ -886,9 +886,21 @@ int uac_req_send(void)
return -1;
}
- uac_r.cb_flags = TMCB_LOCAL_COMPLETED;
- /* Callback function */
- uac_r.cb = uac_send_tm_callback;
+ switch (_uac_req.evroute)
+ {
+
+ case 2:
+ uac_r.cb_flags = TMCB_ON_FAILURE;
+ /* Callback function */
+ uac_r.cb = uac_resend_tm_callback;
+ break;
+ case 1:
+ default:
+ uac_r.cb_flags = TMCB_LOCAL_COMPLETED;
+ /* Callback function */
+ uac_r.cb = uac_send_tm_callback;
+ break;
+ }
/* Callback parameter */
uac_r.cbp = (void*)tp;
}
…tional response sent by callee
(INVITE,180 and BYE from callee instead CANCEL)
<!-- 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
- [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 -->
- [x] 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 -->
topos: handle BYE sent by callee during non connected call with provitional response sent by callee (INVITE,180 and BYE from callee instead CANCEL)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3046
-- Commit Summary --
* topos: handle BYE sent by callee during non connected call with provitional response sent by callee
-- File Changes --
M src/modules/topos/tps_msg.c (5)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3046.patchhttps://github.com/kamailio/kamailio/pull/3046.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3046
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3046(a)github.com>
Hello,
Kamailio SIP Server v5.4.8 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.7. 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.8.
Note that 5.4 is the second last stable branch, still officially maintained
by Kamailio development team. The latest stable branch is 5.5, with
v5.5.4 being release out of it.
For more details about version 5.4.8 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2022/03/kamailio-v5-4-8-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
Kamailio Advanced Training - Online
March 28-31, 2022 (Europe Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/
Hello,
I am planning to release a new version from branch 5.4, respectively
5.4.8, sometime next week, likely on Wednesday or Thursday (Mar 9/10, 2022).
If anyone is aware of issues not yet reported to bug tracker or missing
backports, report them in order to try to get the fixes in this release.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online
March 28-31, 2022 (Europe Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/
<!-- 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 -->
Enable UTC time format for expires and last_modified columns.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3036
-- Commit Summary --
* p_usrloc: add UTC_timestamps parameter
-- File Changes --
M src/modules/p_usrloc/doc/p_usrloc_admin.xml (22)
M src/modules/p_usrloc/p_usrloc_mod.c (18)
M src/modules/p_usrloc/p_usrloc_mod.h (4)
M src/modules/p_usrloc/ucontact.c (12)
M src/modules/p_usrloc/udomain.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3036.patchhttps://github.com/kamailio/kamailio/pull/3036.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3036
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3036(a)github.com>
…ecific_Application_Id
<!-- 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
- [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 -->
- [X] 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 -->
I've ran into issues when working with certain HSS's that sent more AVP's than were allocated.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3031
-- Commit Summary --
* cdp: increase the amount of avps allocated when reading AVP_Vendor_Specific_Application_Id
-- File Changes --
M src/modules/cdp/peerstatemachine.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3031.patchhttps://github.com/kamailio/kamailio/pull/3031.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3031
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3031(a)github.com>
<!-- 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
- [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 -->
- [x] 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 -->
cplc: manage case where TZ environment variable is not set.
When TZ environment variable was not set, only the first time based CPL worked correctly.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3045
-- Commit Summary --
* cplc: manage case where TZ environment variable is not set.
-- File Changes --
M src/modules/cplc/cpl_switches.h (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3045.patchhttps://github.com/kamailio/kamailio/pull/3045.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3045
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3045(a)github.com>
<!-- 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
- [ 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 -->
- [x ] 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 -->
topos_redis: contact on A side is never updated on dialog update
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3044
-- Commit Summary --
* topos_redis: contact on A side is never updated on dialog update
-- File Changes --
M src/modules/topos_redis/topos_redis_storage.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3044.patchhttps://github.com/kamailio/kamailio/pull/3044.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3044
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3044(a)github.com>
Module: kamailio
Branch: master
Commit: 415f20804e423b503d5e0d1743e28c9f509f9c21
URL: https://github.com/kamailio/kamailio/commit/415f20804e423b503d5e0d1743e28c9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-03T09:03:12+01:00
blst: docs - small formatting updates
---
Modified: src/modules/blst/doc/blst_functions.xml
---
Diff: https://github.com/kamailio/kamailio/commit/415f20804e423b503d5e0d1743e28c9…
Patch: https://github.com/kamailio/kamailio/commit/415f20804e423b503d5e0d1743e28c9…
---
diff --git a/src/modules/blst/doc/blst_functions.xml b/src/modules/blst/doc/blst_functions.xml
index 96b4b6c389..48e7d59b6e 100644
--- a/src/modules/blst/doc/blst_functions.xml
+++ b/src/modules/blst/doc/blst_functions.xml
@@ -38,15 +38,15 @@ else
</title>
<para>
Adds the source of the current message to the blocklist for
- the time interval specified in the <emphasis>Retry-After</emphasis>
+ the time interval specified in the <emphasis>Retry-After</emphasis>
header.
- If the <emphasis>Retry-After</emphasis> header is missing, it will
+ If the <emphasis>Retry-After</emphasis> header is missing, it will
fail (returns false).
- If the <emphasis>Retry-After</emphasis> value is less than
- <varname>min</varname>, then <varname>min</varname> seconds will be
+ If the <emphasis>Retry-After</emphasis> value is less than
+ <varname>min</varname>, then <varname>min</varname> seconds will be
used instead.
If the <emphasis>Retry-After</emphasis> value is greater than
- <varname>max</varname>, then <varname>max</varname> seconds will be
+ <varname>max</varname>, then <varname>max</varname> seconds will be
used instead.
</para>
<example>
@@ -117,7 +117,7 @@ if (msg_status==503){ # blocklist 503 source for Retry-After seconds
works for local replies to the current message.
</para>
<para>
- The variants of these functions with no parameters will ignore
+ The variants of these functions with no parameters will ignore
everything (equivalent to passing 0xff).
</para>
<para>
<!--
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
```
apt install kamailio kamailio-*
find /usr/lib/x86_64-linux-gnu/kamailio/modules -name jwt.so
and nothing.
```
<!--
-->
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(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 fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
kamailio5.5.2
```
* **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 `lsb_release -a` and `uname -a`)
-->
```
debian10
```
--
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/2883
Module: kamailio
Branch: 5.5
Commit: 42b80a2cf0fa1b2e7192ade5844df670a49480ff
URL: https://github.com/kamailio/kamailio/commit/42b80a2cf0fa1b2e7192ade5844df67…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-02T10:15:05+01:00
core: fixed comment typo
(cherry picked from commit c37ccdc6e3bad0af4644941a872f510c51936c58)
---
Modified: src/core/sr_module.h
---
Diff: https://github.com/kamailio/kamailio/commit/42b80a2cf0fa1b2e7192ade5844df67…
Patch: https://github.com/kamailio/kamailio/commit/42b80a2cf0fa1b2e7192ade5844df67…
---
diff --git a/src/core/sr_module.h b/src/core/sr_module.h
index 99c1dc1de1..df47e18965 100644
--- a/src/core/sr_module.h
+++ b/src/core/sr_module.h
@@ -154,7 +154,7 @@ typedef int (*param_func_t)( modparam_t type, void* val);
@warning child_init(PROC_MAIN) is again called
in the same process (main), but latter
(before tcp), so make sure you don't init things
- twice, bot in PROC_MAIN and PROC_INT */
+ twice, both in PROC_MAIN and PROC_INT */
#define PROC_NOCHLDINIT -128 /**< no child init functions will be called
if this rank is used in fork_process() */
Module: kamailio
Branch: 5.5
Commit: b83292042aae87c445e05c3f82231ca6d335cc96
URL: https://github.com/kamailio/kamailio/commit/b83292042aae87c445e05c3f82231ca…
Author: James Van Vleet <james(a)vanvleet.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-03-02T10:14:11+01:00
Erlang: Revert breaking change
Revert https://github.com/kamailio/kamailio/commit/6542a367638ec5f8a2b62994f8c309e…
xavp_add_xavp_value returns the root and not the xavp it added and that was the reason for the code the commit removed. Changed a variable name to help make that more clear.
Also related to https://github.com/kamailio/kamailio/issues/2069.
(cherry picked from commit 1ed58f0de4f7a3ab3a81dd84c1c3b94fa1df2c4b)
---
Modified: src/modules/erlang/pv_xbuff.c
---
Diff: https://github.com/kamailio/kamailio/commit/b83292042aae87c445e05c3f82231ca…
Patch: https://github.com/kamailio/kamailio/commit/b83292042aae87c445e05c3f82231ca…
---
diff --git a/src/modules/erlang/pv_xbuff.c b/src/modules/erlang/pv_xbuff.c
index 894c36784c..b19a22ac8e 100644
--- a/src/modules/erlang/pv_xbuff.c
+++ b/src/modules/erlang/pv_xbuff.c
@@ -86,11 +86,15 @@ sr_xavp_t *xbuff_new(str *name)
if(!xbuffs_root)
{
- xbuff = xavp_add_xavp_value(&xbuff_list,name,&xbuff_val,xavp_get_crt_list());
- } else {
- xbuff = xavp_get_child(&xbuff_list, name);
+ xbuffs_root = xavp_add_xavp_value(&xbuff_list,name,&xbuff_val,xavp_get_crt_list());
+ if (!xbuffs_root){
+ LM_ERR("cannot create xbuffs_root \n");
+ return NULL;
+ }
}
+ xbuff = xavp_get_child(&xbuff_list, name);
+
if (!xbuff) {
xbuff_val.type = SR_XTYPE_NULL;
Module: kamailio
Branch: master
Commit: eee5068e2f315b6d391e6fe7b6aef4875afcf574
URL: https://github.com/kamailio/kamailio/commit/eee5068e2f315b6d391e6fe7b6aef48…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-03-02T08:39:26+01:00
jwt: add missing tag in doc
error instroduced at aaa142d293105ef27f7e4b6143fc3fb18c9a5a75
---
Modified: src/modules/jwt/doc/jwt_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/eee5068e2f315b6d391e6fe7b6aef48…
Patch: https://github.com/kamailio/kamailio/commit/eee5068e2f315b6d391e6fe7b6aef48…
---
diff --git a/src/modules/jwt/doc/jwt_admin.xml b/src/modules/jwt/doc/jwt_admin.xml
index 45d98c7689..a72c518efe 100644
--- a/src/modules/jwt/doc/jwt_admin.xml
+++ b/src/modules/jwt/doc/jwt_admin.xml
@@ -115,6 +115,7 @@ modparam("jwt", "key_mode", 1)
added as string value.
</para>
</listitem>
+ <listitem>
<para>
headers - the list of headers to be added to JWT, in the format
"name1=value1;name2=value2;..." (same as the SIP parameters format).
Module: kamailio
Branch: master
Commit: 9d1f223c7705a7ed8d888f50f2611dea1649ffa5
URL: https://github.com/kamailio/kamailio/commit/9d1f223c7705a7ed8d888f50f2611de…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-03-01T14:01:17+01:00
modules: readme files regenerated - corex ... [skip ci]
---
Modified: src/modules/corex/README
---
Diff: https://github.com/kamailio/kamailio/commit/9d1f223c7705a7ed8d888f50f2611de…
Patch: https://github.com/kamailio/kamailio/commit/9d1f223c7705a7ed8d888f50f2611de…
---
diff --git a/src/modules/corex/README b/src/modules/corex/README
index d1721ffa84..dc28b471ec 100644
--- a/src/modules/corex/README
+++ b/src/modules/corex/README
@@ -249,10 +249,13 @@ modparam("corex", "alias_subdomains", "udp:sip-router.org:5060")
The format of the value follows the SIP params style:
"attr1=val1;attr2=val2;...". The attributes can be:
- * type - it can be "A" (IPv4) or "AAAA" (IPv6)
+ * type - it can be "A" (IPv4), "AAAA" (IPv6) or "SRV"
* name - the domain name
* addr - the IP address
* ttl - TTL value
+ * priority - priority value for SRV record
+ * weight - weight value for SRV record
+ * port - port value for SRV record
* flags - can be: 1 - the domain is unresolvable (like blocklisted);
2 - the record is permanent (never times out, never deleted, never
overwritten)
Module: kamailio
Branch: master
Commit: 78c8d084e30373aacc456fd41062b68e6e82ea6f
URL: https://github.com/kamailio/kamailio/commit/78c8d084e30373aacc456fd41062b68…
Author: Victor Seva <vseva(a)sipwise.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-03-01T10:35:23+01:00
db_redis: clean previous connection before trying to reconnect
---
Modified: src/modules/db_redis/redis_connection.c
---
Diff: https://github.com/kamailio/kamailio/commit/78c8d084e30373aacc456fd41062b68…
Patch: https://github.com/kamailio/kamailio/commit/78c8d084e30373aacc456fd41062b68…
---
diff --git a/src/modules/db_redis/redis_connection.c b/src/modules/db_redis/redis_connection.c
index 1166117961..5cf36ffb36 100644
--- a/src/modules/db_redis/redis_connection.c
+++ b/src/modules/db_redis/redis_connection.c
@@ -124,6 +124,11 @@ int db_redis_connect(km_redis_con_t *con) {
#endif
reply = NULL;
+ if(con->con) {
+ LM_DBG("free old connection first\n");
+ redisFree(con->con);
+ }
+
// TODO: introduce require_master mod-param and check if we're indeed master
// TODO: on carrier, if we have db fail-over, the currently connected
// redis server will become slave without dropping connections?
<!-- Kamailio Pull Request Template -->
#### 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 -->
- [X] PR should be backported to stable branches
- [X] Tested changes locally
- [X] Related to issue #3037
#### Description
I can not remember the last time I wrote any C which was likely a class assignment last century. Anyways I came across this issue and it seemed in reach to get the ball rolling. I know this PR needs more work but my goal is to share my progress to help move this feature forward.
Based on https://github.com/svaarala/duktape/tree/master/extras/module-node
added:
- duk_module_node.h
- duk_module_node.c
updated:
- app_jsdt_api.h
- app_jsdt_api.c
Included the extra header and initialize the bindings after 'load JS context' was created.
added `cb_resolve_module` to resolve the full file system path for requested_id and parent_id
added `cb_load_module` function which uses `jsdt_load_file` to load resolved file
With absolute and relative modules working I met my current requirements to allow breaking routing into multiple smaller files.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3038
-- Commit Summary --
* app_jsdt: add duk_module_node for JS module resolution
-- File Changes --
M src/modules/app_jsdt/app_jsdt_api.c (65)
M src/modules/app_jsdt/app_jsdt_api.h (3)
A src/modules/app_jsdt/duk_module_node.c (333)
A src/modules/app_jsdt/duk_module_node.h (17)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3038.patchhttps://github.com/kamailio/kamailio/pull/3038.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3038
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3038(a)github.com>
<!-- 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)
- [ ] New feature (non-breaking change which adds new functionality)
- [X] 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 -->
Commits are separated per change dedication, even though they concern the same component.
- core: add support of ICE media options to SDP parser
- core: improve an existing data structures cloning in the SDP parser
---
core: add support of ICE media options to SDP parser
In the current implementation only parsing of ICE candidate
attributes is supported, which makes it Possible to work
with ICE candidates and parameters specifically related per
candidate, but makes it Impossible to work
with ICE options of the media stream level (ICE options which
have an impact on the whole specific media stream).
ICE candidate attributes and ICE media options have different
dedication.
In order to target this matter, a new linked list is introduced
to store ICE media stream options.
Additionally, now when parsing media stream's attributes,
a couple of new helper functions have been introduced to
properly extract and store ICE media options:
- extract_ice_option()
- add_sdp_ice_opt()
The following extraction approaches are supported:
- multi-valued ICE options attribute (more than one value per a= header)
- one value per attribute (multiple a= headers with ICE options present)
Also now the way how a "zeroed" on-hold is detected is improved,
in case of the ICE (re)negotiation (when the connection address is equal
to '0.0.0.0', the media port is equal to '9' and ice-option 'trickle' is
present) the SDP is Not considered as an on-hold case, and it clearly
detects it's the ICE (re)negotiation (RFC 8840), which for e.g.
leads to a proper work of other side modules' functions (which use SDP
parser's data structures),
such as 'is_audio_on_hold()' from the textops.so module.
---
core: improve existing data structures cloning in the SDP parser
It's been noticed that the cloning of SDP session(s) and
SDP stream(s) structures doesn't allocate the ICE candidate attributes,
nor it allocates (recently introduced) ICE media stream options.
In order to target this a couple of new functions have been introduced:
- clone_sdp_opt_attr()
- clone_sdp_ice_attr()
And additionally the following functions have been improved, in order to
properly clone/free ICE candidate attributes and (recently introduced)
ICE media stream options:
- clone_sdp_stream_cell()
- free_cloned_sdp_stream()
- free_sdp()
- print_sdp_stream()
Additionally for a proper new structure length calculation, the following
function is fixed:
- clone_sdp_session_cell()
---
Tagging project members to review the changes: @miconda @henningw @linuxmaniac
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3034
-- Commit Summary --
* core: add support of ICE media options to SDP parser
* core: improve an existing data structures cloning in the SDP parser
-- File Changes --
M src/core/parser/sdp/sdp.c (290)
M src/core/parser/sdp/sdp.h (40)
M src/core/parser/sdp/sdp_helpr_funcs.c (60)
M src/core/parser/sdp/sdp_helpr_funcs.h (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3034.patchhttps://github.com/kamailio/kamailio/pull/3034.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3034
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3034(a)github.com>
Module: kamailio
Branch: master
Commit: 236fada43f610b910490f7e0c216ac9aa3d9480c
URL: https://github.com/kamailio/kamailio/commit/236fada43f610b910490f7e0c216ac9…
Author: Donat Zenichev <dzenichev(a)sipwise.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-02-28T09:13:21+01:00
core: add support of ICE media options to SDP parser
In the current implementation only parsing of ICE candidate
attributes is supported, which makes it Possible to work
with ICE candidates and parameters specifically related per
candidate, but makes it Impossible to work
with ICE options of the media stream level (ICE options which
have an impact on the whole specific media stream).
ICE candidate attributes and ICE media options have different
dedication.
In order to target this matter, a new linked list is introduced
to store ICE media stream options.
Additionally, now when parsing media stream's attributes,
a couple of new helper functions have been introduced to
properly extract and store ICE media options:
- extract_ice_option()
- add_sdp_ice_opt()
The following extraction approaches are supported:
- multi-valued ICE options attribute (more than one value per a= header)
- one value per attribute (multiple a= headers with ICE options present)
Also now the way how a "zeroed" on-hold is detected is improved,
in case of the ICE (re)negotiation (when the connection address is equal
to '0.0.0.0', the media port is equal to '9' and ice-option 'trickle' is
present) the SDP is Not considered as an on-hold case, and it clearly
detects it's the ICE (re)negotiation (RFC 8840), which for e.g.
leads to a proper work of other side modules' functions (which use SDP
parser's data structures),
such as 'is_audio_on_hold()' from the textops.so module.
---
Modified: src/core/parser/sdp/sdp.c
Modified: src/core/parser/sdp/sdp.h
Modified: src/core/parser/sdp/sdp_helpr_funcs.c
Modified: src/core/parser/sdp/sdp_helpr_funcs.h
---
Diff: https://github.com/kamailio/kamailio/commit/236fada43f610b910490f7e0c216ac9…
Patch: https://github.com/kamailio/kamailio/commit/236fada43f610b910490f7e0c216ac9…
Module: kamailio
Branch: master
Commit: fe7d7c571b6c8d446cf66a1cf27d335d98f5f945
URL: https://github.com/kamailio/kamailio/commit/fe7d7c571b6c8d446cf66a1cf27d335…
Author: Donat Zenichev <dzenichev(a)sipwise.com>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-02-28T09:13:21+01:00
core: improve an existing data structures cloning in the SDP parser
It's been noticed that the cloning of SDP session(s) and
SDP stream(s) structures doesn't allocate the ICE candidate attributes,
nor it allocates (recently introduced) ICE media stream options.
In order to target this a couple of new functions have been introduced:
- clone_sdp_opt_attr()
- clone_sdp_ice_attr()
And additionally the following functions have been improved, in order to
properly clone/free ICE candidate attributes and (recently introduced)
ICE media stream options:
- clone_sdp_stream_cell()
- free_cloned_sdp_stream()
- free_sdp()
- print_sdp_stream()
Additionally for a proper new structure length calculation, the following
function is fixed:
- clone_sdp_session_cell()
---
Modified: src/core/parser/sdp/sdp.c
---
Diff: https://github.com/kamailio/kamailio/commit/fe7d7c571b6c8d446cf66a1cf27d335…
Patch: https://github.com/kamailio/kamailio/commit/fe7d7c571b6c8d446cf66a1cf27d335…
fixes the deleted space after "erlang"
introduced by a593f518dd62fd68c330eb42470ce5d5e1dce636
<!-- 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, ...)
- [ ] 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
- [ ] 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
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3041
-- Commit Summary --
* pkg::deb: Missing spaces
-- File Changes --
M pkg/kamailio/deb/bionic/rules (2)
M pkg/kamailio/deb/bullseye/rules (2)
M pkg/kamailio/deb/buster/rules (2)
M pkg/kamailio/deb/focal/rules (2)
M pkg/kamailio/deb/jessie/rules (2)
M pkg/kamailio/deb/stretch/rules (2)
M pkg/kamailio/deb/trusty/rules (2)
M pkg/kamailio/deb/xenial/rules (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3041.patchhttps://github.com/kamailio/kamailio/pull/3041.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3041
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3041(a)github.com>
### Description
Kamailio uses Ducktape 2 without module-node or module-ducktape, requiring all routing in a single file.
https://wiki.duktape.org/howtomodules
I'm attempting to add module-node support and creating this issue to track with PR.
Response from mailing list
> Hello,
>
> I didn't notice that require() was not in the duktape 2.x, I will try to add support for module-duktape when I get a chance. If someone wants to do it, pull requests are welcome -- it does not seem to be complex:
> * https://github.com/svaarala/duktape/tree/master/extras/module-duktape
> The module-node sounds interesting, but not being familiar with node.js, looks it need more work to enable it:
> * https://github.com/svaarala/duktape/tree/master/extras/module-node
>
> Cheers,
> Daniel
### Expected behavior
Include the required() JS file
`
var test = require('./test');
`
#### Actual observed behavior
Calling require() in a JSDT script throws TypeError: undefined not callable
#### Log Messages
```
ERROR: app_jsdt [app_jsdt_api.c:448]: jsdt_kemi_load_script(): failed running: TypeError: undefined not callable
```
### Possible Solutions
I played around a little with `module-duktape` but wasn't smart enough to define a `Duktape.modSearch()` that would work as desired. I'm probably missing something obvious. I've recently been playing with `asterisk/node-ari-client` which got me curious if `module-node` might be more aligned with thinking.
### Additional Information
* **Kamailio Version** - kamailio 5.5.4
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3037
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3037(a)github.com>
Module: kamailio
Branch: master
Commit: c37ccdc6e3bad0af4644941a872f510c51936c58
URL: https://github.com/kamailio/kamailio/commit/c37ccdc6e3bad0af4644941a872f510…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-25T09:13:46+01:00
core: fixed comment typo
---
Modified: src/core/sr_module.h
---
Diff: https://github.com/kamailio/kamailio/commit/c37ccdc6e3bad0af4644941a872f510…
Patch: https://github.com/kamailio/kamailio/commit/c37ccdc6e3bad0af4644941a872f510…
---
diff --git a/src/core/sr_module.h b/src/core/sr_module.h
index 33f4f00095..251be938b0 100644
--- a/src/core/sr_module.h
+++ b/src/core/sr_module.h
@@ -160,7 +160,7 @@ void ksr_module_set_flag(unsigned int flag);
@warning child_init(PROC_MAIN) is again called
in the same process (main), but latter
(before tcp), so make sure you don't init things
- twice, bot in PROC_MAIN and PROC_INT */
+ twice, both in PROC_MAIN and PROC_INT */
#define PROC_NOCHLDINIT -128 /**< no child init functions will be called
if this rank is used in fork_process() */
hello all
we have seen a segmentation fault on a kamailio 5.4.4
```
#0 0x00007feb664346ad in print_lists (dlg=0x7feaa5f65290) at dlg_var.c:277
277 varlist = varlist->next;
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.6-13.el7.x86_64 cyrus-sasl-lib-2.1.26-20.el7_2.x86_64 elfutils-libelf-0.166-2.el7.x86_64 elfutils-libs-0.166-2.el7.x86_64 glibc-2.17-157.el7_3.5.x86_64 jansson-2.10-1.el7.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-8.el7.x86_64 libattr-2.4.46-12.el7.x86_64 libcap-2.22-8.el7.x86_64 libcom_err-1.42.9-9.el7.x86_64 libcurl-7.29.0-35.el7.centos.x86_64 libev-4.15-7.el7.x86_64 libevent-2.0.21-4.el7.x86_64 libgcc-4.8.5-16.el7.x86_64 libidn-1.28-4.el7.x86_64 libselinux-2.5-6.el7.x86_64 libssh2-1.4.3-10.el7_2.1.x86_64 libuuid-2.23.2-33.el7_3.2.x86_64 libxml2-2.9.1-6.el7_2.3.x86_64 nspr-4.13.1-1.0.el7_3.x86_64 nss-3.28.4-1.2.el7_3.x86_64 nss-softokn-freebl-3.16.2.3-14.4.el7.x86_64 nss-util-3.28.4-1.0.el7_3.x86_64 openldap-2.4.40-13.el7.x86_64 openssl-libs-1.0.2k-19.el7.x86_64 pcre-8.32-15.el7_2.1.x86_64 systemd-libs-219-30.el7_3.9.x86_64 xz-libs-5.2.2-1.el7.x86_64 zlib-1.2.7-17.el7.x86_64
(gdb) bt
#0 0x00007feb664346ad in print_lists (dlg=0x7feaa5f65290) at dlg_var.c:277
#1 0x00007feb664367ff in pv_set_dlg_variable (msg=0x7feb6a881bd8, param=0x7feb6adc85a0, op=254, val=0x7ffea166a7a0) at dlg_var.c:443
#2 0x00000000004bbaf2 in lval_pvar_assign (h=0x7ffea166bbd0, msg=0x7feb6a881bd8, lv=0x7feb6adc8668, rv=0x7feb6adc87e8) at core/lvalue.c:352
#3 0x00000000004bc5f0 in lval_assign (h=0x7ffea166bbd0, msg=0x7feb6a881bd8, lv=0x7feb6adc8668, rve=0x7feb6adc87e0) at core/lvalue.c:400
#4 0x0000000000487ddf in do_action (h=0x7ffea166bbd0, a=0x7feb6adc8f80, msg=0x7feb6a881bd8) at core/action.c:1455
#5 0x0000000000489b1b in run_actions (h=0x7ffea166bbd0, a=0x7feb6adc8338, msg=0x7feb6a881bd8) at core/action.c:1581
#6 0x000000000047c6d7 in do_action (h=0x7ffea166bbd0, a=0x7feb6adce4c0, msg=0x7feb6a881bd8) at core/action.c:1067
#7 0x0000000000489b1b in run_actions (h=0x7ffea166bbd0, a=0x7feb6adc3190, msg=0x7feb6a881bd8) at core/action.c:1581
#8 0x000000000048a25f in run_top_route (a=0x7feb6adc3190, msg=0x7feb6a881bd8, c=0x7ffea166bbd0) at core/action.c:1666
#9 0x00007feb69eab0a2 in reply_received (p_msg=0x7feb6a881bd8) at t_reply.c:2543
#10 0x000000000059dc77 in do_forward_reply (msg=0x7feb6a881bd8, mode=0) at core/forward.c:764
#11 0x000000000059f949 in forward_reply (msg=0x7feb6a881bd8) at core/forward.c:865
#12 0x00000000005f095a in receive_msg (
buf=0xacec80 <buf.7134> "SIP/2.0 100 Trying\r\nVia: SIP/2.0/UDP 79.170.70.13;branch=z9hG4bK7837.ffc6315fbd54de1e6a00b32fa1cc0eda.1\r\nVia: SIP/2.0/UDP 79.170.66.28:5080;received=79.170.66.28;rport=5080;branch=z9hG4bK83ve3c7ty27QF"..., len=426, rcv_info=0x7ffea166c6c0) at core/receive.c:509
#13 0x00000000004e3cd7 in udp_rcv_loop () at core/udp_server.c:543
#14 0x0000000000429f56 in main_loop () at main.c:1689
#15 0x0000000000434034 in main (argc=15, argv=0x7ffea166cf58) at main.c:2876
```
[Uploading core_kamailio_mia_osp_feb18.log…]()
could you please take a look to the attached full backtrace?
thanks a lot and regards
david
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3039
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3039(a)github.com>
Module: kamailio
Branch: master
Commit: a63fde36f440b6d79cea6cdb0dfeee6258d96698
URL: https://github.com/kamailio/kamailio/commit/a63fde36f440b6d79cea6cdb0dfeee6…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2022-02-23T14:25:46+01:00
pkg/kamailio/deb: add kamailio-nats-modules to bookworm
https://tracker.debian.org/news/1305763/natsc-320-1-migrated-to-testing/
---
Modified: pkg/kamailio/deb/bookworm/control
Modified: pkg/kamailio/deb/bookworm/rules
Modified: pkg/kamailio/deb/debian/backports/bookworm
---
Diff: https://github.com/kamailio/kamailio/commit/a63fde36f440b6d79cea6cdb0dfeee6…
Patch: https://github.com/kamailio/kamailio/commit/a63fde36f440b6d79cea6cdb0dfeee6…
---
diff --git a/pkg/kamailio/deb/bookworm/control b/pkg/kamailio/deb/bookworm/control
index 8f425be82c..4e670a602c 100644
--- a/pkg/kamailio/deb/bookworm/control
+++ b/pkg/kamailio/deb/bookworm/control
@@ -29,6 +29,7 @@ Build-Depends:
libmongoc-dev,
libmono-2.0-dev [amd64 armel armhf i386 mipsel kfreebsd-amd64 kfreebsd-i386 ppc64 ppc64el s390x],
libmosquitto-dev,
+ libnats-dev,
libncurses5-dev,
libpcre3-dev,
libperl-dev,
@@ -840,6 +841,24 @@ Description: Libwebsockets module for the Kamailio SIP server
This package contains the lwcs module, which provides a client-side WebSockets
API through libwebsockets.
+Package: kamailio-nats-modules
+Architecture: any
+Multi-Arch: same
+Pre-Depends:
+ ${misc:Pre-Depends},
+Depends:
+ kamailio (= ${binary:Version}),
+ ${misc:Depends},
+ ${shlibs:Depends},
+Description: Nats module for the Kamailio SIP server
+ Kamailio is a very fast and flexible SIP (RFC3261)
+ server. Written entirely in C, Kamailio can handle thousands calls
+ per second even on low-budget hardware.
+ .
+ This package contains the nats module, which provides a NATS consumer for Kamailio.
+ NATS is a real time distributed messaging platform, more details about it can be
+ found at nats.io.
+
Package: kamailio-extra-modules
Architecture: any
Multi-Arch: same
diff --git a/pkg/kamailio/deb/bookworm/rules b/pkg/kamailio/deb/bookworm/rules
index ddf8846c9d..2161ac0bb4 100755
--- a/pkg/kamailio/deb/bookworm/rules
+++ b/pkg/kamailio/deb/bookworm/rules
@@ -21,7 +21,7 @@ include /usr/share/dpkg/buildflags.mk
export RADCLI=1
# modules not in the "main" kamailio package
-EXCLUDED_MODULES= java python nats
+EXCLUDED_MODULES= java python
# extra modules to skip, because they are not compilable now
# - regardless if they go to the main kamailio package or to some module package,
@@ -37,7 +37,7 @@ PACKAGE_GROUPS=mysql postgres berkeley unixodbc radius presence \
snmpstats carrierroute xmpp cpl redisgeoip geoip2 \
sqlite json mono ruby ims sctp \
tls outbound websocket autheph kazoo cnxcc \
- erlangsystemd phonenum mongodb rabbitmq python3 mqtt secsipid lwsc
+ erlang nats systemd phonenum mongodb rabbitmq python3 mqtt secsipid lwsc
# module groups to be packaged onto kamailio-extra-modules
EXTRA_GROUPS=gzcompress uuid ev jansson http_async
diff --git a/pkg/kamailio/deb/debian/backports/bookworm b/pkg/kamailio/deb/debian/backports/bookworm
index 21dafb2d11..1d39bd6509 100755
--- a/pkg/kamailio/deb/debian/backports/bookworm
+++ b/pkg/kamailio/deb/debian/backports/bookworm
@@ -35,13 +35,6 @@ sed -i -e '/^ python,/d' -e '/python-dev/d' \
sed -i -e 's/ python [ ,$]*//' ${DIST}/rules
sed -i -e '/^EXCLUDED_MODULES=/s/$/ python/' ${DIST}/rules
-# no libnats-dev
-sed -i -e '/^ libnats-dev,/d' \
- -e '/^Package: kamailio-nats-modules/,/^$/d' \
- ${DIST}/control
-sed -i -e 's/ nats [ ,$]*//' ${DIST}/rules
-sed -i -e '/^EXCLUDED_MODULES=/s/$/ nats/' ${DIST}/rules
-
wrap-and-sort -sat -d ${DIST}
# clean backports scripts
### Description
At the moment db_redis driver does not support interfacing with a redis cluster. This is a proposal to add support to it.
The db_redis module will get a new module parameter to enable cluster support (with default 0 - disabled):
```
modparam("db_redis", "cluster", 1)
```
The redis url used by other modules needs to specify all nodes in the cluster, and must NOT include redis database number (since it's not supported in cluster mode):
```
#!define DBURL_USRLOC "redis://10.0.1.1:6379,10.0.1.2:6379,10.0.1.3:6379"
```
The implementation is going to use the [hiredis-cluster](https://github.com/Nordix/hiredis-cluster) library (BSD license). If cluster mode is not enabled the module will behave like before, i.e. all calls to redis will use hiredis library directly.
If you find this proposal sensible, I'll start coding it.
Feedback is welcome, of course!
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2977
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/2977(a)github.com>
#### 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 -->
- [ ] 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
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
The IP checksum is part of the header and must be zeroed before checksumming.
This patch also silences another (benign) warning.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3035
-- Commit Summary --
* nathelper: Fix uninitialized data
-- File Changes --
M src/modules/nathelper/nathelper.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3035.patchhttps://github.com/kamailio/kamailio/pull/3035.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3035
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3035(a)github.com>
…ugh the ipsec tunnel
<!-- 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
- [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 -->
- [X] 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 -->
I've fixed an issue that would ignore legitimate replies that are sent by real-world UEs, causing calls to completely break due to timeouts.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3029
-- Commit Summary --
* ims_ipsec_pcscf: fix issues with UEs not sending certain replies through the ipsec tunnel
-- File Changes --
M src/modules/ims_ipsec_pcscf/cmd.c (108)
M src/modules/ims_ipsec_pcscf/ims_ipsec_pcscf_mod.c (13)
M src/modules/ims_ipsec_pcscf/ipsec.c (39)
D src/modules/ims_ipsec_pcscf/port_gen.c (227)
D src/modules/ims_ipsec_pcscf/port_gen.h (41)
M src/modules/ims_ipsec_pcscf/sec_agree.c (26)
M src/modules/ims_ipsec_pcscf/spi_gen.c (119)
M src/modules/ims_ipsec_pcscf/spi_gen.h (6)
M src/modules/ims_ipsec_pcscf/spi_list.c (72)
M src/modules/ims_ipsec_pcscf/spi_list.h (13)
M src/modules/ims_ipsec_pcscf/spi_list_tests.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3029.patchhttps://github.com/kamailio/kamailio/pull/3029.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3029
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3029(a)github.com>
When running as a P-CSCF a crash would occur with certain in-dialog
replies. The `msg->contact->parsed` pointer is unreliably reused and
would point to garbage.
<!-- 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
- [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 #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
When running as a P-CSCF a crash would occur with certain in-dialog replies. The `msg->contact->parsed` pointer is unreliably reused and would point to garbage.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3032
-- Commit Summary --
* ims: fix a crash with contact parsing
-- File Changes --
M src/lib/ims/ims_getters.c (21)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3032.patchhttps://github.com/kamailio/kamailio/pull/3032.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3032
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3032(a)github.com>
<!-- 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, ...)
- [ ] 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:
<!-- 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
- [x] Related to issue #2069
#### Description
The Erlang module is not working at all with newer Kamailio versions. One of the issues was already found in #2069 but no code was submitted. The second one I believe is related to https://github.com/kamailio/kamailio/commit/7bb2669528a819ec29a8193eebc9c64… in that the erlang module assumes that pvi.type is zero and uses that field to type the custom fields it manages and this commit starts populating pvi.type with a 4.
I don't have a solid grasp on pvapi.c so if the experts have a better way to fix this up I am all ears. These two commits do get the module working properly and I am able to use both the custom erlang PV terms and the RPC feature from my proxy now.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3024
-- Commit Summary --
* Erlang: Erlang module assumes pvi.type is zero
* Erlang: Revert breaking change
-- File Changes --
M src/modules/erlang/pv_atom.c (3)
M src/modules/erlang/pv_pid.c (3)
M src/modules/erlang/pv_ref.c (3)
M src/modules/erlang/pv_xbuff.c (13)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3024.patchhttps://github.com/kamailio/kamailio/pull/3024.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3024
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3024(a)github.com>
Module: kamailio
Branch: master
Commit: 1ed58f0de4f7a3ab3a81dd84c1c3b94fa1df2c4b
URL: https://github.com/kamailio/kamailio/commit/1ed58f0de4f7a3ab3a81dd84c1c3b94…
Author: James Van Vleet <james(a)vanvleet.net>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-18T15:40:04+01:00
Erlang: Revert breaking change
Revert https://github.com/kamailio/kamailio/commit/6542a367638ec5f8a2b62994f8c309e…
xavp_add_xavp_value returns the root and not the xavp it added and that was the reason for the code the commit removed. Changed a variable name to help make that more clear.
Also related to https://github.com/kamailio/kamailio/issues/2069.
---
Modified: src/modules/erlang/pv_xbuff.c
---
Diff: https://github.com/kamailio/kamailio/commit/1ed58f0de4f7a3ab3a81dd84c1c3b94…
Patch: https://github.com/kamailio/kamailio/commit/1ed58f0de4f7a3ab3a81dd84c1c3b94…
---
diff --git a/src/modules/erlang/pv_xbuff.c b/src/modules/erlang/pv_xbuff.c
index 894c36784c..b19a22ac8e 100644
--- a/src/modules/erlang/pv_xbuff.c
+++ b/src/modules/erlang/pv_xbuff.c
@@ -86,11 +86,15 @@ sr_xavp_t *xbuff_new(str *name)
if(!xbuffs_root)
{
- xbuff = xavp_add_xavp_value(&xbuff_list,name,&xbuff_val,xavp_get_crt_list());
- } else {
- xbuff = xavp_get_child(&xbuff_list, name);
+ xbuffs_root = xavp_add_xavp_value(&xbuff_list,name,&xbuff_val,xavp_get_crt_list());
+ if (!xbuffs_root){
+ LM_ERR("cannot create xbuffs_root \n");
+ return NULL;
+ }
}
+ xbuff = xavp_get_child(&xbuff_list, name);
+
if (!xbuff) {
xbuff_val.type = SR_XTYPE_NULL;
Module: kamailio
Branch: master
Commit: 537d11183d4907101e69d00e92e3530d2eb7cb5e
URL: https://github.com/kamailio/kamailio/commit/537d11183d4907101e69d00e92e3530…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-18T09:04:27+01:00
async: docs - fixed typos
---
Modified: src/modules/async/doc/async_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/537d11183d4907101e69d00e92e3530…
Patch: https://github.com/kamailio/kamailio/commit/537d11183d4907101e69d00e92e3530…
---
diff --git a/src/modules/async/doc/async_admin.xml b/src/modules/async/doc/async_admin.xml
index 4955f00036..7185cbff52 100644
--- a/src/modules/async/doc/async_admin.xml
+++ b/src/modules/async/doc/async_admin.xml
@@ -93,9 +93,9 @@ modparam("async", "workers", 2)
<para>
Enables millisecond timer for async_ms_sleep() and async_ms_route() functions.
The integer value is the timer resolution in milliseconds. A smaller timer
- resultion will generate a higher load on the system. If you set ms_timer
- to 1 you will get a timer with 1 millisecond resultion, a setting of 20
- provides a resultion of 20ms.
+ resolution will generate a higher load on the system. If you set ms_timer
+ to 1 you will get a timer with 1 millisecond resolution, a setting of 20
+ provides a resolution of 20ms.
</para>
<para>
<emphasis>
Hello,
Kamailio SIP Server v5.5.4 stable release is out.
This is a maintenance release of the latest stable branch, 5.5, that
includes fixes since the release of v5.5.3. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.5.x. Deployments running previous v5.5.x
versions are strongly recommended to be upgraded to v5.5.4.
For more details about version 5.5.4 (including links and guidelines to
download the tarball or from GIT repository), visit:
* https://www.kamailio.org/w/2022/02/kamailio-v5-5-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
ERROR: connect_unix_sock: connect(/var/run/kamailio//kamailio_ctl): No such file or directory [2]
Thanks
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3033
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3033(a)github.com>
#3029 ## Description
While the `kex` module exports a way to temporarily change the debug level, it cannot retrieve the current level.
### Expected behavior
I can write Python code like this:
```
if KSR.kex.getdebug() > 2:
... # generate detailed and somewhat-time-consuming debug output
... # which would just get dropped on the floor otherwise
```
#### Actual observed behavior
If there is a way to get Kamailio's current and/or configured debug level, I didn't find it.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3030
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3030(a)github.com>
Hello,
I am considering to release Kamailio v5.5.4 later this week, likely on
Thursday, Feb 17, 2022. 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
Kamailio Advanced Training - Online
Feb 21-24, 2022 (America Timezone)
* https://www.asipto.com/sw/kamailio-advanced-training-online/
Hello,
I want to announce the availability of sipexer v1.0.0 - a sip cli tool
that can facilitate testing and monitoring of SIP signalling systems. It
tries to have a modern approach, with a flexible templating system,
supporting both IPv4 and IPv6 with all the common transport layers,
respectively UDP, TCP, TLS and WebSocket (for WebRTC).
The project can be found at:
* https://github.com/miconda/sipexer
It is written in Go language for better portability, binaries for Linux,
MacOS and Windows are made available for download in the release page:
* https://github.com/miconda/sipexer/releases/tag/v1.0.0
Among its features:
* send OPTIONS request (quick SIP ping to check if server is alive)
* do registration and un-registration with customized expires value
and contact URI
* authentication with plain or HA1 passwords
* set custom SIP headers
* template system for building SIP requests
* fields in the templates can be set via command line parameters or a
JSON file
* variables for setting field values (e.g., random number, data,
time, environment variables, uuid, random string, …)
* simulate SIP calls at signalling layer (INVITE-wait-BYE)
* respond to requests coming during SIP calls (e.g., OPTIONS keepalives)
* send instant messages with SIP MESSAGE requests
* color output mode for easier troubleshooting
* support for many transport layers: IPv4 and IPv6, UDP, TCP, TLS and
WebSocket (for WebRTC)
* send SIP requests of any type (e.g., INFO, SUBSCRIBE, NOTIFY, …)
One usage example that could ease the testing of Kamailio is initiating
registrations or simulating calls over WebSocket without the need of
having a JavaScript soft phone application running in a web browser.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com
Module: kamailio
Branch: master
Commit: 6462571bbdf1270516243b6759a26625ca874b80
URL: https://github.com/kamailio/kamailio/commit/6462571bbdf1270516243b6759a2662…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-16T09:39:43+01:00
async: docs for async task data functions
---
Modified: src/modules/async/doc/async_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/6462571bbdf1270516243b6759a2662…
Patch: https://github.com/kamailio/kamailio/commit/6462571bbdf1270516243b6759a2662…
---
diff --git a/src/modules/async/doc/async_admin.xml b/src/modules/async/doc/async_admin.xml
index 1db4d60e9e..b0e5ec45bd 100644
--- a/src/modules/async/doc/async_admin.xml
+++ b/src/modules/async/doc/async_admin.xml
@@ -370,6 +370,74 @@ route[RESUME] {
exit;
}
...
+</programlisting>
+ </example>
+ </section>
+ <section id="async.f.async_task_data">
+ <title>
+ <function moreinfo="none">async_task_data(routename, data)</function>
+ </title>
+ <para>
+ Send the data to a asynchronous task process (in the first group) that
+ executes the route[rountename] and makes the data available via $async(data).
+ </para>
+ <para>
+ The current SIP message is not suspended and it is not available in
+ the asynchronous task process, a local faked SIP request is used there.
+ </para>
+ <para>
+ The parameters can contain variables.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>async_task_data</function> usage</title>
+ <programlisting format="linespecific">
+...
+async_workers_group="name=abc;workers=4;nonblock=0;usleep=0"
+...
+request_route {
+ ...
+ async_task_data("RESUME", "caller: $fU - callee: $tU");
+ ...
+}
+route[RESUME] {
+ xinfo("$async(data)\n");
+ exit;
+}
+...
+</programlisting>
+ </example>
+ </section>
+ <section id="async.f.async_task_group_data">
+ <title>
+ <function moreinfo="none">async_task_group_data(routename, groupname, data)</function>
+ </title>
+ <para>
+ Similar to async_task_route(), but allows to specify the name of the group
+ for asynchronous workers. See also 'async_workers_group' core global
+ parameter.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>async_task_group_data</function> usage</title>
+ <programlisting format="linespecific">
+...
+async_workers_group="name=abc;workers=4;nonblock=0;usleep=0"
+...
+request_route {
+ ...
+ async_task_data("RESUME", "abc", "caller: $fU - callee: $tU");
+ ...
+}
+route[RESUME] {
+ xinfo("$async(data)\n");
+ exit;
+}
+...
</programlisting>
</example>
</section>
Hi. I have simple call flow:
```
UAS PROXY UAS
1 | INVITE | |
|---------->| |
2 | 100 | |
|<----------| |
3 | | INVITE |
| |---------->|
4 | | 100 |
| |<----------|
5 | | 180 |
| |<----------|
6 | 180 | |
|<----------| |
7 | | 183 |
| |<----------|
8 | 183 | |
|<----------| |
9 | CANCEL | |
|---------->| |
10| | CANCEL |
| |---------->|
11| 200 | |
|<----------| |
12| | 200 |
| |<----------|
13| | 487 |
| |<----------|
14| | ACK |
| |---------->|
15| 487 | |
|<----------| |
16| ACK | |
|---------->| |
```
One of our customers complains that TO-TAGs in 183 (packet 8) and 200(packet 11) are not equal(their devices see 3 to-tag during 1 dialog). I found in RFC 3261that it's ok(https://datatracker.ietf.org/doc/html/rfc3261#section-16.10).
183 is forwarded from UAS(UAS sets to-tag) and 200 is generated by Kamailio. This is why to-tags in 183 and 200 are not equal.
Is it possible to use to-tag from master branch(ofc if we have received a reply from UAS and we have this tag)?
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3021
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3021(a)github.com>
kamailio[20903]: ERROR: <core> [core/tcp_main.c:3101]: tcp_init(): bind(2d, 0x7f7cff0ff610, 16) on xxx.xxx.xx.xx:5060 : Address already in use
#Sudo kamailio status
ERROR: connect_unix_sock: connect(/var/run/kamailio//kamailio_ctl): No such file or directory
Thanks
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3027
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3027(a)github.com>
<!--
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
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(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 fix.
-->
### 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 `lsb_release -a` and `uname -a`)
-->
```
(paste your output here)
```
Hello Experts,
please help me to change port service from default 5060 port into other port due to security reason. Since I have change port in kamailio.cfg file, but services cannot fly normally that shown client unable login online (status not online).

Besides, I need to run the kamailio services after install default kamailio, I have not found where procedure found in this installation process.
Thanks
Bp
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3026
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3026(a)github.com>
Module: kamailio
Branch: master
Commit: a78b2dcdb484dd3c58b5c3c59e6e627bf2947516
URL: https://github.com/kamailio/kamailio/commit/a78b2dcdb484dd3c58b5c3c59e6e627…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-02-15T08:16:18+01:00
modules: readme files regenerated - async ... [skip ci]
---
Modified: src/modules/async/README
---
Diff: https://github.com/kamailio/kamailio/commit/a78b2dcdb484dd3c58b5c3c59e6e627…
Patch: https://github.com/kamailio/kamailio/commit/a78b2dcdb484dd3c58b5c3c59e6e627…
---
diff --git a/src/modules/async/README b/src/modules/async/README
index e26f2ea584..744e98bf3e 100644
--- a/src/modules/async/README
+++ b/src/modules/async/README
@@ -35,6 +35,7 @@ Daniel-Constantin Mierla
4.3. async_sleep(seconds)
4.4. async_ms_sleep(milliseconds)
4.5. async_task_route(routename)
+ 4.6. async_task_group_route(routename, groupname)
List of Examples
@@ -46,6 +47,7 @@ Daniel-Constantin Mierla
1.6. async_ms_sleep usage
1.7. async_workers usage
1.8. async_task_route usage
+ 1.9. async_task_group_route usage
Chapter 1. Admin Guide
@@ -69,6 +71,7 @@ Chapter 1. Admin Guide
4.3. async_sleep(seconds)
4.4. async_ms_sleep(milliseconds)
4.5. async_task_route(routename)
+ 4.6. async_task_group_route(routename, groupname)
1. Overview
@@ -139,6 +142,7 @@ modparam("async", "ms_timer", 10)
4.3. async_sleep(seconds)
4.4. async_ms_sleep(milliseconds)
4.5. async_task_route(routename)
+ 4.6. async_task_group_route(routename, groupname)
4.1. async_route(routename, seconds)
@@ -266,10 +270,11 @@ route[REQUESTSHAPER] {
4.5. async_task_route(routename)
Continue the processing of the SIP request with the route[routename] in
- one of the processes from core asynchronous framework. The core
- parameter async_workers has to be set to enable asynchronous framework.
- The task is executed as soon as a process from asynchronous framework
- is idle, there is no wait time for the task like for async_route(...).
+ one of the processes from first group of core asynchronous framework.
+ The core parameter async_workers has to be set to enable asynchronous
+ framework. The task is executed as soon as a process from asynchronous
+ framework is idle, there is no wait time for the task like for
+ async_route(...).
To enable the core asynchronous framework, you need to set the
async_workers core parameter in the configuration file. See the core
@@ -307,3 +312,26 @@ route[RESUME] {
exit;
}
...
+
+4.6. async_task_group_route(routename, groupname)
+
+ Similar to async_task_route(), but allows to specify the name of the
+ group for asynchronous workers. See also 'async_workers_group' core
+ global parameter.
+
+ This function can be used from REQUEST_ROUTE.
+
+ Example 1.9. async_task_group_route usage
+...
+async_workers_group="name=abc;workers=4;nonblock=0;usleep=0"
+...
+request_route {
+ ...
+ async_task_route("RESUME", "abc");
+ ...
+}
+route[RESUME] {
+ t_relay();
+ exit;
+}
+...
Module: kamailio
Branch: master
Commit: 5f590180c3acc5f786c1d0667997c1b3b8924ed9
URL: https://github.com/kamailio/kamailio/commit/5f590180c3acc5f786c1d0667997c1b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-15T08:10:54+01:00
async: docs for async_task_group_route(routename, groupname)
---
Modified: src/modules/async/doc/async_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/5f590180c3acc5f786c1d0667997c1b…
Patch: https://github.com/kamailio/kamailio/commit/5f590180c3acc5f786c1d0667997c1b…
---
diff --git a/src/modules/async/doc/async_admin.xml b/src/modules/async/doc/async_admin.xml
index a56c60d7d2..1db4d60e9e 100644
--- a/src/modules/async/doc/async_admin.xml
+++ b/src/modules/async/doc/async_admin.xml
@@ -287,8 +287,8 @@ route[REQUESTSHAPER] {
</title>
<para>
Continue the processing of the SIP request with the route[routename]
- in one of the processes from core asynchronous framework. The core
- parameter async_workers has to be set to enable asynchronous
+ in one of the processes from first group of core asynchronous framework.
+ The core parameter async_workers has to be set to enable asynchronous
framework. The task is executed as soon as a process from asynchronous
framework is idle, there is no wait time for the task like for
async_route(...).
@@ -339,6 +339,37 @@ route[RESUME] {
exit;
}
...
+</programlisting>
+ </example>
+ </section>
+ <section id="async.f.async_task_group_route">
+ <title>
+ <function moreinfo="none">async_task_group_route(routename, groupname)</function>
+ </title>
+ <para>
+ Similar to async_task_route(), but allows to specify the name of the group
+ for asynchronous workers. See also 'async_workers_group' core global
+ parameter.
+ </para>
+ <para>
+ This function can be used from REQUEST_ROUTE.
+ </para>
+ <example>
+ <title><function>async_task_group_route</function> usage</title>
+ <programlisting format="linespecific">
+...
+async_workers_group="name=abc;workers=4;nonblock=0;usleep=0"
+...
+request_route {
+ ...
+ async_task_route("RESUME", "abc");
+ ...
+}
+route[RESUME] {
+ t_relay();
+ exit;
+}
+...
</programlisting>
</example>
</section>
Module: kamailio
Branch: 5.5
Commit: 3c3ffd803192b92f126f7f08119459593eafe30c
URL: https://github.com/kamailio/kamailio/commit/3c3ffd803192b92f126f7f081194595…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-02-14T15:17:04+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/xmlops/README
---
Diff: https://github.com/kamailio/kamailio/commit/3c3ffd803192b92f126f7f081194595…
Patch: https://github.com/kamailio/kamailio/commit/3c3ffd803192b92f126f7f081194595…
---
diff --git a/src/modules/xmlops/README b/src/modules/xmlops/README
index 0ecfcb5ca0..df62770802 100644
--- a/src/modules/xmlops/README
+++ b/src/modules/xmlops/README
@@ -93,11 +93,28 @@ modparam("xmlops", "buf_size", 8192)
3.2. xml_ns (str)
Register xml namespace prefix. Parameter value must have the format:
- 'prefix=uri'.
+ 'prefix=uri'. It can be set many times to cope with multiple namespaces
+ without prefix.
+
+ This is useful when it is needed to access XML documents that specify
+ xmlns without prefix, which is not XML-standard compliant, but it comes
+ with SIP SIMPLE presence bodies.
Example 1.2. Set xml_ns parameter
...
modparam("xmlops", "xml_ns", "rpid=urn:ietf:params:xml:ns:pidf:rpid")
+modparam("xmlops", "xml_ns", "pidf=urn:ietf:params:xml:ns:pidf")
+...
+$xml(x=>doc) = '<?xml version="1.0" encoding="utf-8"?>
+ <presence xmlns="urn:ietf:params:xml:ns:pidf" entity="sip:test@mydomain.com"
+>
+ <tuple id="86ae65b7-42de-4399-b635-295caad13aac">
+ <status><basic>none</basic></status>
+ </tuple>
+ </presence>';
+
+xinfo("status: $xml(x=>xpath:/pidf:presence/pidf:tuple/pidf:status/pidf:basic)\n
+");
...
4. Pseudo-Variables
Module: kamailio
Branch: 5.5
Commit: 78710d9da5cfe117190694cd3b77ced54414a2e8
URL: https://github.com/kamailio/kamailio/commit/78710d9da5cfe117190694cd3b77ced…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-14T13:04:01+01:00
xmlops: docs - added the remark that xml_ns param can be set many times
(cherry picked from commit 56e26387b77536e6c9f13dd62e5aecabaaba2d9a)
---
Modified: src/modules/xmlops/doc/xmlops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/78710d9da5cfe117190694cd3b77ced…
Patch: https://github.com/kamailio/kamailio/commit/78710d9da5cfe117190694cd3b77ced…
---
diff --git a/src/modules/xmlops/doc/xmlops_admin.xml b/src/modules/xmlops/doc/xmlops_admin.xml
index d78247d310..d9a6e04a5d 100644
--- a/src/modules/xmlops/doc/xmlops_admin.xml
+++ b/src/modules/xmlops/doc/xmlops_admin.xml
@@ -68,7 +68,8 @@ modparam("xmlops", "buf_size", 8192)
<title><varname>xml_ns</varname> (str)</title>
<para>
Register xml namespace prefix. Parameter value must have the format:
- 'prefix=uri'.
+ 'prefix=uri'. It can be set many times to cope with multiple namespaces
+ without prefix.
</para>
<para>
This is useful when it is needed to access XML documents that specify
@@ -80,6 +81,7 @@ modparam("xmlops", "buf_size", 8192)
<programlisting format="linespecific">
<![CDATA[
...
+modparam("xmlops", "xml_ns", "rpid=urn:ietf:params:xml:ns:pidf:rpid")
modparam("xmlops", "xml_ns", "pidf=urn:ietf:params:xml:ns:pidf")
...
$xml(x=>doc) = '<?xml version="1.0" encoding="utf-8"?>
Module: kamailio
Branch: 5.5
Commit: 43b94264f81e54625ee90faa7f52b006b67a1b61
URL: https://github.com/kamailio/kamailio/commit/43b94264f81e54625ee90faa7f52b00…
Author: Adrian Bunk <bunk(a)debian.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-14T13:03:19+01:00
src/Makefile: Also stop compiling kamcmd from here
(cherry picked from commit c1335157c53ca014bbeec6de312f42d955221d58)
---
Modified: src/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/43b94264f81e54625ee90faa7f52b00…
Patch: https://github.com/kamailio/kamailio/commit/43b94264f81e54625ee90faa7f52b00…
---
diff --git a/src/Makefile b/src/Makefile
index 11be15fb2b..a6380c2283 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -202,7 +202,7 @@ cmodules=$(foreach mods,$(modules_dirs), $($(mods)))
# list of utils directories that should be compiled by make utils
-C_COMPILE_UTILS= ../utils/kamcmd
+C_COMPILE_UTILS= # kamcmd is now installed by ctl
# list of binaries that should be installed alongside
# (they should be created after make utils, see C_COMPILE_UTILS)
C_INSTALL_BIN= # kamcmd is now installed by ctl