<h4 dir="auto">Pre-Submission Checklist</h4>



<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Commit message has the format required by CONTRIBUTING guide</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Commits are split per component (core, individual modules, libs, utils, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Each component has a single commit (if not, squash them into one commit)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> No commits to README files for modules (changes must be done to docbook files<br>
in <code>doc/</code> subfolder, the README file is autogenerated)</li>
</ul>
<h4 dir="auto">Type Of Change</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Small bug fix (non-breaking change which fixes an issue)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> New feature (non-breaking change which adds new functionality)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Breaking change (fix or feature that would change existing functionality)</li>
</ul>
<h4 dir="auto">Checklist:</h4>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> PR should be backported to stable branches</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Tested changes locally</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Related to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1086699895" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/2984" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/2984/hovercard" href="https://github.com/kamailio/kamailio/issues/2984">#2984</a></li>
</ul>
<h4 dir="auto">Description</h4>
<p dir="auto">A new option to "listen" has been added called "virtual". This sets a flag on the listening socket to modify the behaviour of grep_sock_info. When this flag is set, grep_sock_info will only consider the listening IP a match if the IP is found in the system's current list of local IP addresses. If the IP is not currently local, then the matching IP is ignored.</p>
<p dir="auto">If the virtual flag is not set on the socket then existing behaviour used instead.</p>
<p dir="auto">This feature is intended for scenarios where you have two Kamailio nodes in active/active setup, with virtual IPs, where you need to be able to listen on a virtual IP but it may not always be active locally. With this flag applied to a <code>listen=</code> socket, Kamailio will only consider traffic destined to this IP local, when the IP is actually active on the system, and other times the match is ignored.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/2985'>https://github.com/kamailio/kamailio/pull/2985</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/kamailio/kamailio/pull/2985/commits/f83d0481f3a915ce2ed8668d8c811550faad6f8d" class="commit-link">f83d048</a>  core: listen can now have a "virtual" flag to check for nonlocal floating IPs.</li>
  <li><a href="https://github.com/kamailio/kamailio/pull/2985/commits/f1351f3185e14ff82993658cbc40be06c51bcf76" class="commit-link">f1351f3</a>  etc: kamailio.cfg - added example use of listen's new virtual flag.</li>
  <li><a href="https://github.com/kamailio/kamailio/pull/2985/commits/bbdc7f1e8189bf34dbf95faf9ef77be1ff6a6fc5" class="commit-link">bbdc7f1</a>  core: Added virtual flag to output of core.sockets_list</li>
  <li><a href="https://github.com/kamailio/kamailio/pull/2985/commits/7fa6a854ccf168ba82705e867dfc51db4da80a89" class="commit-link">7fa6a85</a>  corex: Added virtual flag to output of "corex.list_sockets"</li>
  <li><a href="https://github.com/kamailio/kamailio/pull/2985/commits/cd4372e49f265db9b80c06bf266bf84dac93ba22" class="commit-link">cd4372e</a>  ims_ipsec_pcscf: Added virtual flag to output of sockets list.</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/kamailio/kamailio/pull/2985/files">8 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2985/files#diff-8f28fcd2b90398316723dd7c7450d667433daaf119a68b778a8b548f126d3b2f">etc/kamailio.cfg</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2985/files#diff-ea332ab631576daf6b8d1fed5c5a3bb0d444dab4bcfec1686878e0676c216b3e">src/core/cfg.lex</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2985/files#diff-8c28c06cfd78356a6a3f66589893d0204b9835b80343df10dece05d44fc0d66b">src/core/cfg.y</a>
    (83)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2985/files#diff-62acb12467a947e06258604e0d6359b6547f516edf351a814407f730cc9efb81">src/core/core_cmd.c</a>
    (10)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2985/files#diff-35f793f1142eeb48c341e589f23aa13f93c549f7ee529349e30313b0a2468255">src/core/ip_addr.h</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2985/files#diff-b0fb26b1ce60a0613dbe045a8d5aa4393f6698866c60ea4e2108a4770b2766df">src/core/socket_info.c</a>
    (85)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2985/files#diff-9c00690ecd2913593bd5f7075a9434d24dbba095e0dcd5121bc8d86d2057a94e">src/modules/corex/corex_rpc.c</a>
    (5)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/2985/files#diff-1d21df6f379d47eea95d21ee9a84fb5c268f57a6018d9a2e083e4eb123aebdf2">src/modules/ims_ipsec_pcscf/ims_ipsec_pcscf_mod.c</a>
    (8)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/2985.patch'>https://github.com/kamailio/kamailio/pull/2985.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/2985.diff'>https://github.com/kamailio/kamailio/pull/2985.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2985">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZL2HPQVXBMPA7AHXNDUSGYIXANCNFSM5KSKMSAA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZMIDI4M74LR6F456MDUSGYIXA5CNFSM5KSKMSAKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4QGGDFJQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/pull/2985</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2985",
"url": "https://github.com/kamailio/kamailio/pull/2985",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>