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

[Feature] Replace via_host with the recieved ip address #465

Closed
victortive opened this issue Aug 12, 2024 · 0 comments
Closed

[Feature] Replace via_host with the recieved ip address #465

victortive opened this issue Aug 12, 2024 · 0 comments

Comments

@victortive
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When I send a register event to the server the via_host is a generated field that looks like w1czydme3h7c.invalid. The server responds with a received IP address. My server expects that subsequent calls replace w1czydme3h7c.invalid with the received IP address.

Request

REGISTER sip:domain.com SIP/2.0
Via: SIP/2.0/WSS w1czydme3h7c.invalid;branch=z9hG4bK76064600
...

Response

SIP/2.0 200 OK
Via: SIP/2.0/WSS w1czydme3h7c.invalid;branch=z9hG4bK76064600;received=XX.XXX.XXX.XXX;rport=53398
...

Describe the solution you'd like
I would like the received IP address to replace the w1czydme3h7c.invalid value with the IP address.

Describe alternatives you've considered
I'm unsure if this is the desired behavior or a custom implementation of our FreeSwitch server. My initial thoughts are to modify the package to replace the invalid string with the received IP address if it exists.

Additional context
The IP address is used in our reports, so having w1czydme3h7c.invalid as the users IP isn't correct

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 a pull request may close this issue.

1 participant