Skip to content

TPTAG_REUSE: disabling connection reuse causes responses not to be sent #309

@ozgurakcali

Description

@ozgurakcali

Using Sofia Sip with freeswtich, setting reuse-connections to False on the Freeswtich Sofia profile, which sets the TPTAG_REUSE to false on Sofia.

When this is set, the Sofia stack doesn't reuse connections for responses either. So for example, if I send an INVITE to Sofia from a peer, via a TCP connection from a random source port, Sofia does not want to reuse the connection when sending the response, and tries to establish a new connection to the same ip / port pair. But since this is a random source port, the connection fails and the response can't be sent.

I think this behavior is wrong, the flag should not affect the response path, since it will almost always fail to establish a new TCP connection to the peer on the random source port. The flag should only affect the behavior for outgoing connections from the Sofia side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions