<p></p>
<p>It works for me with Kamailio master branch injecting the OPTIONS to the network using protoshoot from the same source tree:</p>
<pre><code>./misc/tools/protoshoot/protoshoot -f /tmp/options.sip
</code></pre>
<p>The debug messages are:</p>
<pre><code> 1(10089) DEBUG: <core> [core/udp_server.c:494]: udp_rcv_loop(): received on udp socket: (103/100/377) [[OPTIONS sip:example.com:5080;transport=tcp SIP/2.0 0A Via: SIP/2.0/TCP [2a00:1370:8131:ffdf:4398:8903:f]]
 1(10089) DEBUG: <core> [core/parser/parse_fline.c:250]: parse_first_line(): first line type 1 (request) flags 1
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:677]: parse_msg(): SIP Request:
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:679]: parse_msg():  method:  <OPTIONS>
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:681]: parse_msg():  uri:     <sip:example.com:5080;transport=tcp>
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:683]: parse_msg():  version: <SIP/2.0>
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [Via] type 1
 1(10089) DEBUG: <core> [core/parser/parse_via.c:1303]: parse_via_param(): Found param type 232, <branch> = <z9hG4bK0241.2e5db116000000000000000000000000.0>; state=15
 1(10089) DEBUG: <core> [core/parser/parse_via.c:2639]: parse_via(): end of header reached, state=5
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:555]: parse_headers(): Via found, flags=2
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:557]: parse_headers(): this is the first via
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [To] type 3
 1(10089) DEBUG: <core> [core/parser/parse_addr_spec.c:884]: parse_addr_spec(): end of header reached, state=10
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:173]: get_hdr_field(): <To> [37]; uri=[sip:example.com:5080;transport=tcp]
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:176]: get_hdr_field(): to body (37)[<sip:example.com:5080;transport=tcp>
], to tag (0)[]
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [From] type 4
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [CSeq] type 5
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:154]: get_hdr_field(): cseq <CSeq>: <10> <OPTIONS>
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [Call-ID] type 6
 1(10089) DEBUG: <core> [core/receive.c:392]: receive_msg(): --- received sip message - request - call-id: [0d2146aa2a479f0d-2232@192.168.1.6] - cseq: [10 OPTIONS]
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [Max-Forwards] type 8
 1(10089) DEBUG: <core> [core/parser/parse_hname2.c:302]: parse_sip_header_name(): parsed header name [Content-Length] type 12
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:187]: get_hdr_field(): content_length=0
 1(10089) DEBUG: <core> [core/parser/msg_parser.c:91]: get_hdr_field(): found end of header
</code></pre>
<p>Maybe it is something else in your config or another (custom) version.</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/2898#issuecomment-950897030">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZPC3PKCMESRQK4OMO3UIVH3XANCNFSM5GSUEBXA">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>.
<img src="https://github.com/notifications/beacon/ABO7UZLDVF3GJJITVNJ4S43UIVH3XA5CNFSM5GSUEBXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHCWYTBQ.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/2898#issuecomment-950897030",
"url": "https://github.com/kamailio/kamailio/issues/2898#issuecomment-950897030",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>