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

[bug]: Expires value on 200 OK one second less then expires value on REGISTER request; causes ever-diminishing cycle #702

Open
1 task done
gmzaza opened this issue Apr 9, 2024 · 1 comment
Labels
bug support-level-core Functionality with core support level

Comments

@gmzaza
Copy link

gmzaza commented Apr 9, 2024

Severity

Minor

Versions

18.20.1

Components/Modules

res_pjsip

Operating Environment

Ubuntu 20.04.6 LTS, x86_64, 5.4.0-105-generic

Frequency of Occurrence

Constant

Issue Description

When sending a REGISTER request to Asterisk with a specified "expires" value in the "Contact" header, Asterisk generates its 200 response with "expires" value reduced by 1 second. e.g. In the example below, the client uses 180 seconds, and Asterisk responds with 179 seconds.

This leads the client that generated the REGISTER to then re-register 1 second sooner then it would otherwise. The cycle repeats, over and over, with the expiration dropping by 1 second upon each and every re-registrtion, until the minimum allowable registration interval is hit (60 seconds). When the client re-registers on 59 seconds, Asterisk then rejects the registration, on account of the expiration value being too low.

Example REGISTER request:
reg_1_request

Example 200 response:
reg_1_response

Relevant log output

No response

Asterisk Issue Guidelines

  • Yes, I have read the Asterisk Issue Guidelines
@gmzaza gmzaza changed the title [bug]: [bug]: Expires value on 200 OK one second less then expires value on REGISTER request; causes ever-diminishing cycle Apr 9, 2024
@seanbright
Copy link
Contributor

Please attach your pjsip.conf file, redacting any sensitive info.

@jcolp jcolp added support-level-core Functionality with core support level and removed triage labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug support-level-core Functionality with core support level
Projects
None yet
Development

No branches or pull requests

3 participants