Skip to content

Conversation

@agranig
Copy link

@agranig agranig commented Dec 16, 2025

When running a server in Docker or on a D-Nat'ed environment, force replies from this server from the local socket instead of trying a Via match. Otherwise replies will be sent from a new socket with a random port.

When running a server in Docker or on a D-Nat'ed environment,
force replies from this server from the local socket instead
of trying a Via match. Otherwise replies will be sent from a
new socket with a random port.
@emiago
Copy link
Owner

emiago commented Dec 16, 2025

Hi Andreas. Thanks for looking at this. I unfortunately know what could trigger you todo this. I am not sure did you work on 1.0.0, but there was fix added in meantime
So by default it should go with local socket as on this line

https://github.com/emiago/sipgo/pull/278/files#diff-bac0f4e718050ee8bf1af96fcb0854abbf4f76d93e1fcca7f1acf1a37f7e5c69L523

It was made some buggy changes recently, but 1.0.0 was already pushed. Most of test worked due to client using rport for NAT, and routing was anyway forced on local socket.

Pls check last main branch and see this without fix.

Then only feature that could be is reversed, forcing non local socket but this is already exposed with TransportIdleConn

@agranig
Copy link
Author

agranig commented Dec 17, 2025

Will do, give me some days to check that. Thanks for the hint!

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