-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRACK refactoring #630
PRACK refactoring #630
Conversation
4a6da0c
to
fbc6b91
Compare
I am quite confused as to why some checks are failing. I rebased and added an additional test to retest. Maybe an issue with the build agent? Could someone trigger a re-check? |
src/sipsess/prack.c
Outdated
int err; | ||
|
||
if (!req || req->tmr.th) | ||
return -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to return EINVAL here ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/sipsess/sess.c
Outdated
* @return true if session is waiting for a PRACK to a 1xx containing SDP, | ||
* false otherwise | ||
*/ | ||
bool sipsess_awaiting_prack(struct sipsess *sess) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can sess
be const ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Done.
src/sipsess/sess.c
Outdated
* | ||
* @return True if a target refresh is currently allowed, otherwise false | ||
*/ | ||
bool sipsess_refresh_allowed(struct sipsess *sess) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can sess
be const ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Done.
fbc6b91
to
acc21aa
Compare
|
acc21aa
to
57465e7
Compare
Sorry, that was a bit careless. My time is somewhat limited currently, but my intention is to fix the retest issue we are seeing. Should we switch this PR and the related ones to draft for the time being? It could be a few days until I have time to look at it again. |
Add awaiting_sdp_prack bool to sipsess to be able to check whether the sipsess is still awaiting a PRACK to a 1xx response with SDP. Further, refactor PRACK logic to remove ht_prack which was unused and unneeded.
57465e7
to
b006031
Compare
looks good now. should we merge it to main? |
I think @cspiel1 will look at it again later today, so maybe we can give him a little bit of time. The more reviewers the better. |
awaiting_prack bool
to sipsess to be able to check whether the sipsess is still awaiting a PRACK to a 1xx response with SDP.Related: