<h3>Description</h3>

<p>I have just updated kamailio to 5.1.2 and have bunch of messages on OPTIONS request without Contact header because of commit <a class="commit-link" href="https://github.com/kamailio/kamailio/commit/ce9f67581f45a00fd879329ffc918b2a7ef9b8d0"><tt>ce9f675</tt></a>:<br>
WARNING: topos [tps_storage.c:385]: tps_storage_record(): no local address - do record routing for all initial requests<br>
In <a href="https://www.ietf.org/rfc/rfc3261.txt" rel="nofollow">RFC 3261</a> in 11.1 section is stated that Contact header is optional not mandatory.<br>
So maybe a workaround will be suppress such messages for OPTIONS and other SIP requests without mandatory Contact header or move it to DEBUG from WARNING?</p>
<h3>Troubleshooting</h3>
<h4>Reproduction</h4>

<h4>Log Messages</h4>

<pre><code>Mar 15 04:17:31 kamailio-0-0 /usr/sbin/kamailio[1078]: WARNING: topos [tps_storage.c:385]: tps_storage_record(): no local address - do record routing for all initial requests
Mar 15 04:17:31 kamailio-0-0 /usr/sbin/kamailio[1078]: WARNING: topos [tps_storage.c:385]: tps_storage_record(): no local address - do record routing for all initial requests
Mar 15 04:17:31 kamailio-0-0 /usr/sbin/kamailio[1078]: WARNING: topos [tps_storage.c:385]: tps_storage_record(): no local address - do record routing for all initial requests
Mar 15 04:17:31 kamailio-0-0 /usr/sbin/kamailio[1078]: WARNING: topos [tps_storage.c:385]: tps_storage_record(): no local address - do record routing for all initial requests
Mar 15 04:17:31 kamailio-0-0 /usr/sbin/kamailio[1078]: WARNING: topos [tps_storage.c:385]: tps_storage_record(): no local address - do record routing for all initial requests
Mar 15 04:17:31 kamailio-0-0 /usr/sbin/kamailio[1078]: WARNING: topos [tps_storage.c:385]: tps_storage_record(): no local address - do record routing for all initial requests
</code></pre>
<h4>SIP Traffic</h4>

<pre><code>2018/03/15 04:17:31.833335 x.x.x.x:5060 -> y.y.y.y:5060
OPTIONS sip:y.y.y.y:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP x.x.x.x:5060;branch=z9hG4bKehyhoockece8okibyb7ej8vvj
Call-ID: ixheb7uuunjeulhocj8n8oiheynvojnl@SE2000
From: <sip:SBC@x.x.x.x;user=phone>;tag=ucljxn87
To: <sip:y.y.y.y;user=phone>
CSeq: 1 OPTIONS
Max-Forwards: 70
Content-Length: 0

2018/03/15 04:17:31.833740 y.y.y.y:5060 -> x.x.x.x:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP x.x.x.x:5060;branch=z9hG4bKehyhoockece8okibyb7ej8vvj
Call-ID: ixheb7uuunjeulhocj8n8oiheynvojnl@SE2000
From: <sip:SBC@x.x.x.x;user=phone>;tag=ucljxn87
To: <sip:y.y.y.y;user=phone>;tag=3403be34b817f61be8d0522eb11c0e7a.58f4
CSeq: 1 OPTIONS
Content-Length: 0
</code></pre>
<h3>Possible Solutions</h3>

<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.1.2 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled on 05:07:55 Mar 15 2018 with gcc 4.8.5
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>

<pre><code>Red Hat Enterprise Linux Server release 7.4 (Maipo)
Linux kamailio-0-0 2.6.32-042stab113.21 #1 SMP Wed Mar 23 11:05:25 MSK 2016 x86_64 x86_64 x86_64 GNU/Linux
</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/1483">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZY0IYHrY_pV08NTMbAat4OvI0Rzdks5teeSPgaJpZM4Srg9M">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZWowUudEmKyY8aiulP1BCcHurZeJks5teeSPgaJpZM4Srg9M.gif" height="1" width="1" alt="" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/1483"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"topos: WARNING: topos [tps_storage.c:385]: tps_storage_record(): no local address - do record routing for all initial requests (#1483)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1483"}}}</script>