<p>i've noticed the proxy-proto feature breaks kamailio as a registrar. when <code>tcp_accept_haproxy=yes</code>  and a REGISTER is received from the loadbalancer, IP and Port variables are changed to the UAC's IP and Port. the location data that is saved is then inaccurate. when user location lookup is called, it returns the IP:port of the UAC. this will not work since the phone expects the INVITE to come from the load-balancer's IP:Port (not kamailio's).<br>
the saved location data for the user should still be the load-balancer IP:port. I think the appropriate approach for proxy-proto is to <em>not</em> modify any existing IP and Port variables, but add new ones like <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=16212586" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/joelsdc">@joelsdc</a> suggested ($Ci, $Cp)<br>
id be willing to write a patch for this but want to make sure others agree.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2103?email_source=notifications&email_token=ABO7UZOFJZ4MSDN57DGG4XLQPICWDA5CNFSM4JCA6F5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVSKCQ#issuecomment-543892746">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKWADZPG2PLGPES3RLQPICWDANCNFSM4JCA6F5A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZK5K53J543TC3BJML3QPICWDA5CNFSM4JCA6F5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVSKCQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2103?email_source=notifications\u0026email_token=ABO7UZOFJZ4MSDN57DGG4XLQPICWDA5CNFSM4JCA6F5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVSKCQ#issuecomment-543892746",
"url": "https://github.com/kamailio/kamailio/issues/2103?email_source=notifications\u0026email_token=ABO7UZOFJZ4MSDN57DGG4XLQPICWDA5CNFSM4JCA6F5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVSKCQ#issuecomment-543892746",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>