Skip to content

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

Closed
@victortive

Description

@victortive

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

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