Richard Fuchs
ea7d04ae76
TT#136952 add CLI options to manipulate calls and tags
Change-Id: I9b6b24cbcaa7ed62a5dd786ae5d847ecee8cd46f
4 years ago
Richard Fuchs
ef141e6810
TT#136952 split up CLI tag info writer
Change-Id: I40f9e89d11edb3857ae7d1b6663b9afb0efc5c78
4 years ago
Richard Fuchs
31ad47af33
TT#136952 split up call info CLI writer
Change-Id: I8a2aaa08b2ad1a6d8a3b6a8753b0e6e0248f43d4
4 years ago
Richard Fuchs
b9eea8c579
TT#14008 fix 32-bit compiler warnings
Change-Id: Ibf2d631245e2ee67ee2023647ceac349e8c9b605
4 years ago
Sebastian Kemper
746dedb602
Add support for time64 libcs
libcs are implementing changes to fix the year 2038 issue on 32 bit
platforms (see [1]). musl libc already went ahead and implemented it,
starting with musl-1.2.0 (see [2]).
This commit adds a new definition to lib/loglib.h:
TIME_T_INT_FMT
If __USE_TIME_BITS64 is defined (by a time64 libc, see [1]), it's set to
the proper conversions for type int64_t, PRId64. If __USE_TIME_BITS64 is
not defined, the status quo remains unchanged ("%ld" is used).
The new definition is used in the different parts of rtpengine, where
appropriate.
Note: Richard confirmed that the "%u" format in daemon/cdr.c is not
needed, so this gets swept under the rug.
These changes get rid of the new warnings that appeared with musl-1.2.0.
Below an example warning:
In file included from ./log.h:6,
from ../include/obj.h:94,
from ../include/media_socket.h:9,
from ../include/call.h:26,
from ../include/redis.h:15,
from redis.c
redis.c: In function 'redis_check_conn':
../lib/loglib.h:56:30: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'time_t' {aka 'long long int'} [-Wformat=]
56 | __ilog(prio, "[%s] " fmt, log_level_names[system], ##__VA_ARGS__); \
| ^~~~~~~
../lib/loglib.h:64:39: note: in expansion of macro 'ilogsn'
64 | #define ilogs(system, prio, fmt, ...) ilogsn(log_level_index_ ## system, prio, fmt, ##__VA_ARGS__)
| ^~~~~~
../lib/loglib.h:63:30: note: in expansion of macro 'ilogs'
63 | #define ilog(prio, fmt, ...) ilogs(core, prio, fmt, ##__VA_ARGS__)
| ^~~~~
redis.c:887:17: note: in expansion of macro 'ilog'
887 | ilog(LOG_WARNING, "Redis server %s is disabled. Don't try RE-Establishing for %ld more seconds",
| ^~~~
[1] https://sourceware.org/glibc/wiki/Y2038ProofnessDesign
[2] https://musl.libc.org/time64.html
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
4 years ago
Richard Fuchs
24f607752c
TT#145450 add support for tracking multiple SSRCs per stream
Change-Id: I885fbf7973133af8d7c9184eb0e75f5401309c8e
4 years ago
Richard Fuchs
9a149a77fb
TT#14008 make CLI call iterators lock-free
Change-Id: Id479c66ddd8f8e150bcc30325a356c39e00bb44c
4 years ago
Richard Fuchs
c5dc3484ae
TT#131402 split up relay stats between kernel and userspace
Change-Id: I9e5a82e5817829d8a1b17e6828bb0594fbc8df08
4 years ago
Richard Fuchs
ad64f4fa00
TT#101150 introduce proper struct for "counter" style stats
Change-Id: Ifd06c54b25126426fe21723b8fb7a21d9bd03cba
4 years ago
Richard Fuchs
7dcc4473f5
TT#101150 split out "gauge" style stats
Change-Id: I52617a083bbbd41342b6413d8cacc5235cec51d9
4 years ago
Richard Fuchs
765b1e3bca
TT#89352 use bool type for foreign call functions
Change-Id: If8d5e28db534e6aeaaffb885e732e2bdd7338831
5 years ago
Richard Fuchs
94a5feea7d
TT#111150 fix coverity warnings
Change-Id: I330d5137d38017641bdda71e8bd014c358c432fb
5 years ago
Richard Fuchs
92fb330a46
TT#91151 implement one-to-many forwarding
Change-Id: I80fd35da680d4ad1f4d3d21f14f11363106b9917
5 years ago
Richard Fuchs
d5d0a3a994
TT#111150 convert str.len to size_t
This makes the type in line with string(3) functions and eliminates some
compiler warnings.
Also update the related bencode data type.
Change-Id: I7ef4024f4b5a0f737b3dbe03bcd078032395bce6
5 years ago
Richard Fuchs
a8d5076065
TT#119502 correctly restore calls from both Redis instances
Change-Id: I713d7e8ba0a7d14f5ef9016d33619df91ce6ec32
5 years ago
Richard Fuchs
05ef61c0d7
TT#108003 fix errors reported by coverity
Change-Id: I6641da426f1e05f0d0e3924887baf7fb948fb0c9
5 years ago
Richard Fuchs
a86d98f8d1
TT#118902 add support for per-call debugging
Change-Id: I9b0eab21ff4e5c241ff045049ccd37f6044d5707
5 years ago
Stefan Mititelu
482e2d0d2b
Add stats for ipv4/ipv6/mixed media calls
Also Send stats for ipv4/ipv6/mixed media calls to graphite
5 years ago
Huseyin Dikme
1d1558bcc1
added rtpengine-ctl set and list options for the delete-delay config parameter
5 years ago
Guillem Jover
1e62cbbb9a
TT#111150 Inline int_diff_print_sz() to avoid pointer handling
We simplify the function so that we do not need to meddle with pointers
and data sizes.
Change-Id: I3e653b44b28347053cc7a1053de8220c80250816
Warned-by: lgtm
5 years ago
Richard Fuchs
030f38ff16
TT#97301 add description to log levels
Change-Id: I223d69016b5e6328f1124a6a977c46d008b667dc
5 years ago
Richard Fuchs
c69415ba45
TT#97301 allow printing and setting of individual log levels
Change-Id: I3ac399a7041aa04847fd4a35a9c0f12a2a0a8ce3
5 years ago
Richard Fuchs
89d017ed73
TT#97301 update CLI online help
Change-Id: Ib5615f15cefa23ac093115318f84cf712f735322
5 years ago
Richard Fuchs
30733ec5cd
TT#97301 support granular log levels
Change-Id: Ife458bd2449f61113a3e6db1708821570d92dc23
5 years ago
Richard Fuchs
260a170524
TT#81212 add trigger to set all calls to own or foreign
Change-Id: I9ee69680bccd79bae19332189a8531eaa2f6950b
5 years ago
Richard Fuchs
cbf6ad7041
TT#88951 abstractise CLI handling and writing
Change-Id: I004cbc4a8690b11822ab54f34af01557b87c6a02
5 years ago
Stefan Mititelu
2ebf5a1526
Add redis async delete
5 years ago
Richard Fuchs
1589c29e28
TT#28300 add cleanup of poller related data
Change-Id: I64a38869ce3120d066fc818e3c76941a1c8186b7
6 years ago
Richard Fuchs
ac765d1b54
TT#82410 unify stats gathering functions
Change-Id: I5be2f728a40d69e76b7fcdd04b9d7cb62e34665e
6 years ago
attermann
da3c40e24a
Added "currentstatistics" to json stats.
6 years ago
Richard Fuchs
64e6bf440b
TT#82203 add detailed transcoding stats
Change-Id: Ib04767c38b00b17ef5844a9f6649e009270f8f82
6 years ago
Richard Fuchs
5f3f203fb8
TT#82203 add stats for transcoded sessions
Change-Id: Ie9bef31f62d489fccf52b02a8935f9c9dc2575b5
6 years ago
attermann
ccf1d4698a
Extended json control statistics
Added missing control statistics as well as aggregate counts for all
proxies.
6 years ago
attermann
032c6e473c
Added cli command for parseable stats.
Added support for "list jsonstats" CLI command that return the same
stats as "list totals" but in easily parseble json format.
6 years ago
Richard Fuchs
08cdb4cdb6
TT#74300 split intro for call-id CLI output
Change-Id: I4872ce173372b767b467afd4122bba809f4f0c3e
6 years ago
Richard Fuchs
c3f5282759
TT#74300 adapt CLI output to match log output for call stats
for #908
Change-Id: I68d0cd92f00b261d604074362cc658589d94543e
6 years ago
Richard Fuchs
5ac07564bd
TT#74300 run indent over cli_incoming_list_callid
Change-Id: Ife1e0f1ad8820807fd409fe422f40b4d483282eb
6 years ago
Richard Fuchs
8322a8b37f
TT#72350 add codec info to CLI output
closes #889
Change-Id: I7e717f58d5da8d505911f1df5bc6a99f0d9c97dc
6 years ago
Richard Fuchs
26b725d024
TT#45617 add new options to support log markers for sensitive data
Change-Id: I2ffa4da4be3a05f043e7991612bbb37d8102d91a
7 years ago
Richard Fuchs
35764c5c63
TT#44702 add CLI command for interface/port stats
Change-Id: I670b3779d748e81097995961d6411d21a279bd08
7 years ago
Richard Fuchs
e67b9c40da
TT#43556 support blocking of DTMF event packets
Change-Id: I7ef43ddb254b1583c2dc69b44a13b978eff15510
7 years ago
Richard Fuchs
be9c3146f4
fix missing header include
fixes #569
Change-Id: I795a96dbe224bc798317e47b11d758e56e26d1ae
8 years ago
Richard Fuchs
14ffd8feb0
TT#36303 support bandwidth usage resource limit
Also fixes logic for other resource limits
Change-Id: I263e097da5b5671826e0d92a28fb3a5c6f3ac193
8 years ago
Huseyin Dikme
ab58245096
-cli params diff command has been updated to serve only for the
possible modifiable configuration file parameters.
-Additionally, cli params revert command has been implemented.
8 years ago
Richard Fuchs
345836e90a
TT#35413 implement a CPU limit and a load limit
Change-Id: Ia0c605d17866c232353917f2980637fa7823dce4
8 years ago
Richard Fuchs
761ac6cb4f
errno must be set to 0 before calling strto*()
... when using errno to determine errors
fixes #532
Change-Id: Iba1d02a86026cc878595895e91abe164cfe4d9bd
8 years ago
Richard Fuchs
6fa712d0d8
implement offer-timeout option
closes #526
Change-Id: I819e1ad567c93f922461caf15482c2c55a0143d1
8 years ago
Claudiu Boriga
ff2a278ad7
Make 'rtpengine-ctl' configurable via rtpengine-ctl
8 years ago
Claudiu Boriga
0f9151e9ea
Make 'redis-allowed-errors', 'redis-disable-time', 'redis-cmd-timeout'
and 'redis-connect-timeout' configurable via rtpengine-ctl
8 years ago
Claudiu Boriga
f2ce4d3a25
Add rtpengine-ctl 'get' commands as alias for 'list'
8 years ago