Updated RTSP queries to match protocol version 1.2.2

SatIp protocol version 1.2.2 demands query request to contain
all parameters, even if they might not be needed.
This fixes an internal server error for the MegaSat Sat>IP Server 2
on initalization.
This commit is contained in:
Janosch Machowinski 2015-03-22 21:58:07 +01:00
parent 93d0d178e7
commit 792e5de730
1 changed files with 3 additions and 4 deletions

View File

@ -173,13 +173,12 @@ cString GetTransponderUrlParameters(const cChannel *channelP)
ST("C 2") q += PrintUrlString(q, STBUFLEFT, dtp.Bandwidth(), SatipBandwidthValues);
ST(" T*") q += PrintUrlString(q, STBUFLEFT, dtp.Guard(), SatipGuardValues);
ST("CST*") q += PrintUrlString(q, STBUFLEFT, dtp.CoderateH(), SatipCodeRateValues);
ST(" S 1") q += snprintf(q, STBUFLEFT, "&plts=off"); // SAT>IP protocol specification 1.2.2
ST(" S 1") q += PrintUrlString(q, STBUFLEFT, PILOT_OFF, SatipPilotValues); // SAT>IP protocol specification 1.2.2
ST(" S 2") q += PrintUrlString(q, STBUFLEFT, dtp.Pilot(), SatipPilotValues);
ST(" S 1") q += snprintf(q, STBUFLEFT, "&mtype=qpsk"); // SAT>IP protocol specification 1.2.2
ST(" S 2") q += PrintUrlString(q, STBUFLEFT, dtp.Modulation(), SatipModulationValues);
ST(" S *") q += PrintUrlString(q, STBUFLEFT, dtp.Modulation(), SatipModulationValues); // SAT>IP protocol specification 1.2.2
ST(" T*") q += PrintUrlString(q, STBUFLEFT, dtp.Modulation(), SatipModulationValues);
ST("C 1") q += PrintUrlString(q, STBUFLEFT, dtp.Modulation(), SatipModulationValues);
ST(" S 1") q += snprintf(q, STBUFLEFT, "&ro=0.35"); // SAT>IP protocol specification 1.2.2
ST(" S 1") q += PrintUrlString(q, STBUFLEFT, ROLLOFF_35, SatipRollOffValues); // SAT>IP protocol specification 1.2.2
ST(" S 2") q += PrintUrlString(q, STBUFLEFT, dtp.RollOff(), SatipRollOffValues);
ST(" S *") q += PrintUrlString(q, STBUFLEFT, dtp.System(), SatipSystemValuesSat);
ST("C *") q += PrintUrlString(q, STBUFLEFT, dtp.System(), SatipSystemValuesCable);