Donat Zenichev
423d7bf824
MT#59086 Unify header files.
In the header files follow the rules:
1. Firstly goes ifndef/define construction, then one empty row.
2. Secondly go system headers, so in angle-brackets, then one empty row.
3. If there are important pre-processor definitions, which affect
the following custom file headers, they are added next, then one empty row.
4. Thirdly custom header files, so in double quotes,
then at least one empty row.
5. If there is "xt_RTPENGINE.h", it's mentioned next, but separately,
then one empty row.
6. Then pre-processor definitions, and one empty row before the code.
In some situations it's allowed to step aside from the rules,
when inclusions are dependent on each other, so on specific sequence,
and also possibly on some inline objects definitions.
But, if possible to follow the rules, it should be done.
Change-Id: I6bec69b508653947c04e7785775373d21112eb58
2 years ago
Richard Fuchs
c9ac6ecc73
MT#55283 convert struct rtp_payload_time to typedef
Change-Id: Idb415f448a920b73582f9d5f64cca9b53b81a8ac
2 years ago
Richard Fuchs
cd4f6608cd
MT#55283 convert struct stream_fd to typedef
Change-Id: I1435a5f755cb99833535d995871f1e9050f0ec73
2 years ago
Richard Fuchs
2975b2131d
MT#55283 convert struct call to typedef
Change-Id: I1f01fdf74d6d3952413ebc02dfdb9770b324481c
2 years ago
Donat Zenichev
2152a90f08
MT#57719 ssrc: Use media subscriptions: `hunt_ssrc()`
Start using the media subscriptions model
(based on newly introduced `media_subscription` objects)
in scope of `hunt_ssrc()`.
Change-Id: I08c7292e0d73a486e25004358de91a3414ce886a
2 years ago
Orgad Shaneh
1a28b73a2d
MT#55283 Rename aux -> helpers
Windows doesn't allow a file to be named aux, so checkout fails.
closes #1686
Change-Id: I4667561f430ec8d4767d2313890839754be77322
3 years ago
Richard Fuchs
61f41522e0
MT#56471 extend get_ssrc to return created y/n
Change-Id: I365d26921a01505c51134fd3986a70115a8cbf48
3 years ago
Richard Fuchs
8ace838eed
MT#56471 add more generic create_ssrc_hash
... which doesn't pre-create one SSRC object
Change-Id: Ibea369073f45198608664f655f725dbcf9c122d7
3 years ago
Richard Fuchs
fbf7550f86
MT#55283 collect sampled interface stats
Change-Id: I3884a75469b463a1287a77c9b8a3b408246652e6
3 years ago
Richard Fuchs
778ec46b81
TT#178400 support reporting out measured jitter
Change-Id: I798ec9b05f48f3e12630aa71e16a6bf5746f5319
4 years ago
Michael Prokop
e425e82272
TT#71950 Fix typos
s/torwards/towards/
s/behavious/behaviour/
s/cliens/clients/
s/retreived/retrieved/
Change-Id: I50ccecd860f0c1cc25b6c16f5af13aa059e87a93
4 years ago
Richard Fuchs
2240921ab3
TT#136957 use separate sequencer per sink/destination
Change-Id: Ib960108003d5aa13ba1732d7a5e8c6720feca5c0
4 years ago
Richard Fuchs
bcb912bc27
TT#136952 allow passing user data to ssrc_hash_foreach
Change-Id: Iea158f06901de33ad9b53f8c277011b859cb214a
4 years ago
Richard Fuchs
834eb034af
TT#14008 add packet loss tracking for userspace passthrough
Change-Id: Id2ea329333a4236389e2a2b567fba76ffc7cea5f
4 years ago
Richard Fuchs
785ed90bba
TT#14008 eliminate duplicate packets_lost counters
This solves inconsistent stat output
Change-Id: Ic4c010fbceb83d1f8d5fffecacb3c65a436bfeae
4 years ago
Richard Fuchs
369e64f9a7
TT#14008 add mqtt support
Change-Id: Ica4a3e4ef58eadf3feca44ea63f2308103b3146f
5 years ago
Richard Fuchs
983a703ba7
TT#111150 remove stray compiler warning
Some invocations of ssrc_ctx_put() are deliberately passed a memory
reference, which produces an undesired compiler warning. Use an
intermediate variable to suppress it.
Change-Id: I7a5000df4d66ffadd374475907460919763c95b0
5 years ago
Guillem Jover
07695d2abb
TT#111150 Use modern <stdint.h> uint<bits>_t types
The u_int<bits>_t are BSD legacy types, while the new ones are specified
by C99 and SUSv3.
Change-Id: Ia748cabc33a7e5adc2c7a6049ad1e55be0c788a8
5 years ago
Richard Fuchs
292ba2e72b
TT#111150 convert refcounting functions to macros
Convert ssrc_ctx_put() and ssrc_ctx_hold() to macros to aide in
debugging reference leaks. Having them as inline functions hides the
actual location of the refcount changes.
Obsolete ssrc_ctx_get() as returning values from macros is awkward and
it was only used in two locations.
Also fix a function invocation mishap: obj_get_o() should be used
instead of __obj_get() as the latter is an internal macro.
Change-Id: Icc0d63f04b3816632fd120c1c749cafabbbfa331
5 years ago
Julien Chavanton
0483df374f
fix rtt from rtcp_rx
5 years ago
Julien Chavanton
49786d049f
adding cumulative number of packets lost
5 years ago
Julien Chavanton
3d5e586c69
mos average fix when missing RTT
5 years ago
Richard Fuchs
c12ec6600d
TT#99621 support jitter tracking for RTCP
Change-Id: I181e06e904702f37e155990dc597391c17ae4ad0
5 years ago
Julien Chavanton
e1847cadc5
RTT per call leg
5 years ago
Richard Fuchs
58c436e5a7
TT#98901 add ssrc_hash_foreach()
Change-Id: Ia90fc84ee82afc78b8fa5b6f8fed160959636d28
5 years ago
Richard Fuchs
a168a3c024
TT#78307 generate RTCP for media players
Change-Id: Ic6dd65211ca253491a7ef3acd35499155b60fe4c
6 years ago
Richard Fuchs
2e4617ff86
TT#78307 move SSRC send stats to actual point of sending
Change-Id: I54ff4afeb8b3a205a678e9102fb0d8cedee78bae
6 years ago
Richard Fuchs
1d514a063c
TT#78307 add helper functions for SSRC contexts
Change-Id: I32470c03c19c8bb889900ca277b73713ee66c485
6 years ago
Richard Fuchs
0308ee43ec
TT#14008 fix compiler warnings
Change-Id: I56001a5db58c6755584e49496b41e11c6a5f8aeb
6 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
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
d64c888a0e
TT#36301 transcoding unit tests
Change-Id: If48e5afe5a343b557183b6e87441f52424dd2c6a
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
0db5e226e5
fix payload type tracking for transcoding situations
closes #476
Change-Id: I6a038136e22b23efe422eb40caa0f3e10359e5d1
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
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
b9206a49bc
TT#28163 abstractize SSRC hash
Change-Id: I2f28854070ad5a7567870ef7585e67729154b0e3
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
Richard Fuchs
23bc99ed81
TT#12800 consider RTCP XR reports for MOS calculations and stats
Change-Id: I18f6ff92bab432caf446c59395ab253a305378f4
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
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
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
b3583633e3
TT#12800 canonicalize ssrc handling
Change-Id: I481dd4062f044f9f7add65b4b82d276629f47ce8
9 years ago