Skip to content
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

sipreg fix contact handler expires evaluation #581

Merged
merged 2 commits into from
Nov 1, 2022

Conversation

cspiel1
Copy link
Collaborator

@cspiel1 cspiel1 commented Oct 18, 2022

  • sipreg: case-insensitive comparison of ;transport=tls
  • sipreg: do not compare port numbers of Contact header

These two commits solve the problem that in some situations the ;expires= parameter in the Contact header in the response to the REGISTER is not evaluated.

There are two more problems/questions which are related to this:

  • Currently there is no error handling for the case where the contact_handler returns false. Then the expires is not evaluated, without any warning. Should there be any error handling?
  • What if the SIP registrar rewrites the port number in the Contact handler. Should re, baresip update it's Contact handler for following SIP requests?

The experies parameter in the contact handler from SIP server was not evaluated
if the server (e.g. Asterisk) uses upper case form: ";transport=TLS".
SIP proxies/registrar might rewrite the port number in the Contact header.
E.g. Asterisk with setting rewrite_contact. In such a case expires parameter
from the SIP registrar should also be evaluated.
@sreimers sreimers added this to the v2.10.0 milestone Oct 26, 2022
@cspiel1 cspiel1 marked this pull request as ready for review October 27, 2022 05:42
@sreimers sreimers merged commit 75c404b into baresip:main Nov 1, 2022
@cspiel1 cspiel1 deleted the sipreg_fix_contact_handler branch November 2, 2022 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants