forked from OpenSIPS/opensips
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
10219 lines (6458 loc) · 300 KB
/
Copy pathChangeLog
File metadata and controls
10219 lines (6458 loc) · 300 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 2.1.5 ==============================
2016-10-19 Razvan Crainea <razvan at opensips dot org>
* [6baa6a8] :
Update ChangeLog for 2.1.5
2016-10-19 Razvan Crainea <razvan at opensips dot org>
* [3c832d8] :
Increase version to 2.1.5
2016-10-19 Razvan Crainea <razvan at opensips dot org>
* [1a24d1e] :
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>
* [127f223] :
fraud_detection: Fix docs for "show_fraud_stats"
(cherry picked from commit d25633505ceaf053bf96d78583f520e4f446d817)
2016-10-19 Liviu Chircu <liviu at opensips dot org>
* [da770cd] :
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>
* [f6bebb8] :
fraud_detection: Fix shm memory leak
(cherry picked from commit 4a0d22d95b34eed82c87b6b2f836b6d4789e4100)
2016-10-19 Razvan Crainea <razvan at opensips dot org>
* [09239e7] :
dns_cache: fix examples
Credits go to Pete Kelly for reporting it.
(cherry picked from commit 7cdd3ee99d6c46dcde238c8571f21c46e85e82b3)
2016-10-18 ionutrazvanionita <ionutionita at opensips dot org>
* [522a9e3] :
[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>
* [1dfeb25] :
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>
* [b57e49f] :
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.
(cherry picked from commit 944fdc1e02c0d4da00272f0c80ea2f9c0406b188)
2016-10-12 Liviu Chircu <liviu at opensips dot org>
* [a63259d] :
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>
* [cc1deff] :
Fix "use_children" to work with interface names
(cherry picked from commit c7da1af1642697269eb74865018d017f1a6ee664)
2016-10-07 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [6fe656e] :
Downgrade logs from NOTICE to DBG - part 2
(cherry picked from commit dd518ccdcdc02503ccdbead26f5fc44f2c405093)
2016-10-07 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [baba964] :
Downgrade logs from NOTICE to DBG
(cherry picked from commit 7b6d0d7d25ab2440d70fa98ca0bf3314c176dc43)
2016-10-05 Bogdan Andrei IANCU <bogdan at opensips dot org>
* [f42df78] :
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>
* [419aa31] :
[sipcapture] memset contact uri structure to 0
(cherry picked from commit ac66dc14bb736bb5afd70d923db7e7fa065462ff)
2016-10-03 Liviu Chircu <liviu at opensips dot org>
* [7f44695] :
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
(cherry picked from commit a9bdf7bf06e8b015581b3ed0701b0f0882ad670a)
2016-09-29 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [82fd3ae] :
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
2016-09-29 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [44b3ac0] :
Fix documentation for calculate_ha1 parameter
Reported by Aqs Younas on the mailing list.
(cherry picked from commit f10e57f0f7abf9bf899f6649603774898b562013)
2016-09-26 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [6858ad7] :
Extra logging to troubleshooting presence event handling
(cherry picked from commit d536c3d41b3738842e531448c53a82791dd5e9b7)
2016-09-20 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [681abc3] :
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>
* [f065651] :
Remove testing warning message
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [6a683c7] :
Fix cherry-pick error.
Place the tcp_start_listner() on the same IF branch as tcp_start_processes()
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [43793df] :
Merge previous cherry-pick from trunk
(cherry picked from commit 8aebdcbe801bbb4514c2a39a80a644ba1ff085c1)
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [a5fe375] :
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)
(cherry picked from commit 73710a7c00303407518392f70e0aa6806bf664c1)
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [3283f1c] :
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)
(cherry picked from commit e77626e45dd58c435c11a5067ac6feb913d0057e)
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [686af14] :
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)
(cherry picked from commit 3767f332caa341b55bc135d719c70e388a4ac865)
2016-09-19 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [a96e9a2] :
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>
* [c274d8d] :
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>
* [b6d2819] :
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-08-30 Razvan Crainea <razvan at opensips dot org>
* [9f423f9] :
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>
* [f0a9021] :
packaging/debian: use newer version for libmicrohttpd
(cherry picked from commit 84d38d617e605cf56e89e098e4b911de2ee2c874)
2016-08-30 Razvan Crainea <razvan at opensips dot org>
* [b41dde2] :
fix expresion - expression typo
(cherry picked from commit c2d0b38d53dac8c8975f2d40a3268b14829e53b2)
2016-08-30 Razvan Crainea <razvan at opensips dot org>
* [0f3d737] :
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-26 Razvan Crainea <razvan at opensips dot org>
* [1a37f0f] :
ws(s): make sure we cleanup the request in the con
Reported by Tito Cumpen
2016-08-25 Liviu Chircu <liviu at opensips dot org>
* [bfef6cd] :
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-17 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [8fcc77c] :
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().
2016-08-09 Liviu Chircu <liviu at opensips dot org>
* [f42c5bb] :
drouting: Fix docs
Thanks to Richard Robson for reporting
2016-08-05 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [353015d] :
Fix bug in evaluating the port spec in lb_count_call
(cherry picked from commit e7319c1c8eb5632da28a5c1971b6fa9f7495df89)
2016-08-02 Bogdan Andrei IANCU <bogdan at opensips dot org>
* [233e189] :
Merge pull request #937 from was4444/1.11
fix: pthread_mutex should be process-shared
(cherry picked from commit 97cd5c481bfd9dca4fff941cc86a497d35474704)
2016-07-22 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [0e1fcf9] :
Remove unnecessary test.
"res" cannot be null at that point
(cherry picked from commit 0b60681f0cc08ffd13fbac3dc5cbde17904ad177)
2016-07-22 Ozzyboshi <gun101 at email dot it>
* [a6c67bb] :
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-22 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [00e8109] :
Fix db_url setting - do not make it mandatory if no db is used
(cherry picked from commit 17beb2de8b5325e4363292bfbee9484809554f4a)
2016-07-20 Razvan Crainea <razvan at opensips dot org>
* [121e8bf] :
Update ChangeLog for 2.1.4
=========================== Release 2.1.4 ==============================
2016-07-20 Razvan Crainea <razvan at opensips dot org>
* [171a78c] :
Update version to 2.1.4
2016-07-18 Razvan Crainea <razvan at opensips dot org>
* [9c5fe8d] :
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>
* [a8c997d] :
rest_client: Fix incorrect trim operation
(cherry picked from commit d8bf10da34152612e7835a64cedbb7593b8fc57b)
2016-07-15 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [e0b237b] :
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>
* [49adcf5] :
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 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [6030e5f] :
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>
* [a51b18a] :
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>
* [f5a251a] :
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>
* [61e0ca2] :
[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>
* [a48af8e] :
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>
* [186c4c2] :
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>
* [d3e9b6a] :
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-04 Liviu Chircu <liviu at opensips dot org>
* [63e25f5] :
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>
* [e7f8d1b] :
permissions: fix get_source_group() return
In case a group is not found, return -1 instead of true
2016-06-27 ionutrazvanionita <ionutionita at opensips dot org>
* [e56b290] :
[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-27 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [618ff92] :
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.
(cherry picked from commit 8f548976389ee3968bf06f649b54d88db694f949)
2016-06-25 Liviu Chircu <liviu at opensips dot org>
* [055730a] :
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>
* [81da723] :
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-06-24 Razvan Crainea <razvan at opensips dot org>
* [6e0e811] :
Allow proto modules to populate its name
(cherry picked from commit 00d052c18bd663e24769b7198a24aefbcd1963dc)
2016-06-24 Razvan Crainea <razvan at opensips dot org>
* [daf692a] :
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 Razvan Crainea <razvan at opensips dot org>
* [d4c45ab] :
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 Razvan Crainea <razvan at opensips dot org>
* [d00f1f3] :
Update version from 2.1.2 to 2.1.3 for specs
2016-06-17 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [853998c] :
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.
(cherry picked from commit 968a8a807c102a6d53f2bc831cde74c79ee754a9)
2016-06-17 Razvan Crainea <razvan at opensips dot org>
* [01cf24e] :
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>
* [2edafc6] :
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>
* [5708cf5] :
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>
* [5c25300] :
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>
* [8ea0ab1] :
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>
* [5b76510] :
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-16 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [248c836] :
Fix potential 100 Trying duplicates.
Added the "auto_100trying" module parameter to allow the script writter to take control (from script level) over when the 100 Trying reply is to be sent back.
By default, the reply is automatically generated when the INVITE transaction is created.
Fixes #833
(cherry picked from commit b023c93a8c476e70b1550da4f46c91d6e2679442)
(cherry picked from commit 71b527446b00fc4e3886d8d02c7d03d313dbee05)
2016-06-09 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [58b2d8b] :
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-08 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [2ca9e1d] :
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-07 Vlad Paiu <vladpaiu at opensips dot org>
* [10bff83] :
Removed compilation warning
implicit declaration of function â"sched_yield" [-Wimplicit-function-declaration]
(cherry picked from commit 8ef8d79701357b7412555519e166481e699e9833)
2016-06-03 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [485bfad] :
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>
* [a5b1249] :
Removed unused "error" jump label
(cherry picked from commit 5819b0fa7033bf2a6daef824bc21dd4ba497ae1b)
2016-06-03 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [48c178b] :
Fix error handling in DB writes.
If inserting/updating a dlg record in DB fails, do not exit with error, but continue with the rest of the dialogs.
Credits for finding and reporting this go to Rik Broers @ Motto
(cherry picked from commit 0ca6cf035471fc010366e4d29ced5d6fd63199ab)
2016-06-03 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [f2ab0da] :
Proper handle the case of no usrloc domain registered.
Prevent get_next_udomain() crashing if there are no usrloc domains registered (reported by Qasim Akhan on users mailing list.
Do not enable the pinging support in nathelper if usrloc has no registered domains.
(cherry picked from commit 8f0c677be7dfd3fe6b17932173f14e049ae466a5)
2016-06-01 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [72f1711] :
Fix documentation on former b2bl_key_avp module param
(cherry picked from commit ca21c6d2871e01d093c69371ddcc204c5af0355a)
2016-05-31 Razvan Crainea <razvan at opensips dot org>
* [34abb00] :
httpd: properly treat select response
(cherry picked from commit b49d37494d77c81bdbf76406fc568f530cd66379)
2016-05-30 Razvan Crainea <razvan at opensips dot org>
* [1867198] :
Update ChangeLog for 2.1.3
=========================== Release 2.1.3 ==============================
2016-05-30 Razvan Crainea <razvan at opensips dot org>
* [bee0cee] :
Update version 2.1.3
2016-05-30 Liviu Chircu <liviu at opensips dot org>
* [3a5138b] :
Fix invalid memory access with async MySQL queries
Due to the way the libmysqlclient query result strings were managed,
they would be freed by the library before OpenSIPS would copy them
into the output AVPs.
This patch fixes the issue by adding a new DB API function which handles
the cleanup of async query results.
Reported by Ovidiu Sas
Addresses issue #873
(cherry picked from commit 177c60a0e13471a87d80f21504894b883038ffa4)
Conflicts:
db/db.h
modules/avpops/avpops_impl.c
modules/db_mysql/dbase.c
modules/db_mysql/dbase.h
modules/db_sqlite/db_sqlite.c
modules/db_virtual/db_virtual.c
modules/db_virtual/dbase.c
modules/db_virtual/dbase.h
modules/sipcapture/sipcapture.c
2016-05-30 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [d670270] :
Fixed interface matching in loose_route()
If port is missing in Route URI, do not assume default 5060, but consider the schema and protocol (they may require a different default port).
Ex: sip:10.0.0.5;transport=tls was previously handled as sip:10.0.0.5:5060;transport=tls, which is wrong as the default TLS port is 5061
Reported on mailing list by Ravitez Dondeti.
(cherry picked from commit 3593a5f5b2e012154b1c9a00e1645c67c5ece91c)
2016-05-30 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [82f8093] :
If POSIX sems are used, be sure to link against pthread lib
(cherry picked from commit f7de6406056cbae95ba9f7521d822d280afbe6a2)
2016-05-30 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [7bc985c] :
Fixed proper cleanup on failure of tcpconn_new()
The chances for going for error cases are very low, still let's do it in the proper way
(cherry picked from commit 57c163b1b7680d3cc01227dbca7676e532aa7539)
2016-05-30 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [f8a21e4] :
Fixed bogus test when using POSIX or PTHREAD locks.
Reported by Steve Woolley.
(this was fixed on 2.2 and trunk when debug support was added for locks).
2016-05-27 Vlad Paiu <vladpaiu at opensips dot org>
* [d3f56fd] :
Link the dialog cell into internally generated requests from the dialog module
Fixes #839
(cherry picked from commit 66937a2834d5680031f81c881719b43018fa06ad)
2016-05-27 Razvan Crainea <razvan at opensips dot org>
* [4c18d31] :
add license to rw_locking.h header
(cherry picked from commit e3a57ac953259a0254a07198aabc88eaac9da9c2)
2016-05-27 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [1a38656] :
Fixed missing MI reply on pua_publish.
Properly send an MI reply for the async pua_publish with Expires 0.
Many thanks to Damien Sandrs for invetigating and reporting.
Closing #657
(cherry picked from commit 60d01efe811ac7eeaa063032a309b1895c59e92f)
2016-05-26 Liviu Chircu <liviu at opensips dot org>
* [2b57eaf] :
Improve error reporting for unknown script vars
Fixes #574
(cherry picked from commit 97ace293dd4c7eb2fe8cd8fbee693455a5737861)
2016-05-26 Razvan Crainea <razvan at opensips dot org>
* [7697fba] :
dbtext: convert DBG to ERR for better debugging
(cherry picked from commit 0f08b26e40b31bb8af325ba62cfa32676c62ae86)
2016-05-26 Liviu Chircu <liviu at opensips dot org>
* [4ef316b] :
dialplan: Improve documentation
Added paragraphs regarding rule types along with explanations on
they way priorities and rule tie-breaking work.
(cherry picked from commit 46894f819d1d7d6092129b334e33956e89e5d4ea)
Conflicts:
modules/dialplan/doc/dialplan_admin.xml
2016-05-26 Razvan Crainea <razvan at opensips dot org>
* [8f46c2f] :
fix bin crash if no listener defined
When using usrloc and dialog replication, if no bin_listen is defined,
OpenSIPS crashes. This fix ensures that if there are any replication
destinations defined, the binary listener exists.
Thanks go to Stas Kobzar for reporting this
Closes #652
2016-05-26 Liviu Chircu <liviu at opensips dot org>
* [9c66491] :
dialplan: Fix a rule tie-breaking bug
When an input string would match both a "string" rule and a "regex"
rule, the priority based tie-breaking was incorrect (now favouring
the bigger priority instead - opposite to default module behavior).
Thanks to @paolodepa for suggesting this fix
Fixes issue #696
(cherry picked from commit cbdd79ab3f6d772c6ef1fb7afc44990e9cad294e)
2016-05-25 Razvan Crainea <razvan at opensips dot org>
* [a645657] :
call_center: obey lock_set interface
(cherry picked from commit 4a226ced3309a045b11f6e651bebd6b076faefa2)
2016-05-25 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [f663dd3] :
Fix warning in SYSTEM V locking functions
(cherry picked from commit 53b3f402a4d9fb0ff1ba30288d810d41d6b55b1b)
2016-05-25 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [a18183f] :
Fix bogus set locking functions.
It is used for SYSTEM V locking only, looks like a copy'n'paste error.
(cherry picked from commit 4bcdf4e6aee07ef965f6ae573b289f3fd082fdde)
2016-05-25 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [c6df63a] :
Proper support for USE_POSIX_SEM option in Makefile
(cherry picked from commit 5e40aaf9c3ed8ab4381d847f6a1f6a01a8113bf7)
2016-05-25 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [0c9c688] :
Fix bogus destroy of a RW lock.
(cherry picked from commit 83f394579a88a6a9185342cf5f92401ef5c18e5a)
2016-05-25 Bogdan-Andrei Iancu <bogdan at opensips dot org>
* [c0c9eaa] :
Obey USE_SYSV_SEM and USE_PTHREAD_MUTEX.
If USE_SYSV_SEM or USE_PTHREAD_MUTEX are defined via Makefile.conf, do you force autodetection (based on arch type) of the locking support.
(cherry picked from commit 39592dc9f25ecee982156e365d160642bdde48e8)
2016-05-25 Liviu Chircu <liviu at opensips dot org>
* [d1e0989] :
mi_xmlrpc_ng: Remove an incorrect free operation
Completes commit d047e109
(cherry picked from commit 99f039e37cd79621b2dcc2b5ec2decc9e7c39670)
Conflicts:
modules/mi_xmlrpc_ng/http_fnc.c
2016-05-25 Liviu Chircu <liviu at opensips dot org>
* [3e5fe64] :
mi_xmlrpc_ng: Fix a shared memory leak
(cherry picked from commit d047e1096e2f6624f776d9a031f92be3cc9a0a0d)
2016-05-24 Liviu Chircu <liviu at opensips dot org>
* [dfda90a] :
TCP alias lookup: Add matching by transport
Further improving commit 13970bb.
(cherry picked from commit ea699f0116a28cd03a0d1ff50da3fc6045ac3da5)
2016-05-24 Liviu Chircu <liviu at opensips dot org>
* [5937884] :
TCP connection lookup: Add matching by transport
The fact that all currently supported TCP-oriented protocols have different
standard ports is not an excuse for not including the transport into the
match condition (i.e. dest IP address + dest port + dest transport).
This may very well prevent issues with messages being sent out over the
wrong TCP connection in a number of scenarios where we employ TCP connection
reusage over both plain TCP and TLS with a Proxy that specifies the same port
in the topmost Via header when it establishes each of the two connections.
(cherry picked from commit 13970bb65253f1b35156466c6f514a4c520d8893)
Conflicts:
modules/proto_bin/proto_bin.c
modules/proto_hep/proto_hep.c
modules/proto_wss/proto_wss.c
modules/tls_mgm/tls_mgm.c
2016-05-24 Liviu Chircu <liviu at opensips dot org>
* [3a7f90e] :
Revert "Accept TCP aliases by default"
This reverts commit d62bc967b0d6784d2baced88b895da57f3f4ab9a.
Firstly, TCP connection reusage (RFC 5923) should only be employed between
TLS endpoints - only TLS allows the endpoints to authenticate each other
during connection setup, preventing unauthorized connection hijacking.
Secondly, aside from any security considerations, RFC 5923 must
not be employed fanatically (Proxy-Proxy, Edge-UA, UA-Proxy) on any TCP
connection (especially disregarding the ";alias" Via parameter!), but
rather only between adjacent SIP entities who can both initiate a
connection towards each other, and also support the RFC. In the real
world, we're basically only talking about the Proxy-Proxy usage case, as
any SIP UA scenario will most likely involve some form of NAT and a
Proxy that cannot open connections backwards, towards the UA. In these
cases, TCP connection reusage is _completely_ out of the question, as a
single UA might end up receiving all calls of all users behind their
public IP.
Thanks to Jonas Borjesson for reporting the problem in the first place.
(cherry picked from commit 715339fdd25bc74797e6f978d164eb0c4d5669ce)
2016-05-23 ionutrazvanionita <ionutionita at opensips dot org>
* [0735d51] :
[mmgeoip] allow chosing memory caching type