forked from OpenSIPS/opensips
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
12741 lines (7079 loc) · 391 KB
/
Copy pathChangeLog
File metadata and controls
12741 lines (7079 loc) · 391 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
=========================== Release 3.4.18 ==============================
2026-05-06 Liviu Chircu <liviu@opensips.org>
* [8aa0ba413] :
registrar: Improve error handling
(cherry picked from commit 1875c584795952cbf9b2c4bf35777683e6ac0091)
2026-05-06 Liviu Chircu <liviu@opensips.org>
* [c82dcbe27] :
PN Support: Complete commit e7cf1d595
The fix in e7cf1d595 was not complete, as we must add both PN, non-PN
branches as well as any pre-existing append_branches() into the
t_wait_for_new_branches() wait count, otherwise the UAC-side transaction
could end prematurely, before the PN-branch gets a chance to deliver and
connect the call.
(cherry picked from commit 6b058932285bfe95ab440ea61b8a34e2d8d6d722)
2026-05-06 Razvan Crainea <razvan@opensips.org>
* [ce9dbe41b] :
debian: enforce explicit python path
(cherry picked from commit ca8940e0777eb26ee04e97a969d0ae3d22ee2900)
2026-04-25 OpenSIPS <github@opensips.org>
* [d988b1113] :
Rebuild documentation
2026-04-24 Liviu Chircu <liviu@opensips.org>
* [e502f581c] :
python: Improve compatibility with Debian 13
The "python" binary is no longer provided by default -> adjust Makefile.
(cherry picked from commit 70003cf10784a28f4fb18b6d446b30c6a07a8027)
2026-04-24 Norm Brandinger <n.brandinger@gmail.com>
* [b1e34a27b] :
tls_openssl: fix per-thread state double-free across fork()
Register a pthread_atfork prepare handler that calls OPENSSL_thread_stop()
before each fork(). CRYPTO_set_mem_functions() routes all OpenSSL allocations
to shared memory, but per-thread structures (ERR_STATE, DRBG) use thread-local
storage pointers inherited across fork(). Without cleanup, child processes
inherit a stale pointer to the parent per-thread state; if the parent frees or
re-creates that state, the child next OpenSSL call triggers a double-free
(detected by QM_MALLOC_DBG as SIGABRT).
After OPENSSL_thread_stop() the thread-local pointer is NULL. Both parent and
child lazily allocate fresh per-thread state on the next OpenSSL call.
This complements the existing on_exit(_exit) handler which covers the same
class of double-free at process exit time.
(cherry picked from commit c8d148c1ea0b018964dc24cfce01ac0cf3e8940e)
(cherry picked from commit 66cca03849dc30193cf7b1dfe026ce6f4210609a)
2026-04-21 Ross Henderson <rossmck@mac.com>
* [0b482b86b] :
#3798 Don't require certificate for TLS clients
(cherry picked from commit bf9f69f97a7629a078a01d9d14a26f100077daf8)
2026-04-18 OpenSIPS <github@opensips.org>
* [8b31d74bb] :
Rebuild documentation
2026-04-17 Ravitez Dondeti <dondetir@users.noreply.github.com>
* [954ca72bb] :
db_mysql: recover from ER_UNKNOWN_STMT_HANDLER (1243) (#3865)
The prepared-statement execute wrapper treats MySQL error 1243
(ER_UNKNOWN_STMT_HANDLER) as a hard failure and skips the existing
reconnect + re-prepare path. This surfaces in production when the
backing database is replaced underneath a live client connection -
for example during an AWS Aurora zero-downtime minor-version upgrade,
which preserves the TCP connection but drops the server-side
prepared-statement cache. The next stmt_execute returns 1243, OpenSIPS
logs CRITICAL and the query fails instead of transparently recovering.
Add the case to wrapper_single_mysql_stmt_execute so it funnels into
the same switch_state_to_disconnected -> connect_with_retry ->
re_init_statement recovery path that already handles CR_SERVER_GONE_ERROR
and friends.
ER_NEED_REPREPARE (1615) is intentionally not added: libmysqlclient
auto-reprepare already handles that case. 1243 bypasses auto-reprepare
because the server has no record of the handle at all.
The companion prepare wrapper is not modified: it starts from a fresh
mysql_stmt_init() handle that carries no server-side ID, so the server
cannot return 1243 in response to a prepare request.
Reported-by: Sasmita Panda <spanda@3clogic.com>
(cherry picked from commit 9453ee09412c3a49a664bccad21757311d419688)
2026-04-14 Danielzt <danielzt@users.noreply.github.com>
* [6e1ed478e] :
core: fix fd memory leak in reactor_proc_add_fd, causing too many open files (#3830)
rtpproxy: Fix in timeout scenarios, leading crash due to memory leak and too many open files
(cherry picked from commit 0296e26ffe2939b7c009de701b3b420d44d75e6f)
2026-04-11 OpenSIPS <github@opensips.org>
* [33c48a8aa] :
Rebuild documentation
2026-04-08 Liviu Chircu <liviu@opensips.org>
* [958cfe172] :
PN Support: Improve default handling for failed calls
Avoid relying on the "fr_inv_timeout" by default in order to complete
the transaction when the call is rejected (wait_for_new_branches...), as
the default (120s) is quite high, and can lead to stalling INVITEs.
(cherry picked from commit 45dcfd73a47244663aff0e4e5079cd0431ba2447)
2026-04-07 rdondeti <ravitez.dondeti@gmail.com>
* [1ec9abcaa] :
rtpengine: fix NULL deref from unchecked cJSON_PrintUnformatted()
In rtpengine_raise_event(), cJSON_PrintUnformatted() can return NULL on
allocation failure. The return value is passed directly to strlen() and
then to cJSON_PurgeString(), both of which will crash on a NULL pointer.
Add a NULL check before using the return value, and skip the parameter
on failure.
Found during a systematic audit of cJSON return value handling across
modules, following the janus leak fixes in commit f9fb3ea3e.
(cherry picked from commit cf5fb629cc08fc4c20b105df0a6131f5574e7f66)
2026-04-07 rdondeti <ravitez.dondeti@gmail.com>
* [6f712264d] :
jsonrpc: fix NULL deref and object leak in jsonrpc_handle_cmd()
cJSON_Print() can return NULL on allocation failure. The existing code
passes the return value directly to strlen() without a NULL check,
causing a crash on two separate code paths (error and result handling).
Add NULL checks after both cJSON_Print() calls.
Additionally, the cJSON tree allocated by cJSON_Parse() at the start of
the function is never freed. Add cJSON_Delete(obj) to the cleanup path.
Found during a systematic audit of cJSON return value handling across
modules, following the janus leak fixes in commit f9fb3ea3e.
(cherry picked from commit 6fc6acac8e8a669655d92346a8ad61af16671274)
2026-04-07 rdondeti <ravitez.dondeti@gmail.com>
* [d133b7aed] :
cachedb_cassandra: fix NULL deref when cass_cluster_new() returns NULL
cass_cluster_new() can return NULL on allocation failure. The existing code
has a NULL check, but it comes after cass_cluster_set_credentials() already
uses the pointer (when credentials are configured), so a NULL return causes
a crash before the check is reached.
Move the NULL check to immediately after cass_cluster_new(), before any use
of the returned pointer.
Found during a systematic audit of cachedb backends following the
cachedb_redis NULL-deref fix in commit 8fb569cb3.
(cherry picked from commit 8f959e73c79bf42d06ce2ee7406a80ab9edb8ca1)
2026-04-07 rdondeti <ravitez.dondeti@gmail.com>
* [891ebc9a5] :
cachedb_memcached: fix NULL deref when memcached_create() returns NULL
memcached_create(NULL) can return NULL on allocation failure. The existing
code never checks the return value, so a NULL memc pointer falls through to
memcached_server_push(NULL, ...) which dereferences the NULL pointer.
Add an explicit NULL check after memcached_create(), following the existing
error-handling pattern in the function (pkg_free + return 0).
Found during a systematic audit of cachedb backends following the
cachedb_redis NULL-deref fix in commit 8fb569cb3.
(cherry picked from commit 9fea57eeaf5c687f49a952692b2b7530ec66a7ee)
2026-04-07 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [bfff51448] :
[sip_i] fix wrong ISUP msg type on 200 OK INVITE
Credits go to @aldotms70
Closes #3857
(cherry picked from commit bc5a87a28a9b269cc6596dc0e42ddb45344b57ec)
2026-04-04 OpenSIPS <github@opensips.org>
* [e758805af] :
Rebuild documentation
2026-04-02 Liviu Chircu <liviu@opensips.org>
* [cab2968d7] :
db_sqlite: Improve error handling
* avoid dangling PS pointers
* avoid leaking the PS object on NULL "result"
(cherry picked from commit bdd97c5047b8a9a45ae520e293ecc94f0194d904)
2026-04-01 Liviu Chircu <liviu@opensips.org>
* [a13d98a48] :
db_sqlite: Fix interaction with sql_cacher
The .query API endpoint in db/db.h is meant to return 0 on success, yet
the current implementation in db_sqlite was returning "number of rows"
on success, leading to:
ERROR:sql_cacher:load_entire_table: Failure to issue query to SQL DB...
ERROR:sql_cacher:cache_init_load: Failed to cache the entire table...
(cherry picked from commit 5abc95adbb087303620677f4802970686f6c3227)
2026-03-28 OpenSIPS <github@opensips.org>
* [412fc4e31] :
Rebuild documentation
2026-03-26 Razvan Crainea <razvan@opensips.org>
* [4e18e7920] :
rtp_relay: do not run indialog for non-SDP requests
(cherry picked from commit d816345da35b2432f41fcd20578c0a14bcc2a3f9)
2026-03-23 Razvan Crainea <razvan@opensips.org>
* [5993a1f9b] :
b2b_logic: turn of bridge initiator in case transfer fails
(cherry picked from commit 381e725f6708de09cf7c386c625e57355047f76c)
2026-03-14 OpenSIPS <github@opensips.org>
* [203094a57] :
Rebuild documentation
2026-03-10 Bogdan Andrei IANCU <bogdan@opensips.org>
* [5d8038795] :
Merge pull request #3842 from NormB/fix/cachedb-redis-null-deref
cachedb_redis: fix NULL deref when redisConnect returns NULL
(cherry picked from commit f0f53a61504538909070335cd0b37b987f773d0a)
2026-03-07 OpenSIPS <github@opensips.org>
* [bddde61bf] :
Rebuild documentation
2026-03-06 Liviu Chircu <liviu@opensips.org>
* [9d14556ec] :
registrars: Allow accepting Re-REGISTERs with equal CSeq
New module setting for both registrar and mid-registrar which controls
the policy on handling same Call-ID REGISTERs, with the same CSeq.
modparam: allow_dup_cseq
default: false (100% backwards-compatible)
Ultimately, this boils down to a trade-off between interoperability and
RFC strictness. More info in the modparam documentation.
(cherry picked from commit dda9010efb6149c44a98cb2029215d0e28ee3f89)
(cherry picked from commit f47c2f47bb2393c33f5979a86747db82cf2e7b2b)
2026-03-06 Liviu Chircu <liviu@opensips.org>
* [bbc7b7486] :
mid_registrar: Fix mem management bugs around "max contacts"
* avoid UAF of the @uc pointer during iteration
* fix logic so that the current @c cannot be freed by trim_contacts()
itself, yet again leading to UAF type of bugs
usrloc: Fix rare memleak edge-case
(cherry picked from commit 2642e14fb17fcc1ed24eab51bd0568bb743f51e2)
(cherry picked from commit 960ab38e850e915796bf3248ca00f72ab4e23f56)
2026-03-03 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [314581187] :
[tcp] fixed potential buffer overflow due to insane large Content-Len values
Check and limit the Content-Lenght to the size of the reading buffer, makes no sense to accept anything higher.
(cherry picked from commit 09e787799c6f808df948bcd159060ca89e7fa91e)
2026-03-02 Razvan Crainea <razvan@opensips.org>
* [92fdbed2a] :
b2b_entities: make sure last_method is updated before req
(cherry picked from commit b1482d83697d0be1c0ffe850b358755e28674fc2)
2026-02-28 OpenSIPS <github@opensips.org>
* [9b80889a6] :
Rebuild documentation
2026-02-26 Razvan Crainea <razvan@opensips.org>
* [0218c54f9] :
b2b_entities: convert ERR in DBG
(cherry picked from commit 5964710b0a6aba5c22d366ea1b60ace1df42ab25)
2026-02-23 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [c546b2536] :
Merge pull request #3821 from NormB/fix/tm-async-rd-reversion
tm: fix $rd reversion after chained async() resume
Cherry pick of 2a1c511265d82648c984807c02c4b50ed073ca42
(cherry picked from commit 43d965ab448199499ecc22a0f7f8761f44a20cdf)
2026-02-21 OpenSIPS <github@opensips.org>
* [2397a1a40] :
Rebuild documentation
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [7b3052b03] :
build: fix bad merge for OS check
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [fe2921323] :
build: fix python3-dev apt requirements
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [1f62bb716] :
tls_wolfssl: pass wolfssl flags from outside
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [617a05d19] :
packaging/redhat: fix bug introduced in 1ea06905
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [ae16f6819] :
regex: fix broken merge
(cherry picked from commit b0c1bcafa284977e53fc6b2ac6c659365f88404c)
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [ca951da32] :
build: python-dev-is-python3 should be available in 20.04
(cherry picked from commit 2a8a298f7bf85a8a63f60f367186ed48540bfa41)
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [374327fb0] :
regex: make module work with both pcre2 and pcre3, not just compile
(cherry picked from commit bbc1a75d5ba25c0f26afcd208b0f5c7e1fffd3b7)
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [e15cde507] :
packaging: fix redhat pcre-devel name
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [2c0457bc4] :
packaging: skip wolfssl errors
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [b39bf1192] :
packaging: fix .swp matching
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [62e2975c9] :
debian: fully replace libcurl4 gnutls with openssl
(cherry picked from commit c51e2dd0284055926559d79807aed0e7eb9624f4)
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [1c34e2369] :
debian: replace libcurl4 gnutls with openssl
The reason is that librkafka depends on libcurl4-openssl-dev, which
conflicts with libcurl4-gnutls-dev
(cherry picked from commit 7d9aadc01efd9d9b4e52f571cd6b884ad1359658)
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [6ec1b98bc] :
packaging: force libpcre3 for stable version
except for Debian 13, which is new package and cannot run with libpcre3
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [a777c61c8] :
regex: allow pcre3 library
2026-02-20 Steve Ayre <steven.ayre@dubber.net>
* [96ac94c82] :
update regex module for pcre2
(cherry picked from commit 3cc28d166b5a3d7db2cd2d944406480e5a1474f5)
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [22ddc7e6a] :
dialplan: make module work with both pcre2 and pcre3 libs
(cherry picked from commit 67483a5a27ce656eaf9409f7710cf67798e70aac)
2026-02-20 Razvan Crainea <razvan@opensips.org>
* [82ef55ccd] :
dialplan: fix copying subst's out vector
(cherry picked from commit 30825e4e0809a1a61f06cec964589c825645b62b)
2026-02-20 Ken Rice <krice@sipnavigator.com>
* [ed13171e7] :
Makefile tweaks to avoid $(shell ...) expansions from failing
Fixes #3717
(cherry picked from commit a3ae498d8726894753483738e801dfc0e63e3ba9)
2026-02-20 Steve Ayre <steven.ayre@dubber.net>
* [c108bdc3b] :
create pcre2 compile context once instead of for each compile
(cherry picked from commit 6082b43fa8b44cbfea7de8afb38998354b54d1fb)
2026-02-20 Steve Ayre <steven.ayre@dubber.net>
* [0135ffb87] :
update dialplan module for pcre2
(cherry picked from commit c58e3af0cc7b44ceb304ac1b6d2c8b45feca4b5b)
2026-02-20 Steve Ayre <steven.ayre@dubber.net>
* [39eb7b260] :
require libpcre2
(cherry picked from commit 1cb16e082e9ba1cd63f04996eecd75632682df7c)
2026-02-19 Razvan Crainea <razvan@opensips.org>
* [2b0e36104] :
readme: drop lgtm badges, as the service no longer exists
(cherry picked from commit 4e3a0b7c3c025f6b2121f216e790ab8d03dc240d)
=========================== Release 3.4.17 ==============================
2026-02-18 Liviu Chircu <liviu@opensips.org>
* [a46fd2de2] :
proto_wss: free ws_data on TLS domain lookup failure
(cherry picked from commit 2cde87bac5dadeb13ca7430d5a6d40c2457a734d)
2026-02-18 Razvan Crainea <razvan@opensips.org>
* [356b23592] :
tm: fix EXTRA_DEBUG logging for local cancel timer
(cherry picked from commit 71541c911d39f98978e4882e9d16065c1dd5f97c)
2026-02-14 OpenSIPS <github@opensips.org>
* [56448e8b4] :
Rebuild documentation
2026-02-13 pavelkohout396 <pav.kohout@gmail.com>
* [9e2ab5fed] :
Fix SQL injection in auth_jwt module via unescaped tag claim (#3807)
The jwt_db_authorize() function...
The jwt_db_authorize() function in the auth_jwt module decodes JWT tokens
without signature verification to extract the 'tag' claim, then interpolates
this claim directly into a raw SQL query without escaping. An attacker can
craft a malicious JWT with SQL injection payload in the tag claim (e.g.,
"' UNION SELECT 'admin','attacker_secret' --") to inject their own secret
into the query result. Since the injected secret is then used to verify the
JWT signature, the attacker can sign their token with this known secret and
achieve authentication bypass.
Reported-by: Pavel Kohout, Aisle Research, www.aisle.com
(cherry picked from commit 3822d33c1c6b25832fdd88da1d23eed74be55b05)
2026-02-10 Liviu Chircu <liviu@opensips.org>
* [cdb3049f8] :
rest_client: Fix async transfers with re-used TCP conns
Fix the edge-case with async cURL where it re-uses an existing TCP
connection. Here, the @connect variable holds a 0 value, thus the
transfer runs in blocking mode unless we relax the condition.
Patch provided by Nuno Almeida from Five9.
(cherry picked from commit aad6b856835a53d660215834e3c16c4591cf2375)
2026-02-07 OpenSIPS <github@opensips.org>
* [a3fa7e871] :
Rebuild documentation
2026-02-02 Liviu Chircu <liviu@opensips.org>
* [d57792be4] :
mid_registrar: Fix the `tcp_persistent_flag` feature
Make sure to NOT adjust the @e_max with -get_act_time(), similar to
registrar codebase, to avoid setting MAX_INT on the TCP conn lifetime...
(cherry picked from commit 7935e2e927b523a21bf23e58f5b652ae7db71b46)
2026-02-02 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [64c822f2d] :
[b2b_entities] fix cseq to be used upon 200OK/CANCEL race
When generating the ACK+BYE upon 200 OK (from callee) racing a CANCEL (from caller), take care and use the correct cdeq values from the 200 OK (the b2b entity is not properly updated anymore, as it is already terminated by the CANCEL)
(cherry picked from commit a4e700d598c70caacf27c342b3c664ccfcf5ba5b)
2026-01-31 OpenSIPS <github@opensips.org>
* [9607d1b28] :
Rebuild documentation
2026-01-29 Bogdan Andrei IANCU <bogdan@opensips.org>
* [5e7e6705e] :
Merge pull request #3716 from jasonshugart/master
Ignore extra headers in MSRP
(cherry picked from commit 1669166458afe05e97ad36288023c38518ffbd64)
2026-01-27 Peter Lemenkov <lemenkov@gmail.com>
* [b1b937379] :
Fix libbson deprecated API warning with version compatibility (#3792)
During compilation of cachedb_mongodb module, numerous deprecation
warnings appear on systems with mongo-c-driver >= 1.29.0:
```
Compiling cachedb_mongodb_dbase.c
gcc -fPIC -DPIC -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DMOD_NAME='cachedb_mongodb' -DPKG_MALLOC -DSHM_MMAP -DUSE_MCAST -DDISABLE_NAGLE -DSTATISTICS -DHAVE_RESOLV_RES -DF_MALLOC -DQ_MALLOC -DHP_MALLOC -DDBG_MALLOC -DF_PARALLEL_MALLOC -DHAVE_STDATOMIC -DHAVE_GENERICS -DNAME='"opensips"' -DVERSION='"3.6.2"' -DARCH='"x86_64"' -DOS='"linux"' -DCOMPILER='"gcc 15"' -D__CPU_x86_64 -D__OS_linux -D__SMP_yes -DCFG_DIR='"/etc/opensips/"' -DVERSIONTYPE='"git"' -DTHISREVISION='"994bcd690"' -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/include/json-c -I/usr/include/json-c -DJSON_PKG_MAJOR=0 -DJSON_PKG_MINOR=18 -DJSON_PKG_MICRO=0 -DUTF8PROC_EXPORTS -I/usr/include/libmongoc-1.0 -I/usr/include/libbson-1.0 -c cachedb_mongodb_dbase.c -o cachedb_mongodb_dbase.o
cachedb_mongodb_dbase.c: In function ‘mongo_con_set’:
cachedb_mongodb_dbase.c:315:9: warning: ‘bson_as_json’ is deprecated: Use bson_as_legacy_extended_json instead [-Wdeprecated-declarations]
315 | dbg_bson("query: ", query);
| ^~~~~~~~
In file included from /usr/include/libmongoc-1.0/mongoc/mongoc.h:22,
from /usr/include/libmongoc-1.0/mongoc.h:18,
from cachedb_mongodb_dbase.h:30,
from cachedb_mongodb_dbase.c:22:
/usr/include/libbson-1.0/bson/bson.h:535:1: note: declared here
535 | bson_as_json (const bson_t *bson, size_t *length) BSON_GNUC_DEPRECATED_FOR (bson_as_legacy_extended_json);
| ^~~~~~~~~~~~
```
The MongoDB C driver (libbson) deprecated bson_as_json() in version
1.29.0 (October 2024) in favor of bson_as_legacy_extended_json() to
clarify which JSON format is being produced (legacy vs. canonical
extended JSON).
We added compatibility macro at the top of cachedb_mongodb_dbase.c - for
mongo-c-driver < 1.29.0, define bson_as_legacy_extended_json as an alias
to bson_as_json, allowing the code to use the new API name while
maintaining backward compatibility.
This change maintains compatibility with all mongo-c-driver versions.
The new function name is used on >= 1.29.0, while older versions
transparently use the original bson_as_json() through the macro alias.
No behavioral changes - the replacement is functionally identical and
produces the same JSON output format. The new name simply makes it
explicit that the legacy extended JSON format is being used.
Note: mongo-c-driver 1.29.0 was released in October 2024. Many LTS
distributions still ship earlier versions (e.g., RHEL 8/9, Ubuntu
20.04/22.04, Debian 11/12), making the compatibility macro necessary.
Assisted-by: Claude (Anthropic) <https://claude.ai>
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
(cherry picked from commit dead516b7f4b0881f99afbee4b48969ceaab1d73)
2026-01-27 Bogdan Andrei IANCU <bogdan@opensips.org>
* [78eb35a0d] :
Merge pull request #3733 from hafkensite/feature/dns-cache-cname
resolve: fix CNAME chain resolution with caching #3709
(cherry picked from commit 401957bd8ddbf050d9c2f65c8a51021ea78391d7)
2026-01-26 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [0bff63b53] :
Discard forced socket if AF incompatible
... and force selection of a different outbound socket, based on protocol and AF
Based on a report from Ihor Olkhovskyi
(cherry picked from commit b8e28c5294a1b1627b8076d31d0a00e49c8587f4)
2026-01-24 OpenSIPS <github@opensips.org>
* [1764cb7e4] :
Rebuild documentation
2026-01-23 Bogdan Andrei IANCU <bogdan@opensips.org>
* [18fdeaf32] :
Merge pull request #3804 from purecloudlabs/sipmsg_validate_all_contacts
Sipmsg validate all contacts
2026-01-23 David Trihy <david.trihy@genesys.com>
* [d275321b4] :
Inline return of Contact header status
2026-01-23 Bogdan Andrei IANCU <bogdan@opensips.org>
* [a3fcb81d6] :
Merge pull request #3803 from purecloudlabs/dialog_contact_crash_fix
Dialog module crash when Contact header is *
2026-01-22 Liviu Chircu <liviu@opensips.org>
* [ea2dbea7a] :
launch(): Fix edge-case with report_route $param(1) not set
Some async functions (e.g. rest_post()) may report an ASYNC_SYNC status,
when the operation completed inline. This case wasn't properly handled
in the launch() support, as the report_route $param(1) was always NULL.
Many thanks to Nuno Ferreira from Five9 for a full report and
troubleshooting on this one!
2026-01-22 David Trihy <david.trihy@genesys.com>
* [017de7253] :
Updated docs and added explicit return code for * Contact when it fails
2026-01-22 David Trihy <david.trihy@genesys.com>
* [e2434ad0d] :
Dialog module crash when Contact header is * on topology_hiding update
2026-01-20 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [a11c85a64] :
[TCP] fixed bad handling upon "max async postponed chunks"
In such case, mark the conn as timed out, to force its sending back to TCP main for closing.
Also fix some bad ref counting when handling bad cons in ASYNC WRITE.
Add more hist logs to conn, to easy the debugging process.
(cherry picked from commit 4afd1c8af1ca24ba642f5ad7ecd3d5b14eb7dafe)
2026-01-20 Liviu Chircu <liviu@opensips.org>
* [a5b8ebe4b] :
b2b_entities: Zero DB handles after module destroy
Since B2B destroys before tm, this should help prevent some shutdown
crashes in B2B due to cascaded module cleanups (e.g. tm cleanups going
into dialog, siprec then back again into B2B).
(cherry picked from commit c482249acffc84d4e5d818fc3e24b8fb9f833962)
2026-01-19 David Trihy <david.trihy@genesys.com>
* [8c4b739d1] :
Contact validation for REGISTER and UPDATE for sipmsg_validate
2026-01-10 OpenSIPS <github@opensips.org>
* [43ec6ad89] :
Rebuild documentation
2026-01-09 Razvan Crainea <razvan@opensips.org>
* [554660d23] :
b2b_logic: also replicate in_sdp for created entity
(cherry picked from commit b88203c1e8f13dc5eaf3ff38a7724d2d6ec6d85c)
2025-12-20 OpenSIPS <github@opensips.org>
* [56b491f49] :
Rebuild documentation
=========================== Release 3.4.16 ==============================
2025-12-18 Liviu Chircu <liviu@opensips.org>
* [fe7ec0445] :
auth: Add helpful logs on pv_xxx_auth() mis-usage
Also, fix top-level rc from "-1" (invalid user? continue script?) into
"0" (auto-reply SIP 500 error! halt script!) on such scripting errors.
Fixes #3756
(cherry picked from commit dfd616bd16cef19b51f6282a7a62e57da2697258)
2025-12-16 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [12e705e29] :
[mi_datagram] turn the RX sockets to non-blocking
As we have multiple procs reading from the same datagram sockets, we may end up with a mixing between the procs woken up by OS and the procs doing the reading. So some procs (even if were woken up) may have nothing to read.
To be resilient, better do non-blocking reading and igonre the EAGAIN or EWOULDBLOCK.
2025-12-16 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [f5f11af9a] :
[dialog] fixed potential double-free upon delayed delete
If the dialog struct is removed from the timer list (and under processing by the timer), do not attempt to free it here, rather leave it alone, it will be freed by the timer
2025-12-13 OpenSIPS <github@opensips.org>
* [5118e967f] :
Rebuild documentation
2025-12-11 Razvan Crainea <razvan@opensips.org>
* [8aedd2ad3] :
modules: minimum match for revision control
(cherry picked from commit 9f78fd0eb110d5821e9ba06016be34076945099d)
2025-12-09 Jupiter Tang <36952362@qq.com>
* [d1204615a] :
keep original flags if pause or resume recording failed (#3764)
(cherry picked from commit f7721b185accb6130eec7f294c926c3652d71e91)
2025-12-06 OpenSIPS <github@opensips.org>
* [6f94b6672] :
Rebuild documentation
2025-12-04 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [203d8c958] :
[b2b_entities] avoid 487 Request Terminated over a previous final reply
If a final 200 OK reply was already sent, do not sent the 487 Request Terminated, but rather release the transaction (to stop retrasnmissions)
2025-11-29 OpenSIPS <github@opensips.org>
* [5831be26c] :
Rebuild documentation
2025-11-28 Jupiter Tang <36952362@qq.com>
* [b2ac22e38] :
fix memory leak in tls_mgm (#3765)
* fix SHM memory leak on the TLS domain match filter strings
(cherry picked from commit 9d4afd42ca819aca06abeefaea1042d4bec0a050)
2025-11-25 Peter Lemenkov <lemenkov@gmail.com>
* [0ebddf985] :
Remove unnecessary -j invocation (#3745)
During parallel builds (make -j), numerous warnings appear for each module:
```
make[1]: warning: -j0 forced in submake: resetting jobserver mode.
```
Root cause: Lines 205 and 225 in the main Makefile explicitly pass `-j`
(without a value) to submake invocations:
```
$(MAKE) -j -C $$r ;
```
When `-j` is specified without a number, it defaults to `-j0` (unlimited
parallel jobs). This breaks GNU Make's jobserver coordination between the
parent make process and submakes, resulting in the warning.
Why this flag is redundant:
When a user runs `make -jN` at the top level, GNU Make automatically
manages parallelism across all recursive $(MAKE) invocations through its
jobserver mechanism. Submakes inherit the parent's jobserver and
participate in the same job pool without needing explicit `-j` flags.
By adding `-j` in submakes, we:
- Break jobserver coordination (triggering warnings)
- Risk spawning unlimited jobs (potential system overload)
- Override the user's intended parallelism level
Performance impact: NONE
Removing these `-j` flags does NOT slow down builds. The parallelism
behavior remains unchanged:
- `make -j4` → builds 4 jobs in parallel (before AND after this fix)
- `make -j8` → builds 8 jobs in parallel (before AND after this fix)
- `make` → builds sequentially (before AND after this fix)
The only difference is that jobserver coordination now works correctly,
eliminating the warnings without affecting build performance.
Note: The FASTER variable and alternate build path remain unchanged to
preserve compatibility with existing build scripts used by distribution
packages (Debian, Arch).
Assisted-by: Claude (Anthropic) <https://claude.ai>
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
(cherry picked from commit 27e429319c8dc78a9d82df5026a6dad289b8f64f)
2025-11-25 Ovidiu Sas <osas@voipembedded.com>
* [c25bd3418] :
b2b_entities: enable in-dialog authentication (#3762)
* b2b_entities: do not hardcode entity type when sending in dialog requests
* b2b_entities: attempt auth only if uac_auth module is loaded and dlg state is B2B_NEW
* b2b_entities: new function: b2b_send_indlg_auth_req()
* b2b_entities: enable reINVITE authentication
(cherry picked from commit dee0a54d61bd3b04d98cf3b03c4086fdc131f206)
2025-11-25 Patrice Fournier <patrice.fournier@t38fax.com>
* [8397c8a33] :
Fix memory leaks in stir_shaken module
The stir_shaken module would leak memory any time a signature was added
to a reply instead of the request or returned in a variable. This commit
makes sure the Identity header lump does not get duplicated and freed
only once. Also fixed possible memory leaks in case of issues while
adding a date header to a request without one.
(cherry picked from commit 1b3c7253778930e9daac423a9970c33f10a48377)
2025-11-24 Bogdan Andrei IANCU <bogdan@opensips.org>
* [8a603225b] :
Merge pull request #3747 from lemenkov/constify_libxml2_api