<!-- 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, …
[View More]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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] 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
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Added support for KEMI API in PDB module.
Here is example usage in KEMI Python.
```
if not (KSR.pdb.pdb_query(KSR.pv.gete("$var(pdb_user)"), "$avp(carrier_id)") > 0):
KSR.err(F"""[{HERE()}]: PDB query failed for user '{KSR.pv.get("$var(pdb_user)")}' \n""")
else:
KSR.info(F""" PDB query return carrier_id = '{KSR.pv.getw("$avp(carrier_id)")}' \n""")
```
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4265
-- Commit Summary --
* pdb: added KEMI support for PDB module
-- File Changes --
M src/modules/pdb/pdb.c (339)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4265.patchhttps://github.com/kamailio/kamailio/pull/4265.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4265
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4265(a)github.com>
[View Less]
tsearle created an issue (kamailio/kamailio#4249)
### Description
I'm trying to make a SIP Rec callflow using t_uac_send to Generate the INVITE and BYE. This automatically generates the ACK in response to the 200 OK. I want to be able to use tm:local-request to do 2 things.
* Add a Contact header to the ACK
* Save Route/Callid/CSeq etc so I can generate an in-dialog bye afterwards.
### Expected behavior
tm:local-request gets called so I can save the relevant headers & modify the …
[View More]outgoing ack
#### Actual observed behavior
tm:local-request does not get called
### Possible Solutions
the associated PR adds this functionality
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 6.0.1 (aarch64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT-NOSMP, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_SEND_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: unknown
compiled on 06:24:22 May 22 2025 with gcc 12.2.0
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4249
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4249(a)github.com>
[View Less]
<!-- 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, …
[View More]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 #4247
<!--Describe your changes in detail -->
- Add debug log when trying to ping a node.
Do not ping manually disabled nodes!
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4248
-- Commit Summary --
* rtpengine: Add check for skipping pings on manually disabled nodes.
-- File Changes --
M src/modules/rtpengine/rtpengine.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4248.patchhttps://github.com/kamailio/kamailio/pull/4248.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4248
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4248(a)github.com>
[View Less]
#### Pre-Submission Checklist
- [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 …
[View More](non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #4187
#### Description
core: tcp_send_timeout applied for outbound connections
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4234
-- Commit Summary --
* core: tcp_send_timeout applied for outbound connections
-- File Changes --
M src/core/tcp_main.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4234.patchhttps://github.com/kamailio/kamailio/pull/4234.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4234
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4234(a)github.com>
[View Less]
<!-- 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, …
[View More]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, ...)
- [ ] 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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] 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
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
This PR introduces a new modparam `timer_interval` to denote the frequency where files are checked for rotation.
Also some improvements regarding memory managments and defaults options.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4263
-- Commit Summary --
* file_out: Consistent check
* file_out: Memory allocation and copy when used.
* file_out: Add debug function
* file_out: Add file properties init function
* file_out: Rotate files based on timer
* file_out: Add require_rotation for better file handling
* file_out: Fix missing evaluated PVs
* file_out/docs: Add timer_interval doc
-- File Changes --
M src/modules/file_out/doc/file_out_admin.xml (23)
M src/modules/file_out/file_out.c (193)
M src/modules/file_out/types.c (79)
M src/modules/file_out/types.h (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4263.patchhttps://github.com/kamailio/kamailio/pull/4263.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4263
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4263(a)github.com>
[View Less]
nmreistd created an issue (kamailio/kamailio#4247)
<!--
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:
…
[View More] * 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
rtpengine module is now trying to ping previous permanently disabled nodes after commits:
```
* e183a3e25c rtpengine: Re-enable down servers (but not disabled ones)
* 3823479733 rtpengine: Add timer to ping rtpengine
```
### Troubleshooting
#### Reproduction
Just create a set of nodes and also set at least one to be permanently disabled. After that do RPC `rtpengine.reload` or equivelent and after a `rtpengine.show all` and `disabled: 1(permanent)` will never show as before the aforementioned additions.
#### 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
<!--
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`
```
Tested between `kamailio 5.8.2` and `6.0.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`)
-->
```
debian bookworm
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4247
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4247(a)github.com>
[View Less]
jaspreet-eltropy created an issue (kamailio/kamailio#4270)
**I’m running into an issue when using Yealink SIP phones in a setup involving Kamailio + RTPengine + FreeSWITCH/Fusionpbx.**
**Setup Overview:**
SIP Proxy: Kamailio (handling NAT traversal, registration, and routing)
Media Relay: RTPengine (with replace-origin, replace-session-connection, media-address, and other options)
Media Server: FreeSWITCH (handles RTP/audio and call logic)
Phone: Yealink T54w Series (but likely affects other …
[View More]models too)
Transport: UDP (with force_rport() and NAT detection routes in place)
Environment: Mixed NAT/public IPs with STUN/TURN enabled on WebRTC clients(SIP.js) (where applicable)
Problem Description:
When a call is placed from/to a Yealink phone, the call signaling works fine (INVITE, 200 OK, ACK are all seen correctly), but there is no audio or sometimes one-way audio. This only happens with Yealink; other SIP clients (Zoiper, Linphone, SIP.js etc.) work fine with the same setup.
From packet captures and Kamailio logs, I can see the following:
RTPengine receives the call and processes it.
The rtpengine_manage() is called with these flags:
May 30 05:38:13 ip-10-7-37-179 /usr/local/sbin/kamailio[62354]: INFO: <script>: BRIDGING: TRYING TO BRIDGE udp sip:5555@192.168.1.10:12561;transport=TCP
May 30 05:38:13 ip-10-7-37-179 /usr/local/sbin/kamailio[62354]: INFO: <script>: NATMANAGE branch_id:0 ruri: sip:5555@192.168.1.10:12561;transport=TCP, method:INVITE, status:<null>, extra_id: z9hG4bKcSBpr6vNyyepe0, rtpengine_manage: replace-origin replace-session-connection media-address=52.24.225.81 trust-address via-branch=extra
The Yealink phone sends SDP with correct IPs, but it doesn’t receive RTP (confirmed via tcpdump).
Interestingly, if I bypass RTPengine + kamilio (media goes directly to/from FreeSWITCH), audio works.
What I’ve Tried:
Enabling/disabling trust-address and via-branch options.
Using set_contact_alias() for REGISTER/NATed clients.
Ensured that Contact header aliasing is applied.
Verified that Yealink NAT settings are configured correctly.
Using force_rport() and fix_nated_register() in Kamailio.
Ensured RTP ports are open and media_address in RTPengine is set correctly.
My Questions:
Is there a known compatibility issue with Yealink phones and RTPengine in relayed mode?
Does Yealink require specific NAT handling rules that differ from softphones?
Are there any recommended rtpengine_manage() flags or Kamailio routing practices specifically for Yealink endpoints?
Any suggestions to debug further — SIP traces seem clean, but RTP is not received by the Yealink.
Sample Logs (Kamailio):
NATMANAGE branch_id:0 ruri: <null>, method:INVITE, status:100, extra_id: z9hG4bK4b1.ffbb20e21cff840bb08800b46398f55b.00, rtpengine_manage: replace-origin replace-session-connection media-address=52.24.225.81 trust-address via-branch=extra
Yealink SIP Config:
NAT Traversal: Enabled (STUN)
Keep-Alive: 30s
UDP port: 5060
SIP registration: works
Audio: not working when RTPengine is in the path
Any help or suggestions would be greatly appreciated. Let me know if logs or traces are needed.
```
-[ RECORD 1 ]-+----------------------------------------------------------------------
id | 3259
ruid | uloc-683943f5-f3a0-1
username | 5555
domain |
contact | sip:5555@192.168.1.10:12561;transport=TCP
received | sip:182.77.49.201:12561;transport=tcp
path |
expires | 2025-05-30 05:44:04
q | -1
callid | [2_689921921@192.168.1.10](mailto:2_689921921@192.168.1.10)
cseq | 6
last_modified | 2025-05-30 05:42:04
flags | 0
cflags | 64
user_agent | Yealink SIP-T54W 96.86.0.75
socket | tcp:10.7.37.179:5060
methods | 16383
instance |
reg_id | 0
server_id | 0
connection_id | 4
keepalive | 1
partition | 28
```
Thanks in advance
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4270
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4270(a)github.com>
[View Less]
<!-- 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, …
[View More]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
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] 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
- [x] Tested changes locally
- [x] Related to issue #4252
#### Description
This PR adds a new helper `reginfo_disable_publish` to `pua_reginfo` module which disabled the publishing for the current message, which is useful to control when to actually send it or not (eg in DMQ replication scenarios).
The helper is "negative" (it *disables* not enables) on purpose in order to mantain backward compatibility to current behaviour.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4253
-- Commit Summary --
* pua_reginfo: add helper to disable publishing for current message
-- File Changes --
M src/modules/pua_reginfo/pua_reginfo.c (4)
M src/modules/pua_reginfo/pua_reginfo.h (4)
M src/modules/pua_reginfo/usrloc_cb.c (21)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4253.patchhttps://github.com/kamailio/kamailio/pull/4253.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4253
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4253(a)github.com>
[View Less]
- tls_list() add PROTO_WSS to TLS_LIST RPC call to include WSS connections in tls.list
- tls_kill() add PROTO_WSS to handle WSS connections
Co-authored-by: Andreas Tarp <tarp(a)sipgate.de>
#### Pre-Submission Checklist
- [ ] 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)
- [ ] No commits to README files …
[View More]for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] 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 #4167
#### Description
WSS connection is not shown in tls.list RPC command like all other TLS connections.
Also tls_kill does not handle WSS connections.
This is related to the issue 4167.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4262
-- Commit Summary --
* tls: add WSS to RPC funtions
-- File Changes --
M src/modules/tls/tls_rpc.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4262.patchhttps://github.com/kamailio/kamailio/pull/4262.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4262
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4262(a)github.com>
[View Less]