<!-- Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-users.lists.kamailio....
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-dev.lists.kamailio.or...
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment). -->
### Description
<!-- Explain what you did, what you expected to happen, and what actually happened. -->
### Troubleshooting
``` -->sip invite t_suspend() nats publish--->routeserver <---route result t_continue() but kamailio crash ```
#### Reproduction
<!-- If the issue can be reproduced, describe how it can be done. -->
``` wget http://220.231.180.131:12295/kamailio-nats-routeserver.tar.gz nats_url: nats://127.0.0.1:4222 start kamailio go run routeserver.go uac sip call kamailio, and kamailio crash ```
#### Debugging Data
<!-- If you got a core dump, use gdb to extract troubleshooting data - full backtrace, local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile bt full info locals list
If you are familiar with gdb, feel free to attach more of what you consider to be relevant. -->
``` (paste your debugging data here) ```
#### Log Messages
<!-- Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site). -->
``` kamailio[2037]: INFO: <script>: nats payload received [{"jsonrpc":"2.0","method":"route","tindex":52750,"tlabel":650229805,"destination":"sip: kamailio[2037]: INFO: <script>: tindex = 52750, tlabel = 650229805, destination = sip:192.168.31.96:5080 kamailio[2048]: CRITICAL: <core> [core/pass_fd.c:277]: receive_fd(): EOF on 41 kamailio[2048]: DEBUG: <core> [core/tcp_main.c:3854]: handle_ser_child(): dead child 23, pid 2037 (shutting down?) kamailio[2048]: DEBUG: <core> [core/io_wait.h:599]: io_watch_del(): DBG: io_watch_del (0x557342d36be0, 41, -1, 0x0) fd_no=37 called kamailio[2011]: ALERT: <core> [main.c:774]: handle_sigs(): child process 2037 exited by a signal 11 kamailio[2011]: ALERT: <core> [main.c:777]: handle_sigs(): core was generated kamailio[2011]: INFO: <core> [main.c:799]: handle_sigs(): terminating due to SIGCHLD kamailio[2048]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2047]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2041]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2039]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2035]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2018]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2033]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2016]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2031]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2015]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2029]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2036]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2027]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2020]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2025]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2042]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2023]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2021]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2017]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2038]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2030]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2019]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2022]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2040]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2024]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2028]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2026]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2032]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2034]: INFO: <core> [main.c:854]: sig_usr(): signal 15 received kamailio[2011]: DEBUG: <core> [core/sr_module.c:835]: destroy_modules(): starting modules destroy phase ```
#### SIP Traffic
<!-- If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site). -->
``` (paste your sip traffic here) ```
### Possible Solutions
<!-- If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix. -->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
``` kamailio 5.6.4 (x86_64/linux) nats-server: v2.9.15 nats.c: 3.6.1 libuv1-dev:amd64:1.44.2-1 ```
* **Operating System**:
<!-- Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...; Kernel details (output of `lsb_release -a` and `uname -a`) -->
``` Debian11 ```