-
Notifications
You must be signed in to change notification settings - Fork 83
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
sip: add RFC 3311 support #425
Conversation
15c261f
to
0e27ddb
Compare
ca3763f
to
2f5d5d3
Compare
Retest PR opened. Coverage above threshold again. |
37368a2
to
4a1cb92
Compare
src/sipsess/listen.c
Outdated
sess->modify_pending = false; | ||
tmr_cancel(&sess->tmr); | ||
mem_deref(desc); | ||
} |
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.
What is the difference to the reinvite_handler()
? Maybe we could avoid some code duplication.
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.
Combined in 2fb5cf3.
(void)sipsess_update(sess, true); | ||
else | ||
sess->desc = mem_deref(sess->desc); | ||
} |
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.
Same here. Maybe code duplication with reinvite_resp_handler()
can be avoided. Also it might be more readable with a few if
for the differences.
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.
Combined in 2fb5cf3.
93888f9
to
af69d4d
Compare
42d09e1
to
d3c8334
Compare
If a UAS receives an UPDATE without SDP, it MUST NOT send SDP in the response body. I.e. the target_refresh_handler only calls the offer handler (which sets the SDP) if it has received an INVITE or the request contained an SDP body.
d3c8334
to
a8f1a76
Compare
This PR adds support for RFC 3311 - the SIP UPDATE method.
Related: