forked from OpenSIPS/opensips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
10972 lines (6406 loc) · 304 KB
/
ChangeLog
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 2.2.2 ==============================
2016-10-19 Razvan Crainea <razvan at opensips dot org>
* [9e406b2] :
Increase version to 2.2.2
2016-10-19 Razvan Crainea <razvan at opensips dot org>
* [f79d3b4] :
userblacklist: sync between reload and read
This commit fixes possible crash due to concurrency between the data
read while checking the blacklist and reload.
Reported by Michele Pinassi
Close #884
(cherry picked from commit edad7265c71d2259003e7500872e51c1a461ad9f)
2016-10-19 Liviu Chircu <liviu at opensips dot org>
* [ab2a67b] :
fraud_detection: Fix docs for "show_fraud_stats"
(cherry picked from commit d25633505ceaf053bf96d78583f520e4f446d817)
2016-10-19 Liviu Chircu <liviu at opensips dot org>
* [243aacb] :
fraud_detection: Fix "concurrent_calls" statistic
Ensure the "concurrent_calls" stat is properly decremented for
un-established dialogs as well (due to negative INVITE replies).
Thanks to @Freenex for the bug report
Closes #949
(cherry picked from commit 703ce9098f0f91ee3ffa6ae0254d77903037b32a)
2016-10-19 Liviu Chircu <liviu at opensips dot org>
* [bb9fd7c] :
fraud_detection: Fix shm memory leak
(cherry picked from commit 4a0d22d95b34eed82c87b6b2f836b6d4789e4100)
2016-10-19 Razvan Crainea <razvan at opensips dot org>
* [14f72c6] :
dns_cache: fix examples
Credits go to Pete Kelly for reporting it.
(cherry picked from commit 7cdd3ee99d6c46dcde238c8571f21c46e85e82b3)
2016-10-19 ionutrazvanionita <ionutionita at opensips dot org>
* [1c7e19d] :
Fix broken ldap async engine
Previous ldap async engine implementation was broken. Now the
module stores a pool of connections for each session which will
be used for executing async queries and one separate connection
that will be used for synchronous queries, in case the maximum number
of open connections allowed(max_async_connections module parameter)
is reached. The sync connection will also be used for synchronous
queries from other functions.
The connection pool is stored per process, so each worker
process will have its own pool and synchronous connection. For large
numbers of asynchronous ldap calls per second, having a higher value
for max_async_connections will result in better performance.
(cherry picked from commit 7d7dd9effd82275b0727d99d2d11ea00e016cad2)
2016-10-19 Razvan Crainea <razvan at opensips dot org>
* [1c5911e] :
Do not load a protocol module if there is no listener
(cherry picked from commit 3593690d5a7da57a00280743a6effbb443be0c33)
2016-10-18 ionutrazvanionita <ionutionita at opensips dot org>
* [757389d] :
[sst] fix using unallocated memory bus
* sst was freeing shm memory after freeing it in dialog callbacs;
* sst was using memory without checking if it was allocated;
(cherry picked from commit 33dc084dd553a20cc691b3ec38e17993ac5ae5b6)
2016-10-13 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [9ed154b] :
Fix CANCELLing of transactions not forwarded.
Due async operations, a transaction may be created and it may exist for a long time before any branch is created for it (via a t_relay). The current fix takes care and does proper handling on incoming CANCELs matching the transaction while it has no branch (no t_relay() on it).
Old behavior - the INVITE transaction was never getting a final reply
New brhavior - the INVITE transaction gets an internally generated 487.
(cherry picked from commit fb0d90ec75601304eed98168bb988ebdbf10c260)
2016-10-12 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [944fdc1] :
Fix consistency and use dialog_id.
Dialog_id is printed by dlg_list (along the h_label and h_id) as a simpler alternative to identify the dialog.
Also, the dlg_end_dlg accepts both h_label and h_id or a dialog_id.
This is needed as the DB exposes only the dialog_id, and the dialogs from DB cannot be correlated anymore with the MI commands. See #963
Closes #963.
2016-10-12 Liviu Chircu <liviu at opensips dot org>
* [bea4f4a] :
Fix a possible segmentation fault on startup
Do not generate a corefile on "listen = udp:eth0:bad_port" errors
(cherry picked from commit 2352d57e35c15dab34c046566e5a89cbc5d068aa)
2016-10-12 Liviu Chircu <liviu at opensips dot org>
* [de6dba0] :
Fix "use_children" to work with interface names
(cherry picked from commit c7da1af1642697269eb74865018d017f1a6ee664)
2016-10-12 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [b7ff6b3] :
Fix documentation errors
2016-10-12 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [34bbe68] :
Fix regression on is_registered() returning the contact ATTRibutes.
The function, upon success, must also return the attributes of the first found contact for the searched AOR.
Reported by Rik Broers ( @hydrosine ).
Closes #960
2016-10-11 Liviu Chircu <liviu at opensips dot org>
* [e31aee8] :
Improve parsing for "hep_udp" and "hep_tcp" literals
(cherry picked from commit add97f8726a83aa0c408cd7701ce28f9d1f7ff62)
2016-10-11 Liviu Chircu <liviu at opensips dot org>
* [f94b24d] :
proto_sctp: Fix startup bug caused by a typo
(cherry picked from commit e8d9a71a44fc4d9a83ee2f8690904993330f05ef)
2016-10-07 Liviu Chircu <liviu at opensips dot org>
* [3fde889] :
rest_client: Update documentation
(cherry picked from commit efe5dd76e15b9ef06b7cf113c2e3fb7ec1e19d75)
2016-10-07 Liviu Chircu <liviu at opensips dot org>
* [7cdab71] :
rest_client: Add "connect_poll_interval" module parameter
Allows complete control over how quickly we want to detect libcurl's completed
TCP handshakes, so the transfers can be started. A lower "connect_poll_interval"
will speed up the HTTP transfer, but will also increase CPU usage.
(cherry picked from commit f5abfb3dee649a14ae39ad74d7f04454f815748f)
Conflicts:
modules/rest_client/rest_methods.c
Includes fix-commit 3ba7be6692c6987f.
2016-10-07 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [db433bc] :
Downgrade logs from NOTICE to DBG - part 2
(cherry picked from commit dd518ccdcdc02503ccdbead26f5fc44f2c405093)
2016-10-07 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [7b6d0d7] :
Downgrade logs from NOTICE to DBG
2016-10-06 Daniel Fussia <daniell at inatel dot br>
* [8570c34] :
Changed from VAL_STR to VAL_STRING in case DB_STRING
2016-10-05 Bogdan Andrei IANCU <bogdan at opensips dot org>
* [dfdb2d8] :
Merge pull request #962 from tavyc/exec-flush
exec: Flush the pipe after writing the message
(cherry picked from commit bcf3118ec6b280d90f65a45747abd81c2fcfe44b)
2016-10-05 ionutrazvanionita <ionutionita at opensips dot org>
* [9a7aac3] :
[sipcapture] memset contact uri structure to 0
(cherry picked from commit ac66dc14bb736bb5afd70d923db7e7fa065462ff)
2016-10-04 rvlad-patrascu <rvlad.patrascu at gmail dot com>
* [70e1d6b] :
Use signed type for computing timer drift
(cherry picked from commit f8c11e17532db852901b7cc4a040b613d91ed5e3)
2016-10-03 Liviu Chircu <liviu at opensips dot org>
* [a9bdf7b] :
usrloc User-Agent filtering: Fix memory corruption
The "ua_re_check" macro added by commit e5cb9805bc is broken in several ways:
* unsafe read operation on shared memory
* unsafe write operation on shared memory
* incorrectly handled error case, without restoring the backup byte
This patch corrects the above issues by extending the user_agent buffer.
(cherry picked from commit 58a944cddbfbe7aab47a3e296d8aba5d36454a1e)
Includes fix commits:
- 03398fbf
- e16abb4b
2016-09-29 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [c8ee7d5] :
Fix computing the pinging partition in timer job.
Avoid using static variables in timer jobs as they may be run in different processes, leading to unexpected results.
Many thanks to Andrew ( @kertor on GITHUB) for spotting and reporting this.
Fixes #959
(cherry picked from commit 82fd3ae683b7fc108d47760f73cbdd80f2dd70af)
2016-09-29 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [f10e57f] :
Fix documentation for calculate_ha1 parameter
Reported by Aqs Younas on the mailing list.
2016-09-28 ionutrazvanionita <ionutionita at opensips dot org>
* [f22b884] :
[proto_hep] fix bug introduced in 7190a2d
Commit 7190a2d was freeing the extra chunks twice when
the message was processed as SIP. Now the original hep context
free function is not registered as a context free function, but
called manually each time all the hep processing is done. This
way we avoid the memory leaks that appeared when the message was
not a SIP message, and the chunks were not freed.
(cherry picked from commit 63b2a52c2c2d453ccf889cc5e74991a2c81aaccd)
2016-09-28 ionutrazvanionita <ionutionita at opensips dot org>
* [4198511] :
[proto_hep] fix extra chunks memory leak
Extra chunks (the ones that are not defined in the internal
hep structure) were not freed, causing a memory leak for each hep
packet that had such chunks.
(cherry picked from commit 7190a2d89f54998a88a2b0b208bba50c9bb4027d)
2016-09-28 ionutrazvanionita <ionutionita at opensips dot org>
* [4e1ef8b] :
[proto_hep] don't drop packets with port 0
This packets might be different than sip, internally generated
that might not necessarily be related to a connection.
(cherry picked from commit 7d2ab2bce0c5955b45cdbc88867e81c5e0d93908)
2016-09-28 ionutrazvanionita <ionutionita at opensips dot org>
* [3f26dc2] :
[proto_hep] convert to host byte order before allocating custom chunk
(cherry picked from commit 89f5ec299f2d9bcaa1a0f5933ab6f59638ee1aa6)
2016-09-26 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [9432241] :
Extra logging to troubleshooting presence event handling
(cherry picked from commit d536c3d41b3738842e531448c53a82791dd5e9b7)
2016-09-23 ionutrazvanionita <ionutionita at opensips dot org>
* [9a38079] :
[acc] fixed missed calls callback registration
If the missed calls callback was not registered the first time
do_accounting was called then it wouldn't have been registered
thereafter. A new internal flag was defined to know wheteher or
not the callback has been registered before the current
do_accounting call.
(cherry picked from commit 0592ab6db2f00b586d5f74fadd9f7f65cc00a7cf)
Conflicts:
modules/acc/acc_logic.c
modules/acc/acc_logic.h
2016-09-20 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [c26401a] :
Fix socket selection for outbound UDP.
Do not use the bind_address of the process when comes to send an UDP package (bind_address may be different from process to process, so the selection may give different results, depending on the processes sending the UDP).
If you have a sip_msg, try using received interface of the msg (if matches), otherwise use the first UDP interface.
(cherry picked from commit 7596eb99fceb68bd95653b76a388f8bc42fee5c6)
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [e921f57] :
Remove testing warning message
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [8aebdcb] :
Merge previous cherry-pick from trunk
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [73710a7] :
Fix async resume in the timer dedicated timer.
The timer dedicated timer may end up running script routes (like failure route), so it may trigger some async operations. So, the dedicated timer process must be async enabled.
(cherry picked from commit 91e87f18d48b9e66cd052e825ae1f2f3c061955f)
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [e77626e] :
Fix starting TCP processes.
Do not start TCP main if tcp is disabled - this was introduced with the previous commit, when we split the starting of TCP workers and TCP main (see c2e2a0f141d11a972705f1555d0e2a23ec3f01ed).
(cherry picked from commit 542a9c98844bffec96d7cc790c37ef842b43ee66)
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [3767f33] :
Fix the TCP forking sequence.
Keep the TCP-main the last forked process, to be sure it inherits all the communication sockets from all other OpenSIPS processes.
Credits go to Razvan for reporting.
Alternative fix for 9fd451fd684ed3c9133bcc0e896de8d28ad45208
(cherry picked from commit c2e2a0f141d11a972705f1555d0e2a23ec3f01ed)
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [7080dda] :
Fix building the FROM header in XMPP2SIP.
Reported by Igor Pavlov.
(cherry picked from commit bf9acc3a15f376f17a8d415a5d48789e19ce3dee)
2016-09-19 Razvan Crainea <razvan at opensips dot org>
* [8d4ae49] :
usrloc: fix race between update for different registers
In case there are two REGISTER messages with incremental CSEQ are
replicated in a different order, skip the processing, since this has
already been resolved by the master instance.
Thanks to Deniz Beskök for reporing this
Closes #956
(cherry picked from commit 26f6c1bacb33ddf0bcbd54ccffc65bee8754e01d)
2016-09-14 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [a60f28d] :
Fix potential starvation for the timer tasks.
Even if the timer tasks have priority in the asyns reactor (for being handled), if all the worker processes are already busy in handling some SIP tasks which takes too long, may lead into a starvation of the timer tasks.
For the moment we address this by creating a extra worker processes (similar to the SIP workers) which is dedicated to executing the timer tasks. Still, based on their availability and load, the SIP workers are able to consume timer tasks.
In the next steps, this issue will be better addressed by implementing the concepts of "preferred jobs" and "capacity reservation" for the processes in the pool.
Credits for helping with the investigation and testing go to Ramachandran, Agalya
(cherry picked from commit c40f2b057209b8078520abc95e5d1bf5e5a28db6)
2016-09-13 Di-Shi Sun <di-shi at transnexus dot com>
* [68ace2e] :
Updated to support SUBSCRIBE/NOTIFY CNAM and OSP Toolkit 4.12.0.
1. Added SUBSCRIBE/NOTIFY CNAM support.
2. Formatted sample configuration file.
3. Updated for OSP Toolkit 4.12.0
2016-09-07 ionutrazvanionita <ionutionita at opensips dot org>
* [a55ac46] :
[db_virtual] check if backend exports async function
(cherry picked from commit 4537a21ed3a4cbb1a3925e8d5a420d4400366a8d)
2016-08-30 Razvan Crainea <razvan at opensips dot org>
* [7261cf0] :
packaging/debian: move all current files in a common directory
(cherry picked from commit 03b4a7eae52f21b0676d0ac1a337e6a996c2de42)
2016-08-30 Razvan Crainea <razvan at opensips dot org>
* [57e94a2] :
packaging/debian: use newer version for libmicrohttpd
(cherry picked from commit 84d38d617e605cf56e89e098e4b911de2ee2c874)
2016-08-30 Razvan Crainea <razvan at opensips dot org>
* [dc732f2] :
fix expresion - expression typo
(cherry picked from commit c2d0b38d53dac8c8975f2d40a3268b14829e53b2)
2016-08-30 Razvan Crainea <razvan at opensips dot org>
* [098e448] :
debian packaging: remove non-existent dependency
replace dependency of db4.6-util to db-util (>= 4.6.19) for new Debian
versions
reported by Julián Moreno Patiño
(cherry picked from commit 6d7cf35658c22c8c65ddc3b6c54e9320c2198d5a)
2016-08-29 Răzvan Crainea <razvan at opensips dot org>
* [1ecb911] :
Merge pull request #944 from Deni90/master
Added support to fast_lock for mips and mips64el
(cherry picked from commit 65d86fd0c362f3081cc0341760c6ebd1b900abaa)
2016-08-29 ionutrazvanionita <ionutionita at opensips dot org>
* [fb761ed] :
[acc] Remove accidentally added file
2016-08-29 ionutrazvanionita <ionutionita at opensips dot org>
* [12c5864] :
fix bag pkg pointer used for storing accounting flags
This closes #906 (Many thanks to @gcuppers for support)
2016-08-26 Razvan Crainea <razvan at opensips dot org>
* [313b171] :
ws(s): make sure we cleanup the request in the con
Reported by Tito Cumpen
(cherry picked from commit 39e40f93fe5bc76c58c5b64f8b32b327b975f62e)
2016-08-25 Liviu Chircu <liviu at opensips dot org>
* [456fc2c] :
fraud_detection: Fix bad script retcode for check_fraud()
Thanks to Freenex on IRC for fixing and testing
(cherry picked from commit daf63bb229b810c21fee013c5ed01a00652fb850)
2016-08-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [d30f39a] :
Fix is_contact_registered() to accept less params.
The last 3 params are optional, so we can invoke the function without them.
2016-08-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [65d981b] :
Fix using is_registered() function with first param only.
Reported by neo_land1 on the #opensips IRC channel.
2016-08-17 ionutrazvanionita <ionutionita at opensips dot org>
* [373394b] :
[acc] fix missed call flag check macro
(cherry picked from commit 5b9006874ab0afd02d70a5317446220002c47449)
Conflicts:
modules/acc/acc_logic.c
2016-08-17 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [2f4d016] :
Do not delete any internal AVP if "C" flag is used.
When calling do_routing() with "C" flag (only check the prefix, without actually doing any routing), do not remove any AVP (in the beginning) as we do not add any (after prefix matching) -> no adding, so no deleting.
This allows you to safely call do_routing("C") while looping throuhg the GWs of another do_routing().
(cherry picked from commit 8fcc77cb87ba76e831466fb0a3da90eb556671d8)
2016-08-09 Liviu Chircu <liviu at opensips dot org>
* [0a60671] :
drouting: Fix docs
Thanks to Richard Robson for reporting
(cherry picked from commit 058991d7806c047e42d78ece45577f5dc2929634)
2016-08-05 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [e7319c1] :
Fix bug in evaluating the port spec in lb_count_call
2016-08-02 Bogdan Andrei IANCU <bogdan at opensips dot org>
* [2b79d96] :
Merge pull request #937 from was4444/1.11
fix: pthread_mutex should be process-shared
(cherry picked from commit 97cd5c481bfd9dca4fff941cc86a497d35474704)
2016-08-02 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [2e60179] :
Removes docs for old MI function
"profile_bin_status" was removed when dialog module was migrated to clusterer
Credits to Sebastien Couture (@sysreq0) for reporting
Closes #939.
2016-07-22 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [3fab95a] :
Remove unnecessary test.
"res" cannot be null at that point
(cherry picked from commit 0b60681f0cc08ffd13fbac3dc5cbde17904ad177)
2016-07-22 Ozzyboshi <gun101 at email dot it>
* [9568db8] :
Fixed memory leak on modules/drouting/drouting.c
This leak occures in function get_group_id() when do_routing is called without parameters in opensips.cfg.
In this case the dr_default_grp variable is not equal -1 and 'return dr_default_grp' is executed without freeing the res variable previously allocated for query execution.
(cherry picked from commit 65739943151f08aee18a7bc2125c7ac90ee84d00)
2016-07-20 Razvan Crainea <razvan at opensips dot org>
* [f090238] :
Update ChangeLog for 2.2.1
=========================== Release 2.2.1 ==============================
2016-07-20 Razvan Crainea <razvan at opensips dot org>
* [e626dd1] :
update version to 2.2.1
2016-07-18 Razvan Crainea <razvan at opensips dot org>
* [e99b2cc] :
permissions: allow any supported protocol
Before this commit, the protocol check was hardcoded in the module. This
commit allows to add in the permissions table any transport protocol
supported.
Thanks go to Kirill Galinurov for reporting this!
(cherry picked from commit 0eecff942dc3700e008a9941ac406a565325ef89)
2016-07-15 Liviu Chircu <liviu at opensips dot org>
* [97438ac] :
rest_client: Fix incorrect trim operation
(cherry picked from commit d8bf10da34152612e7835a64cedbb7593b8fc57b)
2016-07-15 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [9f79778] :
Fix building Via Branch in stateless mode
Instead of copying the branch value from a previous statefull Via header (which may lead to overflow as OpenSIPS has a maximum value for the built branch), we generate a new branch value based on the previous Via branch - in this way, we have full controll over the length of the resulting Branch and we also inherit the uniqueness of the branch value (from the prev Via hdr).
Reported by Gupta, Rahul and Elliott, Ray
(cherry picked from commit 482e643469b351d12418ff54c96beee7b27dca94)
2016-07-15 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [09ddd52] :
Fix advertised port and address per branch.
Before the advertised_port/address are preserved only in the UAS part of the transaction - that means it is only one value and it is from the setting done in Request Route; whatever later setting done in Failure Route or Branch Route are not preserved at transaction level (even if they are used on the spot, for sending out the INVITE).
So, when we have to build a local request (ACK or CANCEL), we do not remember which specific address/port were advertised for that particular UAC (branch).
Fixes #917.
(cherry picked from commit eb850a22f0af83bf75e75dfadbe1320e8b92784b)
2016-07-12 Razvan Crainea <razvan at opensips dot org>
* [b40035e] :
add debian packaging for proto_wss, proto_tls and tls_mgm
Reported by Rik Broers
Close #931
2016-07-12 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [59011d5] :
Fix populating blacklists.
When creating the blacklists, use the port and protocol of the destination too, otherwise the rules may conflict or be too wide to be used (like 2 destinations with same IP but different ports).
(cherry picked from commit 7fa9cee5037af26fd1c63b70710f2bc03e6a31f4)
2016-07-12 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [67f4e25] :
Fix populating blacklists.
When creating the blacklists, use the port and protocol of the destination too, otherwise the rules may conflict or be too wide to be used (like 2 destinations with same IP but different ports).
(cherry picked from commit 97f309c34c7333270a3f0f997868bdb9b94107f1)
2016-07-11 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [10c2016] :
Fix populating blacklists.
When creating the blacklists, use the port and protocol of the destination too, otherwise the rules may conflict or be too wide to be used (like 2 destinations with same IP but different ports).
(cherry picked from commit 0495faa7d96f92da13102480ca43cd1befd37ba0)
2016-07-11 ionutrazvanionita <ionutionita at opensips dot org>
* [04f54fc] :
[acc][bugfix] check if database loaded before using its handler
(cherry picked from commit 8dd10d85b408947576223e75a67228ed7c7abd91)
2016-07-08 Razvan Crainea <razvan at opensips dot org>
* [24274b5] :
dialog: advance to next cell in case of error
(cherry picked from commit 70db2cfcdb0c74e6437db2aa9663fd0a5000ecdd)
2016-07-07 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [eb02211] :
Fix error message when a route is not defined.
Print the name of the route too - the ID is irrelevant for the script writter.
(cherry picked from commit 409481818148d7951e1520c9dd4eb715c2bec7c6)
2016-07-05 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [a85f454] :
Fixed compiling on arm6 with fastlocks
Partial revert of 058e16 as we need some extra asm code for fast locking on arm6.
See #923
Closes #912
(cherry picked from commit a69c32877b99fbd6eef736eff58c9b6ed8228166)
2016-07-05 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [7c3afa2] :
Fix script varibles for providing port and proto (as part of SIP URI).
If the SIP URI does not have an explicit port or proto, determine the default port/proto in a SIP wise manner (rather than returning 5060 / UDP) (Ex: sip:example.com;transport=tls has default port 5061 and not 5060 ; or sips:example.com has default proto TLS and not UDP).
Affected variables are $dp, $rp, $op and $dP, $rP, $oP
(cherry picked from commit 6cc850e34dcd022f1ed354bd50d9a1809518fa1f)
2016-07-04 ionutrazvanionita <ionutionita at opensips dot org>
* [2ea5754] :
[db_sqlite] remove unnecessary file introduced in commit ccda718
(cherry picked from commit 450265ff4032e4d316d21fa6890946bed2866f87)
2016-07-04 ionutrazvanionita <ionutionita at opensips dot org>
* [ccda718] :
[db_sqlite] fix memory management bugs
* core free function was used to free starting with commit 980f15ec
which was not freeing the memory correctly(result rows were
allocated all at once, but in the current version they were freed
once at a time);
* check if memory is allocated to prevent core dumps;
(cherry picked from commit bb506d2563c2670094537e70cc35b85d4ce4cd80)
2016-07-04 ionutrazvanionita <ionutionita at opensips dot org>
* [5cbe3fa] :
fix core database engine bug introduced with commit 980f15ec
(cherry picked from commit db37c5c411b529acd0cfeee4dfbc7925db6c2901)
2016-07-04 Liviu Chircu <liviu at opensips dot org>
* [4da1a06] :
acc: Fix incorrect Request-URI handling
If the config script does not include any Request-URI altering logic
(e.g. no lookup() or $ru manipulation), the acc module would incorrectly fill
in a "msg->new_uri" field which should NOT be freed into the SIP request
structure, leading to the memory pool being corrupted upon transaction release.
Credits to Guillaume Lacroix for reporting
(cherry picked from commit 02cb9f048d0a5e1f988aa9ccae1691216ed16ee5)
2016-07-04 Razvan Crainea <razvan at opensips dot org>
* [57586d7] :
permissions: fix get_source_group() return
In case a group is not found, return -1 instead of true
2016-06-30 ionutrazvanionita <ionutionita at opensips dot org>
* [4482329] :
[sqlite] fix warning
(cherry picked from commit 0b4cbaa41c7f9beb9f2f2c72807781b148b9877a)
2016-06-30 ionutrazvanionita <ionutionita at opensips dot org>
* [db06d61] :
[db_sqlite] add explanation about implementation
(cherry picked from commit 3ab8237c481f1977d59613b356d03980e6dc2271)
2016-06-30 Jarrod Baumann <j at rrod dot org>
* [db80f6a] :
[db_sqlite] use DB_STRING type when the column value type is DB_STRING
(cherry picked from commit a2c799451f3466ccd5239ca3cba408153d8ff35a)
Conflicts:
modules/db_sqlite/row.c
2016-06-30 Ionut Ionita <ionutionita at opensips dot org>
* [308ff0d] :
Merge pull request #919 from Danfx/2.2
Fix memory leak: after sqlite prepare was deleted stmt compiled, free…
2016-06-29 Daniel Fussia <daniell at inatel dot br>
* [eea7194] :
Fix memory leak: after sqlite prepare was deleted stmt compiled, freed error message after sqlite exec, allocated rows was set to free and it also db_free_row was repaired.
2016-06-29 Liviu Chircu <liviu at opensips dot org>
* [d8c4b2a] :
module statistics: Properly update the "real_used" memory stat
(cherry picked from commit bc3404302d72f484206bfd3a620690f5c2bf6133)
2016-06-27 ionutrazvanionita <ionutionita at opensips dot org>
* [d835721] :
[siptrace][bugfix] fix bad macro in siptrace(trace local ip logic)
This commit closes #916
Thanks to @Tinet-AaronAn for reporting the issue
(cherry picked from commit 2a4f686d4997b814eeaa425dc23fe822cb8ef91a)
2016-06-25 Liviu Chircu <liviu at opensips dot org>
* [0c709f9] :
Fix compiler warning
Using gcc 4.8.4, we would get:
net/trans.c:43:2: warning: missing initializer for field ‘name’ of
‘struct proto_info’ [-Wmissing-field-initializers]
{ }, /* PROTO_NONE */
^
(cherry picked from commit 376579fa53abb6fc16de76a3070d082c9d958165)
2016-06-24 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [8f54897] :
Fix dialplan module when using db_text backend.
The db_text makes no difference between NULL or "empty string" values in DB -> both are internally translated as NULL . The dialplan module, in a very abusive way, forces "not null" (in DB schema and in the code for data validation) even for columns that are optional (like subst_exp, repl_exp, timerec and attrs). Besides being bogus (if a column is not to be used, you have to set it to empty string rather than let it NULL), it makes impossible the usage of db_text with dialplan.
This fix allows (DB and code) the mentioned DB columns to be also NULL.
The change is backward compatible, it should not break any existing usage of the dialplan module.
2016-06-24 Razvan Crainea <razvan at opensips dot org>
* [d0183af] :
Allow proto modules to populate its name
(cherry picked from commit 00d052c18bd663e24769b7198a24aefbcd1963dc)
2016-06-24 Razvan Crainea <razvan at opensips dot org>
* [cb8f5d7] :
proto: always populate default values for protocols name and port
This allows you to print the protocol you received, and its associated port
(cherry picked from commit 0ae5ba280618e076a7ba658d15db32b877b55442)
2016-06-23 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [055172e] :
Merge branch '2.2' of github.com:OpenSIPS/opensips into 2.2
2016-06-23 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [2fac489] :
Fix wrong number of columns when preloading via a DB backend without Fetch support.
2016-06-23 Razvan Crainea <razvan at opensips dot org>
* [bb8bd33] :
init: use the specified CFGFILE in debian init
In case the CFGFILE changes in the init script, opensips will still start with
the compiled file instead of the one configured
(cherry picked from commit 030efef84d240646ed8e99616b8a6eb64f7d17d2)
2016-06-17 ionutrazvanionita <ionutionita at opensips dot org>
* [c1aa55e] :
[sqlite][bugfix] free column names when freeing the result
(cherry picked from commit cf380773cec9f91ad08e343c03261154dabc36a5)
2016-06-17 Razvan Crainea <razvan at opensips dot org>
* [37c46b8] :
Update packaging to 2.2.0
2016-06-17 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [968a8a8] :
Fix proper testing of context content
If a STR is register to the context, a valid STR * will be always returned , so we need to test the content, not the pointer.
2016-06-17 Razvan Crainea <razvan at opensips dot org>
* [c6dddd0] :
rtpproxy: no need to update the len for IPv6
(cherry picked from commit 5cfd916ca41ed60c9997f95d05694c9083b743b1)
2016-06-17 davesidwell <davesidwell at users.noreply.github dot com>
* [fd3841d] :
Update rtpproxy.c
When moving stored parameters from Branch AVP to Dialog variable, make sure that the integer value "setid" is handled correctly so that it remains valid for the remainder of the dialog.
(cherry picked from commit e267e9eb83e2345ca716b897975c2fbfbb4e75ce)
2016-06-17 davesidwell <davesidwell at users.noreply.github dot com>
* [503f127] :
Update rtpproxy.c
When building I/O vector for command to rtpproxy in "force_rtp_proxy_body", after an IPv6 address is detected and the "6" option is added, increase the length component in the I/O vector so it is passed correctly.
(cherry picked from commit 4e73871adba3f48b67a9ebbf20a2d9c60b823be8)
2016-06-16 Andrey Vorobiev <andrey.vorobiev at mind dot com>
* [20aea65] :
Add support for SIP URIs without user part in 'avpops' module.
This module provides a set of avp_db_xxx functions which take pseudo
var and flag as first argument. Flag can be one of username, domain,
uri or uuid. Previosly avp_db_xxx functions used to return an error if
flag has been set to username, domain or uri and specifed pseudo var
did not contain username and host after parsing as SIP URI. This
behaviour seems to be strange because if flag is being set to
domain/username and sip URI contains domain/username we can still
load/store/delete this variable.
(cherry picked from commit 459f2e90ed277a0371a3325b27038213c5083e8c)
2016-06-16 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [04945d2] :
Fixed failure to enable NAT pinging.
Commit 8f0c677 introduces a bug in testing is usrloc domains are available, and if not, to disable the NAT pinging in nathelper. The test is wrong as it is done in mod_init, while registrar module registerd the usrloc domain via fixup function, after the mod_init section.
Reported by Nick Altmann
(cherry picked from commit f150fb75611a6e61eabc134f266064bd23f1c850)
2016-06-16 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [e690461] :
Fix memory corruption on $stat() vars
The $stat() var specs are kept in pkg, while the name (if stat not found) is kept in memeory. This means all the copies (form all procs) of the specs will point to a single shm block. It is not safet to free this block as you have no idea how many copies of the spec (from other processes) still refer the name.
Closes #902
(cherry picked from commit 4baead765179f6bfbc098b3e59791d7bbc4a8d42)
2016-06-15 ionutrazvanionita <ionutionita at opensips dot org>
* [a0cf37a] :
[acc][bugfix] enable acc flags refcount only after dlg callbacks called
(cherry picked from commit a9a8fba51da95d3244ab46e22b3ed6cd8d0bea9e)
2016-06-14 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [4357fe8] :
Fix docs on missing module dependency.
If replicate_contacts_to parameter is turned on, usrloc depends on the clusterer module.
Credits go to Sammy on mailing list.
(cherry picked from commit 735958d87fe73a823a83847bf0d3e822c60aa515)
2016-06-09 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [9512363] :
Fixed forcing FAST LOCKS for arm6.
Use FAST locking support for arm6 too.
For Linux, use POSIX as default locking support.
(cherry picked from commit 058e16f2a76df9be4e48fa6866b096502981d530)
2016-06-09 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [d090114] :
Fixed migration of Call Center tables
Reported by John Quick.
2016-06-08 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [28c1946] :
Fix evaluating the SIP port from a SIP URI.
Use the new function get_uri_port() to evaluate the port and proto, in a SIP wise manner, form a SIP URI. If port/proto are not explicitly set in the URI, consider the default port for the used transpor proto. If protocol misses, we assume the default protos according to the URI schema.
NOTE: it is completly bogus (and dangerous) to assue 5061 if SIPS schema is used as:
1) SIPS can use used with WSS, which actually has 443 port
2) TLS can pe required via transport param in a SIP schema URI too
(cherry picked from commit 4c54bcd8bf0426f899b82505e493c97ef5378c79)
2016-06-08 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [96cd9c5] :
Consider WSS also a SIPS protocol
Reported by Varghese Paul ( @varghesepaul )
Closing #899.
(cherry picked from commit 39e0debef3174fab9fd2445e57a265ff5394eb1c)
2016-06-07 ionutrazvanionita <ionutionita at opensips dot org>
* [b9171c5] :
[mi_xmlrpc_ng] fix fault incompatibilities with xmlrpc standard
(cherry picked from commit d57c2fd7b20cf85a897d36d23e47df440fb3321c)
2016-06-07 Vlad Paiu <vladpaiu at opensips dot org>
* [8ef8d79] :
Removed compilation warning
implicit declaration of function â"sched_yield" [-Wimplicit-function-declaration]
2016-06-03 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [0e1cea7] :
Removed wrong "NOT NULL" constraint over the contact DB fields
The code actually handles the case of NULL callee / caller contacts, so DB must allow NULL values.
2016-06-03 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [001c2a8] :
Removed unused "error" jump label