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.
Using Sofia Sip with freeswtich, setting
reuse-connectionsto False on the Freeswtich Sofia profile, which sets theTPTAG_REUSEtofalseon 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.