[kamailio/kamailio] Incorrect routing of PRACK with TOPOS_htalbe (Issue #4466)
yuanxiaohua created an issue (kamailio/kamailio#4466) <!-- 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. Note that an issue report may be closed automatically after about 2 months if there is no interest from developers or community users on pursuing it, being considered expired. In such case, it can be reopened by writing a comment that includes the token `/notexpired`. About two weeks before considered expired, the issue is marked with the label `stale`, trying to notify the submitter and everyone else that might be interested in it. To remove the label `stale`, write a comment that includes the token `/notstale`. Also, any comment postpone the `expire` timeline, being considered that there is interest in pursuing 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 In Kamailio 6.0.3, Kamailio is incorrectly routing the PRACK. PRACK skipped the proxy indicated by the record_route header in message 183 and was sent directly to the callee indicated by the contact. The PRACK is handled correctly when TOPOS_redis ### Troubleshooting #### Reproduction freeswich as callee enable 100rel. #### 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). --> ``` (paste your log messages here) ``` #### SIP Traffic <img width="2642" height="1220" alt="Image" src="https://github.com/user-attachments/assets/49dd34a2-68f6-47fb-83f9-01dbd2a5e..." /> <img width="2822" height="1262" alt="Image" src="https://github.com/user-attachments/assets/3a7d02e9-712d-476f-beb4-90d5d4c09..." /> <img width="2608" height="1246" alt="Image" src="https://github.com/user-attachments/assets/08394d11-3f96-46b3-8ec8-da6e1c39a..." /> ### 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` ``` (paste your output here) ``` * **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`) --> ``` (paste your output here) ``` -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466@github.com>
henningw left a comment (kamailio/kamailio#4466) Thanks for the report. I am wondering if this is related to the fix proposed in #4425 -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3510148520 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3510148520@github.com>
stefan-mititelu-idt left a comment (kamailio/kamailio#4466) @yuanxiaohua is this happening with other storages like topos_redis or sql? Can you try with the fix proposed in #4425 ? -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3510286622 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3510286622@github.com>
yuanxiaohua left a comment (kamailio/kamailio#4466)
[@yuanxiaohua](https://github.com/yuanxiaohua) is this happening with other storages like topos_redis or sql? Can you try with the fix proposed in [#4425](https://github.com/kamailio/kamailio/pull/4425) ?
The PRACK is handled correctly when TOPOS_redis -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3515193634 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3515193634@github.com>
yuanxiaohua left a comment (kamailio/kamailio#4466)
[@yuanxiaohua](https://github.com/yuanxiaohua) is this happening with other storages like topos_redis or sql? Can you try with the fix proposed in [#4425](https://github.com/kamailio/kamailio/pull/4425) ? I will try and report .
By the way, I just test at Kamailio 6.0.4, the problem still occurs -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3515203606 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3515203606@github.com>
yuanxiaohua left a comment (kamailio/kamailio#4466) I've tried with the fix proposed in https://github.com/kamailio/kamailio/pull/4425 , but the problem still occurs -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3544901054 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3544901054@github.com>
stefan-mititelu-idt left a comment (kamailio/kamailio#4466) @shawnyuan2021 are you able to provide full .pcap traces for topos_htable vs topos_redis in order to compare them myself? I could have a look, whenever time allows. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3553585071 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3553585071@github.com>
floret2021 left a comment (kamailio/kamailio#4466) Compared the code related to TOPOS_redis and found a small difference. After modifying the routing, it worked normally. Please check and confirm. --------------------------------- Here is the relevant code <img width="1715" height="1309" alt="Image" src="https://github.com/user-attachments/assets/194e1345-90e1-4c32-9ed3-557f9507a..." /> --------------------------------- Here is the code I modified <img width="2006" height="985" alt="Image" src="https://github.com/user-attachments/assets/6470a0f5-06e0-4036-9aac-79d282e06..." /> ----------------------------- Just change `hval.b_rr = md->b_rr; ` to `hval.y_rr = md->b_rr;` -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3566428944 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3566428944@github.com>
stefan-mititelu-idt left a comment (kamailio/kamailio#4466) Had a quick look on it and looks like you are right! Please create a PR for it. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3569366328 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3569366328@github.com>
Closed #4466 as completed. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#event-21190938210 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issue/4466/issue_event/21190938210@github.com>
henningw left a comment (kamailio/kamailio#4466) It should be fixed with the referenced commit. Its using a similar approach now as in the topos_redis_storage.c function, just for another verification. Close this one, if there are still issues please re-open. -- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/4466#issuecomment-3580470623 You are receiving this because you are subscribed to this thread. Message ID: <kamailio/kamailio/issues/4466/3580470623@github.com>
participants (4)
-
floret2021 -
Henning Westerholt -
Stefan Mititelu -
yuanxiaohua