Project

General

Profile

Feature #4483

SAT>IP: Patch for configure server name

Added by Mono Polimorph about 4 years ago.

Status:
New
Priority:
Normal
Category:
SAT>IP
Target version:
-
Start date:
2017-07-13
Due date:
% Done:

0%

Estimated time:

Description

Hi,

In the DESCRIPTION response the SAT>IP server from the TVHE identifies himself with the server name. However, this name is fixed, not configurable. With this patch you can configure it:

---
 src/satip/rtsp.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");
--
1.7.10.4

I hope the main developer likes to use this patch.
Also, I hope hi likes also to use my another patch: #4476.

Pleased to collaborate with this amazing project! ;)

Also available in: Atom PDF