longchun4835 created an issue (kamailio/kamailio#4178)
<!--
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.o…
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
Using function sip_trace_mode() with parameter d to enable dialog tracing mode logs:
```
BUG: siptrace [siptrace.c:1671]: add_info_xavp(): URI should be in raw format here
ERROR: siptrace [siptrace.c:888]: sip_trace_helper(): failed to serialize siptrace info! Won't trace dialog!
```
### Troubleshooting
#### Reproduction
my module parameters:
```
#!ifdef WITH_HOMER
loadmodule "siptrace.so"
modparam("siptrace", "duplicate_uri", HOMER_URL)
modparam("siptrace", "hep_mode_on", 1)
modparam("siptrace", "trace_to_database", 0)
modparam("siptrace", "trace_flag", 22)
modparam("siptrace", "trace_on", 1)
modparam("siptrace", "hep_version", 3)
modparam("siptrace", "hep_capture_id", HOMER_HEP_ID)
#!endif
...
request_route {
...
if (is_method("INVITE")) {
sip_trace_mode("d");
}
}
```
### Possible Solutions
I checked the source code and found that the issue occurs when sip_trace_helper() is called inside the ki_sip_trace_mode() function, with the third parameter (duri) set to NULL. I don’t quite understand the logic behind passing NULL does this mean that the 'D' parameter will never working when calling sip_trace_mode()?
Additionally, I have another question: in the sip_trace_helper() function, why does it call trace_transaction() instead of trace_dialog() when strace_type == SIPTRACE_DIALOG?
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.6.4 (x86_64/linux) a004cf
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_BLOCKLIST, HAVE_RESOLV_RES
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: a004cf
compiled on 09:14:30 Jan 23 2025 with gcc 8.3.1
```
* **Operating System**:
```
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4178
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4178(a)github.com>
**Description**
The `secfilter` module in `kamcmd` currently allows duplicate entries when adding values to certain lists (e.g., blacklists, whitelists). This can lead to unexpected behavior and potential inconsistencies. Could you clarify the reason behind accepting duplicate values?
Recently, I submitted a pull request to add delete commands to the `secfilter` module #4089. When a user, for example, executes:
`kamcmd secfilter.del_bl user 1005`
I iterate through the entire list to ensure all occurrences of `1005` are removed, as I realized duplicates might exist. This is inefficient and could be avoided by preventing duplicates in the first place.
**Proposed Solutions**
1. **Prevent Duplicates in Existing `add` Commands:**
* I can modify existing `add` commands to directly prevent the addition of duplicate values. This would simplify future operations and improve performance.
2. **Introduce New `add_unique` Commands:**
* I can maintain the current `add` commands for backward compatibility.
* I can introduce new `add_unique` commands (e.g., `secfilter.add_bl_unique`) that explicitly reject duplicate entries.
**Recommendation**
I recommend implementing the first solution (preventing duplicates in existing `add` commands) as it provides the most straightforward and efficient approach.
**Further Considerations**
* Consider adding a check for duplicates during the `add` operation and returning an appropriate error message if a duplicate is encountered.
* Document the behavior of duplicate values in the `secfilter` module's documentation.
**I would appreciate your feedback and guidance on the best course of action.**
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4091
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4091(a)github.com>
Opening this generic issue to track issues when trying to switch deb package generation to cmake:
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4053
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4053(a)github.com>
flantel created an issue (kamailio/kamailio#4218)
### Description
If I add a prefix of greater than 12 characters in to prefix_route it does not return the correct route but instead acts as if no record was found.
### Troubleshooting
#### Reproduction
Create a prefix_route prefix of more than 12 characters and the route will not be chosen.
#### Debugging Data
There is none.
#### Log Messages
prefix_route does not seem to produce DEBUG level messages.
### Additional Information
```
kamailio 5.8.6 (x86_64/linux)
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4218
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4218(a)github.com>
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #3984 (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4224
-- Commit Summary --
* secfilter: fix secf_check_dst bug
* secfilter: Allow single quotes in From name and To name
-- File Changes --
M src/modules/secfilter/secfilter.c (57)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4224.patchhttps://github.com/kamailio/kamailio/pull/4224.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4224
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4224(a)github.com>
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [ ] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
spelling/grammar
two version number bumps for ctl tools.
Should the commits be separated into different PRs?
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4219
-- Commit Summary --
* kamdbctl: version set to 6.0.0
* kamctl: version set to 6.0.0
* treewide: spelling/grammar fixes
-- File Changes --
M doc/README.md (2)
M doc/tutorials/ser_radius/ser_radius.xml (2)
M pkg/kamailio/deb/bionic/kamailio.README.Debian (2)
M pkg/kamailio/deb/bookworm/kamailio.README.Debian (2)
M pkg/kamailio/deb/bullseye/kamailio.README.Debian (2)
M pkg/kamailio/deb/buster/kamailio.README.Debian (2)
M pkg/kamailio/deb/debian/kamailio.README.Debian (2)
M pkg/kamailio/deb/focal/kamailio.README.Debian (2)
M pkg/kamailio/deb/jammy/kamailio.README.Debian (2)
M pkg/kamailio/deb/jessie/kamailio.README.Debian (2)
M pkg/kamailio/deb/noble/kamailio.README.Debian (2)
M pkg/kamailio/deb/precise/kamailio.README.Debian (2)
M pkg/kamailio/deb/sid/kamailio.README.Debian (2)
M pkg/kamailio/deb/stretch/kamailio.README.Debian (2)
M pkg/kamailio/deb/trusty/kamailio.README.Debian (2)
M pkg/kamailio/deb/wheezy/kamailio.README.Debian (2)
M pkg/kamailio/deb/xenial/kamailio.README.Debian (2)
M src/core/atomic/atomic_sparc.h (2)
M src/core/atomic/atomic_sparc64.h (2)
M src/core/atomic/atomic_x86.h (2)
M src/core/cfg/cfg.h (2)
M src/core/cfg/cfg_script.c (2)
M src/core/cfg/cfg_script.h (2)
M src/core/cfg/cfg_select.c (2)
M src/core/cfg/cfg_struct.c (6)
M src/core/cfg/cfg_struct.h (16)
M src/core/parser/hf.c (2)
M src/core/parser/hf.h (2)
M src/core/sr_module.h (6)
M src/core/udp_server.c (2)
M src/lib/srdb1/db_query.h (20)
M src/lib/trie/dtrie.c (2)
M src/lib/trie/dtrie.h (2)
M src/modules/app_java/README-draft (4)
M src/modules/app_java/kamailio_java_folder/java-untested/siprouter_src/NativeInterface.java (4)
M src/modules/app_java/kamailio_java_folder/java/siprouter_src/NativeInterface.java (4)
M src/modules/app_jsdt/duktape.c (26)
M src/modules/avpops/doc/avpops_admin.xml (2)
M src/modules/call_control/doc/call_control_admin.xml (2)
M src/modules/carrierroute/doc/carrierroute_admin.xml (2)
M src/modules/cplc/doc/cplc_admin.xml (2)
M src/modules/db_berkeley/doc/db_berkeley_admin.xml (4)
M src/modules/db_berkeley/km_doc/db_berkeley_admin.xml (4)
M src/modules/db_postgres/km_res.c (2)
M src/modules/http_async_client/http_multi.c (2)
M src/modules/imc/doc/imc_admin.xml (2)
M src/modules/ims_charging/doc/ims_charging_admin.xml (2)
M src/modules/ims_qos/doc/ims_qos_admin.xml (2)
M src/modules/ims_registrar_pcscf/doc/ims_registrar_pcscf_admin.xml (2)
M src/modules/ims_usrloc_pcscf/pcontact.c (2)
M src/modules/ims_usrloc_scscf/ims_usrloc_scscf_mod.c (2)
M src/modules/ims_usrloc_scscf/ucontact.c (2)
M src/modules/janssonrpcc/janssonrpc_connect.c (2)
M src/modules/janssonrpcc/janssonrpcc_mod.c (2)
M src/modules/keepalive/doc/keepalive_devel.xml (2)
M src/modules/matrix/doc/matrix_admin.xml (2)
M src/modules/memcached/doc/memcached_admin.xml (2)
M src/modules/mohqueue/mohq_db.c (6)
M src/modules/nsq/nsq_mod.c (2)
M src/modules/p_usrloc/doc/p_usrloc_admin.xml (4)
M src/modules/p_usrloc/doc/p_usrloc_devel.xml (2)
M src/modules/presence/presentity.c (4)
M src/modules/qos/qos.c (2)
M src/modules/qos/qos_handlers.c (4)
M src/modules/rabbitmq/doc/rabbitmq_admin.xml (2)
M src/modules/rr/doc/rr_admin.xml (2)
M src/modules/rtpengine/doc/rtpengine_admin.xml (2)
M src/modules/secfilter/doc/secfilter_admin.xml (2)
M src/modules/sipcapture/doc/sipcapture_admin.xml (2)
M src/modules/siptrace/doc/siptrace_admin.xml (2)
M src/modules/sms/libsms_modem.c (2)
M src/modules/snmpstats/snmpstats.c (4)
M src/modules/snmpstats/sub_agent.c (2)
M src/modules/sst/sst.c (2)
M src/modules/sst/sst_handlers.c (22)
M src/modules/tm/doc/tm.xml (4)
M src/modules/userblocklist/doc/userblocklist_admin.xml (6)
M src/modules/xmpp/xode.c (2)
M test/unit/1.sh (2)
M test/unit/10.sh (2)
M test/unit/13.sh (2)
M test/unit/17.sh (2)
M test/unit/18.sh (2)
M test/unit/23.sh (6)
M test/unit/24.sh (2)
M test/unit/25.sh (2)
M test/unit/26.sh (4)
M test/unit/3.sh (4)
M test/unit/30.sh (2)
M test/unit/31.sh (2)
M test/unit/32.sh (2)
M test/unit/37.sh (6)
M test/unit/39.sh (4)
M test/unit/4.sh (2)
M test/unit/42.sh (6)
M test/unit/43.sh (2)
M test/unit/8.sh (4)
M test/unit/9.sh (4)
M utils/kamctl/CMakeLists.txt (2)
M utils/kamctl/kamctl (2)
M utils/kamctl/kamctlrc (2)
M utils/kamctl/kamdbctl (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4219.patchhttps://github.com/kamailio/kamailio/pull/4219.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4219
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4219(a)github.com>