Skip to content

Conversation

maximilianfridrich
Copy link
Contributor

@maximilianfridrich maximilianfridrich commented May 26, 2025

  • sipsess/reply: do not allow parallel reliable 1xx responses
    As required by RFC 3262 section 3:
    The UAS MUST NOT send a second reliable provisional response until the
    first is acknowledged. After the first, it is RECOMMENDED that the UAS
    not send an additional reliable provisional response until the previous
    is acknowledged.
  • sipsess/connect: enforce RSeq ordering
    As required by RFC 3262 section 4. Further, the progress handler is now
    only called when this check (and others) have passed, which aligns much
    better with the RFC - invalid responses may not be processed further.

Related:

As required by RFC 3262 section 4. Further, the progress handler is now
only called when this check (and others) have passed, which aligns much
better with the RFC - invalid responses may not be processed further.
As required by RFC 3262 section 3:

The UAS MUST NOT send a second reliable provisional response until the
first is acknowledged. After the first, it is RECOMMENDED that the UAS
not send an additional reliable provisional response until the previous
is acknowledged.
@sreimers sreimers merged commit 88c3f1b into baresip:main May 29, 2025
38 checks passed
@alfredh
Copy link
Contributor

alfredh commented May 30, 2025

After this commit there is a new warning when running retest:

test_sipsess: TEST_ERR: /home/runner/work/re/re/test/sipsess.c:1050: (Resource temporarily unavailable [11])

The TEST_ERR() macro does not seem to be working as expected, the local "int err" value is not set ...

@maximilianfridrich
Copy link
Contributor Author

@alfredh Sorry about that, I'll provide a fix soon.

@maximilianfridrich maximilianfridrich deleted the prack_fixes branch June 1, 2025 04:08
@maximilianfridrich
Copy link
Contributor Author

@alfredh Should be fixed in #1340.

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.

3 participants