<p>I just tested with uac_req_send() and the Via is the advertised address. Internally, it uses the same function exposed by tm module to send requests like for uac remote registrations, respectively the tmb.t_request(). So it could be something specific for your config. Run kamailio with debug=3 in configuration file and grab all the log/debug messages printed from start till registrations are sent (do it for 1-2 uac registration records). Along with them, grab the pcap file of the sip traffic on the network. Attach the two files here for troubleshooting.</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/1973?email_source=notifications&email_token=ABO7UZM7ZRZ6PNXL4I3W32LPZJL2XA5CNFSM4HSCQ3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXFX6YQ#issuecomment-499875682">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZL2FGOP3CEVGCURMI3PZJL2XANCNFSM4HSCQ3GA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZPIV5V6HBM2WFBBIG3PZJL2XA5CNFSM4HSCQ3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXFX6YQ.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/1973?email_source=notifications\u0026email_token=ABO7UZM7ZRZ6PNXL4I3W32LPZJL2XA5CNFSM4HSCQ3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXFX6YQ#issuecomment-499875682",
"url": "https://github.com/kamailio/kamailio/issues/1973?email_source=notifications\u0026email_token=ABO7UZM7ZRZ6PNXL4I3W32LPZJL2XA5CNFSM4HSCQ3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXFX6YQ#issuecomment-499875682",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>