130 Commits

Author SHA1 Message Date
Andrea Bondavalli
816388d1d2 Removed additional code smells 2023-02-28 20:32:57 +01:00
Andrea Bondavalli
461c007a04
Merge pull request #116 from AleksanderZdunek/master
Fix HttpServer::init() erroneous return value
2023-02-26 17:05:56 +01:00
Andrea Bondavalli
1fc529b035 Removed addtional code smells 2023-02-26 10:06:04 +01:00
Andrea Bondavalli
a255f31dfd Removed addtional code smells 2023-02-25 23:16:58 +01:00
Andrea Bondavalli
49a42f7ac7 Changed daemon version to 1.6.2 2023-02-25 22:47:01 +01:00
Andrea Bondavalli
5d5ddf280c Fixed broken build without AVAHI support 2023-02-25 22:45:36 +01:00
Andrea Bondavalli
7bf73823c6 Fixed a few minor bugs and removed some code smells 2023-02-25 22:33:55 +01:00
Aleksander Zdunek
2b5e18b839 Fix HttpServer::init() erroneous return value
Fix bug HttpServer::init() would incorrectly return true when the
server is not responding, and sometimes would incorrectly return false
when the server is responding.

Using postfix decrement in the while condition caused the returned value
to be one less than intended, making an intended 0 value actually -1
which was cast to true, and an intended 1 value actually 0 and returned
as false.
2023-02-22 12:17:06 +01:00
Andrea Bondavalli
eb79d897fe Added instructions on how to run the daemon via systemd, plus cosmetic changes 2023-02-03 15:39:12 +01:00
Andrea Bondavalli
f77db79869
Merge pull request #108 from glance-/systemd
Add Systemd integration to aes67-daemon
2023-02-03 13:48:21 +01:00
Anton Lundin
997fb31d0e Use systemd state RELOADING when ip address changed
In systemd when entering state STOPPING, you can't go back to READY.

So, we check if we're supposed to stop or just restart, and tells that
to systemd.
2023-01-25 15:18:16 +01:00
Anton Lundin
a28a6e148f Add Systemd integration to aes67-daemon
This adds integration and especially watchdog support between
aes67-daemon and systemd.

A example service file is also included.
2023-01-20 21:06:54 +01:00
Andrea Bondavalli
cbd4640f27 Use seconds since epoch as base value for the Source session versions to have increasing version upon daemon restarts 2023-01-18 19:22:55 +01:00
Andrea Bondavalli
cd0d7b6210 Skip automatic sinks update cycle in case no remote source was updated by the browser 2023-01-18 19:19:18 +01:00
Andrea Bondavalli
f89d8a9693 Changed daemon version to v1.6.1 2023-01-15 14:21:06 +01:00
Andrea Bondavalli
148b717c02 Additional fixes 2023-01-15 11:15:27 +01:00
Andrea Bondavalli
d1708d6ee3 Session manager doesn't retrieve the remote sources in case the automatic Sinks update is disabled. 2023-01-15 10:59:04 +01:00
Andrea Bondavalli
603b767f06
Update README.md 2023-01-15 09:40:25 +01:00
Andrea Bondavalli
ffa8e80213 Added "auto_sinks_update" to the daemon configuration parameters and to the WebUI.
JSON boolean specifying whether to enable or disable the automatic update of the configured Sinks.
When enabled the daemon will automatically update the configured Sinks according to the discovered remote sources via SAP and mDNS/RTSP updates.
The SDP Originator (o=) is used to match a Sink with the remote source/s.
2023-01-14 19:24:43 +01:00
Andrea Bondavalli
6ed3a9ef54 Remote source origin is parsed and extracted from SDP when the source is discovered or updated.
This way we avoid parsing the SDP multiple times.
2023-01-14 18:22:24 +01:00
Andrea Bondavalli
02ccef73c4 Changed daemon version to v1.5.4 2023-01-14 12:12:22 +01:00
Andrea Bondavalli
f826a5b2ef Implementation of automatic Sink updates based on remote source updates received by the Browser.
The daemon uses the most recent version of corresponding remote sources to update a Sync.
The Originator (o=) field of the SDP is used identify the corresponding remote sources.

