Commit graph

41161 commits

Author SHA1 Message Date
Daniel-Constantin Mierla
88ef28f787 core: cfg_update() for async task execution
Some checks failed
CMake on multiple platforms / build (Release, clang, DEFAULT, ubuntu-latest, aarch64) (push) Failing after 4s
CMake on multiple platforms / build (Release, clang, DEFAULT, ubuntu-latest, x86_64) (push) Failing after 3s
CMake on multiple platforms / build (Release, gcc, DEFAULT, ubuntu-latest, aarch64) (push) Failing after 3s
CMake on multiple platforms / build (Release, gcc, DEFAULT, ubuntu-latest, x86_64) (push) Failing after 2s
build / build (clang, sid) (push) Failing after 0s
build devcontainer image / build (push) Failing after 3s
build / build (clang, trixie) (push) Failing after 0s
build / build (gcc, sid) (push) Failing after 0s
build / build (gcc, trixie) (push) Failing after 0s
CMake on multiple platforms / build (Release, gcc, DEFAULT, macos-latest, aarch64) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, DEFAULT, macos-latest, aarch64) (push) Has been cancelled
2026-08-05 14:57:44 +02:00
Kamailio Dev
94dfa27534 modules: readme files regenerated - tm ... [skip ci] 2026-08-05 10:01:07 +02:00
Daniel-Constantin Mierla
494c1ff8a6 tm: docs for reply_matching parameter 2026-08-05 09:45:52 +02:00
Daniel-Constantin Mierla
39b6666105 tm: match replies only for active transactions
- skip matching replies when t on wait or in agony to avoid races on
  accessing the transaction and destroying it
- cotrolled by new modparam reply_matching
- related to GH #4862
2026-08-05 09:28:30 +02:00
Daniel-Constantin Mierla
269c4ca6e1 dialog: set rr length always in leg info 2026-08-04 16:34:58 +02:00
Daniel-Constantin Mierla
c8b10e54ad dialog: lock on setting leg info fields 2026-08-04 16:15:25 +02:00
Kamailio Dev
3cbf0a4c2e modules: readme files regenerated - sipdump ... [skip ci] 2026-08-04 14:01:07 +02:00
Stefan Mititelu
590df5dcf6 topos: add contact_mode 4
Similar to contact_mode 3, but expect only FQDN in xavu and
will append port and transport by itself.
2026-08-04 13:55:29 +02:00
Igor Ponomarenko
bed208d2e8 sipdump: parse call_id 2026-08-04 13:54:31 +02:00
Jacky Li
24030e5899 sanity: enforce CSeq < 2^31 per RFC 3261 via core str2int()
Replace the hand-written str2valid_uint() call in check_cseq_value()
with the overflow-checked core str2int() helper, which avoids two
independent bugs:
- signed integer UB from the local "int result" when parsing values
  in [2^31, 2^32-1] that caused them to pass through;
- silent wraparound to 0 for the exact boundary "4294967296" (2^32)
  caused by the manual 10-char comparison against "4294967296".

Add the RFC 3261 §8.1.1.5 upper bound check (< 2^31 for non-REGISTER
requests outside a dialog) alongside, so both overflow and
out-of-range are handled in the same conditional.

str2valid_uint() itself and the Expires call site in check_expires_value()
are intentionally left untouched, so Expires behaviour does not change.

Verified against a local 6.1.3/master build for the six boundary cases
(0, 2^31-1, 2^31, 2^32-1, 2^32, 2^32+1).

