Richard Fuchs
ccccded287
MT#55283 add evs-dtx= option
...
Change-Id: I6489895e31e1fcf1c72c9767b122189f22f58792
1 year ago
Richard Fuchs
7e30f816e4
MT#55283 change amr_cn_dtx option to bool
...
Change-Id: Ife3d89d8c133b14bf42b6c3468675a6147882681
1 year ago
Richard Fuchs
18579227a9
MT#61404 clone previous sequence number for T.38
...
If the receiver of a previously passthrough T.30 stream gets switched to
a generated PCM stream from a T.38 gateway, continue the sequencing of
the previous SSRC. Technically this is not necessary as the generated
PCM stream gets a new SSRC, but at least Asterisk seems to ignore this
and expect sequencing to continue, and will ignore PCM if the sequence
jump is too large.
Change-Id: Ia4656770db11f5fa1a1e9bf5bd71a0398deb1e00
1 year ago
Richard Fuchs
0da49000ba
MT#61404 always update egress RTP index
...
Add a simple function that acts as an encryption callback to just update
the ext_seq (index) of the egress SSRC context. The kernel module
already does this, but the daemon only did it when SRTP was involved.
This now tracks egress packet indexes in all cases.
Change-Id: I9460744de55ead4b05aceb322fd8482442ff2b41
1 year ago
Richard Fuchs
43cc9cc06d
MT#55283 change shutdown order
...
Some components (the timer thread used by the codec handlers in
particular) may hold references to components owned by the codeclib (the
.so handles in particular). Move codeclib cleanup towards the end.
Change-Id: Ic581588c27b69c025576c14a69e999c9ca5d1597
1 year ago
Richard Fuchs
a19bed611c
MT#61404 remove unused RTP/non-RTP distinction
...
Change-Id: Ia43e1eb373c893df6693032a14eb631f16593094
1 year ago
Lucian Balaceanu
bba9625b25
MT#55283 fix calling redis_delete when call is not persisted to db
...
Fixes a corner case that happens when trying to delete a call created with
ng offer and no-redis-update flag and for which no ng answer was received.
In such cases, one would receive warning messages from Redis
"ERR DB index is out of range".
What happens is that on call creation redis_hosted_db defaults to -1. This
value is changed when writing to Redis, but the writing is not done for a
ng offer with no-redis-update.
Kudos go to Pawel Kuzak.
Closes #1910
Change-Id: Iad19ec8ac69b169e6352662697b17eb23e6970fb
1 year ago
Richard Fuchs
eeeb2d8641
MT#55283 move socket_port_link into stream_fd
...
This allows us to simplify some function signatures
Change-Id: I58f65735ba84ec7a536b1b170d1ef90e266308f5
1 year ago
Richard Fuchs
08e382540e
MT#55283 add link to port_pool in socket_port_link
...
Change-Id: I43400175271b089a368f731bd55acb05ccab7141
1 year ago
Richard Fuchs
5d87f74f1b
MT#61625 allocate rtp_payload_type in memory arena
...
Change-Id: I119fc027f805bd7452096fa75ca6e152527f41ea
1 year ago
Richard Fuchs
31c6d7d754
MT#61625 split out generate_mid()
...
Use a common function to generate media IDs.
Change-Id: I428205f67632134d2d598456f1d5b2eca67e8be5
1 year ago
Richard Fuchs
c99a4691b4
MT#55283 use GPOINTER_TO_UINT
...
Change-Id: I5e8ee279aa193c1b7f71a01c42fa3482856b9b30
1 year ago
Richard Fuchs
bf10ace2f3
MT#55283 use relaxed ordered atomics
...
Change-Id: I17dbebf129412b077c3edbabe800a5ae49d0bb85
1 year ago
Richard Fuchs
dcc816dd07
MT#55283 use obj_release in more places
...
Change-Id: Ib343ff28bf6796238358170f89e565e5e9d6f707
1 year ago
Richard Fuchs
4c9343b8c6
MT#55283 used typed hash table for rtp_stats
...
Change-Id: I015a931d7e726815d2a7d06fa4d74a1418dfec0b
1 year ago
Richard Fuchs
1eab1312ae
MT#55283 update bit field type to bool
...
Change-Id: Icd65e286d97719de2e51fd85b7af167a3fc31103
1 year ago
Richard Fuchs
7c4bc9bc07
MT#55283 update bit field type to bool
...
Change-Id: Ie85a3609a8889e31c551dce92dbcaec5af1e6675
1 year ago
Richard Fuchs
06b84ac050
MT#61625 refactor __rtp_stats_update
...
Make it so we can do this without a codec_store.
Change-Id: I3872709ee8d28ccccfab52006cb7f73887b53f04
1 year ago
Richard Fuchs
09c4c84d03
MT#55283 move helpers out of the way
...
Change-Id: I207d000c7c2cfca9c139518cc0111355b6414d60
1 year ago
Richard Fuchs
df64eb09a4
MT#55283 convert accept to bool
...
Change-Id: Ie4e1415fd35fa6b4a3ab95ed80c2ab3047b902bc
1 year ago
Richard Fuchs
55ccc6bbe1
MT#55283 convert listen to bool
...
Change-Id: I18ab74fcd1e5ca330619a357d6ee080be45b2ab5
1 year ago
Richard Fuchs
3337059585
MT#55283 convert endpoint_parse_any_str to bool
...
Change-Id: Id7ba272643f3578fbf12647444342f979b3d864f
1 year ago
Richard Fuchs
80f7c20429
MT#55283 convert sockaddr_getaddrinfo to bool
...
Change-Id: I75e04bdda3b54fd9f7cbe9d6ff8c978e2bb2c2d1
1 year ago
Richard Fuchs
5f418146c4
MT#55283 convert endpoint_parse_any_getaddrinfo_full to bool
...
Change-Id: I74dbdcb6798203306652078997b74bdaacfb8526
1 year ago
Richard Fuchs
fbcdaaee4a
MT#55283 convert endpoint_parse_port_any to bool
...
Change-Id: Iede44b1652ac749d0e0fbd31acb0e42bca8641c3
1 year ago
Richard Fuchs
3e5cf09486
MT#55283 convert endpoint_parse_any_getaddrinfo_alt to bool
...
Change-Id: I6e4437ce60065205c13271b96ee6b346af0a24fa
1 year ago
Richard Fuchs
927c85e5ff
MT#55283 convert endpoint_parse_any to bool
...
Change-Id: Ia6fd64615591efe1dfd6de4cc70a5642ea777331
1 year ago
Richard Fuchs
4b13ada4e5
MT#55283 convert sockaddr_parse_str to bool
...
Change-Id: Idf1ab8653c14f8bf4fe0f1cc9f19054ed2de7157
1 year ago
Richard Fuchs
b7b8ef7610
MT#55283 convert parse_address to bool
...
Change-Id: I1ecde49d69b11cb57b3437033a789e036e1147a4
1 year ago
Richard Fuchs
3cce4ac230
MT#55283 convert sockaddr_parse_any_str to bool
...
Change-Id: Iaf9179bf1f55774bc9c63fd1238155f7ff3b7570
1 year ago
Richard Fuchs
81899d5483
MT#55283 convert sockaddr_parse_any to bool
...
Change-Id: I0bd04ab7f12d31feab469c7b3a6ac8df591ec8cd
1 year ago
Richard Fuchs
7599e5c375
MT#55283 convert close_socket to bool
...
Change-Id: I290012391ba1fa2c6c550614e054181de6e0b94e
1 year ago
Richard Fuchs
386f1d50cd
MT#55283 convert open_v46_socket to bool
...
Change-Id: I174a08cbed3f6ac856bf29458ee3c81ca2947de9
1 year ago
Richard Fuchs
c2ba54e615
MT#55283 convert open_socket to bool
...
Change-Id: I715afc937f6b1cbc124ff14a0428f781f58cd050
1 year ago
Richard Fuchs
cd0454b554
MT#61625 refactor codec_make_payload_type
...
Also change allocator to g_new as the slice allocator is obsolete.
Change-Id: I63675b462e8355a458d4075bebed5c9bdb95cd66
1 year ago
Richard Fuchs
21de8d4b94
MT#55283 modernise timeval_subtract
...
Change-Id: I7715ee92e12e88d69e3f714a6714f691646e240c
1 year ago
Richard Fuchs
5dd0a387a3
MT#55283 modernise timeval_from_us
...
Change-Id: I745365e9c0c3c055e6972d18ab4593b9589f55f5
1 year ago
Richard Fuchs
89abf47989
MT#55283 use timeval_subtract
...
Change-Id: I91174702dac50c05725a5e3b62bdeae5f7db9c32
1 year ago
Richard Fuchs
4947ab9404
MT#55283 modernise timeval_add
...
Change-Id: I16a368dc66e632d43f01f9e674ad9637a0c18370
1 year ago
Richard Fuchs
5280eaed88
MT#55283 fix typo
...
Change-Id: I2def70a1ec59aefd58ec7a5d7e3c08e82f9c66d5
1 year ago
Richard Fuchs
e734497afb
MT#55283 fix duplicate unlock
...
Change-Id: I9c7f0a6120185662c0e3615553f71d1c80302110
1 year ago
Richard Fuchs
5f6609de5d
MT#55283 don't pick an unsupported PT for playback
...
Make sure we properly return a failure if no supported payload type is
present.
Change-Id: Ia483e0819b2d8ca0c2c5184c929dfe3d05c96ca1
1 year ago
Richard Fuchs
7b60e85970
MT#55283 add codec_def_supported() helper
...
Make sure a codec is not only known to us, but that it can actually be
used, in places where it makes sense. This is partially redundant
because ensure_codec_def_type already takes care of this, but a codec
definition may come from a different source, so it doesn't help to
double check.
Change-Id: I91af84afc2477840f1400674b2538ad8fb7746ee
1 year ago
Richard Fuchs
c42f130da8
MT#61625 remove redundant ifdef
...
Change-Id: I0766d28190058816b65543e4e1a03ebfdf04da1f
1 year ago
Richard Fuchs
416ca38d25
MT#55283 allow overlapping port ranges
...
Change-Id: I6df35b8cc0687567d7c3c0fd6d44979345dca364
1 year ago
Richard Fuchs
1b7077152f
MT#55283 change reserve_port semantics
...
Change-Id: I162fbf8f167b1c47e060128dcb4f8773c8fbf3a7
1 year ago
Richard Fuchs
3c6108e072
MT#55283 move mutex locking into function
...
Change-Id: Ie01aa986887f2d0e709aae725b0a50ca833d84b6
1 year ago
Richard Fuchs
347c21fc7e
MT#55283 use typed GQueue
...
Change-Id: Iea5a5e988ea23a17a5b2da5f02cd972afae2db87
1 year ago
Richard Fuchs
9d93762053
MT#62053 add exclude-ports option
...
Change-Id: Ibf319f5ae00e120490610c695a326f5397412155
1 year ago
Richard Fuchs
aec1a0940c
MT#62053 add safeguard against broken port ranges
...
Change-Id: I5e4fa46b5d75253129e887da8ddbba4fc60702f5
1 year ago