Richard Fuchs
c969ea1e57
move stats and statsps into global scope
Change-Id: I02d16e31f8980bd0ef3ff3a190b23dc61c087018
8 years ago
Richard Fuchs
cf3a8f9e16
move 'poller' member of callmaster into global scope
Change-Id: Ide88caff59529278e45ceef4f9664bfc07f67b3d
8 years ago
Richard Fuchs
dffbddb2d6
don't use g_ prefix for global variables
Change-Id: Ifd843b01d7fccf294f97fdf48308c71268e1b8ae
8 years ago
Richard Fuchs
e87b2710c8
move matching regexps out of callmaster into global
Change-Id: I42779b3a1b9aef8b98ddecce6fa4093589ab6d62
8 years ago
Richard Fuchs
790e596c58
move cngs out of callmaster into global scope
Change-Id: I138ca8756dfc576451bc7c3fca1db89d6616fb1e
8 years ago
Richard Fuchs
399e15b39a
make the callhash global
Change-Id: Ifa1fbb5d1b1f623dbc6a1bfac556342735b40161
8 years ago
Richard Fuchs
acba2751f8
suppress log message on "comprehension option" STUN attributes
closes #436
Change-Id: I3b5583a83500b7cbfaf1317cae18d5f186554672
8 years ago
Richard Fuchs
018e35cba8
TT#27200 add option to omit a=rtcp attribute
closes #428
Change-Id: Ie186291b7b0107d67488facbfea42cd4915556b4
8 years ago
Richard Fuchs
c17f4fe53d
avoid side effects in assert()
closes #434
Change-Id: I6aad7ccb556453650d80cf588ae80daf98d3369d
8 years ago
Richard Fuchs
8733875b36
README updates
Change-Id: I201d91626210d5c558c19d5421ebf2a1a0b34985
8 years ago
Richard Fuchs
2e5b80fe7d
add config file options to README
Change-Id: I1e12497c3cdf09d4a7ff28609477bfea023f55d9
8 years ago
Richard Fuchs
1aa9944fe4
TT#27550 implement interface round-robin selection
Change-Id: Id5cf290cc9d044716b5f55cf416dc40b87f23f24
8 years ago
Richard Fuchs
61d828a48f
change str_chr_str() semantics
Change-Id: I0fb541215a1bb1a248693a6258e953827258b7ec
8 years ago
Richard Fuchs
7b757ffd8c
allow -ip host:port syntax in rtpengine-ctl, and document loglevel cmds
Change-Id: I8004e2bd002ceeee56bb9cc974bbeef533001c0d
8 years ago
Richard Fuchs
b7aeff9a1c
TT#24550 implement CLI get/set log level
Change-Id: Ifedc8561f08fe75af210346f5032e8d893f2e0d5
8 years ago
Richard Fuchs
e1ce74985f
TT#28354 consolidate CLI string handling
Change-Id: Icb0734f94d5910427a57c85e31e85782a62b22fe
8 years ago
Richard Fuchs
2eb01695bb
TT#26756 clean up CLI code using streambuf
Change-Id: I0e6c264d5cbd569fb35fab3ad2b0a4f6413949b0
8 years ago
Richard Fuchs
d10952a029
TT#26757 add tcp_listener framework
Change-Id: I402d36637235ba0cc03e77d426f4dd9cbc4722a9
8 years ago
Guillem Jover
fd3c1d2519
TT#26513 Delete the kernel forwarding table on startup
If we are creating the kernel forwarding table, we have to make sure it
has been deleted already, otherwise we can get into collisions with the
already setup forwardings, and the subsequent add will fail anyway.
Change-Id: I2601c602543ff3e3493bae296d263dde545ff352
8 years ago
Guillem Jover
1b8f5e4a55
TT#26513 Preserve errno on error returns
We should preserve the errno value so that the caller can report
accurate error information, as the close() call could fail too.
Change-Id: I1a36ace8f47ad3ea550aa3e2e272922633abfdca
8 years ago
Richard Fuchs
77de3d06ea
Merge branch 'add-ToS-to-control-ng' of https://github.com/1and1/rtpengine
Change-Id: I217e772f79a1e1147ceced418020513fe277055f
8 years ago
Claudiu Boriga
43f527fb82
Add documentation for the control-tos option
8 years ago
Guillem Jover
708231858f
TT#26513 Pass --retry=5 to start-stop-daemon and avoid sleeping
Change-Id: I8221d1b48b9d3d76f1421f47f6dc02c509b4d7bb
8 years ago
Guillem Jover
0d3e69387c
TT#26513 Improve sysvinit output messages
Change-Id: I57162bba42a84a99cd47fe94abdd92b33436c286
8 years ago
Guillem Jover
a456e201cf
TT#26513 Remove unused modprobe variables
Change-Id: Ic52f2e4fc4bca1f76d67178be9d553b0321a8160
8 years ago
Guillem Jover
172bd1f637
TT#26513 debian: Simplify upstream version fetching
Change-Id: Ia1e99d197b2f63d5fa36edf0475e2aa3f4c83053
8 years ago
Claudiu Boriga
3472821ccc
Add option to set TOS for control-ng interface
8 years ago
Sipwise Jenkins Builder
b637c8f4b7
Release new version 6.1.0.0+0~mr6.1.0.0
8 years ago
Guillem Jover
6721f3c973
TT#22072 Update debian/.gitignore
Change-Id: Ic284326be495c55c0f3b597d72ffc591b79d72ad
8 years ago
Dmitry Poroh
cc09f4d3de
Crash stream_packet in case of out_srtp is NULL is fixed
8 years ago
Guillem Jover
677c9a52d2
TT#22072 Update packaging
- Bump Standards-Version to 3.9.8.
- Bump debhelper compatibility version 10.
- Switch from Priority extra to optional.
- Canonicalize Homepage URL.
- Add a debian/.gitignore file.
- Replace ngcp-rtpengine-dbg with automatic dbgsym packages.
Change-Id: I969b608f2c737f62eef0082cad82bec6293af3f1
8 years ago
Richard Fuchs
031921c322
purge old entries from SSRC hash table if it gets too full
fixes #417
Change-Id: I4da50858d3c4959687b341b7c0856a868c87ffa7
8 years ago
Guillem Jover
465f3fe721
TT#24097 Remove $ from variables inside arithmetic evaluation
Change-Id: I51742f8b08f4402016e6c640d289342fcb51b926
8 years ago
Guillem Jover
53b3c36939
TT#24097 Fix shell quoting
- Add missing quotes.
- Switch some problematic usages to use bash arrays.
- Override shellcheck errors (these might need fixing in the future).
Change-Id: Id451ff9f4c5d5ef9b3826544908d64e9c08c5797
8 years ago
Guillem Jover
376df64d80
TT#24097 Use «grep -E» instead of deprecated egrep
Change-Id: Ia4d51ece3aba31777f62c92897d4e7c207e6d07c
8 years ago
Guillem Jover
33bafcfc3c
TT#24097 Use $() instead of deprecated ``
Change-Id: Ief744bc63928e9eeee72436911e01b7b2a29c260
8 years ago
Guillem Jover
04f57900fc
TT#24097 Switch for loop to use the i variable
This makes it a more natural code pattern.
Change-Id: I200df650625de63ec1a7cacb05c73ee8f0c40080
8 years ago
Guillem Jover
747661ff0d
TT#24097 Do not use bash builtin names in sh scripts
Even though this is a false-positive, it confuses checkbashisms. So
let's rename the variables to something else, even more descriptive,
to avoid the check error.
Change-Id: Ife79bf76121bb4e3c120525ffe5a0eca871936f6
8 years ago
Guillem Jover
33518213c0
TT#24097 Remove unused shell variables
Change-Id: I529a493b2c8d3573d1b848c3fffa951bb8fc60c9
8 years ago
Guillem Jover
19b4df7fb6
TT#24097 Do not use unportable test operators
Change-Id: Ifea38fdfadf5b1e80bb6a9d9158cec4eeb533531
8 years ago
Guillem Jover
b2636dcb29
TT#24097 Enable strict and warnings everywhere
Change-Id: I7362eaf95a41c67f65d79ea9e4bc1fb94eb32e69
8 years ago
Guillem Jover
0bdc116387
TT#24097 Rework perl code flow
- Avoid comma-separated statements.
- Avoid mixed boolean operators, and use proper code flow keywords.
Change-Id: Iec4c85a3d39fe94ba7b9f293dc158892ae7d9577
8 years ago
Guillem Jover
cff9d296fd
TT#24097 Reorder hash assignment to make perlcritic life easier
The code is correct, but perlcritic seems to have problems parsing it
and confuses it with a statement separated with a comma.
Change-Id: I76cd82699cffa2b1a9d938c53172f02d09f47583
8 years ago
Guillem Jover
acf84a7eb4
TT#24097 Use semicolon instead of colons for end of statement
Change-Id: Iebad9ae973f5e6ddd9712635c21d6137536c0d92
8 years ago
Guillem Jover
0012037a32
TT#24097 Allow perl builtin homonyms for method names
These are methods and do not really conflict with the perl builtins
with the same name outside of this package.
Change-Id: If7405ebc6a9e862433e576743ae6c32d7d6ec51e
8 years ago
Guillem Jover
b4d0ff7f39
TT#24097 Use upper-case HERE-doc markers
Change-Id: Ic161ae00c573c6febb4c8366ed1ee3773c2cfc0e
8 years ago
Guillem Jover
0c728b2041
TT#24097 Localize %ENV variable assignments
While these instances are a bit pointless as they are assigned on the
file scope, and this is something that should be allowed by perlcritic.
Let's just do this, which does no harm, so that we can catch other
problematic cases.
Change-Id: I674b1374a62fa976e20a3fedf356ae6d4848a796
8 years ago
Guillem Jover
301af4a2e9
TT#24097 Declare variable as my
Change-Id: Id5aa7f7f3c0839564804102fb401e5422e676433
8 years ago
Guillem Jover
d5ad4a9f88
TT#24097 Do not use magic variable names
These variables have magic meanings, we should avoid their usage to not
confuse readers nor trigger side-effects.
Change-Id: Ieb759f74ccde6ba6466f5c02743e3f881b5d53b7
8 years ago
Guillem Jover
bf514fb2a0
TT#24097 Do not directly return result from sort
Using sort on a scalar context has undefined behavior. Assign the result
of the sort into an array and return that.
Change-Id: I180ba1dfcafe6e49132a38bd01be715718a4dff1
8 years ago