forked from OpenSIPS/opensips
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathChangeLog
More file actions
7722 lines (4185 loc) · 217 KB
/
ChangeLog
File metadata and controls
7722 lines (4185 loc) · 217 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.6.3 ==============================
2025-12-18 Liviu Chircu <liviu@opensips.org>
* [d6b2fefd49] :
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>
* [c263fc60e8] :
[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.
(cherry picked from commit 12e705e296470872899e848f030058e8bc052d11)
2025-12-16 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [75645be078] :
[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
(cherry picked from commit f5f11af9ac8bffd387120725cc9ea147ed08873c)
2025-12-14 OpenSIPS <github@opensips.org>
* [edab205999] :
Rebuild documentation
2025-12-11 Razvan Crainea <razvan@opensips.org>
* [6fc2b9f2ab] :
modules: minimum match for revision control
(cherry picked from commit 9f78fd0eb110d5821e9ba06016be34076945099d)
2025-12-11 Vlad Paiu <vladpaiu@opensips.org>
* [31a8c85eee] :
fix trie.enabled column name
closes #3779
(cherry picked from commit ec816e49c252784189921c6a5d8ea94e157905ff)
2025-12-09 Jupiter Tang <36952362@qq.com>
* [a7e0b6a29e] :
keep original flags if pause or resume recording failed (#3764)
(cherry picked from commit f7721b185accb6130eec7f294c926c3652d71e91)
2025-12-07 OpenSIPS <github@opensips.org>
* [5a1f3f49b6] :
Rebuild documentation
2025-12-04 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [446ee1f12d] :
[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)
(cherry picked from commit 203d8c9582d4adc2a009ab0de23b04c0a9037f9f)
2025-12-03 Razvan Crainea <razvan@opensips.org>
* [cbcd761ed7] :
proto_ipsec: fix several typos
(cherry picked from commit b5d00aac204941298e66374a2def90e587fe0afc)
2025-11-30 OpenSIPS <github@opensips.org>
* [b647b10d73] :
Rebuild documentation
2025-11-28 Jupiter Tang <36952362@qq.com>
* [9c18f0fa70] :
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 Jupiter Tang <36952362@qq.com>
* [74c19c8c09] :
Opensips crash after siprec recording finished (#3751)
* fix double free if register failed
* should not src_clean_session(ss) after stop the recording to avoid double free
(cherry picked from commit 71933b28217633f065dd55b629bc21e5260c194f)
2025-11-25 Peter Lemenkov <lemenkov@gmail.com>
* [52b24e3d6c] :
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>
* [bc2173765f] :
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>
* [7789d223a1] :
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>
* [41863ff240] :
Merge pull request #3747 from lemenkov/constify_libxml2_api
Fix const-correctness warnings with libxml2 error handling
(cherry picked from commit e3bec7e266154beb80fd565cf6649c5581fa91f5)
2025-11-24 Bogdan Andrei IANCU <bogdan@opensips.org>
* [e598cd5bba] :
Merge pull request #3744 from lemenkov/libdl_link_typo
Fix libdl linking typo to eliminate build warnings
(cherry picked from commit 6d784ce4501179f9aa573209cc8065dce989a195)
2025-11-23 OpenSIPS <github@opensips.org>
* [97385572b6] :
Rebuild documentation
2025-11-18 Razvan Crainea <razvan@opensips.org>
* [22b344a217] :
aaa_diameter: fix len for hexstring AVPs encoding
When provided from script, make sure we do not halve the length, as it
has already been done in the `hex2string` function
(cherry picked from commit 75860568435ea3a3221d61e3d5ef80ae8bcd30a7)
2025-11-18 Vlad Paiu <vladpaiu@opensips.org>
* [3056a45b5a] :
Reduce verbosity of libcurl and send errors to stderr
(cherry picked from commit f1ca60be4d7c4d6a9423cea3e0de5de1e3d97fac)
2025-11-16 OpenSIPS <github@opensips.org>
* [2daae27a22] :
Rebuild documentation
2025-11-14 andingv <74421031+andingv@users.noreply.github.com>
* [61cfe1f463] :
b2b_logic: fix column indexes for the update of b2b legs (#3758)
(cherry picked from commit 905c17a7320cfc1b2a962b88b1c2b7a5c62e90bb)
2025-11-12 Ovidiu Sas <osas@voipembedded.com>
* [1a5d91d89b] :
event_rabbitmq: complete code optimization (#3755)
- change signature for rmq_basic_server_publish()
- remove redundant rmq_basic_publish()
(cherry picked from commit ddfb39fc8e1776a0d58a5f6b98f353e444948e81)
2025-11-09 OpenSIPS <github@opensips.org>
* [21fdad2d4d] :
Rebuild documentation
2025-11-07 Ovidiu Sas <osas@voipembedded.com>
* [b73b4d4ad3] :
event_rabbitmq: optimize code and remove duplicate code (#3754)
* event_rabbitmq: fix amqp_set_sockfd() param
* event_rabbitmq: Use RMQ_DEFAULT_FRAMES instead of RMQ_DEFAULT_MAX
* event_rabbitmq: rework rmq_reconnect() signature
* event_rabbitmq: rework rmq_server_reconnect() signature
* event_rabbitmq: remove rmq_reconnect()
(cherry picked from commit feaa1d1defbad33de92c377a5c69c81afe57444b)
2025-11-05 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [69508b2356] :
[parser] restore the setting of via2, needed for stateless reply routing
Regresion from da7da69519b959e7395dad586ff50264b63ccd7f
(cherry picked from commit 26f2c7ee13e2a815869073b1c628312fdc297c3e)
2025-11-02 OpenSIPS <github@opensips.org>
* [ee555e316e] :
Rebuild documentation
2025-10-28 Razvan Crainea <razvan@opensips.org>
* [53004d2823] :
rtp_relay: fix overwriting peer's leg
(cherry picked from commit 12939ed24408627137a77a6a8d31d0d8b0b68457)
2025-10-28 Ovidiu Sas <osas@voipembedded.com>
* [f500c49e55] :
event_rabbitmq: restore event functionality (#3738)
* event_rabbitmq: restore event functionality
* event_rabbitmq: fix server reconnect
(cherry picked from commit 33843ab483e0dc765117bbc06702aa36cab025e3)
2025-10-28 Jupiter Tang <36952362@qq.com>
* [db90340446] :
Fix SIPREC crash issue (#3748)
(cherry picked from commit 33f99bf142d24297ebbfb2117d7e47fb2bea38b5)
2025-10-27 Peter Lemenkov <lemenkov@gmail.com>
* [e5834077f7] :
Fix curl type warnings: use long instead of int
Multiple warnings appear during compilation of modules using libcurl:
```
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='rest_client' -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 -c rest_methods.c -o rest_methods.o
rest_methods.c: In function ‘init_transfer’:
rest_methods.c:408:17: warning: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
408 | w_curl_easy_setopt(handle, CURLOPT_HTTP_VERSION, curl_http_version);
| ^
rest_methods.c:422:9: warning: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
422 | w_curl_easy_setopt(handle, CURLOPT_VERBOSE, 1);
| ^
rest_methods.c:424:9: warning: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
424 | w_curl_easy_setopt(handle, CURLOPT_FAILONERROR, 0);
| ^
rest_methods.c: In function ‘set_upload_opts’:
rest_methods.c:480:9: warning: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
480 | w_curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE, body->len);
| ^
rest_methods.c: In function ‘rest_sync_transfer’:
rest_methods.c:714:17: warning: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
714 | set_post_opts(sync_handle, ctype, body);
| ^
rest_methods.c: In function ‘start_async_http_req’:
rest_methods.c:847:17: warning: call to ‘Wcurl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument [-Wattribute-warning]
847 | set_post_opts(handle, req_ctype, req_body);
| ^
rest_methods.c:918:25: warning: call to ‘Wcurl_easy_getinfo_err_long’ declared with attribute warning: curl_easy_getinfo expects a pointer to long [-Wattribute-warning]
918 | curl_easy_getinfo(handle, CURLINFO_RESPONSE_CODE, &http_rc);
| ^
```
Let's ensure we pass a literals and variables with a proper type.
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
(cherry picked from commit 2a03d51f7452b78e603ffb42bb32c815e27c078a)
2025-10-26 OpenSIPS <github@opensips.org>
* [77a0a9b35c] :
Rebuild documentation
2025-10-24 Razvan Crainea <razvan@opensips.org>
* [6cd1ca3ed0] :
b2b_entities: fix crash while debugging client's dlg
Client's dlg is released when a 200 OK is received - thus, when printing
something after the request is out, if a 200 OK is received, the log
might no longer be available - this patch fixes this concurrency issue.
(cherry picked from commit ab7295aa532fdaccdaf17e88708fa2157ac5f5ce)
=========================== Release 3.6.2 ==============================
2025-10-22 Liviu Chircu <liviu@opensips.org>
* [b5bc11f5c1] :
Mitigate dprint() deadlocks with dbg allocators
Only concerns F_MALLOC_DBG, HP_MALLOC_DBG and F_PARALLEL_MALLOC_DBG
allocators, and reduces the chance of a self-deadlock in LIBC whenever
an OpenSIPS worker crashes inside any kind of dprint() statement.
Related to #3742
(cherry picked from commit 6c914e388be971fd4b7d341506a0856533e6e5b7)
Fix HP_MALLOC issue in prev commit
(cherry picked from commit 1377c59e1ad66cb859b33256efbb3fc28317fddd)
2025-10-20 Razvan Crainea <razvan@opensips.org>
* [1864bf3865] :
siprec: xml escape callid and group's name
Many thanks to @SteveAyre for reporting it!
Fixes #3723
2025-10-20 Razvan Crainea <razvan@opensips.org>
* [64cd8a4904] :
siprec: drop useless code
2025-10-12 OpenSIPS <github@opensips.org>
* [13bbf93234] :
Rebuild documentation
2025-10-09 Razvan Crainea <razvan@opensips.org>
* [69b7f06af3] :
tm: register context functions before initializing
Fixes bug introduced by 1bd9e8bb, where context initialization failed
because it was not registered after variables had been parsed. The
commit ensures that when the variables are initialized, the context
functions exist.
Many thanks to Nick Altmann for reporting it!
(cherry picked from commit 8bb39a2679b41551ec57b34efd9a4587a8daaf7f)
2025-10-09 Razvan Crainea <razvan@opensips.org>
* [5482145016] :
event_rabbitmq: fix exchange parsing
Many thanks to Ovidiu Sas (@ovidiusas) for brainstorimg
(cherry picked from commit 758667b68bf15c987ec2620e86813a53356937e0)
2025-10-09 Ovidiu Sas <osas@voipembedded.com>
* [ce7f51908f] :
event_rabbitmq: proper initialization for rabbitmq connection (#3725)
(cherry picked from commit 7d998c6e53fc68c47b7a4243404da2fbdae02e95)
2025-10-07 Liviu Chircu <liviu@opensips.org>
* [c46b9ed1a4] :
cachedb.h: Fix broken capability enum (since 41aea5fda)
Fixes #3728
(cherry picked from commit d1bb4267d04752c21b154ba13ff767efe85d8c69)
2025-10-07 Razvan Crainea <razvan@opensips.org>
* [536888338a] :
pvar: init buffers before initializing modules
(cherry picked from commit 1bd9e8bb20161326021ee0bfe8aeac5312c7b61f)
2025-10-05 OpenSIPS <github@opensips.org>
* [f18bf352ee] :
Rebuild documentation
2025-10-02 Liviu Chircu <liviu@opensips.org>
* [cb216ab825] :
SDP ops: Do not crash in failure_route (part 1)
For now, clear all SDP changes when cloning the SIP message into SHM.
This fixes issues when using $sdp variable and failure_route within the
same SIP message processing.
(cherry picked from commit 275237dcf47a31863598f34191aa1693256e1a14)
2025-09-30 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [cce9e39ee9] :
[presence] fix bogus array size for events to be clustered.
The badly allocated size could generate an overflow for the newly added events.
Credits got to @razvancrainea for spotting the issue
(cherry picked from commit c7f99eef734812809ecffb0b901e66ca96b5235b)
2025-09-28 OpenSIPS <github@opensips.org>
* [245f8f3150] :
Rebuild documentation
2025-09-24 Ken Rice <krice@sipnavigator.com>
* [d2b64f480f] :
Makefile tweaks to avoid $(shell ...) expansions from failing
Fixes #3717
(cherry picked from commit 9ce51e3744184a0d9fed42e175893bbe2ed8c2b5)
2025-09-23 Razvan Crainea <razvan@opensips.org>
* [0a5a3b870b] :
pike: guard from 0-length IPs crashes
(cherry picked from commit 69abc4f9fb80f8548f2bcc8b477685221abc7728)
2025-09-23 Razvan Crainea <razvan@opensips.org>
* [3790ab6b20] :
receive: restore static info about errored messages
(cherry picked from commit f62135500e2af26418051a1b198dbbf849e0a979)
2025-09-21 OpenSIPS <github@opensips.org>
* [b2e7204413] :
Rebuild documentation
2025-09-18 Bogdan-Andrei Iancu <bogdan@opensips.org>
* [b415545a58] :
[tm] fix crash on stats update when stats are disabled
Do proper testing on enabled/disabled status of the stats
Closes #3718
Reported by @juliansanter-konverto and @MrM0bi
2025-09-17 Liviu Chircu <liviu@opensips.org>
* [d44184d66d] :
stun: Fix regression in 'use_listeners_as_primary' feature
In commit 8e6000d5f0d8d, it was missed that FD_SET(fd_x...) calls are
idempotent, while reactor_add_reader(fd_x...) calls are not. So when you
perform them multiple times (which the 'use_listeners_as_primary'
feature MAY do), OpenSIPS startup would now ERROR and abort.
Many thanks to Bernard Buitenhuis for an accurate report and sponsoring
the fix!
(cherry picked from commit 561a15515fd1bfac942c34bdbb8d9ce3c0c3ea3a)
2025-09-16 Liviu Chircu <liviu@opensips.org>
* [3473a217cc] :
permissions: Small bugfix in DB schema
It seems bitmask values of 128 could not be stored in the table (e.g.
IPv6 addresses, not subnets), as TINYINT (char) can only support the
[-128, 127) interval.
As a fix, we silently bump the column to SMALLINT (2 bytes), solving the
issue but also not causing any breakage when pulling new packages
(e.g. no table version update, so we can backport this).
(cherry picked from commit a23ba7903f7c26bf5c095cd8df5af464e2e5ccb3)
2025-09-16 Liviu Chircu <liviu@opensips.org>
* [a2ec1d4cf4] :
permissions: Fix incorrect match of IPv4 addr against IPv6
matchnet()'s possible rcs were not fully handled (here, the -1 case).
Many thanks to Bernard Buitenhuis for reporting the issue.
(cherry picked from commit 8b1806ec667821eab25c0d79147a8b9cf5320074)
2025-09-14 OpenSIPS <github@opensips.org>
* [6d52b03aa5] :
Rebuild documentation
2025-09-12 Liviu Chircu <liviu@opensips.org>
* [4026717d1f] :
DB version check: Minor improvements
* improve error reporting when table is not present in 'version':
"invalid version 0 for table clusterer found, expected 4" (???)
vs.
"'clusterer' entry not found in version table, expected ver 4"
* add a way of checking if the table does not exist, programmatically
(cherry picked from commit 4b13a133001f61d0f9aba6981818dd103c2913b8)
2025-09-12 Razvan Crainea <razvan@opensips.org>
* [0091a0bc3a] :
siprec: make timeout handling more robust
Make sure we are not trying to access the RTP context that has been
destroyed along with the dialog moving in state 5.
(cherry picked from commit bbfa2b0c19a6e43c6118b60fd3bf05136bbefd70)
2025-09-12 Razvan Crainea <razvan@opensips.org>
* [fc8342956c] :
siprec: do not try to engage siprec if media not established
(cherry picked from commit c5fd8adfcc3172f74b2aa634f3f434f533dfa787)
2025-09-08 Liviu Chircu <liviu@opensips.org>
* [ce36f300e4] :
SDP ops: Fix edge-case with missing ending LF
OpenSIPS no longer throws an error on SDP bodies with missing
line-termination sequence on the very last line. According to SDP ABNF
specs, this is bad syntax, but we accept it and move on.
Moreover, assuming the SDP is dirty (at least one edit), the output SDP
($sdp) will always be normalized to include the ending LF sequence.
(cherry picked from commit 20b0ba813a64d7aac7ebe11553714bc5f5ecb875)
2025-09-07 OpenSIPS <github@opensips.org>
* [db00a9a8dc] :
Rebuild documentation
2025-09-05 Liviu Chircu <liviu@opensips.org>
* [3e69ce86cf] :
SDP ops: Add "\n" line-ending tests; Fix "$sdp = NULL;"
The "$sdp = NULL;" statement wasn't fully working as expected, as
subsequent operations would still pick up some left-over SDP data.
(cherry picked from commit 020ea0de75c6e6cac91175c43b87bc21e0eb3bb5)
2025-09-05 Razvan Crainea <razvan@opensips.org>
* [2aa0c6ebaa] :
dialog: avoid creating dialog multiple times if deleted
When an update command is received, the dialog is searched: before this
commit, if the dialog was not found, `dlg` was returned as `null`, and a
new dialog, **with the same coordinates** was created.
This commit makes sure that the dialog is no longer created if already
in deleted state, thus avoiding creating the dialog multiple times with
the same coordinates.
2025-09-02 Razvan Crainea <razvan@opensips.org>
* [acef7ca289] :
b2b_logic: avoid crash when copying sdp to deleted entity
(cherry picked from commit 380c06446e4fe715b72f7b9ff67f40293b20d0bd)
2025-09-02 Razvan Crainea <razvan@opensips.org>
* [633455129b] :
aaa_diameter: add support for time AVPs
(cherry picked from commit a1ef1d828a0ed57e359632fcb62109f8fa78d9cd)
2025-09-01 Razvan Crainea <razvan@opensips.org>
* [3ea6ec201a] :
python: fix Makefile lib name and includes
(cherry picked from commit 2702eade95567cd2e5e0bfb0827605bafa2747b2)
2025-08-31 OpenSIPS <github@opensips.org>
* [84cde6e7f3] :
Rebuild documentation
2025-08-28 Razvan Crainea <razvan@opensips.org>
* [53541e016b] :
b2b_sdp_demux: Fix leak in b2b server key creation
Many thanks to Nuno Ferreira from Five9 for spotting, reporting and
fixing this.
(cherry picked from commit cc11d0aaffe6e791264ca290b17f3810f560a178)
2025-08-26 Razvan Crainea <razvan@opensips.org>
* [407bc916e8] :
Avoid crashes in case variable are NULL
Completes #3690
(cherry picked from commit c25a8fff733d8b1755e649b6de03415313f117c6)
2025-08-26 Peter Lemenkov <lemenkov@gmail.com>
* [639222f7bd] :
Make GCC happy
GCC erroneously believes that `hdrs` may be used uninitialized. Let's
help him understand the situation better.
```
Compiling http2d.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='http2d' -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.0"' -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='"07da80880"' -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 -c http2d.c -o http2d.o
http2d.c: In function ‘h2_send_response’:
http2d.c:267:25: warning: ‘hdrs’ may be used uninitialized [-Wmaybe-uninitialized]
267 | for (it = hdrs->child; it; it = it->next, nh++, r->hdrs_len++) {
| ~~~^~~~~~~~~~~~~
http2d.c:138:16: note: ‘hdrs’ was declared here
138 | cJSON *hdrs, *it;
| ^~~~
```
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
(cherry picked from commit 19e2fac6f8f6064128f01b2a56ecbc3cc32b6408)
2025-08-26 Peter Lemenkov <lemenkov@gmail.com>
* [ebf9950972] :
Make GCC happy
GCC erroneously believes that `job_data` may be used uninitialized.
Let's help him understand the situation better.
```
Compiling kafka_producer.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='event_kafka' -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.0"' -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='"07da80880"' -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 -DWITH_GZFILEOP -c kafka_producer.c -o kafka_producer.o
kafka_producer.c: In function ‘kafka_report_status’:
kafka_producer.c:422:57: warning: ‘job_data’ may be used uninitialized [-Wmaybe-uninitialized]
422 | if (p->job->type == KAFKA_JOB_SCRIPT && job_data->report_rt)
| ~~~~~~~~^~~~~~~~~~~
kafka_producer.c:382:28: note: ‘job_data’ was declared here
382 | script_job_data_t *job_data;
| ^~~~~~~~
```
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
(cherry picked from commit 9472e648132e463d1e4c33c92d216c57808776b4)
2025-08-26 Peter Lemenkov <lemenkov@gmail.com>
* [4e1aafe71e] :
Possible use of unitialized variable
Variable `old_state` can be used w/o being initialized. This patch fixed
it.
```
Compiling sharing_tags.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='clusterer' -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.0"' -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='"07da80880"' -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 -c sharing_tags.c -o sharing_tags.o
sharing_tags.c: In function ‘shtag_activate’:
sharing_tags.c:746:49: warning: ‘old_state’ may be used uninitialized [-Wmaybe-uninitialized]
746 | if (ret==SHTAG_STATE_ACTIVE && old_state!=SHTAG_STATE_ACTIVE) {
sharing_tags.c:685:18: note: ‘old_state’ was declared here
685 | int ret, old_state;
| ^~~~~~~~~
```
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
(cherry picked from commit 1c31a680e3456e9afa12f7071f9ac92fbbb89b4c)
2025-08-26 Peter Lemenkov <lemenkov@gmail.com>
* [52c524ae5b] :
Possible free of unitialized variable
It is possible that we can jump to `error` where we free `nt_name` right
before initialization. So better to initialize it first.
```
Compiling app_opensips/avps.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='aaa_diameter' -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.0"' -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='"07da80880"' -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 -c app_opensips/avps.c -o app_opensips/avps.o
app_opensips/avps.c: In function ‘parse_attr_def’:
app_opensips/avps.c:732:9: warning: ‘nt_name’ may be used uninitialized [-Wmaybe-uninitialized]
732 | free(nt_name);
| ^~~~~~~~~~~~~
app_opensips/avps.c:564:22: note: ‘nt_name’ was declared here
564 | char *name, *nt_name, *newp, *p = line, *end = p + len;
| ^~~~~~~
```
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
(cherry picked from commit 233769bc12106c6478f4186547455fecdc9b2375)
2025-08-26 Bogdan Andrei IANCU <bogdan@opensips.org>
* [fe780a653d] :
Merge pull request #3693 from lemenkov/type_mismatch
Fix various function or variable type mismatch
(cherry picked from commit be32acabdff83d3899fafd2e33b707719f94365d)
2025-08-26 Peter Lemenkov <lemenkov@gmail.com>
* [728e7b5173] :
Replace distutils completely (#3697)
The package distutils was deprecated in Python 3.10 and removed in 3.12.
Let's switch to modern alternative. Also remove one extra shell call.
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
(cherry picked from commit 5a986df0d0e056bd35f17322c237fba73ed709fb)
2025-08-24 OpenSIPS <github@opensips.org>
* [d6e2fdc702] :
Rebuild documentation
2025-08-21 Razvan Crainea <razvan@opensips.org>
* [befdafef93] :
mem: allow using system allocator without debugging
(cherry picked from commit 7fcf09dbd2f4221a848527d27b6fca6f207f36b0)
2025-08-21 Razvan Crainea <razvan@opensips.org>
* [3bb1f889a4] :
transformations: re.subst may contain whitespaces
(cherry picked from commit 65fc660cea02497c1c5558985fb1ebd3a473d34c)
=========================== Release 3.6.1 ==============================
2025-08-20 Liviu Chircu <liviu@opensips.org>
* [4cc991eaf0] :
call_center: Check "cc_calls" against the "realtime" DB URL
Per documentation: "To be more specific, the only runtime table we have
so far is the "cc_calls" table."
(cherry picked from commit 69ad46c9f8e0931f965f39f65031510b0aedf0ea)
2025-08-18 Razvan Crainea <razvan@opensips.org>
* [d3ba9d24c6] :
rtpengine: reload servers under lock
This prevents a crash running the child_init in the same time with a reload
Many thanks go to ConnexCS for reporting and testing the fix!
(cherry picked from commit ab3ffa1d16c880e2daab9042330caac7cb271734)
2025-08-10 OpenSIPS <github@opensips.org>
* [269000ba01] :
Rebuild documentation
2025-08-06 Razvan Crainea <razvan@opensips.org>
* [fbde267694] :
rtp_relay: rework failed rtp_relay_update requests handling
(cherry picked from commit 9b8c8edda4f68306a6f0ddfb8fe288221983f85d)
2025-08-03 OpenSIPS <github@opensips.org>
* [a773753115] :
Rebuild documentation
2025-07-29 Razvan Crainea <razvan@opensips.org>
* [f1f875f0a5] :
proto_ipsec: fix documentation xml typo
(cherry picked from commit 9f3b78a1ab706a371e1ea80bdd1465b1723d9c9a)
2025-07-27 OpenSIPS <github@opensips.org>
* [d2eafb3290] :
Rebuild documentation
=========================== Release 3.6.0 ==============================
2025-07-23 Razvan Crainea <razvan@opensips.org>
* [808efb1810] :
db_unixodbc: explicit add $(LOCALBASE)/include/odbc
This fixes compile on FreeBSD.
Close #3689
(cherry picked from commit bebda2e5a6d6a73519f79271765146539b7add55)
2025-07-23 Razvan Crainea <razvan@opensips.org>
* [8c216ae5cc] :
rtp_relay: let tm manage ref counting for failed sessions
Close #3623
Close #3539
(cherry picked from commit 7bb7900d4a4a51920ef87b8b37805b38497ea069)
2025-07-23 Razvan Crainea <razvan@opensips.org>
* [5e301ccdf8] :
net: init all protos, but bind TCP only in main
(cherry picked from commit 0dad8231382063dfe12f72cb5e36277d10a26daf)
2025-07-22 Bogdan Andrei IANCU <bogdan@opensips.org>
* [7e008d9ac2] :
Merge pull request #3688 from vladpaiu/fix_async_lock_replies
run reply async resume callback under reply lock, as it might make changes to AVPs
(cherry picked from commit 64a18da003127f6fb60ed03620030d3af79c3f00)
2025-07-22 Andrej Solovjov <solovjov@kompaas.tech>
* [376954f407] :
registrar: increase MAX_FORCED_BINDING_LEN in save function
Sometimes the SIP Contact header field URI can be larger than 256 chars.