<p>Just giving my 2 cents in this matter, but by having the function set_advertised_address accepting variables instead of only pure strings would probably help solving this problem in the script logic.<br>
I asked about this possibility not too long ago and Daniel pointed me out some workaround which I couldn't implement (<a href="http://sip-router.1086192.n5.nabble.com/set-advertised-address-with-variable-tp171746.html" rel="nofollow">http://sip-router.1086192.n5.nabble.com/set-advertised-address-with-variable-tp171746.html</a>).<br>
Anyway I just think that the set_advertised_address function would give a lot more flexibility for scenarios like this where there isn't only one IP to advertise on the same listening IP.</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/2131?email_source=notifications&email_token=ABO7UZOFB3JS6JVIO76MQP3QUIUT3A5CNFSM4JNZVTEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEJIYNQ#issuecomment-554863670">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLG6BZWVKVVHH4GTRLQUIUT3ANCNFSM4JNZVTEA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZODG2BB7AAOLFFQP3LQUIUT3A5CNFSM4JNZVTEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEJIYNQ.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/2131?email_source=notifications\u0026email_token=ABO7UZOFB3JS6JVIO76MQP3QUIUT3A5CNFSM4JNZVTEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEJIYNQ#issuecomment-554863670",
"url": "https://github.com/kamailio/kamailio/issues/2131?email_source=notifications\u0026email_token=ABO7UZOFB3JS6JVIO76MQP3QUIUT3A5CNFSM4JNZVTEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEJIYNQ#issuecomment-554863670",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>