<ul dir="auto">
<li>Fixes GH <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1299500198" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/3178" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/3178/hovercard" href="https://github.com/kamailio/kamailio/issues/3178">#3178</a>. Sets TCP connection id for keepalive based on the value in the database<br>
If unset, tcpconn_id will remain 0 and keepalives will work the same as they do today</li>
<li>Update documentation to clarify when it will use received vs AOR for keepalive</li>
</ul>


<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 class="notranslate">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"> 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" checked=""> 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="1299500198" data-permission-text="Title is private" data-url="https://github.com/kamailio/kamailio/issues/3178" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/3178/hovercard" href="https://github.com/kamailio/kamailio/issues/3178">#3178</a> (replace XXXX with an open issue number)</li>
</ul>
<h4 dir="auto">Description</h4>

<p dir="auto">Updated usrloc module to re-use an active TCP session (if it exists).  I marked this breaking only because the current code will use a UDP OPTIONS keepalive method even if the device is registered over TCP.  I doubt that's what anyone would be expecting so I think the change is ok.</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/3219'>https://github.com/kamailio/kamailio/pull/3219</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/kamailio/kamailio/pull/3219/commits/bb1e3ef3cfbd6273288f94f726674d505c881a08" class="commit-link">bb1e3ef</a>  usrloc: re-use TCP connections for keepalive</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/kamailio/kamailio/pull/3219/files">3 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/3219/files#diff-b629a9a1039183bf31cccb1b52a9c56f42d999dd716dcf4e31c3db0ecc807fdc">src/modules/usrloc/dlist.c</a>
    (4)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/3219/files#diff-e955e385e8bf9ff19c23962bc9514685cccbc2b14d79dfe89f8d341efeaeec38">src/modules/usrloc/doc/usrloc_admin.xml</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/3219/files#diff-413b890f4b792c9e221d64a6d9e3848f660921836aeaad64cf051a5a1dcd5999">src/modules/usrloc/ul_keepalive.c</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/3219.patch'>https://github.com/kamailio/kamailio/pull/3219.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/3219.diff'>https://github.com/kamailio/kamailio/pull/3219.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/3219">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZNB5OKA75EEOTDQGX3VZPH33ANCNFSM56WWEKPQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZI7OD25PATDW2WTHCTVZPH33A5CNFSM56WWEKP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4T7JHFMA.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/3219</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/3219",
"url": "https://github.com/kamailio/kamailio/pull/3219",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>