-
Notifications
You must be signed in to change notification settings - Fork 97
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
Contact header contains private address not external address #319
Comments
If you want the contact to masquerade as the external ip, then I believe you need to do |
I think @tinpotnick sets a proper argument(--external-ip to 13.42.100.65). I found drachtio does not replace the host part of a contact header to the external ip inside the doRespondToSipRequest function. // external ip is not set when calling makeTags function. My issue is similar to @tinpotnick and here is the log i found. 2024-01-24 11:32:19.017153 Client::processMessage - got request with 4 tokens |
When creating an outbound dialog using
createUAC( "sip:[email protected]:41826;transport=tcp", someheadersbutdefinitlynocontactheader )
The outbound INVITE contains the contact string, which uses the private address rather than the external address. This is causing the phone to send the BYE to the wrong location.
i.e.
Contact: <sip:172.18.0.7:9997;transport=tcp>
I expect it to beContact: <sip:13.42.100.65:9997;transport=tcp>
Drachtio is started with
Start-up logs:
When we create the new dialog - this is the output from Drachtio
The text was updated successfully, but these errors were encountered: