Hi,
I have latest stable release of RTPEngine deployed in a virtual machine
(KVM) along with Kamailio v4.2. All is working fine except i see this
message in RTPEngine logs,
--
rtpengine[16455]: [82qrjq0hdtt45afbqo98 port 40960] Kernelizing media
stream
rtpengine[16455]: [82qrjq0hdtt45afbqo98 port 40960] No support for kernel
packet forwarding available
--
using lsmod command i see that module xt_RTPENGINE is load.
--
Module Size Used by
iptable_mangle 12488 0
xt_RTPENGINE 22068 3
iptable_nat 12800 0
nf_nat 17924 1 iptable_nat
...
--
Also the iptables rule for RTPEngine exists, i.e.
--
Chain INPUT (policy ACCEPT 224K packets, 37M bytes)
pkts bytes target prot opt in out source
destination
224K 37M rtpengine all -- any any anywhere
anywhere
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source
destination
Chain OUTPUT (policy ACCEPT 224K packets, 37M bytes)
pkts bytes target prot opt in out source
destination
Chain rtpengine (1 references)
pkts bytes target prot opt in out source
destination
2022 414K RTPENGINE udp -- any any anywhere
anywhere RTPENGINE id:0
--
Yet still RTPEngine is not able to kernelize the RTP stream and does
user-space packet forwarding? Can you guys suggest what could be wrong here?
Thank you.
Hi!
While testing my pipelimit patch I got tons of these messages on my poor Mac:
2(32754) ERROR: <core> [statistics.c:385]: get_used_waiting_queue(): Could not open /proc/net/tcp. kamailioMsgQueueDepth and its related alarms will not be available.
2(32754) ERROR: <core> [statistics.c:385]: get_used_waiting_queue(): Could not open /proc/net/udp. kamailioMsgQueueDepth and its related alarms will not be available.
2(32754) ERROR: <core> [statistics.c:385]: get_used_waiting_queue(): Could not open /proc/net/tcp. kamailioMsgQueueDepth and its related alarms will not be available.
2(32754) ERROR: <core> [statistics.c:385]: get_used_waiting_queue(): Could not open /proc/net/tcp. kamailioMsgQueueDepth and its related alarms will not be available.
2(32754) ERROR: <core> [statistics.c:385]: get_used_waiting_queue(): Could not open /proc/net/udp. kamailioMsgQueueDepth and its related alarms will not be available.
Would it be ok to disable this whole function and return 0 if we're not on a Linux system?
I think about using #ifdef / #endif
/O
- URL: https://github.com/kamailio/kamailio/commit/89516388125cf086b44afd8aa72a675…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:22:35+01:00
seas: fixed inline functions warnings for clang
(cherry picked from commit c52e4e13ea57702aeed45a7a2059b97faf4d06f6)
(cherry picked from commit 71aae0b0dda086219663af38357801e05c49124f)
- URL: https://github.com/kamailio/kamailio/commit/4c871780d92112684ade6183c460025…
Author: Martin Mikkelsen <martin.mikkelsen(a)zisson.no>
Date: 2015-02-04T18:24:11+01:00
auth: use correct parameter for pv_auth_check checks
The pv_auth_check has a flags and a checks parameter but the flags
parameter is used for both. This means that if flags has the 1-bit set
it will enable both HA1-passwords and from/to URI checks and setting the
1-bit in the checks parameter does not do anything.
This fixes the parameters so that the checks parameter is used for the
to/from URI checks.
(cherry picked from commit 2cdda10aa232e545ba79ca71876f0160a68e324b)
(cherry picked from commit 8e40cee0473dab5e7796c6479f46f5994280b76a)
- URL: https://github.com/kamailio/kamailio/commit/cd8b2d7356428185e1f9afe563fb6af…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:24:23+01:00
nathelper: enclode IPv6 in square branckets for fix_nated_contact()
- even there is no nat in ipv6
(cherry picked from commit 814c08f36f13ace21e52181da3039402f951b0a8)
(cherry picked from commit ac3498deab72dd833af24e9974ad251960e8d6fa)
- URL: https://github.com/kamailio/kamailio/commit/3bc1c9732545a23d1b13031c184b688…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:24:43+01:00
pike: check that timer var is initialized before accessing the fields
- safe start with empty config, reported by Olle E. Johansson, GH#39
(cherry picked from commit c87a75c5fb7aa5d940093fbbca8d9557cc9a0239)
(cherry picked from commit 688593f15e2a67dfaf00d3b371633b3f93e3d584)
- URL: https://github.com/kamailio/kamailio/commit/e499db5715a5d535fd9a9bfbc5260e3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:24:54+01:00
permissions: init global pointer variables to null for safe shutdown at start
- reported by Olle E. Johansson, GH#41
(cherry picked from commit 165a3fc2e4dfed09bd9f46e43270d49cf5f72a87)
(cherry picked from commit 0421282a10446dd67236b6d4c7d103ee45301c28)
- URL: https://github.com/kamailio/kamailio/commit/8ee34daf8b1ce26b2d268dcac31cfbb…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:25:07+01:00
path: received parameter enclosed in square brackets if ipv6
- received should be useless for ipv4, but still can be enforced from
config, so has to be well formatted because it is followed by a port
- reported by Sebastian Damm
(cherry picked from commit 077b26385854feb701950d020e382c254b803e75)
(cherry picked from commit 6a9887370e1de87afc7f0da79b09eb62b350469f)
- URL: https://github.com/kamailio/kamailio/commit/c19063884ef9f61ff9607bef9b6a0ca…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:25:27+01:00
tls: updated the default tls session id string
(cherry picked from commit e47018b0a65a5e26ea47d789f0bc6d471aa3a117)
(cherry picked from commit e5885f2f4bb6066af8988942beff217cb282a29b)
- URL: https://github.com/kamailio/kamailio/commit/4f9be3b31c021f8ffa1b96decf95064…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:25:52+01:00
core: tls hooks can execute a callback before modules init function is executed
- useful to prepare tls environment before a module might access it
- executed after modparam but before mod_init
(cherry picked from commit 4700831fa0f2dc52e296ce647711b03d1406497a)
(cherry picked from commit 93804b66c5301af75cd6930f9c6653228cce8719)
- URL: https://github.com/kamailio/kamailio/commit/ca62ee4fdf8e4e3c55f7f7f990b2d60…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:26:45+01:00
tls: implemented tls hook for pre-mod init execution
- do openssl init at this callback
(cherry picked from commit f71243410d5e051def1a47cc73adb6caeeadd1cd)
(cherry picked from commit e6eca3e988226e3654c5c22d762048a5fff3491c)
- URL: https://github.com/kamailio/kamailio/commit/cf86d3de411227df68564627c200543…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:27:02+01:00
db_postgress: disable initialization of libssl if tls is loaded
- based on the note from docs to avoid double attempt to init the ssl
library
- http://www.postgresql.org/docs/9.4/static/libpq-ssl.html
(cherry picked from commit f04dec82e90ec7a3e6aea4ea8e9ed23b06b165c6)
Conflicts:
modules/db_postgres/km_pg_con.c
(cherry picked from commit eeae005fb3d5239dd6e3af727504fc829ea5a0fb)
- URL: https://github.com/kamailio/kamailio/commit/b7ebc49226246d0980763209608b497…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:27:34+01:00
userblacklist: init variables for safer destroy at startup
- reported by GH#42
(cherry picked from commit c28551cd245f5e8ab9fc5d5c29f657cc06ad81e2)
(cherry picked from commit 23e8ab71c7c6a3baf8858e02391e67f2e8c30c97)
- URL: https://github.com/kamailio/kamailio/commit/be2fc8297d5af01aa14167bb4d9917f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:27:43+01:00
sca: initialize sca variable to catch destroy on shutdown at startup
- reported by GH#35
(cherry picked from commit 010977f5febcf923a31d545bd631fbee11dd426c)
(cherry picked from commit 0d47a5cfc723be2b8ef2baeb439d5df05b5c580c)
- URL: https://github.com/kamailio/kamailio/commit/34305cffa8e0097b174fde5cfa102e8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:27:57+01:00
sca: more error handling during initialization of the module
- fix crash when the module doesn't initialize and calls destroy
function during shutdonw at startup
- reported by Olle E. Johansson, GH#57
(cherry picked from commit df2a45541c5e37907374c5e7595de1f30ea84f98)
(cherry picked from commit da06d9a4912f71b3e9f7af3d29a1543a4884efa9)
- URL: https://github.com/kamailio/kamailio/commit/6c04ea3fc133fa9fbedf1a8ac926e61…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:28:08+01:00
lib/srdb1: init columns array to 0
- allows proper cleanup if there is an error while filling the items
(cherry picked from commit e59db798b84f1641f807d216c2ca460cfedb31e7)
(cherry picked from commit 29e6386a140ccc4025e2ff98ad8a3b0d5da1b6c3)
- URL: https://github.com/kamailio/kamailio/commit/d8e4e900d0bf098656b996464986f37…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:28:18+01:00
sl: re-attempt to bind to tm after all mods init
- handle the situation when tm is initialized after the sl module
- re-binding is done on child callback with rank PROC_INIT
(cherry picked from commit 85d3488c3910d447f6900df166bc6b0c16a64e9c)
(cherry picked from commit aa87917aa27bcc9f3f71da4cead1b51d17e75da7)
- URL: https://github.com/kamailio/kamailio/commit/20477e75bd9ca4455348e68b66aad28…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-02-04T18:31:42+01:00
core: removed log message used for troubleshooting
(cherry picked from commit c22dfcd6359079f9ea3600bfeb31fe5edbf4f8b1)
(cherry picked from commit f1f9c545c617c6756659c550881dcf73e123b292)
Module: kamailio
Branch: master
Commit: f51f81c43419891c25b1d77cf0a9fd417989f390
URL: https://github.com/kamailio/kamailio/commit/f51f81c43419891c25b1d77cf0a9fd4…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-02-04T18:28:37+01:00
ratelimit Only output error message five times
---
Modified: modules/ratelimit/ratelimit.c
---
Diff: https://github.com/kamailio/kamailio/commit/f51f81c43419891c25b1d77cf0a9fd4…
Patch: https://github.com/kamailio/kamailio/commit/f51f81c43419891c25b1d77cf0a9fd4…
---
diff --git a/modules/ratelimit/ratelimit.c b/modules/ratelimit/ratelimit.c
index 13961da..dc5748f 100644
--- a/modules/ratelimit/ratelimit.c
+++ b/modules/ratelimit/ratelimit.c
@@ -325,9 +325,14 @@ static int get_cpuload(double * load)
FILE * f = fopen("/proc/stat", "r");
double vload;
int ncpu;
+ static int errormsg = 0;
if (! f) {
- LM_ERR("could not open /proc/stat\n");
+ /* Only output this error message five times */
+ if (errormsg < 5) {
+ LM_ERR("could not open /proc/stat\n");
+ errormsg++;
+ }
return -1;
}
if (fscanf(f, "cpu %lld%lld%lld%lld%lld%lld%lld%lld",
Module: kamailio
Branch: master
Commit: 1dac6708935dafce2ff6398f98cce97ab5a56f4d
URL: https://github.com/kamailio/kamailio/commit/1dac6708935dafce2ff6398f98cce97…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Olle E. Johansson <oej(a)edvina.net>
Date: 2015-02-04T18:27:14+01:00
pipelimit Only output error five times
---
Modified: modules/pipelimit/pipelimit.c
---
Diff: https://github.com/kamailio/kamailio/commit/1dac6708935dafce2ff6398f98cce97…
Patch: https://github.com/kamailio/kamailio/commit/1dac6708935dafce2ff6398f98cce97…
---
diff --git a/modules/pipelimit/pipelimit.c b/modules/pipelimit/pipelimit.c
index 861d6b1..5ed5c13 100644
--- a/modules/pipelimit/pipelimit.c
+++ b/modules/pipelimit/pipelimit.c
@@ -223,9 +223,15 @@ static int get_cpuload(double * load)
FILE * f = fopen("/proc/stat", "r");
double vload;
int ncpu;
+ static int errormsg = 0;
if (! f) {
- LM_ERR("could not open /proc/stat\n");
+ /* Only write this error message five times. Otherwise you will annoy
+ BSD-ish system administrators. */
+ if (errormsg < 5) {
+ LM_ERR("could not open /proc/stat\n");
+ errormsg++;
+ }
return -1;
}
if (fscanf(f, "cpu %lld%lld%lld%lld%lld%lld%lld%lld",