Many thanks to @Sikabo for the original implementation !
2023-01-14 12:06:55 +01:00
Andrea Bondavalli
b10350488f Fix to undesired characters set to avoid altering original SDP from Dante devices.-
The comma (,) is used by Dante Devices in SDP and it was removed by the daemon.
2023-01-14 12:03:24 +01:00
Andrea Bondavalli
429948bc6d Fix to #106 daemon browser doesn't receive mDNS/RTSP updates of a remote source 2023-01-14 12:00:38 +01:00
Andrea Bondavalli
670a42d992
Merge pull request #101 from bondagit/fake-driver
Fake driver
2022-11-18 09:27:34 +01:00
Andrea Bondavalli
51e2dea807
Merge pull request #100 from bondagit/issue-94
Fixed SDP related RFCs compliance issues. See #94
2022-11-18 09:26:25 +01:00
Andrea Bondavalli
c68d53c9bc Added documentation about effects of CPU scaling events on daemon streams and patched daemon test scripts to disable CPU scaling 2022-11-17 21:51:05 +01:00
Andrea Bondavalli
38dabd5887 Added support to the daemon for a fake driver version.
This allows daemon execution without the RAVENNA driver for testing purposes and to allow regression tests to run into a Docker container.
2022-11-15 22:00:51 +01:00
Andrea Bondavalli
1a4f5ac6c1 Fixed SDP related RFCs compliance issues. See #94 2022-09-29 17:07:28 +02:00
Andrea Bondavalli
acb1e55d08 Added RTSP client connection timeout of 5 secs. See issue #91 2022-08-20 11:12:05 +02:00
Anders Martinsson
b7d797c118 Correct case for kHz (kilohertz) 2022-06-07 17:06:26 +02:00
Andrea Bondavalli
1886317cab Fix to avoid creation of zombie processes by PTP status script, see #85 2022-06-03 08:52:04 +02:00
Andrea Bondavalli
e2aad3e288
Update README.md 2022-05-28 08:52:20 +02:00
Andrea Bondavalli
046babca3d Added custom node id parameter to daemon and WebUI to allow for a user defined node id. See #73 2022-05-26 08:33:20 +02:00
Andrea Bondavalli
1c11e7d212 Fix for issue #84 2022-05-25 17:34:22 +02:00
Andrea Bondavalli
dbb593120a Enhancement of daemon reconfiguration and PTP status update notification via shell script. See #82
The daemon can apply a configuration change to the following parameters without a restart:
    sap_interval, syslog_proto, syslog_server, log_severity, sample_rate

The daemon can apply a configuration change to the following parameters without a light restart:
    http_port, rtsp_port, http_base_dir, rtp_mcast_base, sap_mcast_addr, rtp_port, rtp_port, status_file, interface_name, mdns_enabled

A light restart means that the configuration can be applied without interrupting the playback/capture applications

A change to one of following paramters causes a full daemon restart:
    interface_name, tic_frame_size_at_1fs, max_tic_frame_size

On PTP status change the daemon can run in background an external shell script whose path name is specified by the new ptp_status_script Config parameter.
If this parameter is empty, no script is invoked. The PTP clock status is passed as first parameter to the script and it can be unlocked, locking or locked.
A sample script is provided in daemon/scripts/ptp_status.sh
2022-05-19 19:04:26 +02:00
Andrea Bondavalli
a0b15bfae2 changed daemon version to bondagit-1.4 2021-12-30 10:28:34 +01:00
Andrea Bondavalli
9f01d97635
Merge pull request #59 from calanor/master
Fixes get_interface_index.  Issue #57
2021-12-30 10:25:45 +01:00
Andrea Bondavalli
3f9db3a80b Added the SAP originating source address, in addition to the SAP identifier hash, to the browser source id 2021-12-30 10:01:08 +01:00
calanor
619cc13570
Fixes bad retrun value in get_interface_index 2021-12-28 17:59:20 +01:00
Andrea Bondavalli
7ed2ad492c Added more DSCP values for Audio Source and PTP in WebUI. See #40. 2021-11-09 16:34:59 +01:00
Andrea Bondavalli
b2a582a14a Fix for #51: added inclusion of map header to rtsp_client.hpp 2021-10-05 19:19:41 +02:00
Andrea Bondavalli
e12d160aa9 Merge branch 'issue-50' 2021-09-30 19:10:56 +02:00
Andrea Bondavalli
4381260ffa Updated daemon version to 1.3 2021-09-30 19:08:32 +02:00
Andrea Bondavalli
52f6990a7a Fix issue-50: don't update the browser record in case we receive multiple annoucements packets from a SAP source in a period shorter than 1 second 2021-09-30 19:03:45 +02:00
Andrea Bondavalli
c7d3f56c1e Fix for #50:
skip setting a source announce period to 0 in case we receive multiple aanoucements packets from a SAP source in a period shorter than 1 second
2021-09-30 12:46:09 +02:00
Andrea Bondavalli
248af78f77 Patches to use webui/dist folder instead of webui/build folder 2021-05-29 11:49:23 +02:00
Andrea Bondavalli
35f7772cbb Added to the WebUI the possibility to configure the following additional TIC frame size: 64, 128.
Updated daemon documentation with info on the new driver patch to remove unsupported non-interleved access that enables compatibility with JACK audio.
Changed default daemon configuration file to use a TIC frame size of 64 to enable configuring an ALSA period compatible with JACk audio.
Updated daemon version to 1.2.
2021-05-18 19:23:54 +02:00
Andrea Bondavalli
f6d7799ec7 Changed daemon version to v1.1 2021-03-11 18:01:46 +01:00
Andrea Bondavalli
e72285b7e8 Restored default daemon.conf 2021-03-11 18:01:08 +01:00