Richard Fuchs
d510f5efe8
TT#30404 initial support for adding codecs for transcoding
...
Change-Id: I58474ac2daee213d9f11157f61c2a3df90818fbe
7 years ago
Richard Fuchs
8715d40242
TT#30405 codec matchup and handler functions
...
Change-Id: I506c0e8bfa4b6e64689f6debeb33fe69fce1722c
7 years ago
Claudiu Boriga
b7b40cc5a9
Use proper data type for requests statistics
7 years ago
Claudiu Boriga
3850e99fd3
Use atomic64_get_set for requests statistics
7 years ago
Claudiu Boriga
f7ece0452b
Merge remote-tracking branch 'sipwise/master' into add-requests-ps-stats
7 years ago
Claudiu Boriga
8cc4b7874e
Add statistics for requests per second
7 years ago
Richard Fuchs
ca78747c8c
TT#30405 rename media->rtp_payload_types to ->codecs for brevity
...
Change-Id: If89d774a6ab62855118eec74d21123ba61b48e9e
7 years ago
Richard Fuchs
2540c5d501
TT#30403 support codec-offer
...
only codecs from the original list for now
Change-Id: I884775a5b337ed3533972f4361ecb50e329b126e
7 years ago
Richard Fuchs
d31fb36f6e
TT#30403 parse and retain a=fmtp infos
...
Change-Id: I81b2afdfac7f65833fa5260add823fcf7680c879
7 years ago
Richard Fuchs
d7dd7421e6
TT#30403 implement codec stripping
...
Change-Id: I384aa353b43986656145c443e40a2b96f04c489f
7 years ago
Richard Fuchs
46d853972b
move lib/ config options into struct
...
Change-Id: I563b38cd64daea5f9137debff2fc7881a3cdaa9d
7 years ago
Richard Fuchs
75056a8dd1
eliminate the callmaster struct
...
Change-Id: I9151dbe8f47b3bb9ab67d6fea2fc3783bdc558da
7 years ago
Richard Fuchs
f2b93f9ef8
move config options into global struct rtpengine_config
...
Change-Id: Ie566efb6a1b8bedbe33f768bc4cd979b2d2b46cc
7 years ago
Richard Fuchs
d65a6bbbdc
move latest_graphite_interval_start to global scope
...
Change-Id: I1eb5ea8d6faafe40383d3bb92517307e47ceca9a
7 years ago
Richard Fuchs
741140341f
move "totalstats" out of callmaster into global scope
...
Change-Id: Ia5b95e788c1d486a86b6f916dcff5b88022f5897
7 years ago
Richard Fuchs
c969ea1e57
move stats and statsps into global scope
...
Change-Id: I02d16e31f8980bd0ef3ff3a190b23dc61c087018
7 years ago
Richard Fuchs
cf3a8f9e16
move 'poller' member of callmaster into global scope
...
Change-Id: Ide88caff59529278e45ceef4f9664bfc07f67b3d
7 years ago
Richard Fuchs
dffbddb2d6
don't use g_ prefix for global variables
...
Change-Id: Ifd843b01d7fccf294f97fdf48308c71268e1b8ae
7 years ago
Richard Fuchs
e87b2710c8
move matching regexps out of callmaster into global
...
Change-Id: I42779b3a1b9aef8b98ddecce6fa4093589ab6d62
7 years ago
Richard Fuchs
790e596c58
move cngs out of callmaster into global scope
...
Change-Id: I138ca8756dfc576451bc7c3fca1db89d6616fb1e
7 years ago
Richard Fuchs
399e15b39a
make the callhash global
...
Change-Id: Ifa1fbb5d1b1f623dbc6a1bfac556342735b40161
7 years ago
Richard Fuchs
1aa9944fe4
TT#27550 implement interface round-robin selection
...
Change-Id: Id5cf290cc9d044716b5f55cf416dc40b87f23f24
7 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
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
00cc28dff4
TT#22660 don't zero out SDP origin on zero connection address
...
Change-Id: Idc68132a7ae23a6273464927ecf27237cdc9d6cf
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
e7d75bd275
TT#19350 add option to manage iptables rules directly
...
Change-Id: I8e2b47bf34206ed5cc369649bf8ef875ac271169
8 years ago
Richard Fuchs
2a03c008ac
clean up code artifacts
...
closes #314
Change-Id: Ie6762654adc67a2cc2fd34c0bdda7a514928d389
8 years ago
Richard Fuchs
ab0dba7d14
TT#12800 support custom monologue labels
...
Change-Id: I55b2db88307088c4d5e0161eae6e3aa0b5d1b053
8 years ago
Richard Fuchs
9108b14b80
TT#12800 records stats average not just for MOS but all values
...
Change-Id: I1c641a654623022df617da98c4a53ed34decb211
8 years ago
Richard Fuchs
11dac7b28f
TT#12800 add MOS statistics to final log output
...
also converts call->created to a timeval
Change-Id: Idb71ada22a2d04637670b7515e54f2994f8d4c93
8 years ago
Richard Fuchs
868c3b64fe
TT#12800 add ssrc handling into packet_stream struct
...
Change-Id: I7da97a6435854a846d2782448b32c69327756ccf
8 years ago
Richard Fuchs
223c7f17dd
TT#12800 abstractize rtcp parsing and logging functions
...
Change-Id: I26e02a6851a51ea0720ac8ce1fc4a9e27d2ffec4
8 years ago
Richard Fuchs
b3583633e3
TT#12800 canonicalize ssrc handling
...
Change-Id: I481dd4062f044f9f7add65b4b82d276629f47ce8
8 years ago
Richard Fuchs
531febbbb0
migrate log-stderr and log-facility options to lib for recording daemon
...
Change-Id: I3322eccf01c606f29024fc786b257c45d6b92b54
8 years ago
Richard Fuchs
6594b2b884
fixes for coverity
...
Change-Id: I92eebf9a44fed8d826e0c2a207c05cd02c5ade0c
8 years ago
Richard Fuchs
e85759a3b8
fix some errors caught by coverity
...
Change-Id: I3f5bfc2df00ab9b031eef5a1c71b6ff3ba25e60c
8 years ago
Frederic-Philippe Metz
95d942005d
Adds missing log output
8 years ago
Frederic-Philippe Metz
8f01e780a8
First attempt to seperate more stats and cdr away from the core running code
8 years ago
Frederic-Philippe Metz
14b37ebfe5
Removes multikey stuff
8 years ago
Frederic-Philippe Metz
749a7da7b0
Implements redis onekey concept
...
The redis onekey concepts is introduced to reduce traffic to redis
and redis notification traffic.
It modifies the current structure for one call in redis, which are
multiple keys with pre- and postfixes and the callid in between to
one key with the structure "json-<callid>". The value is a json
formatted string with the previous multi-key identifiers in it.
8 years ago
Richard Fuchs
97183b10df
make sure call_destroy unrefs the correct call object
...
avoids a possible race condition with rapid create/delete/create of the
same call
Change-Id: I293c7064ea0c491b4040eb41300c56384c325719
9 years ago
Richard Fuchs
30dcadab15
TT#5566 rudimentary support for multiple audio codecs
...
Change-Id: I7e473f5d17874641253b4b16c3470851743818e1
9 years ago
Richard Fuchs
411c3b3373
TT#5566 checkin of external call recording daemon
...
Change-Id: I8102144ab1508fe815be84d727f6fa3234fd0994
9 years ago
Richard Fuchs
984585a32c
TT#5003 implement kernel-side call recording
...
Squashed commit of the following:
commit 1af3efd464d9c86eb428aa29ca084ead67ba4cdc
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Mon Nov 7 11:10:22 2016 -0500
save and restore call recording status to/from redis
closes #254
Change-Id: If3cd34fcfd64fa8164521a86eb1d1aa0eb327f3b
commit 460053a2316ac77ebf2609af4e5bf73beac57643
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Nov 4 14:09:08 2016 -0400
restore libcurl build dependency
Change-Id: Ia853f928caf9e443bb69c4015cbba805e6d24153
commit 5f5fd88fde67ffcd5a83f1a18e9134702f995686
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Nov 4 11:22:27 2016 -0400
ensure we are always decrypting SRTP when recording
Change-Id: I2b75afefcadc55ebf1bf6a19a983134c87c41602
commit 69b4e9fa886c673bed6168c2092864fdff2619aa
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Nov 4 09:56:47 2016 -0400
remove redundant ng result=ok logic
Change-Id: I84d7245f52dc12a4002b4dd2b736afea9ae733fa
commit 411213dd3d17c1e54eeb6813cb0473a706a10cee
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Nov 3 16:04:54 2016 -0400
support the `start recording` command message
Change-Id: I316e90fd3fe34f01b20826936ef620bcff785397
commit ae1910c68d90d0c1f913bd09f9ecdee5579f53f4
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Nov 3 15:01:57 2016 -0400
move logic for `record call` flag to where it belongs
Change-Id: I65a3b5d62f4360df4251faea1339b5a6355c0e6d
commit 217008d572d103ab4146cdcfb9c292610c869643
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Nov 3 12:49:48 2016 -0400
support combining streams into one pcap in reference scripts
Change-Id: Id82936ae7ef1b406acf3b4d3429ecc1cb6e2356e
commit 3fcafd92750d20e07b9c522cd15df0f1745bd412
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Nov 3 11:40:00 2016 -0400
output additional details to metafiles
Change-Id: I0539a0617aff51c9c499bbd9586d61c7e7ca7e7c
commit e81f413f3ba228f548931a234a1c18c13c62b135
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Nov 2 16:18:28 2016 -0400
globalize kernel access variables
Change-Id: Ie07e0ebb8705189c8b1e49f596080ff8bcaef64f
commit 5e74609c7c3e5237fbd9995b90b29b2c456d2c04
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Nov 2 12:20:55 2016 -0400
duplicate error messages to stderr when in foreground
Change-Id: Iaf9d8d1392946046846cb6f2c0fb928a96893911
commit 032077bed4a4b3610e88deab905f6a41616393e6
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Nov 2 11:38:22 2016 -0400
eliminate dummy virtual function
Change-Id: I7cc2596f31350bf0d39253b3bd7e9fe1cec2b92d
commit 9177effc4e56b0fc26f44da525fe88d8aa3a6f05
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Nov 2 11:30:58 2016 -0400
clean up recording code related to ng interface
Change-Id: I69c6d953f8467e5154f000979c94f2dc3a79918a
commit ac0ec6a5e7b4927af5294a6e86a129a8ffc90e7a
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Nov 2 10:57:15 2016 -0400
output before/after sdp to metafiles
Change-Id: I1d3177e40591d6b4c4789eb6e18132743a9eda45
commit 68b27fa964455eef4c4acaf9540d19013b3df3e7
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Nov 1 15:40:20 2016 -0400
fix header length problems
Change-Id: I896453f72df3ba146251f5d82ca1d02dd0ad08e9
commit ebbd942ad00b3a4eb74fbfcd915e82a263243d02
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Nov 1 14:14:08 2016 -0400
support writing pcap files in reference intercept script
Change-Id: I53502ba416426e9012a68c35cdf4b457d7c3eb69
commit fe82efa40a5b0fee4bed2601bab7c1afa09b0ce1
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Nov 1 13:35:47 2016 -0400
ensure we never make any calls that might sleep when holding locks
Change-Id: I1ce6aeced1f61715374b80f6fb1fbeafc987ae7f
commit be5316e804368fad28c2a0012ac2d60cb476b740
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Nov 1 13:08:19 2016 -0400
fix math in auto_array_find_free_index
Change-Id: I39c786b03dbafe59b88a1945ac27964c3852c9eb
commit 183d4939ca8e1fc0f39271713435b016c055bfff
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Nov 1 11:41:47 2016 -0400
adding rudimentary lock debugging
Change-Id: Iff541c58e5ea4c3fc2ec16e93396148f935bc4f3
commit 51a75c5022f96a23b8fff6738b5fa4ad7095a746
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Mon Oct 31 14:35:17 2016 -0400
handle read errors in reference intercept script
Change-Id: I047d763dbd498026a0d8db24c5532155c75fd6e6
commit 69a460de08c6dfe163f9d90dee478c72ea56a2fc
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Mon Oct 31 14:34:54 2016 -0400
changed locking semantics to avoid proc_clear deadlock
Change-Id: I70dbc07aa8af7b9860beca86b4b82d8180d8a0ae
commit 62eae1459a8dc116a0f965d014dd2962d9f2ece2
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Mon Oct 31 12:50:26 2016 -0400
additional debugging
Change-Id: I81c93c2dd9007ed6a0d6e0b147de0deb44b7b023
commit fd367947404c25f7122479dc805ca895346e3568
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Oct 28 12:07:25 2016 -0400
adding reference implementation using inotify
Change-Id: Ibec73bdc4c7a576e4beaf5e749567dd2508be4df
commit f8fde6cc7308faf9aea5016d1b325fe54ace4f73
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Oct 27 15:55:10 2016 -0400
add stream info to metadata files
Change-Id: I200df14a3e35c2c0077866444b96692de4303761
commit 5a8b4dd156d014756681c644549f481af941b294
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Oct 27 14:47:49 2016 -0400
pass intercepted packets to kernel and tie in kernel idx
Change-Id: I33ff297c4a66276b05d0e5d537b0281f27116243
commit 0c0b97ea3940a34843375c58255d40cf4280bd5c
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Oct 27 12:29:02 2016 -0400
abstractize fake packet header and support ipv6
Change-Id: I6c1ad1cccad306f3d306fb3387efcb033a3574b2
commit e1b648b9baea609cbe9836c81a5a2cd41ef464cb
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Oct 27 09:32:40 2016 -0400
support creating kernel intercept streams
Change-Id: I1f9bdda61af52814f07f765a8b558a7491cfc0b9
commit b6737ec9635d2d7a8d0245bab7c51a077cd814d2
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Oct 26 14:46:13 2016 -0400
get rid of call->record_call flag
Change-Id: I04dcba49b07fc669b0bb4bcea8ccc2b52cb76e02
commit 6ed362c120995d1e3fdff71f7e440e73737e7fcb
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Oct 26 12:53:04 2016 -0400
add recorded call to /proc
Change-Id: I1fe64b9fb8fe3604bb7d432899c43e3e37ea6a4f
commit 62d2508ecf69fbdf9ba1faf3e2433fa6f717740a
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Oct 26 10:10:05 2016 -0400
simplify some code
Change-Id: I2a27400e91f58aa8ea20d3e610a7509d2e9a0dfc
commit 0c811a8e91ded41487bf045e6df55fb31cce7671
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Oct 25 16:12:59 2016 -0400
create separate ../tmp recording dir and clean up duplicate code
Change-Id: I94e0c19a1e8fed5a30212b79930987333f5e6786
commit 16592a92300b856084ebd5769ecae35788f0ad63
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Oct 25 11:26:54 2016 -0400
remove explicit libcurl dependency
finally properly fixes #251
Change-Id: I3feafe2d0086f6dd789175e6ec0079c54edd487a
commit c78ac5bbb7e65609175753933f7e75d54ea21c30
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Oct 25 10:48:50 2016 -0400
abstractize recording cleanup routine
Change-Id: Ib9fc46542f273bab53f611a1456f02d67edfc966
commit d8358c9a2c6cbd66e17d4bb08dba96a3b2e2d41a
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Oct 25 10:07:44 2016 -0400
use shorthand for function pointers
Change-Id: Idf43949e20281a10317e22a5b68a6d133e398bd4
commit 9417437c1092770e36bde22b508f9d71078d4a1b
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Mon Oct 24 15:31:56 2016 -0400
abstractize individual recording functions
Change-Id: I0974696b6bb361fce39b24d6be91b5c052ee2b14
commit eb631cd876a0f941ed4fb6d47412a6892e019f1b
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Mon Oct 24 11:54:42 2016 -0400
abstractize call recording mechanism
Change-Id: If8672051227944544d9cf916d359c5db67235e3e
commit 70797ceb8f36c45593688652df98f19a5c1dd9f4
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jul 14 11:25:05 2016 -0400
combine two mallocs into one for user-generated packets
Change-Id: I585d129f10d379a5cb853382773f91a7cec9a98d
commit f62f71cee404893b3f5076489d6a3eb1ad6f69c0
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jul 13 14:22:18 2016 -0400
check for and avoid /proc file name collisions
Change-Id: Ie9eb9ceef8f32de8aba816f0121e768c57fa7402
commit ec6b3d22fcce8e7e2edd35704a559fe392406561
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jul 13 11:02:04 2016 -0400
implement free list
Change-Id: I3e7dc2325c937923d19ce6000f2cf1c011e51037
commit bd75a1cf254c484878d07ecceca7220cdbf1ddb3
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jul 13 09:30:36 2016 -0400
make number of packets retained per stream configurable
Change-Id: If1c87f80dd7367cbc274d13c15f94836ef9c8cb1
commit de259c3d646526bd200f619371668798ddae86b2
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Jul 12 15:15:01 2016 -0400
facilitate passing packets from kernel module out to userspace
Change-Id: I2317a007084a1718e185ba04632c53a9ebe5f29d
commit 3aa88716fb86c62f96b6dfc7d0d9c9755fa1f389
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Mon Jul 11 10:45:10 2016 -0400
restructure calls and streams to global arrays
Change-Id: Icfca615b21f2e51b1abda4422c4eeb8f4ac70a9b
commit 6cf9980f3e61f1f1d44b5ce883298ca2726af1b2
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Jul 8 11:53:32 2016 -0400
implement poll/select mechanism
Change-Id: Ic10c017250f0991f691a887b078e80f694bba853
commit d95829e07b2bf4d3352806c70b3393ae3a8609fb
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Jul 8 10:44:38 2016 -0400
discard new/old packets as required
Change-Id: If73ce77dcbc24addb6ce0931b90de0f5efae9f51
commit be1d769e4454f1d98f0b75cc8301c128a40e980c
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Fri Jul 8 10:25:38 2016 -0400
implement EOF for stream readers
Change-Id: I858dc1fdd7df3b65283e1d96457d87e7452840f5
commit ed2d98d55a87ce428cdc66d9336035f3dc0cb5ae
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jul 7 15:02:58 2016 -0400
blocking and nonblocking reads - incomplete
Change-Id: I7cbfb09507ad8726773d6a28ddb98d5981decd04
commit 246709c7f4741e669c4a78b48c382497bf57c6be
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jul 7 13:55:41 2016 -0400
rudimentary packet reading/dequeuing
Change-Id: I1a924e5cb2ef4e4f16aeff1f1dd90d0746f91da5
commit 427749394995d2e6fb8ad7ddc23c876b1c8e11f1
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jul 7 12:40:31 2016 -0400
use kzalloc where appropriate
Change-Id: Icd6a109a69ab4f6dc9f7d35fd9e8fc9127f8e7e0
commit 5b07819217dfb47201a373e941aab185789484a9
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jul 7 09:07:54 2016 -0400
more module referencing
Change-Id: I2e34fe74f2edef9170a4558f6a24394240966d79
commit 1d8268f636c26ec21c3cfa2308bad91262e0768a
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jul 6 14:56:42 2016 -0400
store delivered packets in queue
Change-Id: Id349b75e06f9dd77c884196b7726027ac5cab7ae
commit 23c6a53f94c46ead7093b5402486799fc631e432
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jul 6 14:21:27 2016 -0400
implement call for packet delivery
Change-Id: Ibeb815bf2fedfdd644d324c65b58a24871d47d4a
commit c8fd855f325128b78f4e276bfb26b479ef189b11
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jul 6 10:28:18 2016 -0400
automatic cleanup of objects upon free/delete
Change-Id: If244905e2d074f491229316f3305c9b0b1451792
commit 282ef603a83637c9a8e33ed31d09268fa45a6301
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jul 6 09:47:29 2016 -0400
unify read/write functions
Change-Id: I78b0dd05cd730e16655034994c74cbe23be23fce
commit e74c62cc6f0dce85fea6534d8d72e2f51e0947d6
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Jul 5 15:36:00 2016 -0400
rename _push to _put and _hold to _get
Change-Id: I9b0ff5038b541bd3cfb961657c15a26f26ccdfb2
commit d71ce17529d1938ce2439b122fb6017e29dd079b
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Jul 5 15:33:07 2016 -0400
support creation and deletion of streams
Change-Id: I7df05d232b5971c54ca50adce8144b5f1646fba0
commit 8be4e2c7c49dd7b893335f14ca98776a1f3fb12f
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Tue Jul 5 11:54:39 2016 -0400
create functions for redundant code
Change-Id: Id3772f12294ee9891d22d833274e5935814cae0b
commit 47ce4ca8f5d694e50c98f73147ed2eb81f14ea8a
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Thu Jun 30 12:12:19 2016 -0400
support creation and deletion of calls objects
Change-Id: Ie5f9aa978bac21fc30909f14d6a438494848dfd5
commit 8dab54209d3e52d41f78d8f54956a4ed3dc15da3
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jun 29 14:20:23 2016 -0400
create /proc/.../calls directory
Change-Id: I682a4bf23edbb72772d64963e3ba2cab2a521ff4
commit 1401ae8db5f9e2a973c670f3bf72e9019c451276
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jun 29 14:02:11 2016 -0400
rename kernel message enum
Change-Id: I45d7aeae43df1fe6ecd6b6965dbd6ba7e7b715d8
commit ce44ff0dbe67a6687d5fb1bea9d31e21c9464907
Author: Richard Fuchs <rfuchs@sipwise.com>
Date: Wed Jun 29 14:00:32 2016 -0400
convert kernel message data to union
Change-Id: I7cfd9fe81623efae0a828ba457aa0a4b1380ff03
Change-Id: I4bb0b7f6d29c1c7a2144e4735ed59f3dc0e37094
9 years ago
Richard Fuchs
94e3c8f9cb
TT#3881 re-enable selective packet loop check
...
instead of outright rejecting local endpoints advertised by remote
clients (to allow for deliberately daisy chaining packet streams), we
flag them for checking against actual packet loops as we did before
Change-Id: I5652e86e12f3c1c5053ea70b01e8d128ebf47751
9 years ago
Richard Fuchs
2e5e2ec1b9
detect and ignore when local endpoints are advertised by remote clients
...
fixes #65
this also obsoletes the old loop detection
Change-Id: I850d81500c45828af2c4d50d80278ec2d599c2a0
(cherry picked from commit 3254278cfd55167fb881cc665328744183773728)
9 years ago
Lucian Balaceanu
5732121794
Beautifying previous code
9 years ago
Lucian Balaceanu
512cc24f9a
Print relay IP information
...
Add relay IP info in MDR, `rtpengine-ctl list sessions <Call-ID>`, call_destroy()
9 years ago
Richard Fuchs
a3c703b302
remove superfluous initialization
...
Change-Id: Ib826154cbb23340d1463158f45b557be0f86485c
9 years ago
Pawel Kuzak
e212c775e2
Merge remote-tracking branch 'upstream/master'
9 years ago
Pawel Kuzak
70a1085712
Do not print statistics of foreign calls
9 years ago
Dylan Mikus
466c52c18e
Refactored recording setup to streamline it
...
We had initialization code for recording scattered through
"call_interfaces.c", "call.c", and "recording.c". I moved more of the
actual code into functions within recording.c under the parent function
`detect_setup_recording`. We call this function from "call_interfaces.c".
I moved the disjointed bit of PCAP initialization to occur right below
where we toggle recording on or off.
9 years ago
Dylan Mikus
b3d6073447
Prefix recording metadata and pcap files with call id
...
We want to be able to associate call files with a call without the
presence of identifying metadata within the metadata file. To accomplish
this, we prepend the call-id to the start of the pcap recording files
and the call metadata files.
Even though call-id is supposed to be unique, because of paranoia we
keep some of the random affix hex string, but we reduced it down to an
8-byte random value.
Also, some minor argument ordering and name refactoring for random
string generation functions.
9 years ago
Dylan Mikus
844abeec7d
Don't free the metadata before writing it to metadata file
...
We used to sometimes free the generic metadata (passed in through
rtpengine commands) before writing it to disk. Then we were writing
blank metadata to our metadata files. We fixed the ordering of
our `free` operations.
9 years ago
Dylan Mikus
74999abb76
Free the call->recording struct when the call is destroyed.
9 years ago
Dylan Mikus
f516684ade
All RTP packet data for a call goes to one PCAP file.
...
This involved moving all code from fs.(c|h) to recording.(c|h).
We still spoof packets, so the UDP will look like all monologues are coming
over the same port and will probably look like they are all one stream if
you look at the PCAP file.
9 years ago
Dylan Mikus
8f6d7c0a16
Logging cleanup and added recording filesystem logging messages.
...
We log errors when filesystem operations fail, among other things.
9 years ago
Dylan Mikus
2c1685b807
Added command line option for the spool directory for recordings.
...
Command line option is "--recording-dir".
Renamed inner recording spool "recordings" to "pcaps".
This is to avoid name sharing conflicts with the "--recording-dir" command
line option, which specifies the recordings spool directory, and the
"$RECORDING_DIR/recordings" inner directory. Changing the inner directory
name to "pcaps" removes this name collision.
In the process, I changed the function names in fs.h to be consistent with
other functions. The names are structure like "$OBJECT_$VERB".
9 years ago
Dylan Mikus
f36faef417
Code bug fixes and safety checks around error-possible code.
...
Fixes and changes:
- Only create the metadata file if the call is being recorded.
- Only write to the metadata file if we actually created it (NULL check).
- Make sure we have metadata before putting it on the call object
- Correctly overwrite recording metadata without leaking memory
- Set the no kernalization flag per call instead of for *every* packet.
- Logging cleanup.
9 years ago
Dylan Mikus
7c53e9f95b
Moved file system management and random string code to appropriate files.
...
File system code is now in fs.{h|c}. This includes:
- spool directory setup
- metadata file management
- pcap file creation and writing
Random hex string generation is now in str.h.
9 years ago
Dylan Mikus
692b12944c
Create metadata file and move it to spool directory when call finishes.
...
We create a metadata file for each call. The metadata files will all end up
in a spool directory for the rtpengine.
Each in-progress file has the format: "rtpengine-meta-$RANDHEX.tmp" and
goes in /tmp/. When a call finishes, it is moved to the spool directory
in sub-directory /var/spool/rtpengine/metadata/ and we change the file
extension to ".txt".
The metadata file contains references to all PCAP recording files associated
with a call, and it includes generic metadata at the tail of the file.
One absolute path for a PCAP file per line, followed by two blank lines,
followed by the metadata passed in to the rtpengine through an external
command.
RTP Engine checks for the spool directory "/var/spool/rtpengine" on startup.
If it's not there, it fails. If it's there, it sets up "metadata" and
"recordings" inner directories. This is where RTP Engine will write call
metadata files and PCAP files.
9 years ago
Dylan Mikus
c8af44a21a
Made random filename with affixes generic.
...
Creating a random filename with a prefix and a suffix is now done through a
generic function. We use this to create pcap recording files in the /tmp/
directory, and will soon use it to create metadata files.
9 years ago
Dylan Mikus
7cc801931a
Added metadata string to call struct.
...
This will follow the call around until we destroy the call, at which point the
metadata string will be freed.
9 years ago
Dylan Mikus
a714fbc462
Record RTP in PCAP files in the /tmp directory.
...
RTP Engine creates PCAP files for recorded calls on offer answer instead
of initial offer.
We make up bogus values for the nonessential parts of the PCAP, UDP, and
IP headers. We might be able to pull these from other parts of the RTP
Engine, but that information was unnecessary for recording calls so they
can be recorded to audio files.
If you change the packet headers, be really careful about byte order and
datatype size!
9 years ago
Eric Green
70eb6b9e81
Record raw RTP to recording files on the filesystem.
...
Pass in "record-call" flag over `rtpengine_offer` or `rtpengine_answer`
message. RTP Engine tracks files used to record pcaps and send them back
in the response message.
Pipes call audio (unencrypted from both ends) to recording files.
Sets up file descriptors for local files to dump RTP recordings.
A file and a file descriptor per monologue in a call.
Recorded streams will be running in user daemon mode, not in kernel mode.
This removes first 12 octets from packet to record just the rtp.
9 years ago
Stefan Mititelu
2024f9e37a
Remove unused code remnants
9 years ago
Pawel Kuzak
96cd5fcf01
Merge remote-tracking branch 'upstream/master'
9 years ago
Stefan Mititelu
1881fc5e58
Free call's main queues in __call_free()
...
Work directly on struct call's queues.
9 years ago
Richard Fuchs
ee960b7f67
dont do DTLS when in passthrough mode
...
Change-Id: I615042ed9121be3e2eb37718dbc642e8a46efcf5
9 years ago
Stefan Mititelu
4fd69132a2
Merge remote-tracking branch 'upstream/master'
9 years ago
Richard Fuchs
0206f09b93
fix obj-debug stuff
...
required moving includes/headers around to avoid circular dependencies
Change-Id: Ia43e3254f252f94ec387be6b9c85fce4e727b251
9 years ago
Stefan Mititelu
ce3ae37a76
Fixes after second review
...
- read/write lock config_lock for keyspace operations
- read lock hashlock when iterating through the callhash
9 years ago
Stefan Mititelu
f392d9b768
Update notifications flag logic
...
-> is_backup_call becomes foreign_call (established via redis notifications)
-> remove active_foreign_call logic
Add only libevent-dev dependency.
9 years ago
Stefan Mititelu
d7a75a1256
Merge remote-tracking branch 'upstream/master'
9 years ago
Richard Fuchs
8f9580e9c1
Merge branch 'RTPENGINE-88-PULL' of https://github.com/1and1/rtpengine
9 years ago
smititelu
bac271b398
Add callmaster config lock
9 years ago
Stefan Mititelu
a43996fe4a
Add 'unidirectional' attribute
...
In order to kernelize unidirectional streams.
9 years ago
Stefan Mititelu
9be68a0c2f
Add FINAL_TIMEOUT parameter
...
The timer that will limit the duration of a call.
Add graphite statistics for calls ended this way.
9 years ago
Lucian Balaceanu
e2d78d9003
Fix overflow of graphite call_duration statistic
...
In totalstats_interval_call__duration_add(), adjust the considered
graphite_interval_start value in case it is inconsistent (bigger) than
call_stop.
9 years ago
Lucian Balaceanu
2a05b85049
Take end time of call monologue from terminated field
9 years ago
Lucian Balaceanu
859a5058e6
Fix (foreign|own)_session, call_duration stats: modify call_get_or_create to set stats and foreign call state
9 years ago
Lucian Balaceanu
8fb677bccb
Fix stats foreign_sessions if redis_restore fails
9 years ago
smititelu
98a86d34c4
Fix segfault when ps->component=0
9 years ago
smititelu
b38f3da45c
Redis nofitications fixes
...
- add --subscribe_keyspace list config parameter.
- don't delete foreign calls by timers
- fix synchronization of foreign calls (use a separate redis_notify database)
- fix statistics for control channel calls.
- fix deletion of foreign calls upon del notifications
- update rtpengine-ctl tool
9 years ago
smititelu
a6b4b86983
Fix segfault when ps->component=0
9 years ago
smititelu
ac753abebd
Merge remote-tracking branch 'upstream/master' into dev-fmetz-redis-notification-upstream-updated
...
Conflicts:
daemon/call.c
daemon/call_interfaces.c
daemon/main.c
daemon/media_socket.c
daemon/redis.c
daemon/redis.h
9 years ago
Richard Fuchs
d8e1e9f86a
simplify redis CLI options
...
Removes the explicit redis-read-db configuration and reduces the option
to one redis DB and one redis write DB. If only the redis DB is
configured, then it will be used for all operations. If both are
configured, then the redis DB will be used for reading and the write DB
will be used for writing (updates).
Change-Id: I8d5a32c53c9416b514c98d69c3afe7c547e530ad
9 years ago
Richard Fuchs
725638bccb
remove redis-role redundancy
...
Change-Id: Id5a39d008169d4b01cd33a7d82bb0896983e47bc
9 years ago
Frederic-Philippe Metz
1ca0cc5a52
Implemented session limitation logic
...
The session limit is only for calls an rtpengine is responsible for.
Foreign calls (coming in via redis notification) are not counted as
long as the rtpengine is not responsible for those calls.
At least that means that the limit may exceed if the calls the rtpengine
is responsible for plus the former foreign calls are greater than the limit.
This will happen suddenly when the rtpengine becomes responsible for the
foreign calls.
9 years ago
Richard Fuchs
b82812260d
move advertised_address out of intf_spec into local_intf
...
supports aliasing a local interface multiple times with the same local
address for different advertised addresses
closes #216
Change-Id: I6f98d1a17290b0bb1831e48ad89fc61d8b2d7914
9 years ago
Richard Fuchs
38d031c510
fix support for AF switching on the fly
...
Change-Id: Id7c582db4ab10afe4341030bde872eee0cb8d973
9 years ago
Frederic-Philippe Metz
9ca0be54c3
Reset deletion timers for in-responsible calls
9 years ago
Frederic-Philippe Metz
fd3e2342c1
Implemented redis notification according to RTPENGINE-64
...
Thoughts on that topic so far:
There's one thing to keep also in mind. What do we do if the call
changes (streams) and the backup node is notified ? Currently we only
know (by subscribing to the 'notifier-' prefix that in fact it has
changed, but we don't know what has changed in detail. Subscribing to
everything would lead to the problem that we have to take care about
synchronising the the new streams with the old ones. Without having a
look at the code that might be a lot of effort and ... I guess that's
why richard likes to ... have clean states of the calls. Synchronizing
is always a mess. Easier to delete and setup new.
I thought about the following solution for makes things more abstract
and easier to understand:
1. Whenever that call on a backup node (foreign call) has seen a packet
(also timers are started then), we do not process any notification by a
redis notification for this call (caus' the RTP-IP has already been
switched). More precise and abstract that means: If a node has taken
over the responsibility for that call (by having seen a packet), it
assumes that notifications from the former node to be dropped. The call
will be deleted when either the timer fires or (for other companies) the
control channel address has also been switched and via that channel the
call is deleted.
2. If a call has not seen a packet (inactive call on the backup node,
seen as not responsible for that call but could become so), we accept
all commands for that call on the backup node in the same way as on the
original node. That means also deletions in-between and so on. I mean if
the original node does it, why not accepting to do the same way on the
backup node ?
9 years ago
Richard Fuchs
5dbadc4adb
implement port latching option
...
closes #119
Change-Id: I9c5f3a560088ffb04c02e1b229a2616132a506e6
9 years ago
Richard Fuchs
b0a38982c2
fix sfd assignments when remote port changes
...
Change-Id: I609d24b8050cc37e42d62aa27c3ecb71c3dbd168
9 years ago
Richard Fuchs
c9d797a91a
retain outgoing DTLS role whenever possible
...
fixes #211
Change-Id: I1288d98ffb13c4be9176af4954b14f464993087a
9 years ago
Richard Fuchs
b85a9e398c
fix two memory leaks
...
closes #210
Change-Id: I786345342f415a5fbe7fa361e2961e0399f55b67
9 years ago
Frederic-Philippe Metz
a9b27c7e57
Merge remote-tracking branch 'origin/master' into dev-fmetz-redis-notification
9 years ago
Lucian Balaceanu
8ee14e5d13
Fixing managed_sess_min interval statistic.
10 years ago