Project

General

Profile

Actions

Feature #4610

closed

SAT>IP: Impersonate hardware server

Added by Mono Polimorph over 7 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
Normal
Category:
SAT>IP
Target version:
-
Start date:
2017-09-19
Due date:
% Done:

100%

Estimated time:

Description

Hi,

In order to impersonate a hardware SAT>IP server with the objective of use TVH with a software SAT>IP client that works only with this specific server. For this reason I developed a patch that enables the option for use a custom RTSP name for the server.

Here the patch:

diff --git a/src/satip/rtsp.c b/src/satip/rtsp.c
index 9b5a87d..c87cdc9 100644
--- a/src/satip/rtsp.c
+++ b/src/satip/rtsp.c
@@ -1251,7 +1251,7 @@ rtsp_describe_session(session_t *rs, htsbuf_queue_t *q)
   char buf[4096];

   htsbuf_qprintf(q, "a=control:stream=%d\r\n", rs->stream);
-  htsbuf_append_str(q, "a=tool:tvheadend\r\n");
+  htsbuf_qprintf(q, "a=tool:%s\r\n", config.http_server_name ?: "HTS/tvheadend");
   htsbuf_append_str(q, "m=video 0 RTP/AVP 33\r\n");
   if (strchr(rtsp_ip, ':'))
     htsbuf_append_str(q, "c=IN IP6 ::0\r\n");

The modification is quite simple. It uses the configured name in the "a=tool:" paremeter in RTSP responses. And if the name isn't configured then it uses the default name.

I feel you like to incorporate as it can be useful for system interoperability.
Regards!


Files

SAT-IP-Use-configured-server-name.diff (558 Bytes) SAT-IP-Use-configured-server-name.diff simple patch Mono Polimorph, 2017-09-19 10:44
Actions

Also available in: Atom PDF