Skip to content

Commit

Permalink
Generic handle of SAT>IP remote busy server
Browse files Browse the repository at this point in the history
Handle the 404 (from minisatip) and 503 (No-More: frontends) equally.
  • Loading branch information
lars18th authored Sep 13, 2024
1 parent e002bd9 commit 9c99cc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/satipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,8 @@ int satipc_reply(sockets *s) {
ad->tp.mtype = QAM_256;
}

if (rc == 404) {
LOG("satipc %d: Ocuppied server, can't use it", s->sid);
sip->state = SATIP_STATE_INACTIVE;
if (rc == 404 && (strstr((char *)s->buf, "minisatip") != NULL)) {
rc = 503; // Hack the response from minisatip!
}

// quirk for Geniatech EyeTV Netstream 4C when fe=x is in the URL
Expand All @@ -283,7 +282,8 @@ int satipc_reply(sockets *s) {
sip->satip_fe = 0;

if (rc == 454 || rc == 503 || rc == 405) {
sip->state = SATIP_STATE_OPTIONS;
LOG("satipc %d: Ocuppied server, can't use it", s->sid);
sip->state = SATIP_STATE_INACTIVE;
sip->last_setup = -10000;
} else if (rc != 200) {
if (rc != 0) // AVM Fritz!Box workaround sdp reply without header
Expand Down

0 comments on commit 9c99cc7

Please sign in to comment.