<p>Here is the output of <code>kamctl srv sockets</code>:</p>
<pre><code>list listen sockets
{
"jsonrpc": "2.0",
"result": [
{
"PROTO": "udp",
"NAME": "10.0.0.100",
"ADDRLIST": {
"ADDR": "10.0.0.100"
},
"PORT": "5060",
"MCAST": "no",
"MHOMED": "no",
"ADVERTISE": "-"
}, {
"PROTO": "udp",
"NAME": "192.168.178.21",
"ADDRLIST": {
"ADDR": "192.168.178.21"
},
"PORT": "5060",
"MCAST": "no",
"MHOMED": "no",
"ADVERTISE": "<public hostname>"
}
],
"id": 12460
}
</code></pre>
<p>If I add the following event route, the Via address is still 192.168.178.21:</p>
<pre><code>event_route[tm:local-request] {
$fs = "192.168.178.21:5060";
}
</code></pre>
<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=ABO7UZJLL7P5T2AYRTQQMXTPZJEA5A5CNFSM4HSCQ3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXFTLWQ#issuecomment-499856858">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKLMNUTPJNWM4VHRVLPZJEA5ANCNFSM4HSCQ3GA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZKXTVH6QPE47UOR7LLPZJEA5A5CNFSM4HSCQ3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXFTLWQ.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=ABO7UZJLL7P5T2AYRTQQMXTPZJEA5A5CNFSM4HSCQ3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXFTLWQ#issuecomment-499856858",
"url": "https://github.com/kamailio/kamailio/issues/1973?email_source=notifications\u0026email_token=ABO7UZJLL7P5T2AYRTQQMXTPZJEA5A5CNFSM4HSCQ3GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXFTLWQ#issuecomment-499856858",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>