Skip to content

Commit

Permalink
sess: add sipsess_ack_pending()
Browse files Browse the repository at this point in the history
can be used for unit tests
  • Loading branch information
cspiel1 committed Oct 23, 2023
1 parent 5791248 commit 84b8162
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/re_sipsess.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ bool sipsess_refresh_allowed(const struct sipsess *sess);
void sipsess_close_all(struct sipsess_sock *sock);
struct sip_dialog *sipsess_dialog(const struct sipsess *sess);
void sipsess_abort(struct sipsess *sess);
bool sipsess_ack_pending(const struct sipsess *sess);
6 changes: 6 additions & 0 deletions src/sipsess/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,3 +352,9 @@ bool sipsess_refresh_allowed(const struct sipsess *sess)
return ((sess->established || sess->refresh_allowed)
&& !sess->terminated && !sess->awaiting_answer);
}


bool sipsess_ack_pending(const struct sipsess *sess)
{
return sess->replyl.head ? true : false;
}

0 comments on commit 84b8162

Please sign in to comment.