looks as `do not fragment` flag is applied to TCP transport by default
Later will test on default config.
--
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/1510
Module: kamailio
Branch: 5.0
Commit: 49bd81ad7856dac9b2efd53597fb1c182de7440b
URL: https://github.com/kamailio/kamailio/commit/49bd81ad7856dac9b2efd53597fb1c1…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-04-25T18:31:25+02:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/jsonrpcs/README
Modified: src/modules/nathelper/README
---
Diff: https://github.com/kamailio/…
[View More]kamailio/commit/49bd81ad7856dac9b2efd53597fb1c1…
Patch: https://github.com/kamailio/kamailio/commit/49bd81ad7856dac9b2efd53597fb1c1…
---
diff --git a/src/modules/jsonrpcs/README b/src/modules/jsonrpcs/README
index d615babde5..57c8e1e69c 100644
--- a/src/modules/jsonrpcs/README
+++ b/src/modules/jsonrpcs/README
@@ -397,6 +397,7 @@ event_route[xhttp:request] {
Example 1.15. jsonrpc_exec usage
...
jsonrpc_exec('{"jsonrpc": "2.0", "method": "dispatcher.reload", "id": 1}');
+xlog("jsonrpc response code: $jsonrpl(code) - the body is: $jsonrpl(body)\n");
...
6. JSONRPC Commands
diff --git a/src/modules/nathelper/README b/src/modules/nathelper/README
index 38d00646e3..c47af074cd 100644
--- a/src/modules/nathelper/README
+++ b/src/modules/nathelper/README
@@ -204,7 +204,7 @@ Chapter 1. Admin Guide
from outside to inside); As many NATs do update the bind
timeout only on outbound traffic, the bind may expire and
closed.
- * SIP request - a stateless SIP request is sent to the contact
+ * SIP request - a stateless SIP request is sent to the UDP contact
address.
+ Advantages: bidirectional traffic through NAT, since each PING
request from Kamailio (inbound traffic) will force the SIP
[View Less]
- URL: https://github.com/kamailio/kamailio/commit/47e008c021c563c26b9cf47c13ef3c0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:11:31+02:00
db_mongodb: create projection field to set the list of returned column
(cherry picked from commit d50498cf483cd22ac4e62af5aaa86fc27654f640)
(cherry picked from commit cc92737d06359d1812ec7bed22e4c253ae7ba2e9)
- URL: https://github.com/kamailio/kamailio/commit/74f751565923668c5964f417549719b…
Author: Daniel-…
[View More]Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:11:43+02:00
db_mongodb: iterate on projection fields for matching cols in result
(cherry picked from commit aab4f5db964bf1980729ed8b7770f550bb86b72b)
(cherry picked from commit ece17deeba435ed19c16fc2a227d351fd6013f86)
- URL: https://github.com/kamailio/kamailio/commit/79e2934a8ac0880ba00b7eb7c40008b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:11:57+02:00
db_mongodb: use projection iterator to convert bson for result
(cherry picked from commit 899ab355fb58e22eaa02336e9b5b1f2f53dba375)
(cherry picked from commit 49dee7f498e1001ce3e29c1691a7ec322392baca)
- URL: https://github.com/kamailio/kamailio/commit/c1a57ed7fbbe9a487f5f6ccf4df7f98…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:12:29+02:00
kamctl: fixed the name of rpc command for dialplan reload
(cherry picked from commit 9b7bb4ea6c100f5f33d2dddc9061febf33c47f5e)
(cherry picked from commit 4c840b7e9144e0540e97be5c9d3444b38a901a27)
- URL: https://github.com/kamailio/kamailio/commit/794292b1d24a8ae615627d06d0305ec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:12:45+02:00
core: check return of dlsym() before dlerror() handling
- cope with the case when dlerror is not reset by dlsym
- related to GH #1465
(cherry picked from commit 045d44762ce7cd267e64849c1c138d45b1fa040f)
(cherry picked from commit 289eb37432bfc61855234893daa6be27d40f8788)
- URL: https://github.com/kamailio/kamailio/commit/a126490fca53d4f2b1cc6f5f877df55…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:12:56+02:00
app_perl: do dlerror() after dlsym() fails to find exports
- some OSes do not reset dlerror after a successful dlsym(), pointing to
an older error case
- reported by GH #1465
(cherry picked from commit 795edca9215391f7c8f646895c083f8ac8853341)
(cherry picked from commit 48c8f7751d701c8a6dd538280c5c1fa6129d141d)
- URL: https://github.com/kamailio/kamailio/commit/b017462a1a84b2e80e626bc2ca0d9ba…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:13:12+02:00
kamctl: set default PID_FILE to /var/run/kamailio/kamailio.pid
- this being now the path used by default kamailio options
(cherry picked from commit 6abd8472b764f88c5c054becb440fda8fff47349)
(cherry picked from commit 6e2ab8089fd4d4b3ca0a23e240765474e6648b3c)
- URL: https://github.com/kamailio/kamailio/commit/fac42c3c8b9e755bca0e6ee35bbaebf…
Author: kelchy <kelchy(a)gmail.com>
Date: 2018-04-25T18:13:29+02:00
db_mongodb: add error logger for failed query
(cherry picked from commit 2a5d66fda013197aa5fbe4828cc7f6e61a74a9d6)
(cherry picked from commit 63c93af189e7e5db92a392e0d176e71bda64290e)
- URL: https://github.com/kamailio/kamailio/commit/c30cbc31ce8c87c3cc2c60470272d6d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:13:43+02:00
db_mongodb: check mongo-c-driver version at least 1.5.0 to use projection
- reported by GH #1479
(cherry picked from commit cdbee5a536920c4fab3ec619c8467c152d6f110a)
(cherry picked from commit 5f5f2638b50e079717952b5b279529e7647ce684)
- URL: https://github.com/kamailio/kamailio/commit/5eada53be7c363627d53730518d314d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:13:57+02:00
nathelper: docs - mention UDP for SIP nat pinging contact addresses
(cherry picked from commit 82efea41d7a01c041ea6ff85cc864cfdf2fd1ba5)
(cherry picked from commit 2f66b1dfe12455534f94060a0f68bc3f8ac0f81d)
- URL: https://github.com/kamailio/kamailio/commit/eade4a27d8a72f18b8a1325da886078…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:14:14+02:00
misc/examples/kemi: enable lua script reload in example config
(cherry picked from commit e129965129b2377970a28fabd26b3be9b483c81b)
(cherry picked from commit 3994fcd94e1d3291f4d14083f12b85a3b11ca148)
- URL: https://github.com/kamailio/kamailio/commit/d0820114f286a36bd4a1675be6e243d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:14:24+02:00
auth_ephemeral: do pkg-config for libcrypto if exists
- discover all the libs to link against
- related to GH #1473
(cherry picked from commit 021e7e53585f78b56356c98f25bd731c51f96f9a)
(cherry picked from commit 5df0d505d220addf43f459b29cc80f9aecef19dc)
- URL: https://github.com/kamailio/kamailio/commit/17faf9e086891544a870befbe27c954…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:16:16+02:00
core: check for result of dlopen() pointers
(cherry picked from commit a3d9816d3881eb9743a14cb1306533469a821d47)
(cherry picked from commit 760aee932aafc7f4c0207c10aabb5a094fd975dd)
- URL: https://github.com/kamailio/kamailio/commit/5a216d183dfb2560da11ab3c74576f9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:16:49+02:00
jsonrpcs: example accessing the jsonrpc response for jsonrpc_exec()
(cherry picked from commit 0fcac52fc9e6445f986c9a5a9ee1b5230030035b)
(cherry picked from commit e4f1a229068e0cd774a32b4db4431aac6fbf5555)
- URL: https://github.com/kamailio/kamailio/commit/1a5a3258e27b996b94ade8cdbb897ee…
Author: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-04-25T18:16:58+02:00
ipops: Support for 192.0.0.0/29 as NATed source (pull request GH#1488)
(cherry picked from commit 3848b5286b74894ed162e1aae8c80ee3d703c21f)
(cherry picked from commit 7153e802288112658c6012488867596aba6232ac)
- URL: https://github.com/kamailio/kamailio/commit/a8c0d3dd36cb8d9cb8a3beacec34e30…
Author: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-04-25T18:17:20+02:00
nathelper: Support for 192.0.0.0/29 as NATed source (pull request GH#1488)
(cherry picked from commit 804d6b85bdbe55b32edacdbd895b0ad763bf619f)
(cherry picked from commit 742f4924eb515d6b481b8295fb611e723619ebe0)
- URL: https://github.com/kamailio/kamailio/commit/90f618da4214bd8c49fff9e5188001b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:17:32+02:00
dialog: skip printing profiles and vars in terminated state for rpc dialog list
- they can be delelted at that point, not being referenced by the same
field
(cherry picked from commit 8bc037bc87ced907b8b2e59a2c5fcb45291836fd)
(cherry picked from commit 9be00ceba0d814f6ad973279fc386d60b5c8e9ac)
- URL: https://github.com/kamailio/kamailio/commit/a2d82eb5c3128fc0babd6bc86ea0c5f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-25T18:17:50+02:00
app_lua: test if number of parameters is enough for kemi funtions
(cherry picked from commit cc661d776621a5f2d4370eb364402c2a53242cc7)
(cherry picked from commit a0f8f33c5197b4fee5c2dedc85abbdb9e836b152)
- URL: https://github.com/kamailio/kamailio/commit/8409b453c8c236bced02884f0bd22f3…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2018-04-25T18:18:35+02:00
ndb_mongodb: fix deprecation warning
Since 1.5.0 mongoc_collection_find() is deprecated
> http://mongoc.org/libmongoc/1.5.0/mongoc_collection_find.html
(cherry picked from commit c70d831aee5a95613de69568d8f1863788e0a074)
(cherry picked from commit 11ee34a0edca1eaf942fdf9825f1a75c3f2f5648)
- URL: https://github.com/kamailio/kamailio/commit/9b77b620e5d8b20f37790e22a59a7d3…
Author: Dmitri Savolainen <savolainen(a)erinaco.ru>
Date: 2018-04-25T18:18:48+02:00
dialog: restore keep-alive after restart
(cherry picked from commit a821ff61029a4e8a9f220d60f95bd7b5a545f9b4)
(cherry picked from commit ffa97a1b920df367e23f88cd6c6a4bdb9401fec4)
- URL: https://github.com/kamailio/kamailio/commit/bc2e4133f18113483b2d3ab9fee6d5d…
Author: Dmitri Savolainen <savolainen(a)erinaco.ru>
Date: 2018-04-25T18:19:00+02:00
dialog: typo fix for DLG_IFLAG_DMQ_SYNC flag value
(cherry picked from commit ad427fc19c56110f66df86b7b49e23c00313610a)
(cherry picked from commit b89f643e12ac6359b4ffd9c173fee4870992b31a)
- URL: https://github.com/kamailio/kamailio/commit/527283593baa3d3e7321b0f3904d4a7…
Author: lyokha <alexey.radkov(a)gmail.com>
Date: 2018-04-25T18:19:25+02:00
textops: reinitialize new tr_param_t object for tr_txt_parse_re()
- avoid segfault when running fparam_free_restore() on
such an object immediately after creation, because its field "next"
contains garbage
(cherry picked from commit 38b8fbdf940b273cf541678fd22af7dd4d63ab3d)
(cherry picked from commit 5f5f7fd506bbde1ac159cbebf133e499dc06427a)
[View Less]
Set of errors during kamailio build on alpine.
```
CC (gcc) [M tls.so] tls_verify.o
CC (gcc) [M tls.so] tls_ct_wrq.o
CC (gcc) [M tls.so] tls_rpc.o
CC (gcc) [M tls.so] tls_bio.o
tls_bio.c:88:14: error: static declaration of 'BIO_get_data' follows non-static declaration
static void *BIO_get_data(BIO *b)
^~~~~~~~~~~~
In file included from tls_bio.h:27:0,
from tls_bio.c:25:
/usr/include/openssl/bio.h:608:8: note: previous declaration of 'BIO_get_data' …
[View More]was here
void *BIO_get_data(BIO *a);
^~~~~~~~~~~~
tls_bio.c:92:13: error: static declaration of 'BIO_set_data' follows non-static declaration
static void BIO_set_data(BIO *b, void *ptr)
^~~~~~~~~~~~
In file included from tls_bio.h:27:0,
from tls_bio.c:25:
/usr/include/openssl/bio.h:609:7: note: previous declaration of 'BIO_set_data' was here
void BIO_set_data(BIO *a, void *ptr);
^~~~~~~~~~~~
tls_bio.c:96:13: error: static declaration of 'BIO_set_init' follows non-static declaration
static void BIO_set_init(BIO *b, int init)
^~~~~~~~~~~~
In file included from tls_bio.h:27:0,
from tls_bio.c:25:
/usr/include/openssl/bio.h:610:7: note: previous declaration of 'BIO_set_init' was here
void BIO_set_init(BIO *a, int init);
^~~~~~~~~~~~
make[2]: *** [../../Makefile.rules:100: tls_bio.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:511: modules] Error 1
make: *** [Makefile:27: all] Error 2
make[1]: Leaving directory '/usr/src/kamailio/pkg/kamailio/alpine/src/kamailio-25c4b9eb56e0c75daaa98256c590947daa2b9906/src'
>>> ERROR: kamailio: all failed
>>> kamailio: Uninstalling dependencies...
(1/1) Purging .makedepends-kamailio (0)
OK: 448 MiB in 141 packages
pre_build hook failed! (1)
```
First failed build on commit 25c4b9eb56e0c75daaa98256c590947daa2b9906
Look as this commit not related to `tls` and think issue may be on alpine dist change.
--
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/1509
[View Less]
<!-- 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 …
[View More]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 -->
During query operations string fields inside result structure db1_res_t could be corrupted because of incorrect usage of bson memory.
This issue is reproduced when we need to read more than 150 documents from the database. So that is why this issue still exists.
Firstly bson_iter_utf8 function returns pointer to memory which is allocated inside bson memory and which is used multiple times. So the data must be copied into Kamailio memory instead storing that pointer. The pointer becomes invalid after some time.
Secondly, this pointer must not be freed by the caller of bson_iter_utf8. At the current version bson allocated pointer is freed by Kamailio function pkg_free like it is was allocated by pkg_malloc.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1508
-- Commit Summary --
* Fixed db_mongodb module. UTF8 string must be copied into Kamailio memory.
* Fixed indentation.
-- File Changes --
M src/modules/db_mongodb/mongodb_dbase.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1508.patchhttps://github.com/kamailio/kamailio/pull/1508.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1508
[View Less]
### Description
Hi everyone.
I integrate Kamailio with CGRateS and found a strange behaviour.
I made a call using Jitsi from 1001 to 1003 (configured before in CGRateS to disconnect after 12 seconds).
The call is disconnected correctly but from Kamailio got 3 CGR_CALL_END events with the same data
which in CGRateS generate an error because from these events CGRateS generate 3 cdrs and all 3 with the same unique key.
Is this a bug or is something wrong with the config?
Kamailio config : https:/…
[View More]/github.com/cgrates/cgrates/tree/master/data/tutorials/kamevapi/kama…
### NGREP Events between CGRateS and Kamailio
T 2018/04/24 07:55:14.200094 127.0.0.1:8448 -> 127.0.0.1:36774 [AP]
269:{"event":"CGR_AUTH_REQUEST",
.."tr_index":"12566",
.."tr_label":"1148670067",
.."cgr_subsystems":"*attributes;*resources;*accounts;*suppliers",
.."RequestType":"*prepaid",
.."Tenant":"cgrates.org",
.."Account":"1001",
.."Destination":"1003",
.."SetupTime":"1524570914"},
##
T 2018/04/24 07:55:14.227815 127.0.0.1:36774 -> 127.0.0.1:8448 [AP]
214:{"Event":"CGR_AUTH_REPLY","TransactionIndex":"12566","TransactionLabel":"1148670067","Attributes":"","ResourceAllocation":"SPECIAL_1003","MaxUsage":13,"Suppliers":"supplier2,supplier1","ThresholdHits":0,"Error":""},
##
T 2018/04/24 07:55:17.538695 127.0.0.1:8448 -> 127.0.0.1:36774 [AP]
306:{"event":"CGR_CALL_START",
.."h_entry":"226",
.."h_id":"8446",
.."cgr_subsystems":"*resources;*accounts",
.."OriginID":"f1c3db6e9aea754291eed5cdc944cdd2@0:0:0:0:0:0:0:0;2fc2c199",
.."RequestType":"*prepaid",
.."Tenant":"cgrates.org",
.."Account":"1001",
.."Destination":"1003",
.."AnswerTime":"1524570917"},
##
T 2018/04/24 07:55:29.546055 127.0.0.1:36774 -> 127.0.0.1:8448 [AP]
99:{"Event":"CGR_SESSION_DISCONNECT","HashEntry":"226","HashId":"8446","Reason":"INSUFFICIENT_CREDIT"},
##
T 2018/04/24 07:55:29.546285 127.0.0.1:8448 -> 127.0.0.1:36774 [AP]
285:{"event":"CGR_CALL_END",
.."cgr_subsystems":"*resources;*accounts",
.."OriginID":"f1c3db6e9aea754291eed5cdc944cdd2@0:0:0:0:0:0:0:0;2fc2c199",
.."RequestType":"*prepaid",
.."Tenant":"cgrates.org",
.."Account":"1001",
.."Destination":"1003",
.."AnswerTime":"1524570917",
.."Usage":"12"},
##
T 2018/04/24 07:55:29.546561 127.0.0.1:8448 -> 127.0.0.1:36774 [AP]
285:{"event":"CGR_CALL_END",
.."cgr_subsystems":"*resources;*accounts",
.."OriginID":"f1c3db6e9aea754291eed5cdc944cdd2@0:0:0:0:0:0:0:0;2fc2c199",
.."RequestType":"*prepaid",
.."Tenant":"cgrates.org",
.."Account":"1001",
.."Destination":"1003",
.."AnswerTime":"1524570917",
.."Usage":"12"},
##
T 2018/04/24 07:55:29.546664 127.0.0.1:8448 -> 127.0.0.1:36774 [AP]
285:{"event":"CGR_CALL_END",
.."cgr_subsystems":"*resources;*accounts",
.."OriginID":"f1c3db6e9aea754291eed5cdc944cdd2@0:0:0:0:0:0:0:0;2fc2c199",
.."RequestType":"*prepaid",
.."Tenant":"cgrates.org",
.."Account":"1001",
.."Destination":"1003",
.."AnswerTime":"1524570917",
.."Usage":"12"},
#
### Additional Information
```
kamailio -V
version: kamailio 5.1.3 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 4.9.2
```
* **Operating System**:
```
root@teo:/home/teo# cat /etc/debian_version
8.10
```
Thank you in advance
TeoV
--
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/1512
[View Less]
Hello,
Kamailio SIP Server v5.1.3 stable release is out.
This is a maintenance release of the latest stable branch, 5.1, that
includes fixes since the release of v5.1.2. There is no change to
database schema or configuration language structure that you have to do
on previous installations of v5.1.x. Deployments running previous v5.1.x
versions are strongly recommended to be upgraded to v5.1.3.
For more details about version 5.1.3 (including links and guidelines to
download the tarball or …
[View More]from GIT repository), visit:
* https://www.kamailio.org/w/2018/04/kamailio-v5-1-3-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.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
[View Less]
Just `memset()` this to `0`.
Without this kamailio segfaults when running `fparam_free_restore()` on a variable that contains transformations immediately after creation, because field `next` of the transformation contains garbage.
In my case this was variable which contained `re.subst` transformation. And below is the top of the backtrace.
```
#0 0x00000000005cba17 in tr_param_free (tp=0x292873257325203a) at core/pvapi.c:1804
#1 0x00000000005cb677 in tr_destroy (t=0x7f6387ed0c40) at core/…
[View More]pvapi.c:1742
#2 0x00000000005cb9c1 in tr_free (t=0x0) at core/pvapi.c:1786
#3 0x00000000005ca194 in pv_spec_destroy (spec=0x7f6387ed0b80) at core/pvapi.c:1570
#4 0x00000000005ca1b7 in pv_spec_free (spec=0x7f6387ed0b80) at core/pvapi.c:1578
#5 0x0000000000541820 in fparam_free_contents (fp=0x7f6387ed0ae0) at core/sr_module.c:1334
#6 0x0000000000541898 in fparam_free_restore (param=0x7f6387ed1168) at core/sr_module.c:1364
```
<!-- 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 -->
- [ ] 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 -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1506
-- Commit Summary --
* properly initialize new tr_param_t object
-- File Changes --
M src/modules/textops/txt_var.c (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1506.patchhttps://github.com/kamailio/kamailio/pull/1506.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1506
[View Less]
Module: kamailio
Branch: 5.1
Commit: e1fd2ed4bfdc2704f1c89f1b64d852599c0b6726
URL: https://github.com/kamailio/kamailio/commit/e1fd2ed4bfdc2704f1c89f1b64d8525…
Author: yuri-r <yuri.rootshtein(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-24T12:40:26+02:00
ims_charging: fixed check result code at mscc level (#1504)
* ims_charging: fixed check result code at mscc level
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control …
[View More]AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
* ims_charging: fixed check result code at mscc level
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
(cherry picked from commit 352440d299f1b9f431cc05397f4ea6a7b5967c8a)
---
Modified: src/modules/ims_charging/ims_ro.c
---
Diff: https://github.com/kamailio/kamailio/commit/e1fd2ed4bfdc2704f1c89f1b64d8525…
Patch: https://github.com/kamailio/kamailio/commit/e1fd2ed4bfdc2704f1c89f1b64d8525…
---
diff --git a/src/modules/ims_charging/ims_ro.c b/src/modules/ims_charging/ims_ro.c
index 735f5b30be..497f65dd72 100644
--- a/src/modules/ims_charging/ims_ro.c
+++ b/src/modules/ims_charging/ims_ro.c
@@ -1361,7 +1361,7 @@ static void resume_on_initial_ccr(int is_timeout, void *param, AAAMessage *cca,
create_cca_fui_avps(fui_action, redirecturi);
/* check result code at mscc level */
- if (ro_cca_data->mscc->resultcode != 2001) {
+ if (ro_cca_data->mscc->resultcode && ro_cca_data->mscc->resultcode != 2001) {
LM_DBG("CCA failure at MSCC level with resultcode [%d]\n", ro_cca_data->mscc->resultcode);
error_code = RO_RETURN_FALSE;
goto error1;
[View Less]
Module: kamailio
Branch: master
Commit: 352440d299f1b9f431cc05397f4ea6a7b5967c8a
URL: https://github.com/kamailio/kamailio/commit/352440d299f1b9f431cc05397f4ea6a…
Author: yuri-r <yuri.rootshtein(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-24T12:39:07+02:00
ims_charging: fixed check result code at mscc level (#1504)
* ims_charging: fixed check result code at mscc level
according to RFC 4006 the Result-Code in Multiple-Services-Credit-…
[View More]Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
* ims_charging: fixed check result code at mscc level
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though
the Result-Code on CCR itself is 2001 (SUCCESSFUL)
---
Modified: src/modules/ims_charging/ims_ro.c
---
Diff: https://github.com/kamailio/kamailio/commit/352440d299f1b9f431cc05397f4ea6a…
Patch: https://github.com/kamailio/kamailio/commit/352440d299f1b9f431cc05397f4ea6a…
---
diff --git a/src/modules/ims_charging/ims_ro.c b/src/modules/ims_charging/ims_ro.c
index 735f5b30be..497f65dd72 100644
--- a/src/modules/ims_charging/ims_ro.c
+++ b/src/modules/ims_charging/ims_ro.c
@@ -1361,7 +1361,7 @@ static void resume_on_initial_ccr(int is_timeout, void *param, AAAMessage *cca,
create_cca_fui_avps(fui_action, redirecturi);
/* check result code at mscc level */
- if (ro_cca_data->mscc->resultcode != 2001) {
+ if (ro_cca_data->mscc->resultcode && ro_cca_data->mscc->resultcode != 2001) {
LM_DBG("CCA failure at MSCC level with resultcode [%d]\n", ro_cca_data->mscc->resultcode);
error_code = RO_RETURN_FALSE;
goto error1;
[View Less]
<!-- 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 …
[View More]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 -->
- [ ] 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
according to RFC 4006 the Result-Code in Multiple-Services-Credit-Control AVP is optional.
resume_on_initial_ccr() stops proceeding CCA if no Result-Code in MSCC and goes to error1 even though the Result-Code on CCR itself is 2001 (SUCCESSFUL)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1504
-- Commit Summary --
* ims_charging: fixed check result code at mscc level
-- File Changes --
M src/modules/ims_charging/ims_ro.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1504.patchhttps://github.com/kamailio/kamailio/pull/1504.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1504
[View Less]
Hello,
I am considering to package a new release from branch 5.1, respectively
v5.1.3 sometime next week, likely on Tuesday or Wednesday (April 24 or
25). I any issue is not yet reported on github tracker, do it as soon as
possible to have a chance to be investigated.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
Module: kamailio
Branch: master
Commit: 42c8595e58e31806ecfc6201d47d7c5957e7522c
URL: https://github.com/kamailio/kamailio/commit/42c8595e58e31806ecfc6201d47d7c5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-20T12:38:17+02:00
pv: docs for xavp_params_implode(...) function
---
Modified: src/modules/pv/doc/pv_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]42c8595e58e31806ecfc6201d47d7c5…
Patch: https://github.com/kamailio/kamailio/commit/42c8595e58e31806ecfc6201d47d7c5…
---
diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml
index 61209f1898..f5faa0ab11 100644
--- a/src/modules/pv/doc/pv_admin.xml
+++ b/src/modules/pv/doc/pv_admin.xml
@@ -292,6 +292,37 @@ xavp_params_explode("a=b;c=d;e=d", "x");
# $xavp(x=>a) = "b";
# $xavp(x=>c) = "d";
# $xavp(x=>e) = "f";
+...
+ </programlisting>
+ </example>
+ </section>
+ <section id="pv.f.xavp_params_implode">
+ <title>
+ <function moreinfo="none">xavp_params_implode(xname, pvname)</function>
+ </title>
+ <para>
+ Serialize the subfields in an XAVP to a parameters string format.
+ </para>
+ <para>
+ The first parameter has to be the name of XAVP (only the string
+ name, not the in $xavp(name)). The second parameter
+ is the name of output variable (in full name, like $var(output)).
+ </para>
+ <para>
+ The value is stored as string type.
+ </para>
+ <para>
+ Function can be used from ANY ROUTE.
+ </para>
+ <example>
+ <title><function>xavp_params_implode</function> usage</title>
+ <programlisting format="linespecific">
+...
+$xavp(x=>e) = "f";
+$xavp(x[0]=>c) = "d";
+$xavp(x[0]=>a) = "b";
+xavp_params_implode("x", "$var(out)");
+# results in: $var(out) is "a=b;c=d;e=f;"
...
</programlisting>
</example>
[View Less]
Hello,
a while ago, I started to put together a unit testing framework for
Kamailio. It was more or less inspired from the old shell-based testing
framework added by Henning Westerholt many years ago (which still
resides in source tree path test/unit/), but now leveraging docker to
have an isolated environment for running the tests.
The new testing framework is available on github at:
* https://github.com/kamailio/kamailio-tests
Giacomo Vacca helped a bit so far, he is actually …
[View More]going to present more
about it at Kamailio World 2018
(https://www.kamailioworld.com/k06/schedule/).
But we want now to get more feedback from community, eventually to
adjust the framework to become something easy to use and even more
important, to be easy to contribute to.
One of the main benefits from my point of view it would be to have the
reports of the issues that can be reproduced submitted along with a unit
test. It would make it easier to troubleshoot and then after fixing it,
would be tested always before releases in order to avoid regressions.
Right now, a good help from community would represent converting the old
unit tests to the new framework, afterwards we can decommission
test/unit. The conversion should be rather easy, as we still rely on
shell and the sip tools like sipp/sipsak ... If you want to help here by
you need clarifications or get stuck somewhere, just write to mailing
list and I would be more than happy to assist. Such contributions should
be submitted as pull requests in order to be easy to review:
* https://github.com/kamailio/kamailio-tests/pulls
Looking forward to your feedback, comments or contributions!
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com
[View Less]
#### 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 …
[View More]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
typo fix for DLG_IFLAG_DMQ_SYNC flag value
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1502
-- Commit Summary --
* dialog: typo fix for DLG_IFLAG_DMQ_SYNC flag value
-- File Changes --
M src/modules/dialog/dlg_hash.h (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1502.patchhttps://github.com/kamailio/kamailio/pull/1502.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1502
[View Less]
#### 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 …
[View More]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
I've noticed kamailio stop send OPTIONS ("ka-dst"/"ka-src" params) after restart. This should fix
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1501
-- Commit Summary --
* dialog: restore keep-alive after restart
-- File Changes --
M src/modules/dialog/dlg_db_handler.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1501.patchhttps://github.com/kamailio/kamailio/pull/1501.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1501
[View Less]
Hi,
we're trying to have scalable Kamailio nodes that are stateless.
That means that we can for example load dispatchers and reload them from an API endpoint.
Now we're stuck on the dialog part. All our nodes load the dialogs from a shared db, what happens when a node gets down is that a packet reaches another node and does not know how to handle that because the dialog does not have it's ip address. Also there is no possibility to reload the dialogs from db so that we could update the …
[View More]records in the db and have the dialogs ip changed on an anctive node's ip.
Is there a possibility to have a function to reload the dialogs from db on a running kamailio?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1274
[View Less]
Hello,
I'm using keepalive module with drouting module... the event route works fine:
NOTICE: <script>: Gateway up: OPTIONS sip:1.2.3.4
NOTICE: <script>: Gateway up: OPTIONS sip:5.6.7.8
but kamcmd command not:
kamcmd keepalive.list
foobar
42
foobar
42
{
text: foobar
number: 42
}
{
list: {
nn: 17
nn: 22
}
}
{
uri: sip:1.2.3.4
owner: drouting
last checked: Wed Feb 21 11:20:12 2018
last …
[View More]up: Wed Dec 31 19:00:00 1969
last down: Wed Feb 21 11:20:13 2018
}
{
uri: sip:5.6.7.8
owner: drouting
last checked: Wed Feb 21 11:20:12 2018
last up: Wed Dec 31 19:00:00 1969
last down: Wed Feb 21 11:20:12 2018
Thank you
Regards...
--
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/1476
[View Less]
Module: kamailio
Branch: 5.0
Commit: f7633fb7033aabad41a2055c851361f0c81f4444
URL: https://github.com/kamailio/kamailio/commit/f7633fb7033aabad41a2055c851361f…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-04-12T21:38:08+02:00
msilo: remove not working tm parameter in the example cfg, reported from Abdul Basit
- remove the not working, too small tm parameter in the example cfg
- has been not changed in the last 10 …
[View More]years, probably not valid anymore
- reported from Abdul Basit on sr-users
(cherry picked from commit 22b13d4d44cb0dbd71b87deab42af5f7c8ea932f)
---
Modified: src/modules/msilo/doc/msilo.cfg
---
Diff: https://github.com/kamailio/kamailio/commit/f7633fb7033aabad41a2055c851361f…
Patch: https://github.com/kamailio/kamailio/commit/f7633fb7033aabad41a2055c851361f…
---
diff --git a/src/modules/msilo/doc/msilo.cfg b/src/modules/msilo/doc/msilo.cfg
index 05329f0299..e6c74ff6d2 100644
--- a/src/modules/msilo/doc/msilo.cfg
+++ b/src/modules/msilo/doc/msilo.cfg
@@ -48,12 +48,6 @@ modparam("msilo","contact_hdr","Contact: registrar@192.168.1.2:5060;msilo=yes\r\
modparam("msilo","content_type_hdr","Content-Type: text/plain\r\n")
modparam("msilo","offline_message","*** User $rU is offline!")
-# -- tm params --
-
-modparam("tm", "fr_timer", 10 )
-modparam("tm", "fr_inv_timer", 15 )
-modparam("tm", "wt_timer", 10 )
-
route{
if ( !mf_process_maxfwd_header("10") )
[View Less]
Module: kamailio
Branch: 5.1
Commit: c9693c18aeed8efc36905702221cd466bedcb9df
URL: https://github.com/kamailio/kamailio/commit/c9693c18aeed8efc36905702221cd46…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-04-12T21:35:24+02:00
msilo: remove not working tm parameter in the example cfg, reported from Abdul Basit
- remove the not working, too small tm parameter in the example cfg
- has been not changed in the last 10 …
[View More]years, probably not valid anymore
- reported from Abdul Basit on sr-users
(cherry picked from commit 22b13d4d44cb0dbd71b87deab42af5f7c8ea932f)
---
Modified: src/modules/msilo/doc/msilo.cfg
---
Diff: https://github.com/kamailio/kamailio/commit/c9693c18aeed8efc36905702221cd46…
Patch: https://github.com/kamailio/kamailio/commit/c9693c18aeed8efc36905702221cd46…
---
diff --git a/src/modules/msilo/doc/msilo.cfg b/src/modules/msilo/doc/msilo.cfg
index 05329f0299..e6c74ff6d2 100644
--- a/src/modules/msilo/doc/msilo.cfg
+++ b/src/modules/msilo/doc/msilo.cfg
@@ -48,12 +48,6 @@ modparam("msilo","contact_hdr","Contact: registrar@192.168.1.2:5060;msilo=yes\r\
modparam("msilo","content_type_hdr","Content-Type: text/plain\r\n")
modparam("msilo","offline_message","*** User $rU is offline!")
-# -- tm params --
-
-modparam("tm", "fr_timer", 10 )
-modparam("tm", "fr_inv_timer", 15 )
-modparam("tm", "wt_timer", 10 )
-
route{
if ( !mf_process_maxfwd_header("10") )
[View Less]
Module: kamailio
Branch: master
Commit: 22b13d4d44cb0dbd71b87deab42af5f7c8ea932f
URL: https://github.com/kamailio/kamailio/commit/22b13d4d44cb0dbd71b87deab42af5f…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-04-12T21:31:59+02:00
msilo: remove not working tm parameter in the example cfg, reported from Abdul Basit
- remove the not working, too small tm parameter in the example cfg
- has been not changed in the last 10 …
[View More]years, probably not valid anymore
- reported from Abdul Basit on sr-users
---
Modified: src/modules/msilo/doc/msilo.cfg
---
Diff: https://github.com/kamailio/kamailio/commit/22b13d4d44cb0dbd71b87deab42af5f…
Patch: https://github.com/kamailio/kamailio/commit/22b13d4d44cb0dbd71b87deab42af5f…
---
diff --git a/src/modules/msilo/doc/msilo.cfg b/src/modules/msilo/doc/msilo.cfg
index 7bec0841e6..1ea4bc3545 100644
--- a/src/modules/msilo/doc/msilo.cfg
+++ b/src/modules/msilo/doc/msilo.cfg
@@ -48,12 +48,6 @@ modparam("msilo","contact_hdr","Contact: registrar@192.168.1.2:5060;msilo=yes\r\
modparam("msilo","content_type_hdr","Content-Type: text/plain\r\n")
modparam("msilo","offline_message","*** User $rU is offline!")
-# -- tm params --
-
-modparam("tm", "fr_timer", 10 )
-modparam("tm", "fr_inv_timer", 15 )
-modparam("tm", "wt_timer", 10 )
-
route{
if ( !mf_process_maxfwd_header("10") )
[View Less]
### Description
I have an instance of Kamailio running with topos module enabled as described bellow:
(Core network) <---> (**Kamailio** running on 192.168.70.106:5061) <--> (Provider network)
Here is the scenario:
1. An INVITE comming from Core network through Kamailio to the Provider network and the call is established correctly (with 200 OK and ACK correctly routed).
2. The call is put on hold by the callee. A RE-INVITE comming from Provider network through Kamailio to …
[View More]the Core network. This REINVITE is routed correctly.
3. The Core network sent 200 OK reply to the RE-INVITE. The 200 OK message reached the Kamailio and was dropped there. (It SHOULD go back to the Provider network).
#### 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).
-->
When Kamailio received this 200 OK, I see this log message:
```
ERROR: topos [tps_storage.c:1299]: tps_db_update_dialog(): no valid dlg uuid (0: - 0:)
```
#### 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).
-->
**Here is the REINVITE message arriving from our provider:**
```
INVITE sip:btpsh-5acddf40-d74-5@192.168.70.106:5061 SIP/2.0
Call-ID: 79acbb714c21354c
Contact: sip:80.10.231.10:5060;transport=udp
Content-Type: application/sdp
CSeq: 1 INVITE
From: sip:xxxx@xxxx;user=phone;tag=SDt2dkc98-04020267673121
Max-Forwards: 63
Record-Route: sip:192.168.70.126:5060;user=i0o0S000000ad;lr;Cpkt=XWJOA;C=xxxx,sip:192.168.70.126:5070;user=00000214;lr;Cpkt=YJJEE;C=xxx
To: sip:+yyyy@xxxx;user=phone;tag=1713351228
Via: SIP/2.0/UDP 192.168.70.126:5060;branch=z9hG4bK-XWJO-000227ab-7eda6242,SIP/2.0/UDP 192.168.70.126:5070;received=192.168.70.126;rport=5070;branch=z9hG4bK-YJJE-000a057c-0bf8ef7c,SIP/2.0/UDP 193.200.4.20:5060;emission,SIP/2.0/UDP 80.10.231.10:5060;received=80.10.231.10;rport=5060;branch=z9hG4bK5g8vgn00cobc0atd6hf0sb0000g00.1
Accept: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,PRACK
Content-Length: 236
```
**Here is the REINVITE comming out of Kamailio into our core side:**
```
INVITE sip:192.168.40.106:5090;did=d03.e3be0354 SIP/2.0
Via: SIP/2.0/UDP 192.168.70.106:5061;branch=z9hG4bK443f.2ec12863719a69f1e3851178d9cb21d0.0
Call-ID: 79acbb714c21354c
Content-Type: application/sdp
CSeq: 1 INVITE
From: sip:+xxx@xxxx;tag=SDt2dkc98-04020267673121
Max-Forwards: 62
To: sip:xxx@xxxx;tag=1713351228
Accept: application/sdp
Allow: INVITE,ACK,CANCEL,BYE,OPTIONS,PRACK
Content-Length: 236
Route: xxx
Contact: sip:atpsh-5acddf40-d75-5@192.168.70.106:5061
```
**Here is the 200 OK for this REINVITE message comming from the Core network** (This message arrived to Kamailio but is never sent to our provider).
```
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.70.106:5061;branch=z9hG4bK443f.2ec12863719a69f1e3851178d9cb21d0.0
From: sip:+xxx@xxxx;tag=SDt2dkc98-04020267673121
To: sip:xxx@xxxx;tag=1713351228
Call-ID: 79acbb714c21354c
CSeq: 1 INVITE
Contact: sip:192.168.40.106:5090;did=d03.e3be0354
Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO
Content-Type: application/sdp
Content-Length: 197
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
kamailio 5.1.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 `uname -a`)
-->
Centos Linux 3.10.0-514.26.1.el7.x86_64
* **Database**:
PostgreSQL 9.4
--
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/1496
[View Less]
> CC (clang) [M cdp.so] authstatemachine.o
> authstatemachine.c:748:3: warning: implicit conversion from 'int' to 'char' changes value from 209 to -47 [-Wconstant-conversion]
> set_4bytes(x, AAA_SUCCESS);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> ./diameter.h:77:44: note: expanded from macro 'set_4bytes'
> (_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
> ~ ~~~~^~~~~~~~~~~
> …
[View More]authstatemachine.c:758:3: warning: implicit conversion from 'int' to 'char' changes value from 209 to -47 [-Wconstant-conversion]
> set_4bytes(x, AAA_SUCCESS);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~
> ./diameter.h:77:44: note: expanded from macro 'set_4bytes'
> (_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
> ~ ~~~~^~~~~~~~~~~
> ocs_avp_helper.c:329:3: warning: implicit conversion from 'int' to 'char' changes value from 128 to -128 [-Wconstant-conversion]
> set_4bytes(x, 86400);
> ^~~~~~~~~~~~~~~~~~~~
> ./../cdp/diameter.h:77:44: note: expanded from macro 'set_4bytes'
> (_b)[2]=((_v)&0x0000ff00)>>8;(_b)[3]=((_v)&0x000000ff);}
> ~ ~~~~^~~~~~~~~~~
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1497
-- Commit Summary --
* cdp: fix compilation warning
-- File Changes --
M src/modules/cdp/diameter.h (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1497.patchhttps://github.com/kamailio/kamailio/pull/1497.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1497
[View Less]
Hello,
in many modules we have a template text about our support contacts in the
"FAQ" part:
"E-mails regarding any stable Kamailio release should be sent to
<sr-users(a)lists.kamailio.org> and e-mails regarding development
versions should be sent to <sr-dev(a)lists.kamailio.org>.
If you want to keep the mail private, send it to
<sr-users(a)lists.kamailio.org>."
The lower part (about the private contact) makes no sense anymore. It used
contain a private SER contact …
[View More]address, and lost somehow its meaning during the
conversion to Kamailio.
I would like to change to this text to:
"If you need to keep the e-mail private (e.g. for security issues) send it to
management at kamailio dot org."
Any objections against this change, or remarks about the replacement text?
Regards,
Henning
[View Less]
Module: kamailio
Branch: master
Commit: cc6865cd7d0fc48709acd7685d315eb5575e45bd
URL: https://github.com/kamailio/kamailio/commit/cc6865cd7d0fc48709acd7685d315eb…
Author: Andreas Granig <agranig(a)sipwise.com>
Committer: Andreas Granig <agranig(a)sipwise.com>
Date: 2018-04-11T17:28:32+02:00
db_redis: Fix scanning large tables
* When querying large tables (e.g. pre-loading location by usrloc),
make sure to use O(1) when adding keys by prepending them to list.
* Increase batch …
[View More]size of redis scan command to reduce number of
redis queries.
* Batch creation of DB_ROW entries to free up memory allocated by
redis in heap regularly.
* Fix more issues reported by coverity.
---
Modified: src/modules/db_redis/redis_connection.c
Modified: src/modules/db_redis/redis_dbase.c
Modified: src/modules/db_redis/redis_table.c
---
Diff: https://github.com/kamailio/kamailio/commit/cc6865cd7d0fc48709acd7685d315eb…
Patch: https://github.com/kamailio/kamailio/commit/cc6865cd7d0fc48709acd7685d315eb…
[View Less]
I have not found any situation, where t_flush_flags() is needed. If I set a flag after t_newtran() and then call t_relay(), the flag stays set both in failure route and reply route. If there exists a case, where t_flush_flags() needs to be called after t_newtran(), it should be mentioned in README in order to avoid needless calls of t_flush_flags().
--
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/1490
Module: kamailio
Branch: master
Commit: 80ac75e0d5cba58cbf6bb5fbce35b56e7f4fbe86
URL: https://github.com/kamailio/kamailio/commit/80ac75e0d5cba58cbf6bb5fbce35b56…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-04-11T15:46:28+02:00
modules: readme files regenerated - tmx ... [skip ci]
---
Modified: src/modules/tmx/README
---
Diff: https://github.com/kamailio/kamailio/commit/80ac75e0d5cba58cbf6bb5fbce35b56……
[View More]Patch: https://github.com/kamailio/kamailio/commit/80ac75e0d5cba58cbf6bb5fbce35b56…
---
diff --git a/src/modules/tmx/README b/src/modules/tmx/README
index 56d9ca546c..81568f329d 100644
--- a/src/modules/tmx/README
+++ b/src/modules/tmx/README
@@ -263,6 +263,10 @@ if (t_reply_callid("123qaz", "5", "458", "Replied remotely")) {
transaction. It make sense only in routing block if the transaction was
created via t_newtran() and the flags have been altered since.
+ It is not needed to execute this function when using t_relay() (or
+ similar tm relay functions, flags are synchornized automatically in
+ that case).
+
This function can be used from ANY_ROUTE .
Example 1.5. t_flush_flags usage
@@ -277,6 +281,10 @@ t_flush_flags();
transaction was created via t_newtran() and the extended flags have
been altered since.
+ It is not needed to execute this function when using t_relay() (or
+ similar tm relay functions, xflags are synchornized automatically in
+ that case).
+
This function can be used from ANY_ROUTE .
Example 1.6. t_flush_xflags usage
[View Less]
Module: kamailio
Branch: master
Commit: d87a6a012f7888ea74a0f25731fb6b442e4e38aa
URL: https://github.com/kamailio/kamailio/commit/d87a6a012f7888ea74a0f25731fb6b4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-11T15:41:21+02:00
tmx: docs - notes that flush x/flags is not needed when doing tm relay
---
Modified: src/modules/tmx/doc/tmx_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]d87a6a012f7888ea74a0f25731fb6b4…
Patch: https://github.com/kamailio/kamailio/commit/d87a6a012f7888ea74a0f25731fb6b4…
---
diff --git a/src/modules/tmx/doc/tmx_admin.xml b/src/modules/tmx/doc/tmx_admin.xml
index 9f6168bb0f..fe630d2f76 100644
--- a/src/modules/tmx/doc/tmx_admin.xml
+++ b/src/modules/tmx/doc/tmx_admin.xml
@@ -215,6 +215,11 @@ if (t_reply_callid("123qaz", "5", "458", "Replied remotely")) {
created via t_newtran() and the flags have been altered since.
</para>
<para>
+ It is not needed to execute this function when using t_relay() (or
+ similar tm relay functions, flags are synchornized automatically in
+ that case).
+ </para>
+ <para>
This function can be used from ANY_ROUTE .
</para>
<example>
@@ -236,6 +241,11 @@ t_flush_flags();
created via t_newtran() and the extended flags have been altered since.
</para>
<para>
+ It is not needed to execute this function when using t_relay() (or
+ similar tm relay functions, xflags are synchornized automatically in
+ that case).
+ </para>
+ <para>
This function can be used from ANY_ROUTE .
</para>
<example>
[View Less]
See <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…>
------------------------------------------
[...truncated 294.06 KB...]
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="kperl"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -…
[View More]C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
CC (gcc) [M app_perl.so] app_perl_mod.o
CC (gcc) [M app_perl.so] perlfunc.o
xsubpp -typemap `perl -MConfig -e 'print $Config{installprivlib}'`/ExtUtils/typemap -typemap typemap kamailioxs.xs > kamailioxs.c
CC (gcc) [M app_perl.so] kamailioxs.o
LD (gcc) [M app_perl.so] app_perl.so
CC (gcc) [M db_perlvdb.so] db_perlvdb.o
CC (gcc) [M db_perlvdb.so] perlvdb_conv.o
CC (gcc) [M db_perlvdb.so] perlvdb_oohelpers.o
CC (gcc) [M db_perlvdb.so] perlvdbfunc.o
make[4]: `libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_perlvdb.so] db_perlvdb.so
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="kutils"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
CC (gcc) [M utils.so] conf.o
CC (gcc) [M utils.so] pidf.o
CC (gcc) [M utils.so] utils.o
CC (gcc) [M utils.so] xcap_auth.o
make[4]: `libsrdb1.so.1.0' is up to date.
LD (gcc) [M utils.so] utils.so
CC (gcc) [M http_client.so] curl_api.o
CC (gcc) [M http_client.so] curlcon.o
CC (gcc) [M http_client.so] curlrpc.o
CC (gcc) [M http_client.so] functions.o
CC (gcc) [M http_client.so] http_client.o
LD (gcc) [M http_client.so] http_client.so
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="klua"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
CC (gcc) [M app_lua.so] app_lua_api.o
CC (gcc) [M app_lua.so] app_lua_exp.o
CC (gcc) [M app_lua.so] app_lua_kemi_export.o
CC (gcc) [M app_lua.so] app_lua_mod.o
CC (gcc) [M app_lua.so] app_lua_sr.o
LD (gcc) [M app_lua.so] app_lua.so
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="kmemcached"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
CC (gcc) [M memcached.so] mcd_var.o
CC (gcc) [M memcached.so] memcached.o
LD (gcc) [M memcached.so] memcached.so
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="ksnmpstats"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
CC (gcc) [M snmpstats.so] alarm_checks.o
CC (gcc) [M snmpstats.so] hashTable.o
CC (gcc) [M snmpstats.so] interprocess_buffer.o
CC (gcc) [M snmpstats.so] kamailioNet.o
CC (gcc) [M snmpstats.so] kamailioNetConfig.o
CC (gcc) [M snmpstats.so] kamailioServer.o
CC (gcc) [M snmpstats.so] snmpMIBNotifications.o
CC (gcc) [M snmpstats.so] snmpObjects.o
CC (gcc) [M snmpstats.so] snmpSIPCommonObjects.o
CC (gcc) [M snmpstats.so] snmpSIPContactTable.o
CC (gcc) [M snmpstats.so] snmpSIPMethodSupportedTable.o
CC (gcc) [M snmpstats.so] snmpSIPPortTable.o
CC (gcc) [M snmpstats.so] snmpSIPRegUserLookupTable.o
CC (gcc) [M snmpstats.so] snmpSIPRegUserTable.o
CC (gcc) [M snmpstats.so] snmpSIPServerObjects.o
CC (gcc) [M snmpstats.so] snmpSIPStatusCodesTable.o
CC (gcc) [M snmpstats.so] snmp_statistics.o
CC (gcc) [M snmpstats.so] snmpstats.o
CC (gcc) [M snmpstats.so] sub_agent.o
CC (gcc) [M snmpstats.so] utilities.o
LD (gcc) [M snmpstats.so] snmpstats.so
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="kcarrierroute"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[2]: Nothing to be done for `every-module'.
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="kxmpp"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
CC (gcc) [M xmpp.so] network.o
CC (gcc) [M xmpp.so] sha.o
CC (gcc) [M xmpp.so] util.o
CC (gcc) [M xmpp.so] xmpp.o
CC (gcc) [M xmpp.so] xmpp_api.o
CC (gcc) [M xmpp.so] xmpp_component.o
CC (gcc) [M xmpp.so] xmpp_server.o
CC (gcc) [M xmpp.so] xode.o
CC (gcc) [M xmpp.so] xode_from.o
CC (gcc) [M xmpp.so] xode_str.o
CC (gcc) [M xmpp.so] xpool.o
CC (gcc) [M xmpp.so] xsnprintf.o
CC (gcc) [M xmpp.so] xstream.o
LD (gcc) [M xmpp.so] xmpp.so
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="kcpl"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
CC (gcc) [M cplc.so] cpl_db.o
CC (gcc) [M cplc.so] cpl_loader.o
CC (gcc) [M cplc.so] cpl_log.o
CC (gcc) [M cplc.so] cpl_nonsig.o
CC (gcc) [M cplc.so] cpl_parser.o
CC (gcc) [M cplc.so] cpl_run.o
CC (gcc) [M cplc.so] cpl_sig.o
CC (gcc) [M cplc.so] cpl_time.o
CC (gcc) [M cplc.so] cplc.o
CC (gcc) [M cplc.so] sub_list.o
make[4]: `libsrdb1.so.1.0' is up to date.
LD (gcc) [M cplc.so] cplc.so
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make every-module group_include="kredis"
make[1]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
/usr/bin/make -C src/ every-module
make[2]: Entering directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
CC (gcc) [M db_redis.so] db_redis_mod.o
CC (gcc) [M db_redis.so] redis_connection.o
CC (gcc) [M db_redis.so] redis_dbase.o
redis_dbase.c: In function 'db_redis_dump_reply':
redis_dbase.c:39:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("printing %lu elements in array reply\n", reply->elements);
^
redis_dbase.c:39:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_scan_query_keys':
redis_dbase.c:685:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 12 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of reply elements for scan on table '%.*s', expected 2, got %lu\n",
^
redis_dbase.c:685:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
redis_dbase.c:717:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid null key at cursor result index %lu while scanning table '%.*s'\n",
^
redis_dbase.c:717:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:722:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid key type at cursor result index %lu while scanning table '%.*s', expected string\n",
^
redis_dbase.c:722:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_convert_row':
redis_dbase.c:986:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:986:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:1001:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 13 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of columns at row %d/%d, expecting %d, got %lu\n",
^
redis_dbase.c:1001:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'size_t' [-Wformat=]
redis_dbase.c:1012:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("converting column #%lu of row #%d", colidx, RES_ROW_N(_r));
^
redis_dbase.c:1012:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_delete':
redis_dbase.c:1317:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1317:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_update':
redis_dbase.c:1571:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1571:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
CC (gcc) [M db_redis.so] redis_table.o
make[4]: `libsrdb2.so.1.0' is up to date.
make[4]: `libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_redis.so] db_redis.so
CC (gcc) [M ndb_redis.so] ndb_redis_mod.o
CC (gcc) [M ndb_redis.so] redis_client.o
redis_client.c: In function 'redisc_init':
redis_client.c:141:4: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i= 0; i< sentinels_count; i++) {
^
redis_client.c:141:4: note: use option -std=c99 or -std=gnu99 to compile your code
redis_client.c:169:8: error: 'for' loop initial declarations are only allowed in C99 mode
for(int row = 0; row< res->elements; row++){
^
redis_client.c:172:9: error: 'for' loop initial declarations are only allowed in C99 mode
for(int i= 0; i< res2->elements; i+= 2) {
^
make[3]: *** [redis_client.o] Error 1
make[2]: *** [modules] Error 1
make[2]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty/src'
make[1]: *** [every-module] Error 2
make[1]: Leaving directory `/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005638.1092+trusty'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
E: Failed autobuilding of package
I: user script /var/cache/pbuilder/build/cow.7542/tmp/hooks/C10shell starting
┌──────────────────────────────────────────────────────────────────────────────┐
│ FTBFS - problem with building Debian package │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ DEB_KEEP_BUILD_ENV is not set to 'true', not keeping build environment │
└──────────────────────────────────────────────────────────────────────────────┘
I: user script /var/cache/pbuilder/build/cow.7542/tmp/hooks/C10shell finished
I: unmounting /tmp/apt-jdg_EEqVRA filesystem
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
-> Cleaning COW directory
forking: rm -rf /var/cache/pbuilder/build//cow.7542
+ '[' 1 -eq 0 ']'
+ bailout 1 'Error: Failed to build with cowbuilder.'
+ '[' -n 1 ']'
+ EXIT=1
+ '[' -n 'Error: Failed to build with cowbuilder.' ']'
+ echo 'Error: Failed to build with cowbuilder.'
Error: Failed to build with cowbuilder.
+ rm -f /var/run/lock/trusty-i386.building.2012
+ '[' -r /var/run/lock/trusty-i386.update.2012 ']'
+ '[' '' = true ']'
+ echo '*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***'
*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***
+ rm -f '<https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…'>
+ '[' -n /tmp/tmp.sRvqBWAYtR ']'
+ rm -rf /tmp/tmp.sRvqBWAYtR
+ '[' -n /tmp/apt-jdg_EEqVRA ']'
+ sudo rm -rf /tmp/apt-jdg_EEqVRA
+ '[' -n 6885 ']'
++ sed -e 's/^\([0-9]*\).*/\1/'
+ SECONDS=278
++ date
+ echo '*** Finished execution of /usr/bin/build-and-provide-package at Tue Apr 10 03:10:32 UTC 2018 [running 278 seconds] ***'
*** Finished execution of /usr/bin/build-and-provide-package at Tue Apr 10 03:10:32 UTC 2018 [running 278 seconds] ***
+ exit 1
Build step 'Execute shell' marked build as failure
Archiving artifacts
Recording fingerprints
TAP Reports Processing: START
Looking for TAP results report in workspace using pattern: report/*.tap
Did not find any matching files.
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
[View Less]
See <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…>
------------------------------------------
[...truncated 293.91 KB...]
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
CC (gcc) [M app_perl.so] perlfunc.o
CC (gcc) [M app_perl.so] app_perl_mod.o
xsubpp -typemap `perl -MConfig -e '…
[View More]print $Config{installprivlib}'`/ExtUtils/typemap -typemap typemap kamailioxs.xs > kamailioxs.c
CC (gcc) [M app_perl.so] kamailioxs.o
LD (gcc) [M app_perl.so] app_perl.so
CC (gcc) [M db_perlvdb.so] perlvdb_oohelpers.o
CC (gcc) [M db_perlvdb.so] perlvdb_conv.o
CC (gcc) [M db_perlvdb.so] db_perlvdb.o
CC (gcc) [M db_perlvdb.so] perlvdbfunc.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_perlvdb.so] db_perlvdb.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make every-module group_include="kutils"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
CC (gcc) [M utils.so] xcap_auth.o
CC (gcc) [M utils.so] pidf.o
CC (gcc) [M utils.so] conf.o
CC (gcc) [M utils.so] utils.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M utils.so] utils.so
CC (gcc) [M http_client.so] http_client.o
CC (gcc) [M http_client.so] curlcon.o
CC (gcc) [M http_client.so] curlrpc.o
CC (gcc) [M http_client.so] curl_api.o
CC (gcc) [M http_client.so] functions.o
LD (gcc) [M http_client.so] http_client.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make every-module group_include="klua"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
CC (gcc) [M app_lua.so] app_lua_mod.o
CC (gcc) [M app_lua.so] app_lua_exp.o
CC (gcc) [M app_lua.so] app_lua_sr.o
CC (gcc) [M app_lua.so] app_lua_api.o
CC (gcc) [M app_lua.so] app_lua_kemi_export.o
LD (gcc) [M app_lua.so] app_lua.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make every-module group_include="kmemcached"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
CC (gcc) [M memcached.so] memcached.o
CC (gcc) [M memcached.so] mcd_var.o
LD (gcc) [M memcached.so] memcached.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make every-module group_include="ksnmpstats"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
CC (gcc) [M snmpstats.so] snmpSIPRegUserTable.o
CC (gcc) [M snmpstats.so] utilities.o
CC (gcc) [M snmpstats.so] snmpSIPContactTable.o
CC (gcc) [M snmpstats.so] snmpSIPMethodSupportedTable.o
CC (gcc) [M snmpstats.so] snmpSIPStatusCodesTable.o
CC (gcc) [M snmpstats.so] interprocess_buffer.o
CC (gcc) [M snmpstats.so] alarm_checks.o
CC (gcc) [M snmpstats.so] hashTable.o
CC (gcc) [M snmpstats.so] snmpSIPCommonObjects.o
CC (gcc) [M snmpstats.so] snmpSIPServerObjects.o
CC (gcc) [M snmpstats.so] kamailioServer.o
CC (gcc) [M snmpstats.so] snmp_statistics.o
CC (gcc) [M snmpstats.so] snmpObjects.o
CC (gcc) [M snmpstats.so] kamailioNetConfig.o
CC (gcc) [M snmpstats.so] snmpMIBNotifications.o
CC (gcc) [M snmpstats.so] snmpSIPPortTable.o
CC (gcc) [M snmpstats.so] kamailioNet.o
CC (gcc) [M snmpstats.so] snmpstats.o
CC (gcc) [M snmpstats.so] snmpSIPRegUserLookupTable.o
CC (gcc) [M snmpstats.so] sub_agent.o
LD (gcc) [M snmpstats.so] snmpstats.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make every-module group_include="kcarrierroute"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[2]: Nothing to be done for 'every-module'.
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make every-module group_include="kxmpp"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
CC (gcc) [M xmpp.so] sha.o
CC (gcc) [M xmpp.so] xmpp_server.o
CC (gcc) [M xmpp.so] xmpp_api.o
CC (gcc) [M xmpp.so] xpool.o
CC (gcc) [M xmpp.so] xode.o
CC (gcc) [M xmpp.so] xode_str.o
CC (gcc) [M xmpp.so] xmpp_component.o
CC (gcc) [M xmpp.so] xmpp.o
CC (gcc) [M xmpp.so] util.o
CC (gcc) [M xmpp.so] xsnprintf.o
CC (gcc) [M xmpp.so] xstream.o
CC (gcc) [M xmpp.so] xode_from.o
CC (gcc) [M xmpp.so] network.o
LD (gcc) [M xmpp.so] xmpp.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make every-module group_include="kcpl"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
CC (gcc) [M cplc.so] sub_list.o
CC (gcc) [M cplc.so] cpl_parser.o
CC (gcc) [M cplc.so] cpl_run.o
CC (gcc) [M cplc.so] cpl_time.o
CC (gcc) [M cplc.so] cpl_loader.o
CC (gcc) [M cplc.so] cpl_db.o
CC (gcc) [M cplc.so] cpl_nonsig.o
CC (gcc) [M cplc.so] cpl_log.o
CC (gcc) [M cplc.so] cplc.o
CC (gcc) [M cplc.so] cpl_sig.o
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M cplc.so] cplc.so
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make every-module group_include="kredis"
make[1]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
/usr/bin/make -C src/ every-module
make[2]: Entering directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
CC (gcc) [M db_redis.so] redis_dbase.o
redis_dbase.c: In function 'db_redis_dump_reply':
redis_dbase.c:39:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("printing %lu elements in array reply\n", reply->elements);
^
redis_dbase.c:39:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_scan_query_keys':
redis_dbase.c:685:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 12 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of reply elements for scan on table '%.*s', expected 2, got %lu\n",
^
redis_dbase.c:685:13: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
redis_dbase.c:717:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid null key at cursor result index %lu while scanning table '%.*s'\n",
^
redis_dbase.c:717:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:722:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid key type at cursor result index %lu while scanning table '%.*s', expected string\n",
^
redis_dbase.c:722:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_convert_row':
redis_dbase.c:986:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:986:17: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:1001:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 13 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of columns at row %d/%d, expecting %d, got %lu\n",
^
redis_dbase.c:1001:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 11 has type 'size_t' [-Wformat=]
redis_dbase.c:1012:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("converting column #%lu of row #%d", colidx, RES_ROW_N(_r));
^
redis_dbase.c:1012:9: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_delete':
redis_dbase.c:1317:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1317:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_update':
redis_dbase.c:1571:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1571:21: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat=]
CC (gcc) [M db_redis.so] redis_connection.o
CC (gcc) [M db_redis.so] db_redis_mod.o
CC (gcc) [M db_redis.so] redis_table.o
make[4]: 'libsrdb2.so.1.0' is up to date.
make[4]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_redis.so] db_redis.so
CC (gcc) [M ndb_redis.so] redis_client.o
redis_client.c: In function 'redisc_init':
redis_client.c:141:4: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i= 0; i< sentinels_count; i++) {
^
redis_client.c:141:4: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
redis_client.c:169:8: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int row = 0; row< res->elements; row++){
^
redis_client.c:172:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for(int i= 0; i< res2->elements; i+= 2) {
^
../../Makefile.rules:100: recipe for target 'redis_client.o' failed
make[3]: *** [redis_client.o] Error 1
Makefile:511: recipe for target 'modules' failed
make[2]: *** [modules] Error 1
make[2]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie/src'
Makefile:27: recipe for target 'every-module' failed
make[1]: *** [every-module] Error 2
make[1]: Leaving directory '/tmp/buildd/kamailio-5.2.0~dev4+0~20180410005855.1092+jessie'
debian/rules:137: recipe for target 'build-stamp' failed
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
E: Failed autobuilding of package
I: user script /var/cache/pbuilder/build/cow.7680/tmp/hooks/C10shell starting
┌──────────────────────────────────────────────────────────────────────────────┐
│ FTBFS - problem with building Debian package │
└──────────────────────────────────────────────────────────────────────────────┘
┌──────────────────────────────────────────────────────────────────────────────┐
│ DEB_KEEP_BUILD_ENV is not set to 'true', not keeping build environment │
└──────────────────────────────────────────────────────────────────────────────┘
I: user script /var/cache/pbuilder/build/cow.7680/tmp/hooks/C10shell finished
I: unmounting /tmp/apt-jdg_IaYdDN filesystem
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
-> Cleaning COW directory
forking: rm -rf /var/cache/pbuilder/build//cow.7680
+ '[' 1 -eq 0 ']'
+ bailout 1 'Error: Failed to build with cowbuilder.'
+ '[' -n 1 ']'
+ EXIT=1
+ '[' -n 'Error: Failed to build with cowbuilder.' ']'
+ echo 'Error: Failed to build with cowbuilder.'
Error: Failed to build with cowbuilder.
+ rm -f /var/run/lock/jessie-i386.building.7528
+ '[' -r /var/run/lock/jessie-i386.update.7528 ']'
+ '[' '' = true ']'
+ echo '*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***'
*** Getting rid of files in <https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…> to avoid problems in next run. ***
+ rm -f '<https://kamailio.sipwise.com/job/kamailiodev-nightly-binaries/architecture=…'>
+ '[' -n /tmp/tmp.Kb7TGf3npB ']'
+ rm -rf /tmp/tmp.Kb7TGf3npB
+ '[' -n /tmp/apt-jdg_IaYdDN ']'
+ sudo rm -rf /tmp/apt-jdg_IaYdDN
+ '[' -n 1681 ']'
++ sed -e 's/^\([0-9]*\).*/\1/'
+ SECONDS=321
++ date
+ echo '*** Finished execution of /usr/bin/build-and-provide-package at Tue Apr 10 01:44:31 UTC 2018 [running 321 seconds] ***'
*** Finished execution of /usr/bin/build-and-provide-package at Tue Apr 10 01:44:31 UTC 2018 [running 321 seconds] ***
+ exit 1
Build step 'Execute shell' marked build as failure
Archiving artifacts
Recording fingerprints
TAP Reports Processing: START
Looking for TAP results report in workspace using pattern: report/*.tap
Did not find any matching files.
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
[View Less]
Hi,
I noticed a bunch of db_redis Wformat compile warnings in the jenkins
autobuild output:
CC (gcc) [M db_redis.so] redis_dbase.o
redis_dbase.c: In function 'db_redis_dump_reply':
redis_dbase.c:39:9: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("printing %lu elements in array reply\n", reply->elements);
^
redis_dbase.c:39:9: warning: format '%lu' expects argument of type 'long
…
[View More]unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_scan_query_keys':
redis_dbase.c:685:13: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 12 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of reply elements for scan on table
'%.*s', expected 2, got %lu\n",
^
redis_dbase.c:685:13: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 10 has type 'size_t' [-Wformat=]
redis_dbase.c:717:17: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid null key at cursor result index %lu while
scanning table '%.*s'\n",
^
redis_dbase.c:717:17: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:722:17: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_ERR("Invalid key type at cursor result index %lu while
scanning table '%.*s', expected string\n",
^
redis_dbase.c:722:17: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_convert_row':
redis_dbase.c:986:17: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:986:17: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c:1001:9: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 13 has type 'size_t' [-Wformat=]
LM_ERR("Invalid number of columns at row %d/%d, expecting %d, got %lu
\n",
^
redis_dbase.c:1001:9: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 11 has type 'size_t' [-Wformat=]
redis_dbase.c:1012:9: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("converting column #%lu of row #%d", colidx, RES_ROW_N(_r));
^
redis_dbase.c:1012:9: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_delete':
redis_dbase.c:1317:21: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1317:21: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 8 has type 'size_t' [-Wformat=]
redis_dbase.c: In function 'db_redis_perform_update':
redis_dbase.c:1571:21: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 10 has type 'size_t' [-Wformat=]
LM_DBG("column %lu does not match, ignore row\n", col);
^
redis_dbase.c:1571:21: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 8 has type 'size_t' [-Wformat=]
Best regards,
Henning
[View Less]
- add support for OpenSSL engine and loading private keys from HSM
- for when kamailio is a TLS edge proxy and needs to use HSM
- currently we initialize the engine in worker processes as PKCS#11
libraries are not guaranteed to be fork() safe
- new config params
- engine: name the OpenSSL engine
- engine_config: an OpenSSL config format file used to bootstrap engines
- engine_algorithms: list of algorithms to delegate to the engine
- tested with Gemalto SafeNet Luna (AWS …
[View More]CloudHSM) with RSA and EC private keys
TLSv1.2 and PFS cipher suites
<!-- 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 -->
- [ ] 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
<!-- Describe your changes in detail -->
- add support for OpenSSL engine and loading private keys from HSM
- for when kamailio is a TLS edge proxy and needs to use HSM
- currently we initialize the engine in worker processes as PKCS#11
libraries are not guaranteed to be fork() safe
- new config params
- engine: name the OpenSSL engine
- engine_config: an OpenSSL config format file used to bootstrap engines
- engine_algorithms: list of algorithms to delegate to the engine
- tested with Gemalto SafeNet Luna (AWS CloudHSM) with RSA and EC private keys
TLSv1.2 and PFS cipher suites
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1484
-- Commit Summary --
* tls: add support for OpenSSL engine and private keys in HSM
-- File Changes --
M src/modules/tls/tls_domain.c (178)
M src/modules/tls/tls_mod.c (91)
M src/modules/tls/tls_mod.h (9)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1484.patchhttps://github.com/kamailio/kamailio/pull/1484.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1484
[View Less]
Module: kamailio
Branch: master
Commit: 394878313770a3b8b57a346a0a323effe8e88a4f
URL: https://github.com/kamailio/kamailio/commit/394878313770a3b8b57a346a0a323ef…
Author: AntonyA <ascanio.alba7(a)gmail.com>
Committer: AntonyA <ascanio.alba7(a)gmail.com>
Date: 2018-04-09T19:17:06+08:00
tls: add support for OpenSSL engine and private keys in HSM
- add support for OpenSSL engine and loading private keys from HSM
- for when kamailio is a TLS edge proxy and needs to use HSM
- …
[View More]currently we initialize the engine in worker processes as PKCS#11
libraries are not guaranteed to be fork() safe
- new config params
- engine: name the OpenSSL engine
- engine_config: an OpenSSL config format file used to bootstrap engines
- engine_algorithms: list of algorithms to delegate to the engine
- tested with Gemalto SafeNet Luna (AWS CloudHSM) with RSA and EC private keys
TLSv1.2 and PFS cipher suites
---
Added: src/modules/tls/doc/hsm_howto.xml
Added: src/modules/tls/tls_map.c
Added: src/modules/tls/tls_map.h
Modified: src/modules/tls/doc/params.xml
Modified: src/modules/tls/doc/tls.xml
Modified: src/modules/tls/tls_domain.c
Modified: src/modules/tls/tls_mod.c
Modified: src/modules/tls/tls_server.c
---
Diff: https://github.com/kamailio/kamailio/commit/394878313770a3b8b57a346a0a323ef…
Patch: https://github.com/kamailio/kamailio/commit/394878313770a3b8b57a346a0a323ef…
[View Less]
> CC (clang) [M db_redis.so] redis_table.o
> redis_table.c:728:27: warning: comparison of constant -1 with expression of type 'unsigned char' is always false [-Wtautological-constant-out-of-range-compare]
> if (c == EOF) {
> ~ ^ ~~~
> redis_table.c:754:27: warning: comparison of constant -1 with expression of type 'unsigned char' is always false [-Wtautological-constant-out-of-range-compare]
> if (c == EOF) {
…
[View More]> ~ ^ ~~~
> redis_table.c:794:40: warning: comparison of constant -1 with expression of type 'unsigned char' is always true [-Wtautological-constant-out-of-range-compare]
> if (c != '\n' && c != EOF) {
> ~ ^ ~~~
> redis_table.c:807:20: warning: comparison of constant -1 with expression of type 'unsigned char' is always true [-Wtautological-constant-out-of-range-compare]
> } while (c != EOF);
> ~ ^ ~~~
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1495
-- Commit Summary --
* db_redis: fix compilation warning
-- File Changes --
M src/modules/db_redis/redis_table.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1495.patchhttps://github.com/kamailio/kamailio/pull/1495.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1495
[View Less]
<!-- 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 …
[View More]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)
- [ ] 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 -->
Allows kamailio to connect to a sentinel to find out which redis instance to connect to.
I modified the README in this commit but this is the generated file, I did not change it by hand.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1493
-- Commit Summary --
* ndb_redis: adds support for sentinel
-- File Changes --
M src/modules/ndb_redis/README (9)
M src/modules/ndb_redis/doc/ndb_redis_admin.xml (7)
M src/modules/ndb_redis/redis_client.c (75)
M src/modules/ndb_redis/redis_client.h (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1493.patchhttps://github.com/kamailio/kamailio/pull/1493.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1493
[View Less]
Module: kamailio
Branch: master
Commit: 8030c1666d905d4310e88d66a6b8db8892065839
URL: https://github.com/kamailio/kamailio/commit/8030c1666d905d4310e88d66a6b8db8…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-04-09T12:16:26+02:00
modules: readme files regenerated - corex ... [skip ci]
---
Modified: src/modules/corex/README
---
Diff: https://github.com/kamailio/kamailio/commit/8030c1666d905d4310e88d66a6b8db8……
[View More]
Patch: https://github.com/kamailio/kamailio/commit/8030c1666d905d4310e88d66a6b8db8…
---
diff --git a/src/modules/corex/README b/src/modules/corex/README
index 2b15a51aab..5d0b75fd8c 100644
--- a/src/modules/corex/README
+++ b/src/modules/corex/README
@@ -51,6 +51,8 @@ Muhammad Shahzad Shafi
4.11. setxflag(flag)
4.12. isxflagset(flag)
4.13. resetxflag(flag)
+ 4.14. set_send_socket(saddr)
+ 4.15. set_recv_socket(saddr)
5. RPC Commands
@@ -85,8 +87,10 @@ Muhammad Shahzad Shafi
1.14. setxflag usage
1.15. isxflagset usage
1.16. resetxflag usage
- 1.17. event_route[network:msg] use cases
- 1.18. Sample PERL code for do_compress and do_uncompress
+ 1.17. set_send_socket usage
+ 1.18. set_recv_socket usage
+ 1.19. event_route[network:msg] use cases
+ 1.20. Sample PERL code for do_compress and do_uncompress
Chapter 1. Admin Guide
@@ -120,6 +124,8 @@ Chapter 1. Admin Guide
4.11. setxflag(flag)
4.12. isxflagset(flag)
4.13. resetxflag(flag)
+ 4.14. set_send_socket(saddr)
+ 4.15. set_recv_socket(saddr)
5. RPC Commands
@@ -252,6 +258,8 @@ modparam("corex", "msg_avp", "$avp(msg)")
4.11. setxflag(flag)
4.12. isxflagset(flag)
4.13. resetxflag(flag)
+ 4.14. set_send_socket(saddr)
+ 4.15. set_recv_socket(saddr)
4.1. append_branch([ uri, [ q ] ])
@@ -449,6 +457,36 @@ if(isxflagset("1"))
resetxflag("1");
...
+4.14. set_send_socket(saddr)
+
+ Set the socket for sending out.
+
+ Meaning of the parameters is as follows:
+ * saddr - the address of the local socket (listen address). Can be a
+ static string or contain pseudo-variable.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.17. set_send_socket usage
+...
+set_send_socket("upd:127.0.0.1:5060");
+...
+
+4.15. set_recv_socket(saddr)
+
+ Switch local socket used for receiving the message.
+
+ Meaning of the parameters is as follows:
+ * saddr - the address of the local socket (listen address). Can be a
+ static string or contain pseudo-variable.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.18. set_recv_socket usage
+...
+set_recv_socket("upd:127.0.0.1:5060");
+...
+
5. RPC Commands
5.1. corex.debug
@@ -583,7 +621,7 @@ resetxflag("1");
Next is a basic usage example where encoding and decoding is done using
PERL,
- Example 1.17. event_route[network:msg] use cases
+ Example 1.19. event_route[network:msg] use cases
...
loadmodule "app_perl.so"
loadmodule "corex.so"
@@ -614,7 +652,7 @@ event_route[network:msg] {
}
...
- Example 1.18. Sample PERL code for do_compress and do_uncompress
+ Example 1.20. Sample PERL code for do_compress and do_uncompress
...
use strict;
use warnings;
[View Less]
Module: kamailio
Branch: master
Commit: 66e3c96f49e25ef7d2441f95b20d34a138572231
URL: https://github.com/kamailio/kamailio/commit/66e3c96f49e25ef7d2441f95b20d34a…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-04-06T09:31:52+02:00
modules: readme files regenerated - dialog ... [skip ci]
---
Modified: src/modules/dialog/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]66e3c96f49e25ef7d2441f95b20d34a…
Patch: https://github.com/kamailio/kamailio/commit/66e3c96f49e25ef7d2441f95b20d34a…
---
diff --git a/src/modules/dialog/README b/src/modules/dialog/README
index fbad4ab89f..962046c23d 100644
--- a/src/modules/dialog/README
+++ b/src/modules/dialog/README
@@ -130,6 +130,7 @@ Olle E. Johansson
7.17. dlg_remote_profile(cmd, profile, value, uid, expires)
7.18. dlg_set_ruri()
7.19. dlg_db_load_callid(cival)
+ 7.20. dlg_db_load_extra()
8. Statistics
@@ -257,6 +258,7 @@ Olle E. Johansson
1.77. dlg_remote_profile usage
1.78. dlg_set_ruri() usage
1.79. dlg_db_load_callid() usage
+ 1.80. dlg_db_load_extra() usage
Chapter 1. Admin Guide
@@ -355,6 +357,7 @@ Chapter 1. Admin Guide
7.17. dlg_remote_profile(cmd, profile, value, uid, expires)
7.18. dlg_set_ruri()
7.19. dlg_db_load_callid(cival)
+ 7.20. dlg_db_load_extra()
8. Statistics
@@ -1354,11 +1357,11 @@ modparam("dialog", "h_id_start", 5)
the rule: h_id_start + N * h_id_step. The first value of N is randomly
selected at startup, then incremented by 1 for each new dialog. Setting
h_id_start and h_id_step to non-default values should be done when
- using dlg_db_load_callid(...) to load dialog records generated by
- another Kamailio instance, making also sure that those Kamailio
- instances are not going to generate overalapping dialog hash id values
- by using different h_id_start and the same h_id_step (h_id_step has to
- be greater than the maximum value of h_id_start).
+ using dlg_db_load_callid(...) or dlg_db_load_extra() to load dialog
+ records generated by another Kamailio instance, making also sure that
+ those Kamailio nstances are not going to generate overalapping dialog
+ hash id values by using different h_id_start and the same h_id_step
+ (h_id_step has to be greater than the maximum value of h_id_start).
Default value is “1”.
@@ -1388,6 +1391,7 @@ modparam("dialog", "h_id_step", 10)
7.17. dlg_remote_profile(cmd, profile, value, uid, expires)
7.18. dlg_set_ruri()
7.19. dlg_db_load_callid(cival)
+ 7.20. dlg_db_load_extra()
7.1. set_dlg_profile(profile,[value])
@@ -1792,6 +1796,25 @@ if(has_totag()) {
}
...
+7.20. dlg_db_load_extra()
+
+ Load all dialog records from database that are not in memory of the
+ current Kamailio instance.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.80. dlg_db_load_extra() usage
+...
+if(has_totag()) {
+ if(!is_known_dlg()) {
+ dlg_db_load_extra();
+ if(!is_known_dlg()) {
+ xlog("no dialog found with callid: $ci\n");
+ }
+ }
+}
+...
+
8. Statistics
8.1. active_dialogs
[View Less]
Module: kamailio
Branch: master
Commit: 7ff8f04079fc9c7e6710b43c3e893518f17ef48e
URL: https://github.com/kamailio/kamailio/commit/7ff8f04079fc9c7e6710b43c3e89351…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-06T09:21:56+02:00
dialog: documented dlg_db_load_extra() function
- related to #1274
---
Modified: src/modules/dialog/doc/dialog_admin.xml
---
Diff: https://github.com/kamailio/kamailio/…
[View More]commit/7ff8f04079fc9c7e6710b43c3e89351…
Patch: https://github.com/kamailio/kamailio/commit/7ff8f04079fc9c7e6710b43c3e89351…
---
diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml
index d231d9a2f6..5ed51d450d 100644
--- a/src/modules/dialog/doc/dialog_admin.xml
+++ b/src/modules/dialog/doc/dialog_admin.xml
@@ -1552,12 +1552,12 @@ modparam("dialog", "h_id_start", 5)
with the rule: h_id_start + N * h_id_step. The first value of N is
randomly selected at startup, then incremented by 1 for each new
dialog. Setting h_id_start and h_id_step to non-default values
- should be done when using dlg_db_load_callid(...) to load dialog
- records generated by another &kamailio; instance, making also sure
- that those &kamailio; instances are not going to generate
- overalapping dialog hash id values by using different h_id_start
- and the same h_id_step (h_id_step has to be greater than the
- maximum value of h_id_start).
+ should be done when using dlg_db_load_callid(...) or
+ dlg_db_load_extra() to load dialog records generated by another
+ &kamailio; instance, making also sure that those &kamailio;
+ nstances are not going to generate overalapping dialog hash id
+ values by using different h_id_start and the same h_id_step
+ (h_id_step has to be greater than the maximum value of h_id_start).
</para>
<para>
<emphasis>
@@ -2281,6 +2281,33 @@ if(has_totag()) {
}
}
...
+</programlisting>
+ </example>
+ </section>
+ <section id="dialog.f.dlg_db_load_extra">
+ <title>
+ <function moreinfo="none">dlg_db_load_extra()</function>
+ </title>
+ <para>
+ Load all dialog records from database that are not in memory of the
+ current &kamailio; instance.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title><function>dlg_db_load_extra()</function> usage</title>
+ <programlisting format="linespecific">
+...
+if(has_totag()) {
+ if(!is_known_dlg()) {
+ dlg_db_load_extra();
+ if(!is_known_dlg()) {
+ xlog("no dialog found with callid: $ci\n");
+ }
+ }
+}
+...
</programlisting>
</example>
</section>
[View Less]
Module: kamailio
Branch: master
Commit: d6cd5655df83d233562ab557a0e73cb5e65f0b1c
URL: https://github.com/kamailio/kamailio/commit/d6cd5655df83d233562ab557a0e73cb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-05T20:03:44+02:00
textops: documentation for append_body_part_hex()
---
Modified: src/modules/textops/doc/textops_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]d6cd5655df83d233562ab557a0e73cb…
Patch: https://github.com/kamailio/kamailio/commit/d6cd5655df83d233562ab557a0e73cb…
---
diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml
index 3ff09fb812..966169d2dd 100644
--- a/src/modules/textops/doc/textops_admin.xml
+++ b/src/modules/textops/doc/textops_admin.xml
@@ -1561,6 +1561,63 @@ Content-Disposition: signal;handling=required
7e Od 04 55 75 69 20 4d 61 6b 65 43 61 6c 6c
+--unique-boundary-1
+...
+</programlisting>
+ </example>
+ </section>
+
+ <section id="textops.f.append_body_part_hex">
+ <title>
+ <function moreinfo="none">append_body_part_hex(txt,content_type[, content_disposition])</function>
+ </title>
+ <para>
+ Append a part on multipart body SIP message, with the content provided
+ in hexa format. Will use "unique-boundary-1" as boundary.
+ </para>
+ <para>Meaning of the parameters is as follows:</para>
+ <itemizedlist>
+ <listitem>
+ <para><emphasis>txt</emphasis> - content for the multipart body in
+ hexa format. Spaces can be used between the pairs of hexa digits
+ to make it easier to read in the config, they are ignored and
+ not added in the body part. The parameter can include
+ pseudo-variables.
+ </para>
+ </listitem>
+ <listitem>
+ <para><emphasis>content_type</emphasis> - value of Content-Type header,
+ can include pseudo-variables.
+ </para>
+ </listitem>
+ <listitem>
+ <para><emphasis>content_disposition</emphasis> - value of Content-Disposition header,
+ can include pseudo-variables.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ This function can be used from REQUEST_ROUTE, FAILURE_ROUTE, BRANCH_ROUTE.
+ </para>
+ <para>
+ The core will take care of the last boundary ending "--". Detecting wich one is
+ the last and fixing the others if needed.
+ </para>
+ <example>
+ <title><function>append_body_part_hex</function> usage</title>
+ <programlisting format="linespecific">
+...
+$var(b) = "6b 61 6d 61 69 6c 69 6f";
+append_body_part_hex("$var(b)", "application/my-custom-ext");
+...
+
+# Will append this to the body:
+
+...
+Content-Type: application/my-custom-ext
+
+kamailio
+
--unique-boundary-1
...
</programlisting>
[View Less]
Module: kamailio
Branch: master
Commit: 8549789a595fa62dabe877781e6f8d89dbbff0b3
URL: https://github.com/kamailio/kamailio/commit/8549789a595fa62dabe877781e6f8d8…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-04-05T14:31:36+02:00
modules: readme files regenerated - rtpengine ... [skip ci]
---
Modified: src/modules/rtpengine/README
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]8549789a595fa62dabe877781e6f8d8…
Patch: https://github.com/kamailio/kamailio/commit/8549789a595fa62dabe877781e6f8d8…
---
diff --git a/src/modules/rtpengine/README b/src/modules/rtpengine/README
index 297ff4d517..d6588fdffa 100644
--- a/src/modules/rtpengine/README
+++ b/src/modules/rtpengine/README
@@ -2008,6 +2008,10 @@ rtpengine_offer();
+ record-call=on - instructs RTPEngine to record the session.
Use it in rtpengine_offer() to start recording immediately and
save the call metadata, as alternative to start_recording().
+ + metadata - a generic metadata string. The metadata will be
+ used when recording calls to provide custom additional
+ information. More details about this are found in the
+ rtpengine README.
Check also the documentation of RTPEngine, these flags are
documented there as well: https://github.com/sipwise/rtpengine.
[View Less]
Module: kamailio
Branch: master
Commit: 1e712ed93aef8ab96ee7a9760f89ebc0fd02caff
URL: https://github.com/kamailio/kamailio/commit/1e712ed93aef8ab96ee7a9760f89ebc…
Author: Claudiu Boriga <paul.boriga(a)1and1.ro>
Committer: Claudiu Boriga <paul.boriga(a)1and1.ro>
Date: 2018-04-05T15:30:15+03:00
rtpengine: Add description for metadata flag
---
Modified: src/modules/rtpengine/doc/rtpengine_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/…
[View More]1e712ed93aef8ab96ee7a9760f89ebc…
Patch: https://github.com/kamailio/kamailio/commit/1e712ed93aef8ab96ee7a9760f89ebc…
---
diff --git a/src/modules/rtpengine/doc/rtpengine_admin.xml b/src/modules/rtpengine/doc/rtpengine_admin.xml
index 8ab9349b35..ae875cfc4a 100644
--- a/src/modules/rtpengine/doc/rtpengine_admin.xml
+++ b/src/modules/rtpengine/doc/rtpengine_admin.xml
@@ -2326,6 +2326,11 @@ rtpengine_offer();
it in rtpengine_offer() to start recording immediately and save the call metadata,
as alternative to start_recording().
</para></listitem>
+ <listitem><para>
+ <emphasis>metadata</emphasis> - a generic metadata string. The metadata will be used when
+ recording calls to provide custom additional information. More details about this are found
+ in the rtpengine README.
+ </para></listitem>
</itemizedlist>
<para>
Check also the documentation of RTPEngine, these flags are documented there as well:
[View Less]
Currently core/flags.h defines
typedef unsigned int flag_t;
It would better to use unsigned long in order to allow more that 32 flags on 64 bit architectures.
--
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/1288
Module: kamailio
Branch: master
Commit: 7db5d4c4efb2131a7393e638f109ddbe746ffeff
URL: https://github.com/kamailio/kamailio/commit/7db5d4c4efb2131a7393e638f109ddb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-04-04T18:37:28+02:00
dialog: docs - documentation for h_id_start and h_id_step parameters
- related to GH #1274
---
Modified: src/modules/dialog/doc/dialog_admin.xml
---
Diff: https://github.…
[View More]com/kamailio/kamailio/commit/7db5d4c4efb2131a7393e638f109ddb…
Patch: https://github.com/kamailio/kamailio/commit/7db5d4c4efb2131a7393e638f109ddb…
---
diff --git a/src/modules/dialog/doc/dialog_admin.xml b/src/modules/dialog/doc/dialog_admin.xml
index 3a5a348abc..d231d9a2f6 100644
--- a/src/modules/dialog/doc/dialog_admin.xml
+++ b/src/modules/dialog/doc/dialog_admin.xml
@@ -1520,6 +1520,60 @@ end
</example>
</section>
+ <section id="dialog.p.h_id_start">
+ <title><varname>h_id_start</varname> (int)</title>
+ <para>
+ Set the offset to be used for generating dialog internal hash id.
+ If set to -1, the h_id_start is set to the value of the server_id
+ global parameter.
+ </para>
+ <para>
+ <emphasis>
+ Default value is <quote>0</quote>.
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>h_id_start</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("dialog", "h_id_start", 5)
+...
+</programlisting>
+ </example>
+ </section>
+
+ <section id="dialog.p.h_id_step">
+ <title><varname>h_id_step</varname> (int)</title>
+ <para>
+ Set the step to increment the dialog internal hash id.
+ </para>
+ <para>
+ If the value is greater than 1, the internal hash id is generated
+ with the rule: h_id_start + N * h_id_step. The first value of N is
+ randomly selected at startup, then incremented by 1 for each new
+ dialog. Setting h_id_start and h_id_step to non-default values
+ should be done when using dlg_db_load_callid(...) to load dialog
+ records generated by another &kamailio; instance, making also sure
+ that those &kamailio; instances are not going to generate
+ overalapping dialog hash id values by using different h_id_start
+ and the same h_id_step (h_id_step has to be greater than the
+ maximum value of h_id_start).
+ </para>
+ <para>
+ <emphasis>
+ Default value is <quote>1</quote>.
+ </emphasis>
+ </para>
+ <example>
+ <title>Set <varname>h_id_step</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("dialog", "h_id_step", 10)
+...
+</programlisting>
+ </example>
+ </section>
+
</section>
[View Less]
Hi Guys,
a quick notice about a change that I did today that may or may not affect some
of the kamailio packaging.
Some years ago the carrierroute module was changed to do not depend on the
library libconfuse (commit 4c4f2c2bedb4a) anymore.
I changed the git master Makefile to move the carrierroute module from a
dedicated module to the extra module group.
I had a quick look to the packaging, for e.g. debian builds carrierroute is as
own module with a dependency to libconfuse. This …
[View More]should be changed, its not
necessary to build it as own package and the dependency is not needed anymore.
You could move it as well to the extra modules package.
Thanks and regards,
Henning
[View Less]
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file,
ask on sr-users mailing list:
* http://lists.sip-router.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.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as …
[View More]possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement), you can delete the text of
the template and only add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
Kamailio start failed as carrierrouter
### Troubleshooting
Main error
`[parser_carrierroute.c:271]: parse_options(): Duplicate option definition max_targets`
#### Reproduction
Define module
```
modparam("carrierroute", "config_source", "file")
modparam("carrierroute", "match_mode", 128)
modparam("carrierroute", "config_file", "/etc/kamailio/carrierroute.conf")
```
Create carrierroute.conf like in module documentation
```
domain first {
prefix + {
max_targets = 2
target 192.168.1.1 {
prob = 0.500000
hash_index = 1
status = 1
comment = "First Master"
}
target 192.168.1.2 {
prob = 0.500000
hash_index = 2
status = 1
comment = "Firts Slave"
}
}
}
domain second {
prefix +99 {
max_targets = 2
target 192.168.1.3 {
prob = 0.500000
hash_index = 1
status = 1
comment = "Second Master"
}
target 192.168.1.4 {
prob = 0.500000
hash_index = 2
status = 1
comment = "Second Slave"
}
}
}
```
#### 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).
-->
```
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: INFO: carrierroute [carrierroute.c:213]: mod_init(): use file as configuration source
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: INFO: carrierroute [cr_carrier.c:98]: add_domain_data(): adding domain 1 'first' to carrier 1 'default'
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: INFO: carrierroute [cr_rule.c:118]: add_route_rule(): no backed up rules
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: INFO: carrierroute [cr_rule.c:118]: add_route_rule(): no backed up rules
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: INFO: carrierroute [cr_carrier.c:98]: add_domain_data(): adding domain 2 'second' to carrier 1 'default'
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: ERROR: carrierroute [parser_carrierroute.c:271]: parse_options(): Duplicate option definition max_targets
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: ERROR: carrierroute [cr_config.c:351]: load_config(): Error in parsing
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: ERROR: carrierroute [cr_data.c:185]: reload_route_data(): could not load routing data
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: ERROR: carrierroute [carrierroute.c:255]: mod_init(): could not prepare route data
Apr 3 09:50:18 localhost /usr/sbin/kamailio[16964]: ERROR: <core> [core/sr_module.c:987]: init_mod(): Error while initializing module carrierroute (/usr/lib64/kamailio/modules/carrierroute.so)
```
#### 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`
```
version: kamailio 5.1.2 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 11:28:18 Mar 20 2018 with gcc 4.8.5
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `uname -a`)
-->
```
Linux localhost 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
```
--
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/1492
[View Less]
### Description
is_in_subnet function requires subnet param to be network address and fails for host address in cidr notation despite it is contained in corresponding subnet.
For example, is_in_subnet("1.2.3.2", "1.2.3.0/30") returns true
but
is_in_subnet("1.2.3.2", "1.2.3.2/30") returns false, although 1.2.3.2 is present in 1.2.3.2/30 and 1.2.3.2 is allowed IP of 1.2.3.0/30
Of course, "1.2.3.2/30" this is not actually a subnet specification and rather is IP in CIDR notation, but sometimes …
[View More]it is required to check if some IP matches specified IP with CIDR.
### Possible Solutions
It would be cool if is_in_subnet take such cases as matches. I think this should not break anything, because host IP and CIDR always define network containing specified host.
Another solution would be separate function with more relaxed behavior...
This happens on Kamailio 5.1 devel.
--
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/1250
[View Less]
### Description
Hi. Seems lime that after WSS in the VIA kamailio adds double SPACE
It makes kamailio incompatable with jssip.net (tried 5.1.2 and 5.0.6 versions)
Looks like this happens with advertise address added on the interface
#### Reproduction
Just connect to kamailio via WSS with advertized address and try to make incoming call into WSS client
#### Debugging Data
I just put this link to JsSIP.net here
https://groups.google.com/forum/#!topic/jssip/2lDyqgvZgrY
Also here is a …
[View More]string of my VIA header that gives issue
SIP/2.0/WSS 1.2.3.4:5061;branch=z9hG4bKd302.4c862421515641e7b59b9f3ba7f8eab4.1
Thant can be checked here
https://www.textmagic.com/free-tools/unicode-detector
Log INVITE from the browser (only added \r\n at the end of the each string because of notepad++ not shows it after copying):
INVITE sip:2hsq8ob4@daotd6p7hil4.invalid;transport=ws SIP/2.0\r\n
Record-Route: <sip:1.2.3.4:5061;transport=ws;r2=on;lr;ftag=as7c4d457d;nat=yes>\r\n
Record-Route: <sip:1.2.3.4;r2=on;lr;ftag=as7c4d457d;nat=yes>\r\n
Via: SIP/2.0/WSS 1.2.3.4:5061;branch=z9hG4bK110e.476a7e8aa7db8de3a4d7b01aed1e7ef5.1\r\n
Via: SIP/2.0/UDP 10.1.1.138:5060;rport=5060;branch=z9hG4bK7122bcfb\r\n
Max-Forwards: 69\r\n
From: "test" <sip:test@10.1.1.138>;tag=as7c4d457d\r\n
To: <sip:test2@10.1.1.38:5060>\r\n
Contact: <sip:test@10.1.1.138:5060>\r\n
Call-ID: 2ec6d77f5a56ca0f59ab0d2118d2f7d5@10.1.1.138:5060\r\n
CSeq: 102 INVITE\r\n
User-Agent: Asterisk PBX 15.3.0\r\n
Date: Mon, 02 Apr 2018 10:30:57 GMT\r\n
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE\r\n
Supported: replaces, timer\r\n
Content-Type: application/sdp\r\n
Content-Length: 642\r\n
\r\n
v=0\r\n
o=root 1538180518 1538180518 IN IP4 1.2.3.4\r\n
s=Asterisk PBX 15.3.0\r\n
c=IN IP4 1.2.3.4\r\n
t=0 0\r\n
a=group:BUNDLE audio\r\n
m=audio 31858 RTP/SAVPF 8 0 101\r\n
a=maxptime:150\r\n
a=rtpmap:8 PCMA/8000\r\n
a=rtpmap:0 PCMU/8000\r\n
a=rtpmap:101 telephone-event/8000\r\n
a=fmtp:101 0-16\r\n
a=sendrecv\r\n
a=rtcp:31859\r\n
a=rtcp-mux\r\n
a=setup:actpass\r\n
a=mid:audio\r\n
a=fingerprint:sha-1 95:6F:40:F2:76:B3:E3:1E:DA:29:04:60:F1:F7:0A:DA:5E:D4:67:9F\r\n
a=ice-ufrag:eSuU9ztd\r\n
a=ice-pwd:j693abw9QWiaX81TlbvyHBD8FU\r\n
a=candidate:5Qp8pvPCHLmm6iUU 1 UDP 2130706431 1.2.3.4 31858 typ host\r\n
a=candidate:5Qp8pvPCHLmm6iUU 2 UDP 2130706430 1.2.3.4 31859 typ host\r\n
Actually i did not found any information about is it MUST be only one sace at the Grammar of SIP message based on RFC 2234 but I may be wrong.
```
#### 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 `uname -a`)
-->
```
(paste your output here)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1491
[View Less]
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests.
If you have questions about using Kamailio or related to its configuration file,
ask on sr-users mailing list:
* http://lists.sip-router.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.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
Please try to fill this template as much as …
[View More]possible for any issue. It helps the
developers to troubleshoot the issue.
If you submit a feature request (or enhancement), you can delete the text of
the template and only add the description of what you would like to be added.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
Hi all,
i’m using kamailio 4.4.6 , and when I call the rpc dialog “profile_list_dlgs” , sometimes I have a segmentation fault.
Can you help me to understand why it happened ?
Thanks for your support
<!--
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.
-->
```
This is the dump:
Program terminated with signal 11, Segmentation fault.
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) bt full
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
rpc_cb = {rpc = 0x3031ea0, c = 0x400}
h = 0x2d21e60
sh = 0x2d1db70
ssh = 0x2d20050
pl = 0x7f49ef18c588
var = 0x0
__FUNCTION__ = "internal_rpc_print_dlg"
#1 0x00007f49ee0637b3 in internal_rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, profile_name=0x7fff65fcb1a0, value=0x0)
at dialog.c:1681
profile = 0x7f49ee5aca88
ph = 0x7f49eeb5b670
i = 2
#2 0x00007f49ee063e64 in rpc_profile_print_dlgs (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960) at dialog.c:1785
profile_name = {s = 0x3031e80 "outbound", len = 8}
value = {s = 0x0, len = 0}
#3 0x00007f49ed78960f in jsonrpc_dispatch (msg=0x7fff65fcc5a0, s1=0x0, s2=0x0) at jsonrpc-s_mod.c:1098
rpce = 0x7f4a13212d30
ctx = 0x7f49ed99e960
ret = 0
nj = 0x3031ab0
val = {s = 0x3032030 "dlg.profile_list", len = 16}
__FUNCTION__ = "jsonrpc_dispatch"
#4 0x000000000041f75d in do_action (h=0x7fff65fcc4c0, a=0x7f4a13189e28, msg=0x7fff65fcc5a0) at action.c:1054
```
#### 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).
-->
```
the result to the commands p *pl and p *pl->profile
#0 0x00007f49ee062e07 in internal_rpc_print_dlg (rpc=0x7f49ed99e9c0, c=0x7f49ed99e960, dlg=0x7f49ef89ba38, with_context=0) at dialog.c:1548
1548 if (pl->profile->has_value) {
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.192.el6.x86_64 keyutils-libs-1.4-5.el6.x86_64 krb5-libs-1.10.3-57.el6.x86_64 libcom_err-1.41.12-22.el6.x86_64 libselinux-2.0.94-7.el6.x86_64 libxml2-2.7.6-21.el6_8.1.x86_64 lua-5.1.4-4.1.el6.x86_64 mysql-libs-5.1.73-7.el6.x86_64 nss-softokn-freebl-3.14.3-23.3.el6_8.x86_64 openssl-1.0.1e-48.el6_8.3.x86_64 zlib-1.2.3-29.el6.x86_64
(gdb) p *pl
$1 = {hash_linker = {value = {s = 0x113ef180024 <Address 0x113ef180024 out of bounds>, len = -277948848}, dlg = 0x7f49ef18c5b8,
puid = "\n\000\000\000-5a9\303\305\030\357I\177\000\000S\000\000\000\060\062\060\063in_routing\000CR=6@", puid_len = 1598313555,
expires = 3977578104333875508, flags = 876097589, linker = 0x422d30263936313d, next = 0x3d50542c36343d4f, prev = 0x52542c3634303730,
hash = 1028345429}, next = 0x50542c36343d4f42, profile = 0x542c36343037303d}
(gdb) p *pl->profile
Cannot access memory at address 0x542c36343037303d
```
#### 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 `uname -a`)
-->
```
(paste your output here)
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1482
[View Less]
Juha Heinanen writes:
> While testing xflags, i noticed that a regular flag that I set AFTER
> calling t_newtrans() stays set in onreply_route even when I do not
> call t_flush_flags().
I made the same test with xflags and they do require t_flush_xflags()
call if an xflag is set after t_newtrans(); So the behavior is not the
same with flags and xflags.
This is confusing. The flags should behave the same way and I would
prefer the flags way in order to avoid the flush call.
I …
[View More]added sr-dev to this thread since it now deals also the new feature.
-- Juha
[View Less]
I tested xflags by making these calls in a route block:
INFO(********** setting flag 19);
setflag(19);
INFO(********** setting xflag 19);
setxflag(19);
and these calls in onreply_route block:
if (isflagset(19))
INFO(********* flag 19 is set);
else
INFO(********* flag 19 is NOT set);
if (isxflagset(19))
INFO(********* xflag 19 is set);
else
INFO(********* xflag 19 is NOT set);
The result to syslog was:
Mar 25 10:51:50 trout /…
[View More]usr/bin/sip-proxy[17939]: INFO: ********** setting flag 19
Mar 25 10:51:50 trout /usr/bin/sip-proxy[17939]: INFO: ********** setting xflag 19
Mar 25 10:51:50 trout /usr/bin/sip-proxy[17867]: INFO: ********* flag 19 is set
Mar 25 10:51:50 trout /usr/bin/sip-proxy[17867]: INFO: ********* xflag 19 is NOT set
-- Juha
[View Less]
Module: kamailio
Branch: master
Commit: b4fdeb01bd52427e9fa2cb8696b3b3631e871a79
URL: https://github.com/kamailio/kamailio/commit/b4fdeb01bd52427e9fa2cb8696b3b36…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-03-23T08:47:09+01:00
modules: readme files regenerated - rr ... [skip ci]
---
Modified: src/modules/rr/README
---
Diff: https://github.com/kamailio/kamailio/commit/b4fdeb01bd52427e9fa2cb8696b3b36……
[View More]Patch: https://github.com/kamailio/kamailio/commit/b4fdeb01bd52427e9fa2cb8696b3b36…
---
diff --git a/src/modules/rr/README b/src/modules/rr/README
index 9dd64a3a28..f1c00d6c12 100644
--- a/src/modules/rr/README
+++ b/src/modules/rr/README
@@ -169,8 +169,8 @@ Chapter 1. Admin Guide
3261 (see 12.1.1 UAS behavior).
For this purpose, the modules offers the following functions:
- * add_rr_param() - see Section 5.6, “add_rr_param(param)”
- * check_route_param() - see Section 5.7, “check_route_param(re)”
+ * add_rr_param() - see ???
+ * check_route_param() - see ???
Example 1.1. Dialog support in RR module
...
@@ -496,9 +496,8 @@ record_route_advertised_address("1.2.3.4:5080");
Adds a parameter to the Record-Route URI (param must be in
“;name=value” format. The function may be called also before or after
- the record_route() or record_route_advertised_address() calls (see
- Section 5.2, “record_route() and record_route(string)” or Section 5.5,
- “record_route_advertised_address(address)”)).
+ the record_route() or record_route_advertised_address() calls (see ???
+ or ???)).
Meaning of the parameters is as follows:
* param - String containing the URI parameter to be added. It must
@@ -516,8 +515,7 @@ add_rr_param(";nat=yes");
The function checks if the URI parameters of the local Route header
(corresponding to the local server) matches the given regular
- expression. It must be call after loose_route() (see Section 5.1,
- “loose_route()”).
+ expression. It must be call after loose_route() (see ???).
Meaning of the parameters is as follows:
* re - regular expression to check against the Route URI parameters.
@@ -535,9 +533,8 @@ if (check_route_param("nat=yes")) {
The function checks the flow direction of in-dialog requests. This
function uses the “ftag” parameter from the Route header, therefore the
- append_fromtag (see Section 4.2, “append_fromtag (integer)” module
- parameter must be enabled. Also this must be called only after
- loose_route() (see Section 5.1, “loose_route()”).
+ append_fromtag (see ??? module parameter must be enabled. Also this
+ must be called only after loose_route() (see ???).
The function returns true if the “dir” is the same with the request's
flow direction.
@@ -679,9 +676,8 @@ record_route_advertised_address("1.2.3.4:5090");
The function checks the flow direction of the request “msg”. As for
checking it's used the “ftag” Route header parameter, the
- append_fromtag (see Section 4.2, “append_fromtag (integer)” module
- parameter must be enables. Also this must be call only after the
- loose_route is done.
+ append_fromtag (see ??? module parameter must be enables. Also this
+ must be call only after the loose_route is done.
The function returns 0 if the “dir” is the same with the request's flow
direction. Otherwise, -1 is returned.
[View Less]