Richard Fuchs
4aaccca6ee
TT#50652 separate out media playback routine
...
Change-Id: I35e4071645ff2c0e16a9901ff3d65516dda1907e
7 years ago
Richard Fuchs
92b08d899c
TT#50652 add media playback capability
...
Change-Id: I935812639e4f42cd89c4ecf02f5ae1a9a8243a65
7 years ago
Richard Fuchs
6ba60d5b54
TT#50652 split out packet dequeuing and sending function
...
Change-Id: I303bcfb8869699554ff7381c68767c56fdcdda87
7 years ago
Richard Fuchs
3374254899
TT#50652 split out codec payload type init function
...
Change-Id: Ifd71439179925961f25c828132d7afb207a4f344
7 years ago
Richard Fuchs
83965bdb1f
TT#50652 infrastructure to support reading/playing of media files
...
Change-Id: I8212f5c74bcb9557d41f80ef3a1595f53bafde8a
7 years ago
Richard Fuchs
d96dbdea17
TT#50652 split timer thread functions into separate file
...
Change-Id: I445f3e2556ce647bf7e245e9612f4babcf04e388
7 years ago
Richard Fuchs
cfe6f87c8d
TT#50652 split timeval_cmp_ptr into function
...
Change-Id: I803e25bc3dc631d9eb05223d61708e9bfc5ca9de
7 years ago
Richard Fuchs
0cccae445f
compile fix for with_transcoding=no
...
Change-Id: I6cf6b7d7bc60b21a74be2a7c6c6d11b13b954a04
7 years ago
Richard Fuchs
e3ec97f858
TT#50652 add -Wstrict-prototypes everywhere
...
Change-Id: Ic5b5fcb892a8f70196478f8622d956bdea373422
7 years ago
Richard Fuchs
8f3c309c7f
fix always-transcode not being honoured when only codec-mask was used
...
reported in #664
Change-Id: I2cdfe405c61d48513a01393c5306fe4c875325ee
7 years ago
Richard Fuchs
6092c91ae4
TT#50652 fix possible sequencing bug while resampling
...
Change-Id: I5e0baec70892cbef9a9a036285379fe75ee3eba0
7 years ago
Guillem Jover
1f10dc30d5
TT#49106 Move the usage information into a new man page
...
Change-Id: I837d65c624cf1cabad543236b0a4e36f57894bab
7 years ago
Richard Fuchs
da5cacc965
TT#50652 add YCM config for include/
...
Change-Id: I7c1cb9cd4d8ef97166c8aa1ba470e5fef5f59863
7 years ago
Richard Fuchs
ed5af2df00
TT#50652 add YCM helper macro for CSH hashing
...
Change-Id: I498776539a19f0e5b529b91640af20f8cc3ac948
7 years ago
Richard Fuchs
497c2d6a8d
TT#49104 move RTP sequencing into SSRC context
...
Detect and handle RTP seq resets while transcoding and provide
consistent output seq
fixes #664
Change-Id: I063bd9432f253fde25e90cdeb4e3460a882f7778
7 years ago
Richard Fuchs
717021a29c
add ssllib to gitignore
...
Change-Id: I28d25e1fffa72e4b9f8c179d341873963b67b93d
7 years ago
Richard Fuchs
3b28460507
TT#52651 Squashed commit of the following:
...
commit 2029144368
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Feb 21 13:12:50 2019 -0500
TT#52651 switch TCP to TLS
Change-Id: Iab6b05d3b5c88553cbd6f531f3189084d9e71995
commit b28e718ee4
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Feb 22 09:20:54 2019 -0500
TT#52651 generalise streambuf interface
Change-Id: I7d5ab8ffe13e52d4dbb1901531cc13fcc173d60d
commit cb2dbd2a92
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Feb 19 09:32:56 2019 -0500
TT#52651 add start/stop forwarding commands and party selection logic
Change-Id: I8ef7e288d3a3e485bd2fa14e1a2407a0c8d94bac
commit 442c48f627
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Feb 14 15:43:23 2019 -0500
TT#52651 produce output for TCP forwarding feature
Change-Id: I18543921577faf655679829684f5af46c0af5054
commit 2ef8028eb2
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Feb 14 10:18:21 2019 -0500
TT#52651 make recording to output files optional
Change-Id: I12c288b965641352658ce3b499c2ee90593e1322
commit 10a58cd7a0
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Feb 13 16:02:16 2019 -0500
TT#52651 strip streambuf into lib and include in recording daemon
Change-Id: I1f6638961e9e767063e0b4e6b5d55d88799366d3
commit 9d3bb5bffc
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Feb 13 15:40:12 2019 -0500
TT#52651 extract/move unrelated old legacy decoder struct members
Change-Id: Iffd79b43180c30a9e128a460f7ba85ba49dedeaf
commit 1bc38e4201
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Feb 12 16:43:42 2019 -0500
TT#52651 config options for forwarding option
Change-Id: Ieaa2ee0e55a0c531158174bc6a534738a64dbee6
commit 06d61cd3dd
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Feb 12 16:29:52 2019 -0500
TT#52651 move socket.[ch] into lib/
includes necessary re-shuffling of additional code pieces
Change-Id: I74b314ab5936ac8a0eeaff94e084617b59b28d79
Change-Id: I025e8ec86b90ede79565542dff57ec1559d04200
7 years ago
Alexey Vasilyev
0c9bb7c440
Rename crypto suits according to RFC6188
7 years ago
Richard Fuchs
4266f8e542
move SDES-no handling into __sdes_accept
...
This fixes SDES-no being honoured also for SRTP>RTP transcoding cases
additional fix for #661
Change-Id: I229f89c8b3c6a8e485190d67162e95eee387e307
7 years ago
Richard Fuchs
415af36ae6
don't add rtpmap or mid attributes for deleted/silenced streams
...
fixes #686
Change-Id: Ie9a155072a8b6acb8edcf59a5dd164f78a503616
7 years ago
Richard Fuchs
0c559f5860
Add missing SDES accept routine
...
When we receive an incoming SDES parameter, we must match them against the
previously sent outgoing SDES parameters, choose the one that matches
what we just received and eliminate all others. This is a no-op if none
were sent previously (original offer).
Issue only appears in a re-invite when the first offered crypto suite is
accepted.
fixes #631
Change-Id: I4991d0aaf0b29c1ba66045ed0e5281fc18c8af2e
7 years ago
Richard Fuchs
5c556ef4cf
don't abort on failed EPOLL_CTL_MOD
...
EPOLL_CTL_MOD is used to monitor an fd's writeable status when write was
blocked, but due to a race condition it's possible that the same fd gets
closed by another thread at the same time, causing the EPOLL_CTL_MOD to
fail. As this is now expected, handle it appropriately.
fixes #684
Change-Id: I1ddf16fdbf0fe3e98b4d908544735b823c4cf539
7 years ago
Richard Fuchs
b593d57e21
TT#37400 do not answer with ICE attributes if no ICE was offered
...
fixes #561
Change-Id: Ia660f19109404f8edc1dd5c143e797a82d25276d
7 years ago
Richard Fuchs
e1d6c83319
ignore transcoding options in non-offer messages
...
part of the fixes for #681 (and encountered elsewhere)
Change-Id: I15752ad3183cc55d677eca80e11b000e0b069290
7 years ago
Richard Fuchs
744d6a46ff
add codec-set option
...
Codecs that were implicitly accepted for transcoding had no option to
set their parameters (such as bitrate) for encoding. The codec-set
option adds this.
fixes #681
Change-Id: Ib238eb73a507af168c366579abc80da07250fe88
7 years ago
Richard Fuchs
ee01f15852
fix non-default encoder bitrate not being applied
...
Bitrates specified in codec-transcode-... options were applied to the
decoder created during the offer. The matching encoder only gets created
during the answer phase, at which point the specified bitrate must be
copied from the decoder.
fixes #681
Change-Id: Idc6a16a4493908d78bb0b48ae590aba046152af0
7 years ago
Richard Fuchs
0e129eda08
TT#49600 fix offered crypto suite not being dropped via SDES-no
...
fixes #678
Change-Id: I80ca6c268b7397e7901017a4a7000dd2b2b66bd6
7 years ago
Richard Fuchs
c80f55b85a
TT#49600 add debug log output for SDES negotiations
...
Change-Id: Ifb49d202bfa691cba63f86192e5730f1446ba1b9
7 years ago
Richard Fuchs
aaf8cbd525
TT#49350 eliminate stray scheduling warning
...
Change-Id: I84a13cdca6bf85de8d3fd8b086de6f57287b7b15
7 years ago
Guillem Jover
690bc91337
TT#49106 Fix typos
...
Change-Id: Ife08b36a94b5f6b525f18f359bca1c18bfe46305
Warned-by: lintian
7 years ago
Richard Fuchs
9e4d140e7b
TT#49045 add new flag to leave media direction attrs unchanged
...
Change-Id: I2dcafa3be9f8a0dfd7c1cf3e6046dabe9fa5bbee
7 years ago
Yasin CANER
e8771d309d
daemon makefile : added if statement for g729
...
added if condition for g729 codec . After installation bcg729 library from git repo , it helps to find right path.
7 years ago
Richard Fuchs
881e0dc2dc
TT#48800 add option to disable individual SDES crypto suites
...
closes #661
Change-Id: I3556977246d6e15bf134755e1d699e9165735886
7 years ago
Richard Fuchs
810bda1486
TT#48800 create codec hash tables only on demand
...
Change-Id: I255d6ed2b2bc650115f008d90baa0ebbaa524f68
7 years ago
Richard Fuchs
98de5697e6
TT#48650 use constant string hashing for string lookups
...
To avoid repeated strcmp()s and make use of switch()'s optimised binary
lookup, we employ a second build step that preprocesses certain .c files
and uses gperf to substitute pseudomacros with their respective constant
hash value.
Change-Id: Id89c4728a0fc7aa911691d4dd1ba8e7b3916a983
7 years ago
Richard Fuchs
9e6199c7b9
don't skip incomplete monologues for `query`
...
Change-Id: I54b957b08440d7d31b26ef7fe99a31073171ae82
7 years ago
Richard Fuchs
c61d7f129e
add new `full rtcp attribute` flag
...
closes #668
Change-Id: I1ee13d4121d0aa6dff46470327a6caba9b631d7d
7 years ago
Richard Fuchs
19da0e05e8
TT#45472 save and restore media IDs from and to redis
...
Change-Id: Ic69b509531d4e5483122470cd3d2b0c7de712dca
7 years ago
Richard Fuchs
3dc7d1b3ed
TT#45472 support updating media ID strings
...
Change-Id: I8c8f42419d81fb3e08ecbbf09999d2be4f2ac93f
7 years ago
Richard Fuchs
d39c2dbb43
TT#45472 properly accept support for trickle ICE
...
Change-Id: Icb3bbe3b2e5eebd1db43254d4ba13b0fba218fcb
7 years ago
Richard Fuchs
77e2862a02
TT#45472 suppress media updates for SDP fragments
...
Change-Id: Iceae3fb44f77448311767d649d2f22e1153f27e9
7 years ago
Richard Fuchs
18ec141d2b
TT#45472 avoid an unnecessary implicit call to strlen
...
Change-Id: Ic45451ed3bab3d3724e4dadd43026529d3abc707
7 years ago
Richard Fuchs
d08d84071a
TT#45472 support SDP fragments for trickle ICE
...
Change-Id: I31880b5cf837a078bdb75e86dd425136bf829e4c
7 years ago
Richard Fuchs
3603cda0c4
TT#45472 fix indentation
...
Change-Id: Ibe64ae682f2c888897c4f9844db128b80e9d81e7
7 years ago
Richard Fuchs
c546b6b89f
TT#45472 check a=mid values in answers and warn on mismatches
...
Change-Id: I49b359db40b984abb8a46407145d5adeb7e19cfa
7 years ago
Richard Fuchs
e1fbe25b89
TT#45472 keep track of media IDs in a hash table
...
Change-Id: I66d2a5aff29447a60f4f3961165bfb6c0392a38e
7 years ago
Richard Fuchs
a1efdf6b20
TT#45472 support generating a=mid lines if not present
...
closes #641
Change-Id: I849f0c73c5fdd575417a37a41d6701ea4454374b
7 years ago
Richard Fuchs
3c50130c7b
TT#45472 process and retain media ID strings (a=mid)
...
Change-Id: Icf7219f407ed660c009ffde838c942e13aad40ce
7 years ago
Richard Fuchs
b778b712fc
fix poller race condition
...
One thread may close an fd while another thread is processing the result
events that can include a POLLOUT for the same fd. That same fd might
then get re-opened as another type of object and get added to the poller
again. When the POLLOUT event then gets processed, no `writeable`
function would be present.
This is not a clean fix for the underlying race condition as stray
events might still get processed, but seeing extra stray events should
not be a problem.
Change-Id: I2fa2277bb0ddf512f53917297bd4220fe794dd0e
7 years ago
Richard Fuchs
fb1083f8e3
Add option to leave base64 padding for a=crypto in place
...
closes #658
Squashed commit (plus docs and minor modification) of:
commit 4187cd3b2d
Author: Muhammad Zaka <muhammad.zaka@synety.com>
Date: Mon Nov 19 18:13:43 2018 +0000
removed unnecessary pad_crypto_def variable
commit 5c7b7c0ced
Author: Muhammad Zaka <muhammad.zaka@synety.com>
Date: Mon Nov 19 17:39:18 2018 +0000
add `pad-crypto` flag to not truncate trailing '==' after base64 encode
commit 98bea79902
Author: Muhammad Zaka <muhammad.zaka@synety.com>
Date: Fri Nov 16 10:59:47 2018 +0000
crypto containing padding should be sent within sdp for pass through
Change-Id: I1f7502f34e9492100e5c3a5a7345319ed996c22c
7 years ago
Richard Fuchs
106007a36f
Merge branch 'master' of https://github.com/HeroBase/rtpengine
...
Change-Id: If48c75fc8ddf1535170d87ec310948a435645b2a
7 years ago
Tor Petterson
f71f66f60b
Expanded Documentation of option log-srtp-keys
7 years ago
Richard Fuchs
0496c595b4
Change name of option from log-rtp-keys to log-srtp-keys
...
Co-Authored-By: TorPetterson <32388321+TorPetterson@users.noreply.github.com>
7 years ago
Richard Fuchs
0bf3eab4d6
convert codec ops to no-op for legacy control protocols
...
fixes #652
Change-Id: Ie6bc6529e43e3027cdcfc6cb22275b8b0145b69a
7 years ago
Richard Fuchs
13c21b1400
fix segfault when using legacy control protocol
...
fixes #652
Change-Id: Id60351e41411ae5a309bf7b1da98b1ec34c37d66
7 years ago
Tor Petterson
590b752bbd
Added option to write SRTP keys to log
7 years ago
Richard Fuchs
e9f9ae75ad
fix compiler warning
...
Change-Id: I35c60bfce71045a6399368b9cfa887501557c71a
7 years ago
Richard Fuchs
347f1c68f9
suppress empty a=rtpmap lines
...
fixes #638
Change-Id: Iab2b9c965028ca3add9e5d1d1614acc8d774ac28
7 years ago
Richard Fuchs
fc026cd7e4
fix possible null pointer dereference
...
closes #627
Change-Id: I8cfd99dca9b0d03858db147128e76fd52fc7a207
7 years ago
Richard Fuchs
31023572a5
TT#41900 save monologue label into recording DB
...
closes #582
Change-Id: Ibc894e82b61e4231c99f9618685a6232f7e50da7
7 years ago
Richard Fuchs
35764c5c63
TT#44702 add CLI command for interface/port stats
...
Change-Id: I670b3779d748e81097995961d6411d21a279bd08
7 years ago
Richard Fuchs
326c6a5818
TT#43557 augment DTMF blocking to support directional blocking
...
Change-Id: I5d77b437fe746ac5f3b6c15d327755f9349b61d8
7 years ago
Richard Fuchs
04a83027a0
TT#43557 implement media blocking
...
Change-Id: I336cf7203c1236b3e596310690a89ce1c3fd8bf4
7 years ago
Guillem Jover
5ba52952c0
TT#42906 Add systemd notify support
...
Change-Id: Iba046fa3e36654cedb73203eb06a9d768720a6b0
8 years ago
Richard Fuchs
89084da8d8
TT#43855 support XMLRPC callback to Kamailio
...
Change-Id: I35f9abb5e98ff17f4fed28ca0e045e7d5d734b1d
8 years ago
Richard Fuchs
e67b9c40da
TT#43556 support blocking of DTMF event packets
...
Change-Id: I7ef43ddb254b1583c2dc69b44a13b978eff15510
8 years ago
Richard Fuchs
b82cf56ec0
clean up code artefacts from cab9d895
...
Change-Id: I8aa475ee5338d5a0bdc57c082991624f8af809e2
8 years ago
Richard Fuchs
cab9d895b2
TT#42500 fix only one crypto suite being offered.
...
We should offer all crypto suites that we support. If passing through
SDES, we should amend the list of crypto suites with all additional ones
that we support that weren't included in the received offer.
closes #577
Change-Id: I9b6c16e8eadecf01cdbc8043bd8361e0f683e456
8 years ago
Richard Fuchs
135dfb73ae
fix handling of >1 consecutive media ports
...
fixes #610
Change-Id: I00124fa76461fe0b7e85717126628b068ebc006d
8 years ago
Richard Fuchs
7dd8ed0b8f
quote options value strings in error output
...
Change-Id: Iaa938c08627831f367a4898355250737350cba58
8 years ago
Richard Fuchs
d4afb14e11
fix DTMF packet allocation size
...
probably fixes #583
probably fixes #587
probably fixes #585
probably fixes #594
Change-Id: I6147acd4c539065142d15ce12b1a33993e1c0bec
8 years ago
Richard Fuchs
a44b34a7a9
don't free event base before calling loopbreak()
...
Change-Id: I7f4283804b1c34a110e5f4ddad14bd1dd4122cc4
8 years ago
Eric Green
f91b64fcdf
Make recording more accurately report source address. Fixes #584
8 years ago
Richard Fuchs
694e9d8f60
do not memcmp against uninitialized bytes
...
silences valgrind warnings
reported in #585
Change-Id: I40098d6eab5e128b537fb0cc2821b60d3553c4cb
8 years ago
Richard Fuchs
0aeb06f613
TT#40900 store metadata in call struct instead of recording struct
...
makes it possible to set the metadata before recording has been started
closes #579
Change-Id: I885a39fbc53345a4e9f2459f3cd972cb1198c210
8 years ago
Richard Fuchs
178391e177
fix possible core dump when processing certain malformed SDP
...
Change-Id: I3240f09033d7e587c48f8baa315953c553b99f0b
8 years ago
Richard Fuchs
d26b11ffb0
fix compilation for with_transcoding=no
...
Change-Id: Ibb63f51b909052d81ebf1865335a428a421d856e
8 years ago
Richard Fuchs
be9c3146f4
fix missing header include
...
fixes #569
Change-Id: I795a96dbe224bc798317e47b11d758e56e26d1ae
8 years ago
Richard Fuchs
08fc00906d
fix segfault with DTMF logging and implicit payload types
...
fixes #571
Change-Id: Id2b575ff555d7968006309bcb5b5d6bbac2ed1e7
8 years ago
Richard Fuchs
a9ec666cb4
TT#38350 implement sending DTMF events to syslog
...
Change-Id: I82fbdc7da6cbe2505ef1c98dd3c45b63c4461994
8 years ago
Richard Fuchs
dd34574669
TT#38350 keep track of the most used RTP payload type
...
Instead of just remembering the last seen RTP payload type, this adds a
tracker that keeps track of the last 32 seen payload types and keep the
list in order of how often each type was seen.
Change-Id: I062a43b7bfc9413b755dca548d72953ff8245477
8 years ago
Richard Fuchs
4eb80da836
compile fix for with_transcoding=no option
...
fixes #568
Change-Id: I97fba6bb767a572d6b701e274176913270e55f16
8 years ago
Richard Fuchs
d66a2e5191
TT#38351 support specifying interfaces by name
...
closes #566
Change-Id: Ia9a5c6d9d702e27404a7e27503970ee9a8dac7b9
8 years ago
Richard Fuchs
cbe7e5ab1d
TT#36700 implement ports free list
...
eases CPU usage when the number of available ports runs low
Change-Id: I0cdb035991a54a96c94ff47b074c91ff2b74c9bd
8 years ago
Richard Fuchs
bfac341aec
shut down transcoding engine when it's not needed
...
closes #562
Change-Id: I3c96cdcdeea8ee815f0ae7e40a4caccbfee9977e
8 years ago
Richard Fuchs
8562bdee70
support new `asymmetric codecs` flag
...
Change-Id: I244b3576be19658ecc2af353e427e95aea4fca70
8 years ago
Richard Fuchs
f1b81b649e
simplify parameters passed to codec_rtp_payload_types()
...
Change-Id: I8a9147bb527b3084ed9f4acfa82868fc26b0d8c2
8 years ago
Richard Fuchs
9f3f24f3ef
TT#36759 rate limiting for ICE/STUN log messages
...
Change-Id: Iac172a52ac9a48d5ff62995454bda108680228d7
8 years ago
Richard Fuchs
e404f18975
TT#37157 fix missing G722 RTP TS output scaling
...
fixes #560
Change-Id: Ief961a1f0e3d7fb1bd07e79eab1ceb54b5d131be
8 years ago
Richard Fuchs
50394e8dd2
TT#37156 fix divide by zero error (regression from db58aa80)
...
fixes #564
Change-Id: Ifdc58c814d6a0c82d95ca86ab2fd4eb3a85486ae
8 years ago
Huseyin Dikme
30ba1cd2a6
control command logs have been updated
8 years ago
Richard Fuchs
95a7cc6cfb
eliminate redundant function argument
...
Change-Id: I5bff4436072c2855590e08d90c5098af3abceb93
8 years ago
Richard Fuchs
d64c888a0e
TT#36301 transcoding unit tests
...
Change-Id: If48e5afe5a343b557183b6e87441f52424dd2c6a
8 years ago
Richard Fuchs
2f5d792aae
TT#36301 add `always-transcode` flag
...
closes #527
Change-Id: I0d8192cf93c49823f35a6307ccd8c77842fb51dd
8 years ago
Richard Fuchs
5c3d39748b
TT#35456 fix regression from 895fa9605
...
Adding a fixed length to the size of the buffer requested from the
packetizer was wrong, as this is not just the length of the working
buffer but also the size of the buffer to be returned for sample stream
(PCM) codecs. Instead, use the codec definition's bit per sample spec
to make AMR provide a larger buffer than the bare frame.
Change-Id: Ibff59b21d491e3327cc9e907e6515379a8ca9188
8 years ago
Richard Fuchs
7de16e104c
TT#14008 fix codec mask logic if no masking info is present
...
fixes a glib warning
Change-Id: I8c79231e52a88b9fd2af7c3acf1be6b994e86876
8 years ago
Richard Fuchs
fb75ef748a
TT#14008 fix libpcre references in makefile
...
Change-Id: I16c18d48a0df01d2b1e505fca81697658614d2d3
8 years ago
Richard Fuchs
db58aa80d0
fix graphite interval calculation for call durations
...
closes #543
Change-Id: I60f88cd874051c44df21b0b20401d1603ba5832e
8 years ago
Richard Fuchs
09fed75e7e
Merge branch 'master' of https://github.com/hdikme/rtpengine
...
Change-Id: I97bf1782e259c17a3313ec4e6d670dae8592f12c
8 years ago
Richard Fuchs
fa5c265045
TT#36302 support scheduling settings
...
Change-Id: I490fde10a5ae44d25b95e4368af70003716040b7
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
Richard Fuchs
6da7494a08
TT#36180 calculate per-second stats based on timer runtime
...
Change-Id: I6b3665b2219becb0fb25f4849b11745f809ab8c7
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
9943a3d868
TT#36180 scale timer interval according to runtimes
...
Also slow down XMLRPC callbacks to avoid excessive CPU usage
Change-Id: Ie318997bacfacc6d9806d72ff42310cfd19f49b2
8 years ago
Richard Fuchs
3b3e964c83
short lock duration for faster calls iteration in the timer
...
Change-Id: I1d2d40e1a5fcdaaf8384eeb841d3e99690185d7f
8 years ago
Richard Fuchs
539e063992
don't retry XMLRPC callback if endpoint says the ID was not found
...
Change-Id: I943f8738e1c92345fc983a3a8ab7d61d00b924ad
8 years ago
Richard Fuchs
68e8092098
add ../include to YCM config
...
Change-Id: Ibf368215ee9b3fffae5ffa12dd919a83fd14c360
8 years ago
Richard Fuchs
2c5a358e1c
TT#36308 fix possible segfault due to missing lock
...
Change-Id: I61d411cd88494fa8c3c4197ec9e5a70a2231a325
8 years ago
Lucian Balaceanu
83911675cd
Fix for recovering from losing synchronous redis context while the async one is up
...
Force re-checking of the synchronous redis context state in case of processing
a redis notification. It is possible that redis async context is up while the
blocking one is down.
8 years ago
Richard Fuchs
db2882ca78
integrate AES unit test into main build framework
...
Required addition of include/ directory for headers shared between
daemon and tests
Change-Id: Ib25504f4d7f4baa917efcdc0ef78b6cc89439827
8 years ago
Richard Fuchs
8c770b9e05
appropriate use of LDFLAGS and LDLIBS
...
fixes use of implicit make rules for some compilers
closes #539
Change-Id: I43a74ccf8155b1eafe90eba46ce155a2a6301a89
8 years ago
Richard Fuchs
b4f65bdd96
TT#35634 add `xmlrpc-address` option for callback address
...
Change-Id: I9c040fc00242469dadbfef485f33e41e698164d1
8 years ago
Richard Fuchs
345836e90a
TT#35413 implement a CPU limit and a load limit
...
Change-Id: Ia0c605d17866c232353917f2980637fa7823dce4
8 years ago
Richard Fuchs
efcad1c628
TT#35413 add support for the 'load limit' ng protocol extension
...
Change-Id: I3f3897794050e0807f3cddb8044b3aa37b703d9c
8 years ago
Richard Fuchs
43f2971722
disallow zero interface addresses in config
...
closes #538
Change-Id: I27278125e0f15e4cd860380592606adbcfd0f6b7
8 years ago
Richard Fuchs
e0cdf74ac5
fix SRTP ROC syncing between kernel and userspace
...
also fixes spurious unkernelized rtcp-mux streams
fixes #495
Change-Id: I9ec86ec5ecfffeede367a9aab9168ac32b7a95f3
8 years ago
Richard Fuchs
895fa96054
TT#35456 implement RFC 4867
...
Fixes AMR transcoding. Some features yet unsupported.
Fixes #498
Change-Id: I1075a539a7a7dab9106df9ef49b8bda2484b97ec
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
Richard Fuchs
bf66d7caf7
eliminate stray glib warning
...
Change-Id: Ib7bf097274fc9e9ab760bcc0552534e0da5a9129
8 years ago
Anthony Alba
b9d84aa993
recording.c: add a few ms timestamps to pcap metadata
...
* For pcap recording, store a few timestamps in milliseconds in metadata
* created timestamp for each monologue
* terminated timestamp for first monologue in the linked list;
also "call end time" metadata includes the delete delay, so the
monologue terminated timestamp gives better information for
CDR purposes
8 years ago
Jerzy Ptak
a44a9bf9f0
fixing memory leaks
8 years ago
Richard Fuchs
79a74f69ff
Merge branch 'redis_racecondition' of https://github.com/1and1/rtpengine
...
Change-Id: Ic6bfc64003c7ec1eac18e65396a63142c6253afa
8 years ago
Claudiu Boriga
229b78d2b8
Fix race condition where redis context is used outside mutex protection
8 years ago
Richard Fuchs
33b262af78
TT#33700 migrate from avresample to swresample
...
closes #465
Change-Id: Ib23ea0dbaf151182360db8ae8e0bc94c93a1743a
8 years ago
Richard Fuchs
ce44eaf1d3
fix RTP timestamps in G.729 decoder
...
also fixes SRTP auth tag passed to transcoder
closes #501
Change-Id: I2253d1372784d0332b8449f8fb8087a2f7e4c699
8 years ago
Richard Fuchs
16024d2e7a
create explicit per-stream DTLS context for ICE
...
fixes #500
Change-Id: Iee3d9ab1c19a6992ae043896eb500b3961de3edc
8 years ago
Richard Fuchs
5a73f12adb
TT#34050 replace ffmpeg version test macro
...
fixes #484
Change-Id: Ia7aa9d63e09a90afc2814f0edede480c06ecc53a
8 years ago
Richard Fuchs
14100b0b8a
use reference counting on SSRC objects
...
possibly fixes #488 and #482
Change-Id: Ib68e456b9322836b153c9fd0e59c3556378557ae
8 years ago
Richard Fuchs
a3ed739835
Merge branch 'fix_uptime_stats' of https://github.com/1and1/rtpengine
...
Change-Id: Ic5661b25563588334f4f9b0611385a4aafe4bf3b
8 years ago
Claudiu Boriga
6ee4cc3a8d
Fix uptime statistics
8 years ago
Richard Fuchs
4be4f13ce0
Merge branch 'add-label' of https://github.com/aalba6675/rtpengine
...
Change-Id: Ia5defcaf67bc8a00644f719ff6bd26566908cbfc
8 years ago
Anthony Alba
bbcea40415
recording.c: save the label in pcap metadata file
...
label in ng-protocol can be used by SIP proxy to send additional
metadata. Write out label to pcap metadata file.
8 years ago
Richard Fuchs
2fc2b3bab7
fix possible null pointer segfault when using log level 7
...
Apparently it's possible that ps->selected_sfd is not from the ps->sfds
list, in which case the selected_sfd->crypto context will be left
uninitialized.
fixes #489
Change-Id: I844d9ba1d7e97a80b1f26769c1ea1e99cc2320b9
8 years ago
Richard Fuchs
e4e79233e2
compilation fix for glib < 2.32 (CentOS 6)
...
closes #485
Change-Id: I4d6be802503ba9334fe0687ec869335ada0fcc3f
8 years ago
Richard Fuchs
6e8d57e528
honour RFC 5506 by allowing more RTCP packet types leading the group
...
Change-Id: Ic8d7019e5bcadd9221c913b62e7c89e3042f7316
8 years ago
Richard Fuchs
32e0e2cf25
leave room for SRTP auth tag on transcoded packets
...
closes #480
Change-Id: I353b2da1f52974d93c20f0ab4be25b9baa41765c
8 years ago
Richard Fuchs
620cf6125a
version test macro for DTLS_set_link_mtu
...
closes #479
Change-Id: Ie0546cf77d1532c88ecf94f0476ce505e845a0cc
8 years ago
Richard Fuchs
0db5e226e5
fix payload type tracking for transcoding situations
...
closes #476
Change-Id: I6a038136e22b23efe422eb40caa0f3e10359e5d1
8 years ago
Richard Fuchs
092f8da3c6
use str_token_sep for SDP token extraction
...
closes #472
Change-Id: I10dc4aa8baadfc4c3d5ef5514e47fecc4bf2f10e
8 years ago
Richard Fuchs
3aa53a1e10
fix missing setup_media when using start_recording call
...
closes #462
Change-Id: I0e4d53225b03e061de28c3908e59f8816263cbb2
8 years ago
Richard Fuchs
5b0bb90afa
fix recording setup_media reversed direction
...
fixes #462
Change-Id: Id8efec9261ce9edb246f7a838619a93157e049b3
8 years ago
Richard Fuchs
3885da946b
workaround for buggy OpenSSL that produces incorrectly fragmented DTLS
...
closes #413
Change-Id: Iead12e5c1b2387c15923a1cff7f7abcd9267b4bb
8 years ago
Richard Fuchs
65c75c5177
fix segfault regression from 7b65dedb
...
Change-Id: I38f4b39b34c72ca2a9b70fae4eaac6bf27286312
8 years ago
Richard Fuchs
7ee73fe7f9
special handling for strip=all together with transcode, and mask=all
...
Change-Id: I1c54d3491149adacdb11675054f823eca576d707
8 years ago
Richard Fuchs
14262f56fa
fix segfault regression from e84fd86
...
closes #470
Change-Id: I3ce83e4fdc5fe8113932bb51ec3375c6144814ae
8 years ago
Richard Fuchs
7b65dedb95
restructure codec_make_payload_type to fix compilation w/o transcoding
...
closes #468
Change-Id: I5f8c5e318e8726bddd69120e258c7d5bb0ee3687
8 years ago
Richard Fuchs
4d586f2ec0
TT#28163 fix recording-daemon sample format selection for mixed output
...
reported in #462
Change-Id: Iea7f1e421d15375768a1f76dd36e5ef7726f66b8
8 years ago
Richard Fuchs
165cb0cd4b
Merge branch 'extend-default-intf' of https://github.com/1and1/rtpengine
...
Change-Id: I187bc7c67146011a76acc17576cd4338e095c754
8 years ago
Richard Fuchs
e84fd8612b
fix incorrect DTLS context being used with ICE
...
fixes #451
Change-Id: I4db956bd9e8234862a7dd3ee492a6ed2778150d3
8 years ago
Richard Fuchs
bc30929192
TT#32210 add codec masking option
...
Change-Id: I05f2bde978f628d398dd8046815fcfc3d5b42de2
8 years ago
Richard Fuchs
60ce21245e
TT#28163 use a pointer cache to avoid hash table lookup
...
Change-Id: Idd7a48c547d156c4e68e4540e955ee99906b79e4
8 years ago
Richard Fuchs
9147d5e438
TT#32983 support transcoding options in redis (re)store
...
Change-Id: I8552743a5ec48b6d4464e8a2c4acd1c9bf11f02a
8 years ago
Richard Fuchs
4d859bfd6b
TT#28163 add support for properly packaged libbcg729
...
also eliminate `` in makefiles
document external bcg729 requirement for Debian building
closes #460
Change-Id: Iadecbc6df81c2fe876acc20c25c8be0e85391779
8 years ago
Richard Fuchs
65d4106d98
add missing header files to fix compilation
...
closes #457
Change-Id: Iaa26da810fa11adb970ae25409ade4ad29712200
8 years ago
Claudiu Boriga
e8b40191fe
Enable round robin for default interface
8 years ago
Richard Fuchs
3fa94d7f57
TT#31197 document bcg729 requirements
...
Change-Id: I05dea3dcc89ff38683333587565da29512b5fc3d
8 years ago
Richard Fuchs
25037a92ac
TT#31197 G.729 packetizer
...
Change-Id: If5c87dc08e5ffa8c85e024c5d091f7fce7f84cec
8 years ago
Richard Fuchs
9eb9a2f421
TT#31197 include bcg729 build support
...
Change-Id: I3862c0b9b8010699e6a49f749b38568d08103840
8 years ago
Richard Fuchs
83784d492c
TT#31197 separate out libavcodec specifics
...
Change-Id: I4f389226320fd8a7930168a4fb885ba214759743
8 years ago
Richard Fuchs
61d5505740
TT#31199 set bitrate for G.723.1
...
Change-Id: Ia82411c9205d63b2d63e40ece480b1d42b53b152
8 years ago
Richard Fuchs
0636b083dc
TT#31700 implement payload-type specific passthrough kernel forwarding
...
Change-Id: I14d33b976933e8198720c1323e38af85f4f6eed7
8 years ago
Richard Fuchs
126a69f29c
TT#28163 logging and documentation improvements
...
Change-Id: Ib82b80c9ddcf557cd5ab6f99e693a5234471b1ac
8 years ago
Richard Fuchs
10c852b204
TT#31950 add compile-time switch to disable transcoding features
...
Change-Id: Ice0c019b8a07d4c941d14f47021dbb7b0eb68d3c
8 years ago
Richard Fuchs
2a4acf5e29
TT#31403 handle passthrough payloads in a transcoding context
...
Change-Id: I45001272a735847973a6261b899e5acd0687ccef
8 years ago
Richard Fuchs
6988b2361e
TT#31403 keep track of stats required for RTCP translation/output
...
Change-Id: Ib7ff1643c90423ffec95b378b4e9fca0000ee4ae
8 years ago
Richard Fuchs
613f7afdb6
TT#31403 map and replace RTCP SSRCs when transcoding
...
Change-Id: I765f1972e4b4d10d48e10a9e14e451edd48ca836
8 years ago
Richard Fuchs
26a356ccae
TT#31403 eliminate stub RTCP handler functions
...
Change-Id: I97e4e41f2f70f824bf24fea6edc619d9cca3965b
8 years ago
Richard Fuchs
5d67605535
TT#31403 decouple RTCP AVPF filtering from crypto stuff
...
Change-Id: I99b2b5720f1012b59be90e110b6ed7902826a861
8 years ago
Richard Fuchs
368312a4f5
TT#31403 keep local packet stats for RTCP output/rewriting
...
Change-Id: Ib086bbacf5613e1480bfb9050612163152e24b28
8 years ago
Richard Fuchs
159729ad0d
TT#31403 move SSRC mapping out of codec handler
...
Change-Id: Id5babcef6440f40e45e7e23afc54398a39093a3f
8 years ago
Richard Fuchs
7986ca0860
TT#30900 support specifying codec parameters for transcoding
...
Change-Id: Ifac093cfba74a7cfdf1ba22209d608e04fed8c10
8 years ago
Richard Fuchs
a4a0e34ded
TT#31408 distinguish between codec types
...
Change-Id: I8c7331908fe4a105d9f9139a5f9867b6ae43a646
8 years ago
Richard Fuchs
2e43b47305
TT#31409 check codec support only once during startup
...
Change-Id: I8eacd1f62cc1273707b4c4d1046918225e1b6957
8 years ago
Richard Fuchs
71b3762f13
TT#30901 use hash table to look up RFC specified codecs
...
Change-Id: I471dc77d0c4bdbdf66dc4b021d77202ec0ddbb39
8 years ago
Richard Fuchs
ff0a46a053
TT#30901 convert codec list to hash table
...
Change-Id: I0956b441101b4c33e0f186399ef5558f89744e12
8 years ago
Richard Fuchs
266a1fbc8b
TT#31404 support custom ptime and repacketization for sampled codecs
...
Change-Id: I4db83cb8faa9b0234dd655f4bdc116a3ddb59f39
8 years ago
Richard Fuchs
c380052882
TT#31401 configure encoder bitrate
...
Change-Id: I96e14285b4e6235451ef55dfdfd0fec9f7364096
8 years ago
Richard Fuchs
c6c79f49b8
TT#31198 flush encoder queue on shutdown to avoid warnings
...
Change-Id: Ic4a99083f22d8d2c87edb28539d6e325cbdb34b4
8 years ago
Richard Fuchs
1746f1d3bf
TT#31405 handle non-media pseudo-codecs (telephone-event)
...
Change-Id: I10a0156d500f49941d7d3d558e54e3c198638c4a
8 years ago
Richard Fuchs
ad4a5d10ef
TT#31198 add resampling support
...
Change-Id: Ib691e62d9ff6fc5663cea275663efc9134d78188
8 years ago
Richard Fuchs
2d2f2e394b
TT#31198 support output codec clockrate multiplier (for G722)
...
Change-Id: I189d6fb17850bccdbe1a6910f68fb2d0fab2c331
8 years ago
Richard Fuchs
7c6db89889
TT#28163 don't reset transcoding context when not necessary
...
Change-Id: I28b230df7308b3ed1fd359265220c3df07178e5a
8 years ago
Richard Fuchs
14c3cd8ab1
TT#28163 support transcoding to non-RFC codecs
...
Change-Id: Ia4edff27be74e0f8eb8f41cf0a7a1dd3c9e9896a
8 years ago
Richard Fuchs
55007a6897
TT#28163 prevent kernelization of transcoded stream
...
Change-Id: Ie99f4bee935f6018a525b51b00862b31576a9383
8 years ago
Richard Fuchs
b0bc679806
TT#28163 take number of channels from SDP into account
...
Change-Id: Icd393535702355d7dfc90c81fe62286eb50deb63
8 years ago
Richard Fuchs
df537b98c3
TT#28163 pass encoded packets back to processing for sending out
...
Change-Id: Icdd49d174336277dae0c2c79854fc4e3b42a5c44
8 years ago
Richard Fuchs
dc80c27af7
TT#28163 split encoder from recording daemon into shared lib
...
Change-Id: I76a744b1b1acd32f326d26db7a44273394a4dee1
8 years ago
Richard Fuchs
a4e73c90e8
TT#30404 accept and reject codecs according to transcoding preference
...
Change-Id: I7e4d1d834289433ae4a42d78b92cbc745884d5d1
8 years ago
Richard Fuchs
cee94a5348
TT#28163 pass RTP packets to media decoder
...
Change-Id: Ie1cf4ed50a0dae0ee4bbe37918d3d2a86666d998
8 years ago
Richard Fuchs
b9206a49bc
TT#28163 abstractize SSRC hash
...
Change-Id: I2f28854070ad5a7567870ef7585e67729154b0e3
8 years ago
Richard Fuchs
f8aad04948
TT#30404 move portions required for decoding from recording-daemon to lib
...
Change-Id: I4170dd3c93ca3c87954d2c1db5fd84ae071247bd
8 years ago
Richard Fuchs
d510f5efe8
TT#30404 initial support for adding codecs for transcoding
...
Change-Id: I58474ac2daee213d9f11157f61c2a3df90818fbe
8 years ago
Richard Fuchs
f801240164
TT#30570 replace "chopper" iovec with GString
...
Change-Id: I5097b5bf0bbdc8ff6cdada809183396c9cf05134
8 years ago
Richard Fuchs
c3585b04be
TT#30405 reprint a=rtpmap and a=fmtp for SDP output
...
Change-Id: I4949166faf329e229f1bbbaf559650fa4c3e9228
8 years ago
Richard Fuchs
8715d40242
TT#30405 codec matchup and handler functions
...
Change-Id: I506c0e8bfa4b6e64689f6debeb33fe69fce1722c
8 years ago
Richard Fuchs
fb729e3d12
TT#30405 create a packet handling context struct for convenience
...
Change-Id: I0f3e0f66bf138147f265f7ee8d95028d9301359b
8 years ago
Richard Fuchs
bc420cbdd0
TT#30405 split stream_packet() into smaller pieces
...
Change-Id: I89b46e02bfdbedffa63f71ef11b03cbf204ececa
8 years ago
Claudiu Boriga
80abad18cf
Merge remote-tracking branch 'sipwise/master' into extend-rtpengine-ctl
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
Richard Fuchs
c2ac89945a
Merge branch 'cli_parameters' of https://github.com/1and1/rtpengine
...
Change-Id: Id2c01bc12944fded8d2d8853d12630ad5b970d83
8 years ago
Claudiu Boriga
f2ce4d3a25
Add rtpengine-ctl 'get' commands as alias for 'list'
8 years ago
Claudiu Boriga
be5211e6bd
Introduce 'list silenttimeout' and 'list finaltimeout' to rtpengine-ctl
8 years ago
Huseyin Dikme
968446c730
cli params command has been created for initial, current parameters
...
and their difference
8 years ago
Richard Fuchs
7b4424091b
TT#31752 fix segfault on empty a=rtcp
...
Change-Id: I4f4494a552dd9bcd6f83f32a846cce1c18be8bc1
8 years ago
Richard Fuchs
078af3c407
Merge branch 'add-requests-ps-stats' of https://github.com/1and1/rtpengine
...
Change-Id: I8f67dec95cc07ca1df6823921c3af0457bf0783a
8 years ago
Claudiu Boriga
b7b40cc5a9
Use proper data type for requests statistics
8 years ago
Richard Fuchs
1477f9796f
TT#29151 add 'loop protect' feature
...
possible fix for: #431 , #425 , #415 , #65
Change-Id: I12558681b7d292e3973d2ba024f30f1e236b3a57
8 years ago
Claudiu Boriga
0ffb9e6718
Display correct average for requests statistics
8 years ago
Claudiu Boriga
74cecc09a6
Use statistics locks properly
8 years ago
Claudiu Boriga
3850e99fd3
Use atomic64_get_set for requests statistics
8 years ago
Richard Fuchs
8f563c8a3c
fix compilation when `with_iptables_option` is set to no
...
reported in #444
Change-Id: I358551a3b6588b601364b54aee3e1f8d5097668e
8 years ago
Richard Fuchs
321fb5e1ca
fix double str_shift for 'list sessions CALLID'
...
fixes #448
Change-Id: I9262f61eeec257abe842e532ffc8e071da89a61d
8 years ago
Claudiu Boriga
00bdcef9a4
Fix statistics for average requests/sec sent to rtpengine-ctl
8 years ago
Claudiu Boriga
f7ece0452b
Merge remote-tracking branch 'sipwise/master' into add-requests-ps-stats
8 years ago
Claudiu Boriga
8cc4b7874e
Add statistics for requests per second
8 years ago
Claudiu Boriga
ac1a957a05
Merge remote-tracking branch 'sipwise/master' into add_disable_tout
8 years ago
Richard Fuchs
ca78747c8c
TT#30405 rename media->rtp_payload_types to ->codecs for brevity
...
Change-Id: If89d774a6ab62855118eec74d21123ba61b48e9e
8 years ago
Richard Fuchs
2540c5d501
TT#30403 support codec-offer
...
only codecs from the original list for now
Change-Id: I884775a5b337ed3533972f4361ecb50e329b126e
8 years ago
Richard Fuchs
f625d48ed3
TT#30403 consolidate dictionary and alias "flags" values handling
...
Change-Id: Ic5f2e84f7482b8c98db8e08603d32955185549f2
8 years ago
Richard Fuchs
d31fb36f6e
TT#30403 parse and retain a=fmtp infos
...
Change-Id: I81b2afdfac7f65833fa5260add823fcf7680c879
8 years ago
Richard Fuchs
d7dd7421e6
TT#30403 implement codec stripping
...
Change-Id: I384aa353b43986656145c443e40a2b96f04c489f
8 years ago
Richard Fuchs
b8dbd997e9
TT#30403 consolidate NG flags processing functions
...
Change-Id: Id200b0f064b72d8e60a6a744f764a8bb63655014
8 years ago
Richard Fuchs
74bae6a9a9
TT#30150 add option for different logging styles
...
closes #442
Change-Id: I338afc58e10b056718e086dbcd232f3324984bf0
8 years ago
Claudiu Boriga
485092383f
Make redis connection timeout configurable
8 years ago
Claudiu Boriga
562c5b40a6
Add parameter that sets a timeout for redis commands
8 years ago
Claudiu Boriga
c31ffa4639
Add paramaters to disable redis communication in case of multiple errors
8 years ago
Richard Fuchs
46d853972b
move lib/ config options into struct
...
Change-Id: I563b38cd64daea5f9137debff2fc7881a3cdaa9d
8 years ago
Richard Fuchs
0e3f5eb3c2
move all remaining config options into global config struct
...
Change-Id: Ib0d7cd3f98929b22ef3726b8712f34706a530456
8 years ago
Richard Fuchs
75056a8dd1
eliminate the callmaster struct
...
Change-Id: I9151dbe8f47b3bb9ab67d6fea2fc3783bdc558da
8 years ago
Richard Fuchs
f2b93f9ef8
move config options into global struct rtpengine_config
...
Change-Id: Ie566efb6a1b8bedbe33f768bc4cd979b2d2b46cc
8 years ago
Richard Fuchs
d65a6bbbdc
move latest_graphite_interval_start to global scope
...
Change-Id: I1eb5ea8d6faafe40383d3bb92517307e47ceca9a
8 years ago
Richard Fuchs
741140341f
move "totalstats" out of callmaster into global scope
...
Change-Id: Ia5b95e788c1d486a86b6f916dcff5b88022f5897
8 years ago
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
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
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
3472821ccc
Add option to set TOS for control-ng interface
8 years ago
Dmitry Poroh
cc09f4d3de
Crash stream_packet in case of out_srtp is NULL is fixed
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
Pawel Kuzak
8941c827d3
Fix control statistics headlines
...
StopRec was missing
8 years ago
Richard Fuchs
d6bc658c36
Merge branch 'reduce-offer-time' of https://github.com/1and1/rtpengine
8 years ago
Claudiu Boriga
ab0cb0c7a7
don't use g_hash_table_foreach for call_timer_iterator
...
this keeps the callmaster->hashlock for a long time
so copy the list of calls instead and update call refs
8 years ago
Claudiu Boriga
2250ab11fd
make METADATA section appear in the metafile at
...
intialization when recording using the proc method
add new METADATA sections only if they differ from
the previous ones
8 years ago
Richard Fuchs
4cab964b42
Merge branch 'fix_redis_recording_crash' of https://github.com/1and1/rtpengine
8 years ago
Claudiu Boriga
d5fea12937
check call.recording structure before using it
...
if call recording is not configured but the redis db contains
calls with recording flag, then call.recording can be NULL
8 years ago
Richard Fuchs
cc056c148f
add rtcp-mux-require option to force rtcp-mux usage for WebRTC
...
fixes #404
Change-Id: I4a5dbf30a7c02058216ea7e8c8782cf83e214623
8 years ago
Richard Fuchs
0c6b2cfc22
Merge branch 'fix-TOS-for-redis' of https://github.com/1and1/rtpengine
8 years ago
Claudiu Boriga
ca622b40ef
set TOS for redis streams
8 years ago
Richard Fuchs
13d51f0df0
add extra thread allowance for blocking CLI code
...
make sure not to run with a single thread if only one CPU core is
present
proper fix pending: convert CLI code to non-blocking, muxed, using
streambuf interface
closes #399
Change-Id: I09a6d758c668fe6a2bbe6735e3299d3c8cb1ba58
8 years ago
Richard Fuchs
00cc28dff4
TT#22660 don't zero out SDP origin on zero connection address
...
Change-Id: Idc68132a7ae23a6273464927ecf27237cdc9d6cf
8 years ago
Richard Fuchs
6abe388621
fix compile warning
...
Change-Id: I6d93986eca7b50a8ae5ddf075c37123f8ebcdcde
8 years ago
Michael Prokop
6932f22c66
TT#22411 Fix spelling mistakes/typos
...
s/paramter/parameter/
s/fowarding/forwarding/
s/readabilty/readability/
s/recieving/receiving/
s/genrated/generated/
s/parametes/parameters/
s/existance/existence/
s/shouldnt/shouldn't/
s/seperate/separate/
s/neccessary/necessary/
s/occurence/occurrence/
s/timout/timeout/
s/ouput/output/
Change-Id: I4403eb54130f3c114d7881054abfdfc8223b5bf2
8 years ago
Richard Fuchs
523228b981
Merge branch 'stop-recording' of https://github.com/1and1/rtpengine
8 years ago
Claudiu Boriga
cf15275f30
add stop recording comand to ng interface
8 years ago
Richard Fuchs
e7d75bd275
TT#19350 add option to manage iptables rules directly
...
Change-Id: I8e2b47bf34206ed5cc369649bf8ef875ac271169
8 years ago
Richard Fuchs
dd338975f6
drop log level for messages about unknown RTP/RTCP packets
...
closes #395
Change-Id: I8a3c9c1d06ce04a4bb2280e16e2d170cd27ac65b
9 years ago
Richard Fuchs
c8d60aed61
Merge branch 'fix_cdr_logs' of https://github.com/1and1/rtpengine
9 years ago
Claudiu Boriga
b317acdbde
don't log corrupted cdr for foreign calls
9 years ago
Richard Fuchs
1206e26f76
add missing lock for SSRC hash dump
...
Change-Id: I165ceae3f6d5bada4ec0390c440f84bcde542952
9 years ago
Richard Fuchs
3dbc1469b0
Merge branch 'fix_1way_statistics' of https://github.com/1and1/rtpengine
9 years ago
Richard Fuchs
43c3e7ded7
Merge branch 'fix_redis_null_access' of https://github.com/1and1/rtpengine
9 years ago
Claudiu Boriga
b3ce08a1ea
Count multipexed packets in statistics. Don't count errounously when no stream is found
...
fixes #387
9 years ago
Claudiu Boriga
67de59ada4
check that redisContext is not NULL before using it
9 years ago
Lucian Balaceanu
63bdd61565
on startup, also accept hostname:port params for endpoints
9 years ago
Richard Fuchs
bb50729806
fix parsing of IPv6 address in legacy UDP protocol
...
Change-Id: Ida602ceddac51b8045b0beee59015facd7b1ee5d
9 years ago
Richard Fuchs
de129b78c7
Merge branch 'fix_graphite_crash' of https://github.com/1and1/rtpengine
9 years ago
Claudiu Boriga
9f2286d7bb
fix bug that makes rtpengine crash when graphite server is down
...
replaced select with poll because when a large number of file
descriptors are open segfaults might happen
9 years ago
Richard Fuchs
983c4afb01
fix correct use of CFLAGS over LDFLAGS
...
Change-Id: Ibea683fea6f16cc3a944c99de4db44051571fcba
9 years ago
Richard Fuchs
4310e067a4
support pkg-config for xmlrpc-c
...
fixes #373
Change-Id: I063c3f6f4f1ea4ee08fa668f006931f951dd3f95
9 years ago
Richard Fuchs
a9d55c6fe7
always decrypt RTCP for SRTP<>SRTP session for stats purposes
...
fixes #366
Change-Id: Ie99766a3561d3adfcb06d75c465a9aa02c16b2ab
9 years ago
Richard Fuchs
f979159d0e
fix segfault when no SSRC pointer is present
...
fixes #370
Change-Id: If1e89b21a183acd79a6c84aee6e470849022e37c
9 years ago
Changli Gao
6824865c10
DTLS: Fix potential double BIO_free
...
We should set init to 1 after calling SSL_set_bio(), otherwise if
we fail to call EC_KEY_new_by_curve_name(), we will free r_bio and
w_bio twice: one with BIO_free(), and the other with SSL_free().
9 years ago
Richard Fuchs
3f12517510
report last error when port could not be opened
...
Change-Id: I397101dc64c4e2f706fd604e524b27c86e51a6a5
9 years ago
Richard Fuchs
8f55dd17f1
fix pushing wrong SSRC to kernel module
...
fixes #360
Change-Id: I6051bc3e81b06e89e6b8d74dbff94363716369fe
9 years ago
Richard Fuchs
2a03c008ac
clean up code artifacts
...
closes #314
Change-Id: Ie6762654adc67a2cc2fd34c0bdda7a514928d389
9 years ago
Richard Fuchs
23bc99ed81
TT#12800 consider RTCP XR reports for MOS calculations and stats
...
Change-Id: I18f6ff92bab432caf446c59395ab253a305378f4
9 years ago
Richard Fuchs
ab0dba7d14
TT#12800 support custom monologue labels
...
Change-Id: I55b2db88307088c4d5e0161eae6e3aa0b5d1b053
9 years ago
Richard Fuchs
2cf93904df
TT#12800 restore SSRC table from redis
...
Change-Id: I9c6a5a33ae14e803e5badade8307d4f53f7a04a2
9 years ago
Richard Fuchs
9108b14b80
TT#12800 records stats average not just for MOS but all values
...
Change-Id: I1c641a654623022df617da98c4a53ed34decb211
9 years ago
Richard Fuchs
4ad693a063
TT#12800 report MOS stats back to proxy via NG protocol
...
Change-Id: Ib0cc5b39a5f50d68a8013b738ac7d87b32069928
9 years ago
Richard Fuchs
5c84a6f61c
TT#12800 limit size of SSRC hash table
...
Change-Id: I51ba759d1f328f08b03e14a2f8545453f6a8ade8
9 years ago
Richard Fuchs
11dac7b28f
TT#12800 add MOS statistics to final log output
...
also converts call->created to a timeval
Change-Id: Idb71ada22a2d04637670b7515e54f2994f8d4c93
9 years ago
Richard Fuchs
868c3b64fe
TT#12800 add ssrc handling into packet_stream struct
...
Change-Id: I7da97a6435854a846d2782448b32c69327756ccf
9 years ago
Richard Fuchs
84e76e7cba
TT#12800 calculate MOS values from RTCP RR
...
Change-Id: Ie4ba70ae8290f497a4a5d756a369911b96205299
9 years ago
Richard Fuchs
0f285899e0
TT#12800 avoid creating empty log messages
...
Change-Id: Ica806fbc4cbe723cffdc16a7206fd4890af9fe53
9 years ago
Richard Fuchs
90693a1969
TT#12800 refactor RCTP XR processing
...
Change-Id: Ieb6279d866cae3e4f6b13c2755518c2bbb7e428c
9 years ago
Richard Fuchs
70b7112617
TT#12800 store and process RTCP SR and RR for statistics
...
Change-Id: Ia78c37ae9d24df6783b664da6d395263f9f39e91
9 years ago
Richard Fuchs
c1711ea948
TT#12800 consolidate and combine RTCP parsing and logging
...
Change-Id: I8690b5d180b3eaf1c1b0b4295734609c5125a453
9 years ago
Richard Fuchs
223c7f17dd
TT#12800 abstractize rtcp parsing and logging functions
...
Change-Id: I26e02a6851a51ea0720ac8ce1fc4a9e27d2ffec4
9 years ago
Richard Fuchs
b3583633e3
TT#12800 canonicalize ssrc handling
...
Change-Id: I481dd4062f044f9f7add65b4b82d276629f47ce8
9 years ago
Richard Fuchs
5e3ce30272
TT#14008 add missing DTLS locks
...
fixes possible segfaults due to race conditions
fixes #283
Change-Id: I7efba57d914163986c294b8fb1dd9531d5ef7a89
9 years ago
Richard Fuchs
37a9521901
don't treat media socket write errors as fatal
...
closes #351
Change-Id: I36add0e8aca8856e053b10abdfffbfa63e134daa
9 years ago
Richard Fuchs
531febbbb0
migrate log-stderr and log-facility options to lib for recording daemon
...
Change-Id: I3322eccf01c606f29024fc786b257c45d6b92b54
9 years ago
Richard Fuchs
c5a202ebcd
write both types of media indexes to recording metafile
...
Change-Id: Ib6d5b43aa8a94ad62f73d644e5a2009d804cf17d
9 years ago
Victor Seva
f7aa5fa6b6
TT#14571 PEP8 for YouCompleteMe config
...
Change-Id: I8fdc9b3d3ceb2cfa7333cb8520228629f1c521f1
9 years ago
Richard Fuchs
d269f6a320
eliminate orphaned redis code fragments
...
Change-Id: Id2c394f61387d3cc1f89a62b880c4ecc1c9d060e
9 years ago
Guillem Jover
0b1bdbb339
TT#14400 Do not NULL-dereference pointer
...
When debugging mode is enabled, and the socket variable is NULL, we will
try to dereference it to print the debug message. Split the checks to
avoid that.
Change-Id: I0e0643900d3d8463937b7fd47b21cd91cf49b73c
9 years ago
Guillem Jover
bd833c2586
TT#14400 Use a boolean instead of a bitwise operator
...
Using the bitwise operator seems confusing here, and the boolean
operator will in addition short-circuit which should not be very
significant performance-wise, but still nice.
Change-Id: Icda38d7799aa264d9a6cc1f4a71587e60189b18e
9 years ago
Victor Seva
3c813acacc
support wheezy build reported at #343
...
(cherry picked from commit db7537b1f0499ca35bc58f61522e2eb3be91a7aa)
9 years ago
Anthony Alba
b1e259c109
Document libsrtp AES-256 SRTCP bug for interop
9 years ago
Richard Fuchs
0f07e46d62
fix 32-bit compilation errosr
...
Change-Id: I237a077c4e2d1064af963b3f2a2e51bb2a8388f6
9 years ago
Richard Fuchs
6b6b8ea54a
don't use anonymous unions to make old compilers happy
...
fixes #347
Change-Id: I32ef9efa674e74c3a1263c0fd786a16562ea7838
9 years ago
Claudiu Boriga
edac4f2cd7
make cli_incoming accept multiple connections
...
fixes #280
9 years ago
Richard Fuchs
5dcd533a7f
ensure positive random numbers
...
Change-Id: I993a2b90b8ae56ac263597c5a107be9c1f92d001
9 years ago
Richard Fuchs
7182e751a1
abandon usage of random()
...
Change-Id: I870fd7963dc9148b496361892a2bfe2cc0f88690
9 years ago
Richard Fuchs
6594b2b884
fixes for coverity
...
Change-Id: I92eebf9a44fed8d826e0c2a207c05cd02c5ade0c
9 years ago
Richard Fuchs
e85759a3b8
fix some errors caught by coverity
...
Change-Id: I3f5bfc2df00ab9b031eef5a1c71b6ff3ba25e60c
9 years ago
Anthony Alba
87aaf82111
Document RFC 3711 errata id 3712 that SRTCP_R_LENGTH == 6 is canonical
9 years ago
Richard Fuchs
5c0dc629c1
consolidate AES crypto suites for different key lengths
...
Change-Id: I2d031ed7dd6b9154203b79f2a6dba2b246d2063b
9 years ago
Richard Fuchs
3930f7748e
Merge branch 'aes256' of https://github.com/aalba6675/rtpengine
9 years ago
Richard Fuchs
7088e1586a
remove obsolete redis restore function arguments
...
Change-Id: Ia45cf4316ffa7a3d4fd813c74a1c76ee5dc38058
9 years ago
Frederic-Philippe Metz
d88587512a
Cleanup according to pull req #335
9 years ago
Frederic-Philippe Metz
27679b188e
Moved the json reader locally and removed it from call struct
9 years ago
Frederic-Philippe Metz
95d942005d
Adds missing log output
9 years ago
Frederic-Philippe Metz
8f01e780a8
First attempt to seperate more stats and cdr away from the core running code
9 years ago
Anthony Alba
d5cecc500f
Add AES-192, AES-256 CM to kernel SRTP
9 years ago
Anthony Alba
357bb1d50f
Refactor to add explicit session key init functions
9 years ago
Changli Gao
a3f27f8751
STUN: The most significant 2 bits is 0xc0 in hex
9 years ago
Anthony Alba
b8a2f015ad
Initial support for AES-192, AES-256 in userspace
9 years ago
Richard Fuchs
d513c6dd2b
add missing lock for failed call restores
...
Change-Id: Ibeff1501483038c528f9ba92fe461ec866e73bff
9 years ago
Richard Fuchs
d8cc8caf9c
combine two mallocs into one for redis restore
...
Change-Id: I6a5c26b6e0c856b1930273c37b35020dd48c6505
9 years ago
Richard Fuchs
0cd3b9f650
Merge branch 'redis-onekey-concept-improvements' of https://github.com/1and1/rtpengine
9 years ago
Frederic-Philippe Metz
267b57c33f
Implemented comments from Richard from pull req #323
9 years ago
Anthony Alba
3e2e0242c3
Determine base64 padding from enc_salt_key_len
9 years ago
Anthony Alba
1fc77bc3ac
base64: flush base64 decoding, and skip base64 padding in crypto line
9 years ago
Frederic-Philippe Metz
d904fb2fe5
Removes 'json-' prefix from redis key (callid)
9 years ago
Frederic-Philippe Metz
279e5fa36e
Removes commented code
9 years ago
Frederic-Philippe Metz
d08dd6a5f3
Fixes SRTP restore in onekey concept
9 years ago
Frederic-Philippe Metz
6985784cea
Fixes redis recording flag in onekey concept
9 years ago
Frederic-Philippe Metz
14b37ebfe5
Removes multikey stuff
9 years ago
Frederic-Philippe Metz
f3364d9e7d
Omits redisreply in redis restore and eliminates 'multikey' feature
9 years ago
Richard Fuchs
f77726caa8
update redis one-key concept
...
Change-Id: Ifc164f5737decefef2463af57d75f717b97e169b
9 years ago
Frederic-Philippe Metz
ea9512c520
Adds URI encoding for json strings in redis.
9 years ago
Frederic-Philippe Metz
ed760fb566
Fix more issues from richards comments
9 years ago