<h3>Setup Description + Problem Description</h3>
<p>I am running a open5gs (4G Core network) in an OpenStack VM with internal IP 10.4.128.6 and Floating IP 172.24.15.10 and entire (Kamailio IMS + FoHSS) system in another OpenStack VM with internal IP 10.4.128.21 and Floating IP 172.24.15.30.<br>
eNB (srslte) is running on a physical machine with IP 192.168.49.125.</p>
<p>Kamailio is built from the sources using the forked repo in this <a href="https://github.com/herlesupreeth/kamailio/tree/5.3">link</a>. This forked repo has a fix for handling IMS registration when 4G Core Network is behind a NAT among other fixes.</p>
<p>IMS config files -<br>
<a href="https://github.com/kamailio/kamailio/files/4255538/Kamailio_IMS_Config.zip">Kamailio_IMS_Config.zip</a></p>
<p>PCSCF, SCSCF, ICSCF are run as separate systemctl process</p>
<p>LTE UEs are configured with two APNs</p>
<ul>
<li>"internet" APN for best effort traffic - IP range 192.168.100.0/24</li>
<li>"ims" APN for IMS - IP range 192.168.101.0/24.</li>
</ul>
<p>Upon performing the IMS registration, uac module is being used to achieve NATPING by sending OPTIONS message as per the PCSCF script. However, I observe a strange behaviour where the first OPTIONS message sent by the PCSCF is replied with 200 OK and the subsequent message times out with 408 (most of the times even the first OPTIONS message does'nt gets a 200 OK)</p>
<p>!!! IMPORTANT NOTE !!<br>
This behaviour is not seen if I run the 4G Core Network and Kamailio IMS + FoHSS is run in a single VM i.e. CN not behind a NAT</p>
<h4>Reproduction</h4>
<p>Upon performing the IMS registration, uac module is being used to achieve NATPING by sending OPTIONS message as per the PCSCF script. However, I observe a strange behaviour where the first OPTIONS message sent by the PCSCF is replied with 200 OK and the subsequent message times out with 408 (most of the times even the first OPTIONS message does'nt gets a 200 OK)</p>
<h4>Debugging Data</h4>
<p>PCAP at eNB machine and VM running (Kamailio IMS + FoHSS) attached below -<br>
<a href="https://github.com/kamailio/kamailio/files/4255628/pcaps.zip">pcaps.zip</a></p>
<h4>Log Messages</h4>
<p>Since the log message from PCSCF, SCSCF and ICSCF is too long I am attaching it as file below.<br>
Following is the log from journalctl for PCSCF, SCSCF and ICSCF combined<br>
<a href="https://github.com/kamailio/kamailio/files/4255561/kamailio_log.txt">kamailio_log.txt</a></p>
<h3>Additional Information</h3>
<ul>
<li><strong>Kamailio Version</strong> - output of <code>kamailio -v</code></li>
</ul>
<pre><code>version: kamailio 5.3.2 (x86_64/linux) 842fef
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, 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, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: 842fef 
compiled on 11:43:39 Feb 26 2020 with gcc 7.4.0
</code></pre>
<ul>
<li><strong>Operating System</strong>:</li>
</ul>
<pre><code>NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
</code></pre>
<p>I am not sure where to start looking for debugging this strange behaviour, any hints or pointer would be really helpful. Many thanks in advance.</p>
<p>Regards,<br>
Supreeth</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/2231?email_source=notifications&email_token=ABO7UZKD3FEQAZJODJUD4VLREZN3RA5CNFSM4K4EAQMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQNRIAQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZO5WGAQV2Z25GA6Y3DREZN3RANCNFSM4K4EAQMA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJVBBBOWLL4HPJMN2LREZN3RA5CNFSM4K4EAQMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQNRIAQ.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/2231?email_source=notifications\u0026email_token=ABO7UZKD3FEQAZJODJUD4VLREZN3RA5CNFSM4K4EAQMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQNRIAQ",
"url": "https://github.com/kamailio/kamailio/issues/2231?email_source=notifications\u0026email_token=ABO7UZKD3FEQAZJODJUD4VLREZN3RA5CNFSM4K4EAQMKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IQNRIAQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>