Refs: #4838
2026-08-04 12:37:03 +02:00
Kamailio Dev
87f40129b0 modules: readme files regenerated - dialog ... [skip ci] 2026-08-04 12:31:08 +02:00
Stefan Mititelu
a3aa002951 dialog: fix for dlg_cell removal
Don't LWW for DLG_DMQ_RM
Add dflag DLG_FLAG_DMQ_DELETED
Set end_ts in any case, so dlg_cell will be eventually cleaned
2026-08-04 12:20:51 +02:00
Stefan Mititelu
ff87ae50bb dialog: bump replicated dlg to DELETED state, from UNCONFIRMED 2026-08-04 12:20:51 +02:00
Stefan Mititelu
cf99bef1b5 dialog: fix lifetime on UNCONFIRMED state
Needed for simple INVITE, 200OK, ACK, where ACK moves to
different dialog DMQ node.
2026-08-04 12:20:51 +02:00
Stefan Mititelu
147b3709c3 dialog: fix for stats when dmq involved 2026-08-04 12:20:51 +02:00
Stefan Mititelu
1ae1a03dee dialog: add new cfg functions for dialog legs data 2026-08-04 12:19:57 +02:00
Stefan Mititelu
e494d170f0 dialog: add enable_dmq_ka_iflags_sync modparam 2026-08-04 12:19:57 +02:00
Stefan Mititelu
d27c538e3d dialog: update CRITICAL dlg lifetime timer log logic 2026-08-04 12:18:50 +02:00
Kamailio Dev
88bc87ee90 modules: readme files regenerated - htable ... [skip ci] 2026-08-04 12:16:08 +02:00
Richard Fuchs
6aad2d590d dispatcher: serialize writes to global table
- add mutex to serialize updates (reload, add, delete) to global table
2026-08-04 12:15:00 +02:00
Stefan Mititelu
ca6900b80c htable: last write win for set cell only
Do lww stamping only for htables that have dmqreplicate set to on.
2026-08-04 12:14:21 +02:00
Дилян Палаузов
9c6c45ea2e websocket: avoid double-initialization of structs 2026-08-04 12:13:15 +02:00
Stefan Mititelu
1fb3da7646 topos_redis: store as/bs/s_rr 2026-08-04 12:09:13 +02:00
Stefan Mititelu
1caedaa0d8 topos_htable: store as/bs/s_rr 2026-08-04 12:09:13 +02:00
Stefan Mititelu
ebc4bf777e topos: add sn_refresh_topology modparam
This will enable topology refresh based on "sn=" found in RR,
as a client moves to different node in a DMQ cluster that uses topos.
Skip refresh if host part is FQDN too.
Skip in-dialog options from refresh and from storage.
2026-08-04 12:09:13 +02:00
dependabot[bot]
449c98766b github: [skip ci]: bump actions/stale from 10 to 11
Bumps [actions/stale](https://github.com/actions/stale) from 10 to 11.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/v10...v11)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: '11'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-04 00:56:13 +02:00
Kamailio Dev
1d0b9a922d modules: readme files regenerated - jwt3 ... [skip ci] 2026-08-02 13:31:07 +02:00
Federico Cabiddu
38bd8ca868
Grumvalski/jwt3 jwks fetch (#4832)
* jwt3: add remote JWKS URL support with shm cache and DoS protection

* jwt3: update documentation for remote JWKS URL support and new parameters
2026-08-02 13:19:11 +02:00
Daniel-Constantin Mierla
138d226603 tm: keep extra reference for local uac transaction
- cope with fast replies before arming retransmission
- related to GH #4843
2026-07-30 07:20:11 +02:00
Victor Seva
2831d5d358
github: pull_request define fetch-depth on checkouts to avoid shallow error [skip ci] 2026-07-29 16:05:09 +02:00
Victor Seva
11351f7089
ims_registrar_pcscf: free previous sec-agree value at process_sec_agree_param()
process_sec_agree_param() can be called several times for the same parameter
in this case we will leak the mem for the previous value.

Based on solution from qasimomneia <qasim.l.ghalib@alkafeelomnnea.com> at #4841
2026-07-28 19:08:39 +02:00
Victor Seva
f0e3348c5e
ims_ipsec_pcscf: free previous sec-agree value at process_sec_agree_param()
process_sec_agree_param() can be called several times for the same parameter
in this case we will leak the mem for the previous value.

Based on solution from qasimomneia <qasim.l.ghalib@alkafeelomnnea.com> at #4841
2026-07-28 19:07:55 +02:00
Henning Westerholt
b6d977069b core: move error reporting var init to function beginning (after change in commit 8bfb74bb10) 2026-07-27 12:41:57 +00:00
Kamailio Dev
87806dd03e modules: readme files regenerated - db_mysql ... [skip ci] 2026-07-27 10:16:09 +02:00
amyren
9f53f9555c db_mysql: docs - add missing parameters [skip ci] 2026-07-27 10:08:01 +02:00
Kamailio Dev
58514541ed modules: readme files regenerated - sanity ... [skip ci] 2026-07-26 11:31:07 +02:00
Daniel-Constantin Mierla
1df7751675 sanity: docs for size_pai_uri parameter 2026-07-26 11:24:47 +02:00
Daniel-Constantin Mierla
4d6c5d0e16 sanity: parameter to check the size of p-asserted-identity uri 2026-07-25 21:46:07 +02:00
S-P Chan
8bfb74bb10 core: tcp - fix close events missing or wrong reason
- audit all sites for TCP close: TCP events missing or
  wrong reason so that tcpops will run the correct
  event route: tcp:closed / tcp:timeout / tcp:reset
2026-07-25 09:37:49 +08:00
Daniel-Constantin Mierla
ba732b2340 core: tcp - more logging for closing during connect phase
- in some cases, after SYN and SYN-ACK, Kamailio seem to send RST
2026-07-23 05:41:08 +02:00
Victor Seva
2c0972f35e
htable: fix operation comparison for 'includes'
introduced at c0d80f9eb4
2026-07-21 14:42:59 +02:00
S-P Chan
f56655e53e tmx: fix calling tm module functions
Fixes loading modules/tmx.so: undefined symbol: get_t_branch

- use tm bindings instead of direct function calls
- addresses: #4833
2026-07-21 09:03:54 +08:00
Kamailio Dev
f159121336 modules: readme files regenerated - async ... [skip ci] 2026-07-20 15:46:08 +02:00
Daniel-Constantin Mierla
66da5e5b0c async: docs updates for async task data functions
- GH #4828
2026-07-20 15:39:49 +02:00
Kamailio Dev
05558dea81 modules: readme files regenerated - tmx ... [skip ci] 2026-07-20 15:31:08 +02:00
Daniel-Constantin Mierla
6250cbf9dd tm: docs for t_cancel_branch_idx() 2026-07-20 15:22:15 +02:00
Daniel-Constantin Mierla
986a7ea9c2 tmx: function to cancel a branch by index 2026-07-20 15:22:15 +02:00
S-P Chan
ec7c285de0 core: make counters thread-safe when PROC_TCP_MAIN runs multiple threads
- when ksr_tcp_main_threads > 0, for mtops/single-process TLS, multiple
  threads may update counters
- add an atomic version of counter operations
2026-07-20 17:29:01 +08:00
Daniel-Constantin Mierla
455e0d7f86 tm: export t_lookup_ident_filter() to intermodule api 2026-07-19 21:29:42 +02:00
Daniel-Constantin Mierla
8f9c43e052 tmx: fix indentation for exported functions 2026-07-19 21:29:42 +02:00