Skip to content

Commit

Permalink
sipsess/reply: terminate session if no (PR)ACK received after 64*T1 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilianfridrich authored Jul 10, 2024
1 parent d3e521b commit 0bd4551
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sipsess/reply.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ static void tmr_handler(void *arg)
struct sipsess_reply *reply = arg;
struct sipsess *sess = reply->sess;

/* wait for all pending ACKs */
if (sess->replyl.head)
goto out;

/* we want to send bye */

if (!sess->terminated) {
Expand All @@ -64,14 +60,15 @@ static void tmr_handler(void *arg)
}
else {
sess->established = true;
mem_deref(reply);
sipsess_terminate(sess, ETIMEDOUT, NULL);
return;
}
}
else {
mem_deref(sess);
}

out:
mem_deref(reply);
}

Expand Down

0 comments on commit 0bd4551

Please sign in to comment.