aboutsummaryrefslogtreecommitdiffstats
path: root/ChangeLog
blob: 944584713cb036a4677674be5392ca31b026b247 (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298
13299
13300
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082
17083
17084
17085
17086
17087
17088
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428
18429
18430
18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805
18806
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884
18885
18886
18887
18888
18889
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190
19191
19192
19193
19194
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310
19311
19312
19313
19314
19315
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362
19363
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453
19454
19455
19456
19457
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972
19973
19974
19975
19976
19977
19978
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157
20158
20159
20160
20161
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177
20178
20179
20180
20181
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395
20396
20397
20398
20399
20400
20401
20402
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416
20417
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427
20428
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476
20477
20478
20479
20480
20481
20482
20483
20484
20485
20486
20487
20488
20489
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662
20663
20664
20665
20666
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700
20701
20702
20703
20704
20705
20706
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719
20720
20721
20722
20723
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817
20818
20819
20820
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843
20844
20845
20846
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928
20929
20930
20931
20932
20933
20934
20935
20936
20937
20938
20939
20940
20941
20942
20943
20944
20945
20946
20947
20948
20949
20950
20951
20952
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051
21052
21053
21054
21055
21056
21057
21058
21059
21060
21061
21062
21063
21064
21065
21066
21067
21068
21069
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099
21100
21101
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122
21123
21124
21125
21126
21127
21128
21129
21130
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142
21143
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156
21157
21158
21159
21160
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411
21412
21413
21414
21415
21416
21417
21418
21419
21420
21421
21422
21423
21424
21425
21426
21427
21428
21429
21430
21431
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529
21530
21531
21532
21533
21534
21535
21536
21537
21538
21539
21540
21541
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563
21564
21565
21566
21567
21568
21569
21570
21571
21572
21573
21574
21575
21576
21577
21578
21579
21580
21581
21582
21583
21584
21585
21586
21587
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605
21606
21607
21608
21609
21610
21611
21612
21613
21614
21615
21616
21617
21618
21619
21620
21621
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636
21637
21638
21639
21640
21641
21642
21643
21644
21645
21646
21647
21648
21649
21650
21651
21652
21653
21654
21655
21656
21657
21658
21659
21660
21661
21662
21663
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765
21766
21767
21768
21769
21770
21771
21772
21773
21774
21775
21776
21777
21778
21779
21780
21781
21782
21783
21784
21785
21786
21787
21788
21789
21790
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808
21809
21810
21811
21812
21813
21814
21815
21816
21817
21818
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829
21830
21831
21832
21833
21834
21835
21836
21837
21838
21839
21840
21841
21842
21843
21844
21845
21846
21847
21848
21849
21850
21851
21852
21853
21854
21855
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866
21867
21868
21869
21870
21871
21872
21873
21874
21875
21876
21877
21878
21879
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896
21897
21898
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962
21963
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012
22013
22014
22015
22016
22017
22018
22019
22020
22021
22022
22023
22024
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311
22312
22313
22314
22315
22316
22317
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330
22331
22332
22333
22334
22335
22336
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374
22375
22376
22377
22378
22379
22380
22381
22382
22383
22384
22385
22386
22387
22388
22389
22390
22391
22392
22393
22394
22395
22396
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410
22411
22412
22413
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425
22426
22427
22428
22429
22430
22431
22432
22433
22434
22435
22436
22437
22438
22439
22440
22441
22442
22443
22444
22445
22446
22447
22448
22449
22450
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492
22493
22494
22495
22496
22497
22498
22499
22500
22501
22502
22503
22504
22505
22506
22507
22508
22509
22510
22511
22512
22513
22514
22515
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564
22565
22566
22567
22568
22569
22570
22571
22572
22573
22574
22575
22576
22577
22578
22579
22580
22581
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596
22597
22598
22599
22600
22601
22602
22603
22604
22605
22606
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682
22683
22684
22685
22686
22687
22688
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768
22769
22770
22771
22772
22773
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810
22811
22812
22813
22814
22815
22816
22817
22818
22819
22820
22821
22822
22823
22824
22825
22826
22827
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843
22844
22845
22846
22847
22848
22849
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866
22867
22868
22869
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911
22912
22913
22914
22915
22916
22917
22918
22919
22920
22921
22922
22923
22924
22925
22926
22927
22928
22929
22930
22931
22932
22933
22934
22935
22936
22937
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957
22958
22959
22960
22961
22962
22963
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098
23099
23100
23101
23102
23103
23104
23105
23106
23107
23108
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180
23181
23182
23183
23184
23185
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195
23196
23197
23198
23199
23200
23201
23202
23203
23204
23205
23206
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319
23320
23321
23322
23323
23324
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344
23345
23346
23347
23348
23349
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407
23408
23409
23410
23411
23412
23413
23414
23415
23416
23417
23418
23419
23420
23421
23422
23423
23424
23425
23426
23427
23428
23429
23430
23431
23432
23433
23434
23435
23436
23437
23438
23439
23440
23441
23442
23443
23444
23445
23446
23447
23448
23449
23450
23451
23452
23453
23454
23455
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469
23470
23471
23472
23473
23474
23475
23476
23477
23478
23479
23480
23481
23482
23483
23484
23485
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587
23588
23589
23590
23591
23592
23593
23594
23595
23596
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608
23609
23610
23611
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637
23638
23639
23640
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723
23724
23725
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775
23776
23777
23778
23779
23780
23781
23782
23783
23784
23785
23786
23787
23788
23789
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815
23816
23817
23818
23819
23820
23821
23822
23823
23824
23825
23826
23827
23828
23829
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861
23862
23863
23864
23865
23866
23867
23868
23869
23870
23871
23872
23873
23874
23875
23876
23877
23878
23879
23880
23881
23882
23883
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899
23900
23901
23902
23903
23904
23905
23906
23907
23908
23909
23910
23911
23912
23913
23914
23915
23916
23917
23918
23919
23920
23921
23922
23923
23924
23925
23926
23927
23928
23929
23930
23931
23932
23933
23934
23935
23936
23937
23938
23939
23940
23941
23942
23943
23944
23945
23946
23947
23948
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977
23978
23979
23980
23981
23982
23983
23984
23985
23986
23987
23988
23989
23990
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022
24023
24024
24025
24026
24027
24028
24029
24030
24031
24032
24033
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047
24048
24049
24050
24051
24052
24053
24054
24055
24056
24057
24058
24059
24060
24061
24062
24063
24064
24065
24066
24067
24068
24069
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079
24080
24081
24082
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094
24095
24096
24097
24098
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142
24143
24144
24145
24146
24147
24148
24149
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163
24164
24165
24166
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177
24178
24179
24180
24181
24182
24183
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218
24219
24220
24221
24222
24223
24224
24225
24226
24227
24228
24229
24230
24231
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380
24381
24382
24383
24384
24385
24386
24387
24388
24389
24390
24391
24392
24393
24394
24395
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432
24433
24434
24435
24436
24437
24438
24439
24440
24441
24442
24443
24444
24445
24446
24447
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
24484
24485
24486
24487
24488
24489
24490
24491
24492
24493
24494
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512
24513
24514
24515
24516
24517
24518
24519
24520
24521
24522
24523
24524
24525
24526
24527
24528
24529
24530
24531
24532
24533
24534
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551
24552
24553
24554
24555
24556
24557
24558
24559
24560
24561
24562
24563
24564
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616
24617
24618
24619
24620
24621
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633
24634
24635
24636
24637
24638
24639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666
24667
24668
24669
24670
24671
24672
24673
24674
24675
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685
24686
24687
24688
24689
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721
24722
24723
24724
24725
24726
24727
24728
24729
24730
24731
24732
24733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
24750
24751
24752
24753
24754
24755
24756
24757
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923
24924
24925
24926
24927
24928
24929
24930
24931
24932
24933
24934
24935
24936
24937
24938
24939
24940
24941
24942
24943
24944
24945
24946
24947
24948
24949
24950
24951
24952
24953
24954
24955
24956
24957
24958
24959
24960
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984
24985
24986
24987
24988
24989
24990
24991
24992
24993
24994
24995
24996
24997
24998
24999
25000
25001
25002
25003
25004
25005
25006
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018
25019
25020
25021
25022
25023
25024
25025
25026
25027
25028
25029
25030
25031
25032
25033
25034
25035
25036
25037
25038
25039
25040
25041
25042
25043
25044
25045
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057
25058
25059
25060
25061
25062
25063
25064
25065
25066
25067
25068
25069
25070
25071
25072
25073
25074
25075
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148
25149
25150
25151
25152
25153
25154
25155
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191
25192
25193
25194
25195
25196
25197
25198
25199
25200
25201
25202
25203
25204
25205
25206
25207
25208
25209
25210
25211
25212
25213
25214
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224
25225
25226
25227
25228
25229
25230
25231
25232
25233
25234
25235
25236
25237
25238
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249
25250
25251
25252
25253
25254
25255
25256
25257
25258
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274
25275
25276
25277
25278
25279
25280
25281
25282
25283
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298
25299
25300
25301
25302
25303
25304
25305
25306
25307
25308
25309
25310
25311
25312
25313
25314
25315
25316
25317
25318
25319
25320
25321
25322
25323
25324
25325
25326
25327
25328
25329
25330
25331
25332
25333
25334
25335
25336
25337
25338
25339
25340
25341
25342
25343
25344
25345
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356
25357
25358
25359
25360
25361
25362
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372
25373
25374
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455
25456
25457
25458
25459
25460
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481
25482
25483
25484
25485
25486
25487
25488
25489
25490
25491
25492
25493
25494
25495
25496
25497
25498
25499
25500
25501
25502
25503
25504
25505
25506
25507
25508
25509
25510
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530
25531
25532
25533
25534
25535
25536
25537
25538
25539
25540
25541
25542
25543
25544
25545
25546
25547
25548
25549
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561
25562
25563
25564
25565
25566
25567
25568
25569
25570
25571
25572
25573
25574
25575
25576
25577
25578
25579
25580
25581
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591
25592
25593
25594
25595
25596
25597
25598
25599
25600
25601
25602
25603
25604
25605
25606
25607
25608
25609
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626
25627
25628
25629
25630
25631
25632
25633
25634
25635
25636
25637
25638
25639
25640
25641
25642
25643
25644
25645
25646
25647
25648
25649
25650
25651
25652
25653
25654
25655
25656
25657
25658
25659
25660
25661
25662
25663
25664
25665
25666
25667
25668
25669
25670
25671
25672
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683
25684
25685
25686
25687
25688
25689
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701
25702
25703
25704
25705
25706
25707
25708
25709
25710
25711
25712
25713
25714
25715
25716
25717
25718
25719
25720
25721
25722
25723
25724
25725
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778
25779
25780
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790
25791
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851
25852
25853
25854
25855
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867
25868
25869
25870
25871
25872
25873
25874
25875
25876
25877
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912
25913
25914
25915
25916
25917
25918
25919
25920
25921
25922
25923
25924
25925
25926
25927
25928
25929
25930
25931
25932
25933
25934
25935
25936
25937
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977
25978
25979
25980
25981
25982
25983
25984
25985
25986
25987
25988
25989
25990
25991
25992
25993
25994
25995
25996
25997
25998
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025
26026
26027
26028
26029
26030
26031
26032
26033
26034
26035
26036
26037
26038
26039
26040
26041
26042
26043
26044
26045
26046
26047
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085
26086
26087
26088
26089
26090
26091
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107
26108
26109
26110
26111
26112
26113
26114
26115
26116
26117
26118
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
26149
26150
26151
26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202
26203
26204
26205
26206
26207
26208
26209
26210
26211
26212
26213
26214
26215
26216
26217
26218
26219
26220
26221
26222
26223
26224
26225
26226
26227
26228
26229
26230
26231
26232
26233
26234
26235
26236
26237
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255
26256
26257
26258
26259
26260
26261
26262
26263
26264
26265
26266
26267
26268
26269
26270
26271
26272
26273
26274
26275
26276
26277
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298
26299
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311
26312
26313
26314
26315
26316
26317
26318
26319
26320
26321
26322
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345
26346
26347
26348
26349
26350
26351
26352
26353
26354
26355
26356
26357
26358
26359
26360
26361
26362
26363
26364
26365
26366
26367
26368
26369
26370
26371
26372
26373
26374
26375
26376
26377
26378
26379
26380
26381
26382
26383
26384
26385
26386
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404
26405
26406
26407
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547
26548
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
26570
26571
26572
26573
26574
26575
26576
26577
26578
26579
26580
26581
26582
26583
26584
26585
26586
26587
26588
26589
26590
26591
26592
26593
26594
26595
26596
26597
26598
26599
26600
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637
26638
26639
26640
26641
26642
26643
26644
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656
26657
26658
26659
26660
26661
26662
26663
26664
26665
26666
26667
26668
26669
26670
26671
26672
26673
26674
26675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
26692
26693
26694
26695
26696
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706
26707
26708
26709
26710
26711
26712
26713
26714
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736
26737
26738
26739
26740
26741
26742
26743
26744
26745
26746
26747
26748
26749
26750
26751
26752
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763
26764
26765
26766
26767
26768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804
26805
26806
26807
26808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828
26829
26830
26831
26832
26833
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843
26844
26845
26846
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875
26876
26877
26878
26879
26880
26881
26882
26883
26884
26885
26886
26887
26888
26889
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951
26952
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966
26967
26968
26969
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981
26982
26983
26984
26985
26986
26987
26988
26989
26990
26991
26992
26993
26994
26995
26996
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028
27029
27030
27031
27032
27033
27034
27035
27036
27037
27038
27039
27040
27041
27042
27043
27044
27045
27046
27047
27048
27049
27050
27051
27052
27053
27054
27055
27056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087
27088
27089
27090
27091
27092
27093
27094
27095
27096
27097
27098
27099
27100
27101
27102
27103
27104
27105
27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27191
27192
27193
27194
27195
27196
27197
27198
27199
27200
27201
27202
27203
27204
27205
27206
27207
27208
27209
27210
27211
27212
27213
27214
27215
27216
27217
27218
27219
27220
27221
27222
27223
27224
27225
27226
27227
27228
27229
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278
27279
27280
27281
27282
27283
27284
27285
27286
27287
27288
27289
27290
27291
27292
27293
27294
27295
27296
27297
27298
27299
27300
27301
27302
27303
27304
27305
27306
27307
27308
27309
27310
27311
27312
27313
27314
27315
27316
27317
27318
27319
27320
27321
27322
27323
27324
27325
27326
27327
27328
27329
27330
27331
27332
27333
27334
27335
27336
27337
27338
27339
27340
27341
27342
27343
27344
27345
27346
27347
27348
27349
27350
27351
27352
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364
27365
27366
27367
27368
27369
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398
27399
27400
27401
27402
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414
27415
27416
27417
27418
27419
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429
27430
27431
27432
27433
27434
27435
27436
27437
27438
27439
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451
27452
27453
27454
27455
27456
27457
27458
27459
27460
27461
27462
27463
27464
27465
27466
27467
27468
27469
27470
27471
27472
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496
27497
27498
27499
27500
27501
27502
27503
27504
27505
27506
27507
27508
27509
27510
27511
27512
27513
27514
27515
27516
27517
27518
27519
27520
27521
27522
27523
27524
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535
27536
27537
27538
27539
27540
27541
27542
27543
27544
27545
27546
27547
27548
27549
27550
27551
27552
27553
27554
27555
27556
27557
27558
27559
27560
27561
27562
27563
27564
27565
27566
27567
27568
27569
27570
27571
27572
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586
27587
27588
27589
27590
27591
27592
27593
27594
27595
27596
27597
27598
27599
27600
27601
27602
27603
27604
27605
27606
27607
27608
27609
27610
27611
27612
27613
27614
27615
27616
27617
27618
27619
27620
27621
27622
27623
27624
27625
27626
27627
27628
27629
27630
27631
27632
27633
27634
27635
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645
27646
27647
27648
27649
27650
27651
27652
27653
27654
27655
27656
27657
27658
27659
27660
27661
27662
27663
27664
27665
27666
27667
27668
27669
27670
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688
27689
27690
27691
27692
27693
27694
27695
27696
27697
27698
27699
27700
27701
27702
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722
27723
27724
27725
27726
27727
27728
27729
27730
27731
27732
27733
27734
27735
27736
27737
27738
27739
27740
27741
27742
27743
27744
27745
27746
27747
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757
27758
27759
27760
27761
27762
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774
27775
27776
27777
27778
27779
27780
27781
27782
27783
27784
27785
27786
27787
27788
27789
27790
27791
27792
27793
27794
27795
27796
27797
27798
27799
27800
27801
27802
27803
27804
27805
27806
27807
27808
27809
27810
27811
27812
27813
27814
27815
27816
27817
2011-01-20  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.3-rc2 Released.

	------------------------------------------------------------------------
	r303907 | mnicholson | 2011-01-25 14:56:12 -0600 (Tue, 25 Jan 2011) | 2 
	lines

	Reimplemented fax session reservation to reverse the ABI breakage 
	introduced in r297486.
	------------------------------------------------------------------------

	------------------------------------------------------------------------
	r303106 | sruffell | 2011-01-20 13:56:35 -0600 (Thu, 20 Jan 2011) | 15
	lines

	main/features: Use POLLPRI when waiting for events on parked channels.

	This change resolves a regression in the 1.6.2 when converting from
	select to poll. The DAHDI timers use POLLPRI to indicate that the
	timer
	fired, but features was not waiting for that flag. The result was no
	audio for MOH when a call was parked and res_timing_dahdi was in use.

	This patch is slightly modified from the one on the mantis issue. It
	does
	not set an exception on the channel if the POLLPRI flag is set.

	(closes issue 0018262)
	Reported by: francesco_r
	Patches:
	      patch_park_moh-trunk-2.txt uploaded by cjacobsen (license 1029)
	            Tested by: francesco_r, rfrantik, one47
	------------------------------------------------------------------------

	------------------------------------------------------------------------
	r302785 | russell | 2011-01-19 16:35:15 -0600 (Wed, 19 Jan 2011) | 15
	lines

	Resolve a memory leak with the manager interface is disabled.

	The intent of this check as it stands in previous versions of Asterisk
	was to
	check if there are any active sessions.  If there were no sessions,
	then the
	function would return immediately and not bother with queueing up the
	manager
	event to be processed.  Since the conversion of storing sessions in an
	astobj2
	container, this check will always pass.  I changed it to go back to
	checking
	what was intended.

	The side effect of this was that if the AMI is disabled, the manager
	event
	queue is populated anyway, but the code that runs to clear out the
	queue
	never runs.  A producer with no consumer is a bad thing.

	Reported internally by kmorgan.

	------------------------------------------------------------------------

	------------------------------------------------------------------------
	r302837 | russell | 2011-01-19 17:56:48 -0600 (Wed, 19 Jan 2011) | 2
	lines

	Only check container count if it exists.

	------------------------------------------------------------------------

2011-01-17  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.3-rc1 Released.

2011-01-18 18:11 +0000 [r302174]  Richard Mudgett <rmudgett@digium.com>

	* /, main/features.c: Merged revisions 302173 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r302173 | rmudgett | 2011-01-18 12:07:15 -0600
	  (Tue, 18 Jan 2011) | 95 lines Merged revisions 302172 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r302172 | rmudgett | 2011-01-18 12:04:36 -0600 (Tue, 18 Jan 2011)
	  | 88 lines Issues with DTMF triggered attended transfers. Issue
	  #17999 1) A calls B. B answers. 2) B using DTMF dial *2 (code in
	  features.conf for attended transfer). 3) A hears MOH. B dial
	  number C 4) C ringing. A hears MOH. 5) B hangup. A still hears
	  MOH. C ringing. 6) A hangup. C still ringing until
	  "atxfernoanswertimeout" expires. For v1.4 C will ring forever
	  until C answers the dead line. (Issue #17096) Problem: When A and
	  B hangup, C is still ringing. Issue #18395 SIP call limit of B is
	  1 1. A call B, B answered 2. B *2(atxfer) call C 3. B hangup, C
	  ringing 4. Timeout waiting for C to answer 5. Recall to B fails
	  because B has reached its call limit. Because B reached its call
	  limit, it cannot do anything until the transfer it started
	  completes. Issue #17273 Same scenario as issue 18395 but party B
	  is an FXS port. Party B cannot do anything until the transfer it
	  started completes. If B goes back off hook before C answers, B
	  hears ringback instead of the expected dialtone. ********** Note
	  for the issue #17273 and #18395 fix: DTMF attended transfer works
	  within the channel bridge. Unfortunately, when either party A or
	  B in the channel bridge hangs up, that channel is not completely
	  hung up until the transfer completes. This is a real problem
	  depending upon the channel technology involved. For chan_dahdi,
	  the channel is crippled until the hangup is complete. Either the
	  channel is not useable (analog) or the protocol disconnect
	  messages are held up (PRI/BRI/SS7) and the media is not released.
	  For chan_sip, a call limit of one is going to block that endpoint
	  from any further calls until the hangup is complete. For party A
	  this is a minor problem. The party A channel will only be in this
	  condition while party B is dialing and when party B and C are
	  conferring. The conversation between party B and C is expected to
	  be a short one. Party B is either asking a question of party C or
	  announcing party A. Also party A does not have much incentive to
	  hangup at this point. For party B this can be a major problem
	  during a blonde transfer. (A blonde transfer is our term for an
	  attended transfer that is converted into a blind transfer. :))
	  Party B could be the operator. When party B hangs up, he assumes
	  that he is out of the original call entirely. The party B channel
	  will be in this condition while party C is ringing, while
	  attempting to recall party B, and while waiting between call
	  attempts. WARNING: The ATXFER_NULL_TECH conditional is a hack to
	  fix the problem. It will replace the party B channel technology
	  with a NULL channel driver to complete hanging up the party B
	  channel technology. The consequences of this code is that the 'h'
	  extension will not be able to access any channel technology
	  specific information like SIP statistics for the call.
	  ATXFER_NULL_TECH is not defined by default. ********** (closes
	  issue #17999) Reported by: iskatel Tested by: rmudgett JIRA
	  SWP-2246 (closes issue #17096) Reported by: gelo Tested by:
	  rmudgett JIRA SWP-1192 (closes issue #18395) Reported by:
	  shihchuan Tested by: rmudgett (closes issue #17273) Reported by:
	  grecco Tested by: rmudgett Review:
	  https://reviewboard.asterisk.org/r/1047/ ........
	  ................

2011-01-17 15:04 +0000 [r302005]  Terry Wilson <twilson@digium.com>

	* configs/sip.conf.sample: Document "encryption" option in
	  sip.conf.sample

2011-01-14 21:09 +0000 [r301946]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Deadlock between dahdi_request() and
	  pri_dchannel() processing an incomming call. The
	  sig_pri_new_ast_channel() is called with the channel private lock
	  held when pri_dchannel() calls it and no channel private lock
	  held when dahdi_request() calls it. The use of pri_grab() in
	  sig_pri_new_ast_channel() could leave the channel private lock
	  held when it returns if the lock was not held before calling it.
	  Make sig_pri_new_ast_channel() just lock the PRI span lock
	  instead of using pri_grab(). It is safe to do this because
	  dahdi_request() does not have the channel private lock and the
	  deadlock potential with the PRI span lock is only between
	  pri_dchannel() and other threads.

2011-01-14 20:11 +0000 [r301851]  Brett Bryant <bbryant@digium.com>

	* channels/chan_multicast_rtp.c: Changing previous revisions
	  301845/301847 to use ast_sockaddr_setnull() instead of setting
	  the field manually to avoid uninitialized data. Review:
	  https://reviewboard.asterisk.org/r/1076/

2011-01-14 20:05 +0000 [r301849]  Andrew Latham <lathama@gmail.com>

	* funcs/func_base64.c, /, funcs/func_aes.c: Add relationships to
	  function documentation. Fix amatuer type mistake

2011-01-14 19:35 +0000 [r301845]  Brett Bryant <bbryant@digium.com>

	* channels/chan_multicast_rtp.c: Fix for a consistent MulticastRTP
	  channel driver crash due to use of unitilized data. (closes issue
	  #18290) (closes issue #18602) Reported by: voipgate, wybecom
	  Review: https://reviewboard.asterisk.org/r/1076/

2011-01-14 19:35 +0000 [r301844]  Andrew Latham <lathama@gmail.com>

	* funcs/func_base64.c, /, funcs/func_aes.c: Add relationships to
	  function documentation.

2011-01-14 17:32 +0000 [r301790]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_sip.c: Resolve deadlock involving REFER. Two fixes:
	  1) One must always have the private unlocked before calling
	  pbx_builtin_setvar_helper to not invalidate locking order since
	  it locks the channel. 2) Unlock the channel before calling
	  pbx_find_extension, which starts and stops autoservice during the
	  lookup. The problem scenario as illustrated by the reporter:
	  Thread: do_monitor ----------------------- handle_request_do
	  handle_incoming handle_request_refer ast_parking_ext_valid
	  pbx_find_extension ast_autoservice_stop while (chan_list_state ==
	  as_chan_list_state) { usleep(1000); } Thread: autoservice_run
	  ----------------------- autoservice_run chan = ast_waitfor_n
	  ast_waitfor_nandfds ast_waitfor_nandfds_classic / simple /
	  complex (depending on your system) ast_channel_lock(c[x]);
	  handle_request_do and schedule_process_request_queue locks the
	  owner if it exists. The autoservice thread is waiting for the
	  channel lock, which wasn't ever released since the do_monitor
	  thread was waiting for autoservice operations to complete. Solved
	  by unlocking the channel but keeping a reference to guarantee
	  safety. (closes issue #18403) Reported by: jthurman Patches:
	  20110103-blind_deadlock.diff uploaded by jthurman (license 614)
	  issue18403.patch uploaded by jpeeler (license 325) Tested by:
	  jthurman

2011-01-13 17:01 +0000 [r301731]  Leif Madsen <lmadsen@digium.com>

	* configs/phoneprov.conf.sample, /: Merged revisions 301730 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r301730 | lmadsen | 2011-01-13 11:01:11 -0600 (Thu, 13 Jan 2011)
	  | 7 lines Add static entry for split Polycom 332 firmware.
	  (closes issue #18607) Reported by: cjacobsen Patches:
	  polycom_331.diff uploaded by cjacobsen (license 1029) Tested by:
	  lathama ........

2011-01-12 21:19 +0000 [r301683]  Terry Wilson <twilson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 301682 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r301682 | twilson | 2011-01-12 15:05:02 -0600 (Wed, 12 Jan 2011)
	  | 9 lines Don't reject all SUBSCRIBE auth requests When merging
	  another SUBSCRIBE fix from 1.4, some braces were put in the wrong
	  place. This patch fixes that. (closes issue #18597) Reported by:
	  thsgmbh ........

2011-01-12 18:51 +0000 [r301595]  Matthew Nicholson <mnicholson@digium.com>

	* main/manager.c, /: Merged revisions 301594 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r301594 | mnicholson | 2011-01-12 12:50:31 -0600
	  (Wed, 12 Jan 2011) | 15 lines Removed a usleep(1) that shouldn't
	  be necessary in session_do, and removed the ms_t member from the
	  mansession_session structure. Merged revisions 301591 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r301591 | mnicholson | 2011-01-12 12:39:03 -0600 (Wed, 12 Jan
	  2011) | 5 lines Don't store the thread id for the manager session
	  in the structure we pass to the thread for the manager session.
	  ABE-2543 ........ ................

2011-01-12 18:12 +0000 [r301504]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /: Merged revisions 301503 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r301503 | jpeeler | 2011-01-12 12:11:49 -0600
	  (Wed, 12 Jan 2011) | 19 lines Merged revisions 301502 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r301502 | jpeeler | 2011-01-12 12:10:42 -0600 (Wed, 12 Jan 2011)
	  | 12 lines Fix CPU spike when pressing DTMF after agent login.
	  The problem here is that DTMF was being continuously deferred and
	  requeued since ast_safe_sleep is called in a loop. There are
	  serveral other places in the code that sleeps and then loops in a
	  similar fashion. Because of this fact I opted to not defer DTMF
	  any more, which will not affect the original fix:
	  https://reviewboard.asterisk.org/r/674 (closes issue #18130)
	  Reported by: rgj ........ ................

2011-01-12 16:05 +0000 [r301446]  David Vossel <dvossel@digium.com>

	* main/file.c: Removal of unused variables so Asterisk will
	  compile.

2011-01-12 15:57 +0000 [r301444]  Stefan Schmidt <sst@sil.at>

	* Makefile: fix wrong text of rerun menuselect after user interface
	  warning the warning, if no user interface for menuselect warning
	  was found is not right. you have to rerun configure before make
	  menuselect after installing a proper user interface. (closes
	  issue #18594) Reported by: Dovid

2011-01-12 00:26 +0000 [r301402]  Tilghman Lesher <tilghman@meg.abyt.es>

	* main/file.c: Call execl() directly for a better solution for
	  paths with spaces. (closes issue #18600) Reported by: ebroad
	  Patches: 20110111__issue18600__2.diff.txt uploaded by tilghman
	  (license 14)

2011-01-11 19:16 +0000 [r301311]  Paul Belanger <pabelanger@digium.com>

	* configs/extensions.conf.sample, /: Merged revisions 301310 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r301310 | pabelanger | 2011-01-11 14:14:31 -0500 (Tue, 11 Jan
	  2011) | 2 lines Fix a logic issue when passing context ARG
	  ........

2011-01-11 18:51 +0000 [r301308]  Matthew Nicholson <mnicholson@digium.com>

	* main/utils.c, /: Merged revisions 301307 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r301307 | mnicholson | 2011-01-11 12:42:05 -0600
	  (Tue, 11 Jan 2011) | 11 lines Merged revisions 301305 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r301305 | mnicholson | 2011-01-11 12:34:40 -0600 (Tue, 11 Jan
	  2011) | 4 lines Prevent buffer overflows in ast_uri_encode()
	  ABE-2705 ........ ................

2011-01-10 22:39 +0000 [r301263]  Tilghman Lesher <tilghman@meg.abyt.es>

	* main/strcompat.c: Little endian machines were not converted
	  properly. (closes issue #18583) Reported by: jcovert Patches:
	  20110110__issue18583.diff.txt uploaded by tilghman (license 14)
	  Tested by: jcovert

2011-01-09 21:40 +0000 [r301177-301221]  Paul Belanger <pabelanger@digium.com>

	* autoconf/ast_ext_lib.m4, /, configure, configure.ac: Merged
	  revisions 301220 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r301220 | pabelanger | 2011-01-09 16:38:24 -0500 (Sun, 09 Jan
	  2011) | 14 lines SOUND_CACHE_DIR now defaults to empty Sounds
	  files included in the Asterisk tarball were being ignored and
	  re-downloaded. Users wanting to cache the files can still
	  override the setting using the --with-sounds-cache option.
	  (closes issue #18589) Reported by: pabelanger Patches:
	  issue18589.patch uploaded by pabelanger (license 224) Tested by:
	  pabelanger Review: https://reviewboard.asterisk.org/r/1074/
	  ........

	* apps/app_verbose.c, /: Merged revisions 301176 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r301176 | pabelanger | 2011-01-08 16:58:24 -0500 (Sat, 08 Jan
	  2011) | 7 lines Indicate log level argument for Log() is not
	  optional (closes issue #18586) Reported by: kshumard Patches:
	  app_verbose.c.patch uploaded by kshumard (license 92) ........

2011-01-08 01:11 +0000 [r301134]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: The DTMF attended transfer feature cannot
	  callback a chan_dahdi BRI phone. The DAHDI ISDN channel name is
	  not dialable. Make a channel name like DAHDI/i3/400-12 dialable
	  when the sequence number is stripped off of the name.

2011-01-07 20:53 +0000 [r301090]  Jason Parker <jparker@digium.com>

	* /, apps/app_meetme.c: Merged revisions 301089 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r301089 | qwell | 2011-01-07 14:52:00 -0600 (Fri, 07 Jan 2011) |
	  8 lines Initialize useropts/adminopts in case there is no column
	  in the realtime DB. (closes issue #18182) Reported by: dimas
	  Patches: v1-18182.patch uploaded by dimas (license 88) Tested by:
	  dimas ........

2011-01-07 19:58 +0000 [r300955-301047]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 301046 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r301046 | jpeeler | 2011-01-07 13:57:42 -0600 (Fri, 07
	  Jan 2011) | 8 lines Fix regression causing forwarding voicemails
	  to not work with file storage. I had actually already fixed this
	  in 295200 in 1.4 and thought it wasn't missing in the other
	  branches for some reason. (closes issue #18358) Reported by:
	  cabal95 ........

	* apps/app_voicemail.c, /: Merged revisions 300951 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r300951 | jpeeler | 2011-01-07 11:23:37 -0600
	  (Fri, 07 Jan 2011) | 14 lines Merged revisions 300918 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r300918 | jpeeler | 2011-01-07 11:13:21 -0600 (Fri, 07 Jan 2011)
	  | 7 lines Ensure good bye prompt in voicemail is played at the
	  correct time. Specifically in the case of timing out but not
	  leaving voicemail nothing should be heard. And when leaving
	  voicemail it should be heard. ABE-2647 ........ ................

2011-01-06 06:28 +0000 [r300798]  Tilghman Lesher <tilghman@meg.abyt.es>

	* addons/res_config_mysql.c: Don't destroy handle not created by
	  use (because the caller will). (closes issue #18526) Reported by:
	  makoto Patches: res-config-mysql-include.patch uploaded by makoto
	  (license 38) Tested by: makoto

2011-01-05 20:54 +0000 [r300714]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Merged revision 300711 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  .......... r300711 | rmudgett | 2011-01-05 13:43:55 -0600 (Wed,
	  05 Jan 2011) | 14 lines A call retrieved from hold may wind up
	  with no audio. If the retrieved call is natively bridged then the
	  call may not have any audio path. The following warning message
	  is given: "Failed to add <dfd> to conference <chan>/<chan>:
	  Invalid argument". * Open the media on a B channel when
	  pri_fixup_principle() moves the call from a no_b_channel channel
	  to a real channel. * Added lock protection while
	  pri_fixup_principle() moves a call from one private structure to
	  another. * Made some pri_fixup_principle() messages more
	  meaningful. ..........

2011-01-05 18:56 +0000 [r300623]  Tilghman Lesher <tilghman@meg.abyt.es>

	* res/res_odbc.c, /: Merged revisions 300622 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r300622 | tilghman | 2011-01-05 12:54:58 -0600
	  (Wed, 05 Jan 2011) | 17 lines Merged revisions 300621 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r300621 | tilghman | 2011-01-05 12:47:46 -0600 (Wed, 05 Jan 2011)
	  | 10 lines Use the sanity check in place of the
	  disconnect/connect cycle. The disconnect/connect cycle has the
	  potential to cause random crashes. (closes issue #18243) Reported
	  by: ks3 Patches: res_odbc.patch uploaded by ks3 (license 1147)
	  Tested by: ks3 ........ ................

2011-01-05 16:29 +0000 [r300575]  Paul Belanger <pabelanger@digium.com>

	* /, cdr/cdr_sqlite.c: Merged revisions 300574 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r300574 | pabelanger | 2011-01-05 11:28:07 -0500 (Wed, 05 Jan
	  2011) | 6 lines Change deprecated message to LOG_WARNING Also
	  removed latter part of message Discussed on #asterisk-dev
	  ........

2011-01-04 21:53 +0000 [r300433-300521]  Leif Madsen <lmadsen@digium.com>

	* channels/chan_iax2.c, main/xmldoc.c, /, channels/chan_sip.c,
	  channels/chan_agent.c: Merged revisions 300520 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r300520 | lmadsen | 2011-01-04 15:52:41 -0600 (Tue, 04 Jan 2011)
	  | 9 lines Fix backwards and broken XML documentation. (closes
	  issue #18547) Reported by: jcovert Patches: xmldoc.c.patch
	  uploaded by jcovert (license 551) chan_iax2.c.doc.patch uploaded
	  by jcovert (license 551) chan_sip.c.patch uploaded by jcovert
	  (license 551) chan_agent.c.patch uploaded by jcovert (license
	  551) ........

	* configs/users.conf.sample, /: Merged revisions 300431 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r300431 | lmadsen | 2011-01-04 15:00:29 -0600 (Tue, 04 Jan 2011)
	  | 7 lines Add some documentation to users.conf.sample. (closes
	  issue #18531) Reported by: lathama Patches:
	  users.conf.sample2.diff uploaded by lathama (license 1028) Tested
	  by: lathama ........

2011-01-04 21:00 +0000 [r300430]  Russell Bryant <russell@digium.com>

	* contrib/scripts/autosupport, /, contrib/scripts/autosupport.8:
	  Merged revisions 300429 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r300429 | russell | 2011-01-04 14:59:56 -0600
	  (Tue, 04 Jan 2011) | 11 lines Merged revisions 300428 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r300428 | russell | 2011-01-04 14:56:04 -0600 (Tue, 04 Jan 2011)
	  | 4 lines Update the autosupport script from Digium support.
	  (closes AST-395) ........ ................

2011-01-04 19:45 +0000 [r300384]  Leif Madsen <lmadsen@digium.com>

	* phoneprov/000000000000.cfg: Update STAT() to use the comma
	  instead of the pipe. (closes issue #18503) Reported by: cjacobsen
	  Patches: old_separator.diff uploaded by cjacobsen (license 1029)
	  Tested by: lathama

2011-01-04 17:54 +0000 [r300301]  Terry Wilson <twilson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 300298 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r300298 | twilson | 2011-01-04 11:37:26 -0600
	  (Tue, 04 Jan 2011) | 22 lines Merged revisions 300216 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r300216 | twilson | 2011-01-04 11:11:48 -0600 (Tue, 04 Jan 2011)
	  | 15 lines Don't authenticate SUBSCRIBE re-transmissions This
	  only skips authentication on retransmissions that are already
	  authenticated. A similar method is already used for INVITES. This
	  is the kind of thing we end up having to do when we don't have a
	  transaction layer... (closes issue #18075) Reported by: mdu113
	  Patches: diff.txt uploaded by twilson (license 396) Tested by:
	  twilson, mdu113 Review: https://reviewboard.asterisk.org/r/1005/
	  ........ ................

2011-01-04 17:01 +0000 [r300214]  Jan Kalab <pitlicek@gmail.com>

	* res/res_calendar_exchange.c, res/res_calendar_icalendar.c: Memory
	  leaking in calendars ne_request_destroy() was missing in
	  icalendar and exchange calendar modules, causing memory leak.
	  (closes issue #18521) Review:
	  https://reviewboard.asterisk.org/r/1068/

2011-01-03 23:14 +0000 [r300166]  Richard Mudgett <rmudgett@digium.com>

	* /, main/features.c: Merged revisions 300165 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r300165 | rmudgett | 2011-01-03 17:02:13 -0600 (Mon, 03 Jan 2011)
	  | 4 lines Use correct variable for atxfercallbackretries config
	  option. * Misc formatting changes. ........

2011-01-03 13:14 +0000 [r300082]  Leif Madsen <lmadsen@digium.com>

	* pbx/pbx_dundi.c: Increase side of mapping response field. I've
	  increased the size of the response field in a DUNDi mapping
	  because of some documentation I'm writing. Previously it was set
	  to AST_MAX_EXTENSION which is only 80 characters, which is far
	  too small when you're using some dialplan functions to craft a
	  response. The example I'm using is: extensions =>
	  RegisteredDevices,0,SIP,dundi:very_awesome_password/${IF($[${DB_EXISTS(phones/${NUMBER}/device)}]?${DB(phones/${NUMBER}/device)}:None)},nopartial

2010-12-29 22:02 +0000 [r299989]  Tilghman Lesher <tilghman@meg.abyt.es>

	* apps/app_voicemail.c, main/file.c: Quote arguments, just in case
	  there's a space in a pathname. (Diagnosed by pabelanger on
	  #asterisk-dev, fixed by me.)

2010-12-29 19:28 +0000 [r299865-299948]  Paul Belanger <pabelanger@digium.com>

	* sounds/Makefile: Only remove /tmp/astdatadir, not
	  /var/lib/asterisk

	* build_tools/make_sample_voicemail, sounds/Makefile, Makefile:
	  Properly quote varibles for MAC OS X

	* apps/app_chanspy.c, /: Merged revisions 299864 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r299864 | pabelanger | 2010-12-28 13:51:13 -0500 (Tue, 28 Dec
	  2010) | 2 lines Documentation typo ........

2010-12-27 21:23 +0000 [r299752-299820]  Tilghman Lesher <tilghman@meg.abyt.es>

	* sounds/Makefile: More space-in-pathname issues.

	* sounds/Makefile, Makefile, Makefile.moddir_rules: Mac OS X
	  spaces-in-pathnames fix.

	* configure: Regen configure

	* configure.ac: Properly quote path on Darwin.

2010-12-25 16:12 +0000 [r299711]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/oochannels.c, addons/ooh323c/src/ooq931.c,
	  addons/ooh323c/src/ooh323.c, addons/ooh323c/src/ooh245.c: Change
	  order of sending TCS and MSD packets Change order of sending
	  Terminal Capability Set and MasterSlave Determination packets,
	  MSD send when TCS exchange procedure is done (we send tcs ack to
	  remote and we have remote tcs ack already or we receive tcs ack
	  from remote and we have send our tcs ack to remote already). Some
	  endpoints can work in this sequence only, i suggest they can't
	  work with both (tcs and msd) exchange procedures simultaneously.
	  Also changed StartH245 facility message sending. It send on
	  incoming calls only due to some endpoints can't proccess properly
	  this facility messages on their incoming calls. (issue #18433)
	  Reported by: MrHanMan Patches: tcs-msd-h245-3.patch uploaded by
	  may213 (license 454) Tested by: MrHanMan, may213

2010-12-25 10:07 +0000 [r299583-299626]  Tilghman Lesher <tilghman@meg.abyt.es>

	* channels/chan_local.c, /: Merged revisions 299625 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r299625 | tilghman | 2010-12-25 04:05:00 -0600
	  (Sat, 25 Dec 2010) | 12 lines Merged revisions 299624 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r299624 | tilghman | 2010-12-25 04:04:06 -0600 (Sat, 25 Dec 2010)
	  | 5 lines Move check for extension existence below variable
	  inheritance, due to the possible use of an eswitch. (closes issue
	  #16228) Reported by: jlaguilar ........ ................

	* addons/res_config_mysql.c: Reset 'first' variable after usage.
	  (closes issue #18525) Reported by: makoto Patches:
	  res-config-mysql-update2.patch uploaded by makoto (license 38)

2010-12-23 02:53 +0000 [r299531]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c, /: Merged revisions 299530 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r299530 | moy | 2010-12-22 21:28:37 -0500 (Wed, 22 Dec
	  2010) | 7 lines Enqueue AST_CONTROL_PROGRESS after
	  AST_CONTROL_RINGING when MFC-R2 calls are accepted (closes issue
	  #18438) Reported by: mariner7 Tested by: moy ........

2010-12-22 20:05 +0000 [r299449]  Tilghman Lesher <tilghman@meg.abyt.es>

	* pbx/ael/ael-test/ref.ael-test19,
	  pbx/ael/ael-test/ref.ael-vtest13, res/ael/pval.c,
	  pbx/ael/ael-test/ref.ael-vtest25,
	  pbx/ael/ael-test/ref.ael-vtest17, /,
	  pbx/ael/ael-test/ref.ael-test3: Merged revisions 299448 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r299448 | tilghman | 2010-12-22 14:03:30 -0600 (Wed, 22 Dec 2010)
	  | 8 lines Resolve warnings by disambiguating the "s" extension as
	  used by chan_dahdi from the "s" extension as used by the AEL
	  macros. (closes issue #18480) Reported by: nivek Patches:
	  20101215__issue18480__2.diff.txt uploaded by tilghman (license
	  14) Tested by: nivek ........

2010-12-22 02:10 +0000 [r299405]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Chan_dahdi sends an empty COLP on the bridged
	  channel. Chan_dahdi always inserts a connected party IE when you
	  call from one dahdi channel to another dahdi channel, even if no
	  such information was received on the 2nd channel. This clears the
	  display of many phones. * Removed leftover artifact from before
	  the valid flag was added. * Updated all of the channel's caller
	  id information with the new connected line information instead of
	  just the string parts. (closes issue #18508) Reported by: wimpy
	  Patches: issue18508_trunk.patch uploaded by rmudgett (license
	  664) Tested by: wimpy, rmudgett

2010-12-21 15:25 +0000 [r299353]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 299242 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r299242 | mnicholson | 2010-12-20 15:25:35 -0600
	  (Mon, 20 Dec 2010) | 23 lines Merged revisions
	  299194,299198,299220 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r299194 | mnicholson | 2010-12-20 14:45:38 -0600 (Mon, 20 Dec
	  2010) | 6 lines Respond as soon as possible with a 202 Accepted
	  to refer requests. This change also plugs a few memory leaks that
	  can occur when parking sip calls. ABE-2656 ........ r299198 |
	  mnicholson | 2010-12-20 15:00:44 -0600 (Mon, 20 Dec 2010) | 2
	  lines Remove changes to via processing that were not supposed to
	  go into the last commit. ........ r299220 | mnicholson |
	  2010-12-20 15:21:39 -0600 (Mon, 20 Dec 2010) | 4 lines Use
	  ast_free() instead of free() ABE-2656 ........ ................

2010-12-21 00:44 +0000 [r299312]  Paul Belanger <pabelanger@digium.com>

	* configs/cel.conf.sample: Correct typo with USER_DEFINED event.
	  (closes issue #18461) Reported by: joscas Patches:
	  cel.conf.sample.diff uploaded by lathama (license 1028) Tested
	  by: lathama, joscas

2010-12-20 21:38 +0000 [r299248]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix a couple of CCSS issues. * Make sure to
	  allocate a cc_params structure when creating autopeers. * Use
	  sip_uri_cmp when retrieving SIP CC agents and monitors in case
	  parameters appear in the URI. (closes issue #18504) Reported by:
	  kkm (closes issue #18338) Reported by: GeorgeKonopacki Patches:
	  18338.diff uploaded by mmichelson (license 60) Tested by:
	  GeorgeKonopacki

2010-12-20 18:17 +0000 [r299131-299138]  Tilghman Lesher <tilghman@meg.abyt.es>

	* sample.call, /: Merged revisions 299136 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r299136 | tilghman | 2010-12-20 12:16:37 -0600 (Mon, 20 Dec 2010)
	  | 2 lines Documentation fix ........

	* cdr/cdr_pgsql.c, /: Merged revisions 299130 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r299130 | tilghman | 2010-12-20 11:41:24 -0600 (Mon, 20 Dec 2010)
	  | 11 lines If a call was not answered, then the billsec was
	  calculated unusually large. Also, due to a copy and paste error,
	  a request for the answer field would have given the start value,
	  instead. (closes issue #18460) Reported by: joscas Patches:
	  20101215__issue18460.diff.txt uploaded by tilghman (license 14)
	  Tested by: joscas ........

2010-12-20 16:18 +0000 [r299088]  Leif Madsen <lmadsen@digium.com>

	* /, main/features.c: Merged revisions 299087 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r299087 | lmadsen | 2010-12-20 10:18:03 -0600 (Mon, 20 Dec 2010)
	  | 5 lines Note that Park() timeout is milliseconds. (closes issue
	  #15758) Reported by: mmurdock Tested by: mmurdock, seanbright
	  ........

2010-12-20 09:14 +0000 [r299004]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* main/aoc.c, channels/sig_pri.h, channels/chan_sip.c: Typos:
	  recieved => received

2010-12-18 00:09 +0000 [r298818-298963]  Tilghman Lesher <tilghman@meg.abyt.es>

	* /, main/say.c: Merged revisions 298962 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r298962 | tilghman | 2010-12-17 18:08:57 -0600 (Fri, 17 Dec 2010)
	  | 2 lines Remove backtrace used for testing merge process
	  ........

	* main/utils.c, main/astobj2.c, utils/conf2ael.c,
	  include/asterisk/logger.h, configure,
	  build_tools/menuselect-deps.in, main/logger.c, utils/ael_main.c,
	  utils/hashtest2.c, makeopts.in, utils/check_expr.c,
	  utils/refcounter.c, include/asterisk/utils.h,
	  build_tools/cflags-devmode.xml, /,
	  include/asterisk/autoconfig.h.in, main/Makefile, main/say.c,
	  configure.ac, utils/hashtest.c: Merged revisions 298957 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r298957 | tilghman | 2010-12-17 17:30:55 -0600
	  (Fri, 17 Dec 2010) | 13 lines Merged revisions 298905 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r298905 | tilghman | 2010-12-17 15:40:56 -0600 (Fri, 17 Dec 2010)
	  | 6 lines Let Asterisk find better backtrace information with
	  libbfd. The menuselect option BETTER_BACKTRACES, if enabled, will
	  use libbfd to search for better symbol information within both
	  the Asterisk binary, as well as loaded modules, to assist when
	  using inline backtraces to track down problems. ........
	  ................

	* contrib/init.d/rc.debian.asterisk: -v implies -f, so override
	  with -F. (closes issue #18446) Reported by: lathama Patches:
	  rc.debian.asterisk.diff uploaded by lathama (license 1028) Tested
	  by: lathama

	* /, configure, configure.ac: Merged revisions 298817 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r298817 | tilghman | 2010-12-17 15:03:06 -0600 (Fri, 17
	  Dec 2010) | 8 lines Also include PTHREAD_LIBS and PTHREAD_CFLAGS
	  for SQLite 3, as it's needed on some platforms. (closes issue
	  #18493) Reported by: pprindeville Patches:
	  asterisk-1.8-sqlite3.patch uploaded by pprindeville (license 347)
	  Tested by: pprindeville ........

2010-12-17 17:26 +0000 [r298773]  Brad Watkins <Marquis42@gmail.com>

	* configs/sip.conf.sample, channels/chan_sip.c: Fix parsing of mwi
	  => lines in sip.conf Reworking parsing of mwi => lines to resolve
	  a segfault. Also add a set of unit tests for the function that
	  does the parsing. (closes issue #18350) Reported by: gbour Tested
	  by: Marquis, gbour Review:
	  https://reviewboard.asterisk.org/r/1053/

2010-12-16 23:31 +0000 [r298598-298685]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 298684 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r298684 | jpeeler | 2010-12-16 17:30:59 -0600
	  (Thu, 16 Dec 2010) | 9 lines Merged revisions 298683 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r298683 | jpeeler | 2010-12-16 17:29:30 -0600 (Thu, 16
	  Dec 2010) | 2 lines After recording only silence for a voicemail
	  prepending, restore backup files. ........ ................

	* apps/app_queue.c, /: Merged revisions 298597 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r298597 | jpeeler | 2010-12-16 14:49:33 -0600
	  (Thu, 16 Dec 2010) | 14 lines Merged revisions 298596 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r298596 | jpeeler | 2010-12-16 14:46:52 -0600 (Thu, 16 Dec 2010)
	  | 7 lines Fix improper hangup when doing an attended transfer to
	  queue. Had to indicate ringing in wait_for_answer so the attended
	  transfer code would not try and hang up the local channel it
	  created, which would kill the call. ABE-2624 ........
	  ................

2010-12-16 09:28 +0000 [r298394-298539]  Tilghman Lesher <tilghman@meg.abyt.es>

	* channels/chan_sip.c: Ensure the ipaddr field in realtime is large
	  enough to handle IPv6 addresses. (closes issue #18464) Reported
	  by: IgorG Patches: realtime_ipv6store.diff uploaded by IgorG
	  (license 20) (plus a few additional lines by tilghman)

	* res/res_config_odbc.c, /: Merged revisions 298481 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r298481 | tilghman | 2010-12-16 03:04:38 -0600
	  (Thu, 16 Dec 2010) | 21 lines Merged revisions 298480 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r298480 | tilghman | 2010-12-16 03:03:40 -0600 (Thu, 16 Dec 2010)
	  | 14 lines Only increment the pointer once per loop, otherwise we
	  corrupt the value. (closes issue #18251) Reported by: bcnit
	  Patches: 20101110__issue18251.diff.txt uploaded by tilghman
	  (license 14) Tested by: trev, jthurman, elguero (closes issue
	  #18279) Reported by: zerohalo Patches:
	  20101109__issue18279.diff.txt uploaded by tilghman (license 14)
	  Tested by: zerohalo ........ ................

	* /, funcs/func_dialgroup.c: Merged revisions 298477 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r298477 | tilghman | 2010-12-16 02:54:23 -0600 (Thu, 16
	  Dec 2010) | 8 lines Eliminate duplicates from container. (closes
	  issue #18091) Reported by: bunny Patches:
	  20101006__issue18091.diff.txt uploaded by tilghman (license 14)
	  Tested by: bunny ........

	* /, cdr/cdr_sqlite.c: Merged revisions 298393 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r298393 | tilghman | 2010-12-15 18:29:10 -0600
	  (Wed, 15 Dec 2010) | 15 lines Merged revisions 298392 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r298392 | tilghman | 2010-12-15 18:28:04 -0600 (Wed, 15 Dec 2010)
	  | 8 lines Unregister before shutting down the connection, to
	  avoid a race. (closes issue #18481) Reported by: pabelanger
	  Patches: 20101215__issue18481.diff.txt uploaded by tilghman
	  (license 14) Tested by: pabelanger ........ ................

2010-12-13 17:11 +0000 [r298195]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c, channels/chan_dahdi.c, /: Merged revisions
	  298194 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r298194 | rmudgett | 2010-12-13 11:04:41 -0600
	  (Mon, 13 Dec 2010) | 26 lines Merged revisions 298193 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r298193 | rmudgett | 2010-12-13 10:56:07 -0600 (Mon, 13 Dec 2010)
	  | 19 lines Outgoing PRI/BRI calls cannot do DTMF triggered
	  transfers. Outgoing PRI/BRI calls cannot do DTMF triggered
	  transfers if a PROCEEDING message is not received. The debug
	  output shows that the DTMF begin event is seen, but the DTMF end
	  event is missing. When the DTMF begin happens, the call is muted
	  so we now have one way audio (until a DTMF end event is somehow
	  seen). * Made set the proceeding flag when the PRI_EVENT_ANSWER
	  event is received. * Made absorb the DTMF begin and DTMF end
	  events if we are overlap dialing and have not seen a PROCEEDING
	  message. * Added a debug message when absorbing a DTMF event.
	  JIRA SWP-2690 JIRA ABE-2697 ........ ................

2011-01-12  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.2 Released.

	* Merge in a change in the configure script to fix an issue for
	  Debian packagers.

	  ------------------------------------------------------------------------
	  r301221 | pabelanger | 2011-01-09 15:40:35 -0600 (Sun, 09 Jan 2011)
	  | 21 lines

	  Merged revisions 301220 via svnmerge from 
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 [^]

	  ........
	    r301220 | pabelanger | 2011-01-09 16:38:24 -0500 (Sun, 09 Jan
	    2011) | 14 lines
	    SOUND_CACHE_DIR now defaults to empty

	    Sounds files included in the Asterisk tarball were being
	    ignored and
	    re-downloaded. Users wanting to cache the files can
	    still override the setting
	    using the --with-sounds-cache option.

	    (closes issue 0018589)
	    Reported by: pabelanger
	       Patches:
	        issue18589.patch uploaded by
		pabelanger (license 224)
	        Tested by: pabelanger

	    Review:
	    https://reviewboard.asterisk.org/r/1074/

	    ------------------------------------------------------------------------

2010-12-13  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.2-rc1 Released.

2010-12-11 21:45 +0000 [r298099]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooGkClient.c: Correction to work with
	  gatekeeper which don't send GK ID Don't use GK ID if it's not
	  presented in GK replies Extract GK ID not only in GK confirm but
	  in GK register confirm also (issue #18401) Reported by: MrHanMan
	  Patches: no-gkid-2.patch uploaded by may213 (license 454) Tested
	  by: may213, MrHanMan

2010-12-10 16:52 +0000 [r298054]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Prevent a memcpy overlap in
	  GENERIC_FAX_EXEC_SET_VARS

2010-12-10 16:26 +0000 [r298051]  Tilghman Lesher <tlesher@digium.com>

	* main/netsock.c, /, configure, include/asterisk/autoconfig.h.in,
	  configure.ac: Merged revisions 298050 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r298050 | tilghman | 2010-12-10 10:24:13 -0600 (Fri, 10 Dec 2010)
	  | 11 lines Portability issue on OpenSolaris. Also detect the
	  required structure element, because OpenSolaris defines
	  SIOCGIFHWADDR, but without support for IP sockets. (closes issue
	  #18442) Reported by: ranjtech Patches:
	  20101209__issue18442.diff.txt uploaded by tilghman (license 14)
	  Tested by: ranjtech ........

2010-12-09 22:18 +0000 [r297965]  Terry Wilson <twilson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 297960 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297960 | twilson | 2010-12-09 16:10:31 -0600
	  (Thu, 09 Dec 2010) | 21 lines Merged revisions 297959 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297959 | twilson | 2010-12-09 16:00:30 -0600 (Thu, 09 Dec 2010)
	  | 14 lines Ignore spurious REGISTER requests If a REGISTER
	  request with a Call-ID matching an existing transaction is
	  received it was possible that the REGISTER request would
	  overwrite the initreq of the private structure. This info is used
	  to generate messages for other responses in the transaction. This
	  patch ignores REGISTER requests that match non-REGISTER
	  transactions. (closes issue #18051) Reported by: eeman Tested by:
	  twilson Review: https://reviewboard.asterisk.org/r/1050/ ........
	  ................

2010-12-09 21:32 +0000 [r297957]  David Vossel <dvossel@digium.com>

	* channels/chan_gtalk.c: Fixes issue with outbound google voice
	  calls not working. Thanks to az1234 and nevermind_quack for their
	  input in helping debug the issue. (closes issue #18412) Reported
	  by: nevermind_quack Patches: fix uploaded by dvossel (license
	  671)

2010-12-09 20:48 +0000 [r297952]  Terry Wilson <twilson@digium.com>

	* main/features.c: Don't crash after Set(CDR(userfield)=...) in
	  ast_bridge_call Instead of setting peer->cdr = NULL, set it to
	  not post. (closes issue #18415) Reported by: macbrody Patches:
	  patch-18415 uploaded by jsolares (license 1167) Tested by:
	  jsolares, twilson

2010-12-08 18:06 +0000 [r297909]  Tilghman Lesher <tlesher@digium.com>

	* configs/extensions.conf.sample, /: Merged revisions 297908 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r297908 | tilghman | 2010-12-08 12:04:38 -0600 (Wed, 08 Dec 2010)
	  | 4 lines Use inheritance to get correct results for
	  SIPFROMDOMAIN. (from an internal Digium discussion) ........

2010-12-08 16:12 +0000 [r297905]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Display the capabilities requested when requesting
	  a fax session fails instead of displaying a hex value. Tweak the
	  way fax stats are calculated so that all fax attempts and
	  faliures are logged. Also make ensure faxes are either counted as
	  completed or falied and never both. FAX-210

2010-12-07 22:59 +0000 [r297825]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /: Merged revisions 297824 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297824 | jpeeler | 2010-12-07 16:58:54 -0600
	  (Tue, 07 Dec 2010) | 19 lines Merged revisions 297823 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297823 | jpeeler | 2010-12-07 16:57:48 -0600 (Tue, 07 Dec 2010)
	  | 12 lines Revert code that changed SSRC for DTMF. Some previous
	  behavior was attempted to be restored, but mistakingly I did not
	  realize that the previous behavior was incorrect. This fixes DTMF
	  not being detected since DTMF shouldn't cause the SSRC to change.
	  (related to issue #17404) (closes issue #18189) (closes issue
	  #18352) Reported by: marcbou Tested by: cmbaker82 ........
	  ................

2010-12-07 22:51 +0000 [r297733-297821]  Tilghman Lesher <tlesher@digium.com>

	* contrib/init.d/org.asterisk.muted.plist (added), Makefile,
	  contrib/init.d/org.asterisk.asterisk.plist, utils/muted.c, /:
	  Merged revisions 297819 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297819 | tilghman | 2010-12-07 16:40:45 -0600
	  (Tue, 07 Dec 2010) | 11 lines Merged revisions 297818 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297818 | tilghman | 2010-12-07 16:35:50 -0600 (Tue, 07 Dec 2010)
	  | 4 lines Use non-deprecated APIs for CoreAudio Review:
	  https://reviewboard.asterisk.org/r/1040/ ........
	  ................

	* apps/app_followme.c, /: Merged revisions 297713 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297713 | tilghman | 2010-12-06 18:21:50 -0600
	  (Mon, 06 Dec 2010) | 15 lines Merged revisions 297689 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297689 | tilghman | 2010-12-06 18:07:37 -0600 (Mon, 06 Dec 2010)
	  | 8 lines Don't create a Local channel if the target extension
	  does not exist. (closes issue #18126) Reported by: junky Patches:
	  followme.diff uploaded by junky (license 177) (partially
	  restructured by me to avoid a possible memory leak) ........
	  ................

2010-12-06 22:06 +0000 [r297607]  Jeff Peeler <jpeeler@digium.com>

	* /, channels/chan_sip.c: Merged revisions 297605 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297605 | jpeeler | 2010-12-06 16:03:04 -0600
	  (Mon, 06 Dec 2010) | 18 lines Merged revisions 297603 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297603 | jpeeler | 2010-12-06 15:57:15 -0600 (Mon, 06 Dec 2010)
	  | 12 lines Improve handling of REGISTER requests with multiple
	  contact headers. The changes here attempt to more strictly follow
	  RFC 3261 section 10.3. Basically the following will now cause a
	  400 Bad Response to be returned, if: - multiple Contact headers
	  are present with one set to expire all bindings ("*") - wildcard
	  parameter is specified for Contact without Expires header or
	  Expires header is not set to zero. ABE-2442 ABE-2443 ........
	  ................

2010-12-03 17:41 +0000 [r297535]  Sean Bright <sean@malleable.com>

	* channels/chan_console.c, /: Merged revisions 297534 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r297534 | seanbright | 2010-12-03 12:40:52 -0500 (Fri,
	  03 Dec 2010) | 3 lines The CLI command should not contain
	  <placeholder>s, these are for descriptions. ........

2010-12-03 15:21 +0000 [r297486-297495]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Print a DEBUG message instead of a WARNING message
	  when the selected fax tech does not support reserving sessions.
	  Answer the channel before quering it for t.38 support. This is
	  necessary for the query to work properly over local channels.

	* include/asterisk/res_fax.h, res/res_fax.c: Add support for
	  reserving a fax session before answering the channel. Note: this
	  change breaks ABI compatibility. FAX-217

2010-12-02 20:09 +0000 [r297406]  Paul Belanger <pabelanger@digium.com>

	* Makefile, /: Merged revisions 297405 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297405 | pabelanger | 2010-12-02 15:06:43 -0500
	  (Thu, 02 Dec 2010) | 14 lines Merged revisions 297404 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297404 | pabelanger | 2010-12-02 15:01:08 -0500 (Thu, 02 Dec
	  2010) | 7 lines Resolve compile error under FreeBSD We now set
	  _ASTCFLAGS+=-march=i686 for i386 processors, still allowing
	  ASTCFLAGS to override the setting. Review:
	  https://reviewboard.asterisk.org/r/1043/ ........
	  ................

2010-12-02 18:13 +0000 [r297312]  Terry Wilson <twilson@digium.com>

	* /, main/abstract_jb.c: Merged revisions 297311 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297311 | twilson | 2010-12-02 12:07:39 -0600
	  (Thu, 02 Dec 2010) | 21 lines Merged revisions 297310 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297310 | twilson | 2010-12-02 12:00:27 -0600 (Thu, 02 Dec 2010)
	  | 12 lines Initialize offset for adaptive jitter buffer When the
	  adaptive jitter buffer is enabled in sip.conf, the first frame
	  placed in the jitter buffer fails with something like:
	  jb_warning_output: Resyncing the jb. last_delay 0, this delay
	  -215886466, threshold 1000, new offset 215886466 This happens
	  because the offset is not initialized before calling jb_put().
	  This patch modifies jb_put_first_adaptive() to set the offset to
	  the frame's timestamp. Review:
	  https://reviewboard.asterisk.org/r/1041/ ........
	  ................

2010-12-02 13:20 +0000 [r297245]  Russell Bryant <russell@digium.com>

	* /, apps/app_meetme.c: Merged revisions 297229 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297229 | russell | 2010-12-02 07:16:47 -0600
	  (Thu, 02 Dec 2010) | 13 lines Merged revisions 297228 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297228 | russell | 2010-12-02 07:16:15 -0600 (Thu, 02 Dec 2010)
	  | 6 lines Add "DAHDI" to a couple of app_meetme error messages.
	  This is in response to some questions on IRC. To the user, there
	  was nothing that made it obvious that this error had anything to
	  do with DAHDI not being loaded. ........ ................

2010-12-01 19:47 +0000 [r297157]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Changed some NOTICE and WARNING messages to DEBUG
	  messages.

2010-12-01 17:53 +0000 [r297075]  Jeff Peeler <jpeeler@digium.com>

	* /, channels/chan_sip.c: Merged revisions 297073 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r297073 | jpeeler | 2010-12-01 11:52:46 -0600
	  (Wed, 01 Dec 2010) | 30 lines Merged revisions 297072 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r297072 | jpeeler | 2010-12-01 11:50:09 -0600 (Wed, 01 Dec 2010)
	  | 23 lines Fix not stopping MOH when transfered local channel
	  queue member is answered. The problem here is only present when
	  local channels are used with the MOH passthru option as well as
	  no optimization (/nm). I will describe the slightly bizarre
	  scenario that was used to test, where phones B and C are queue
	  members: Phone A dials into a queue with two members using local
	  channels and the above options. Phone B answers. Phone A blind
	  transfers phone B into the same queue. Phone A hangs up. Phone C
	  answers, but phone B didn't stop playing MOH. In this scenario,
	  the unhold frame that should have gotten to phone B never arrived
	  due to the masquerade from the blind transfer. This is usually
	  fine since app_queue manages the starting and stopping of MOH.
	  However, with the passthrough option enabled when app_queue
	  attempts to stop MOH it tries to do so on the local channel
	  rather than the real channel. The easiest solution was to just
	  make sure to send an unhold frame during the transfer since it
	  wouldn't make sense to have MOH playing after a transfer anyway.
	  This only modifies SIP transfers, but the other transfers did not
	  seem to be a problem. If DTMF based transfers were a problem it
	  might be okay to add ast_moh_stop to finishup, but I didn't want
	  to have to add that unless required. ABE-2624 ........
	  ................

2010-12-01 17:01 +0000 [r296951-296992]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/frame.h, /: Merged revisions 296991 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r296991 | tilghman | 2010-12-01 11:01:00 -0600
	  (Wed, 01 Dec 2010) | 12 lines Merged revisions 296990 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r296990 | tilghman | 2010-12-01 10:59:26 -0600 (Wed, 01 Dec 2010)
	  | 5 lines Clarify documentation on how we store codec preference
	  lists. (closes issue #18397) Reported by: birgita ........
	  ................

	* channels/chan_iax2.c, /: Merged revisions 296950 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r296950 | tilghman | 2010-11-30 19:38:19 -0600 (Tue, 30
	  Nov 2010) | 2 lines Missed initializations caused startup errors
	  on Mac OS X (and possibly others, too). ........

2010-12-01 00:28 +0000 [r296870]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 296869 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r296869 | jpeeler | 2010-11-30 18:24:58 -0600
	  (Tue, 30 Nov 2010) | 11 lines Merged revisions 296868 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r296868 | jpeeler | 2010-11-30 18:23:19 -0600 (Tue, 30 Nov 2010)
	  | 4 lines Properly restore backup information file when hanging
	  up during message prepending. ABE-2654 ........ ................

2010-11-30 19:12 +0000 [r296787]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c: DOC: Conference number can be omitted; if
	  omitted, all users in a meetme are listed.

2010-11-29 23:05 +0000 [r296673]  Paul Belanger <pabelanger@digium.com>

	* channels/chan_iax2.c, /: Merged revisions 296671 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r296671 | pabelanger | 2010-11-29 17:54:14 -0500
	  (Mon, 29 Nov 2010) | 12 lines Merged revisions 296670 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r296670 | pabelanger | 2010-11-29 17:49:39 -0500 (Mon, 29 Nov
	  2010) | 5 lines Make sure nothing else is needed before
	  destroying the scheduler. (closes issue #18398) Reported by:
	  pabelanger ........ ................

2010-11-29 21:26 +0000 [r296628]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Complete some error handling in
	  transmit_publish() in chan_sip.c. This error handling block
	  caught my eye. It was missing a couple of things, but it should
	  be safe now. Thanks to mmichelson for the quick peer review on
	  IRC.

2010-11-29 20:46 +0000 [r296582]  Richard Mudgett <rmudgett@digium.com>

	* channels/misdn/isdn_msg_parser.c, channels/chan_misdn.c: Merged
	  revision 296575 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  .......... r296575 | rmudgett | 2010-11-29 14:27:37 -0600 (Mon,
	  29 Nov 2010) | 13 lines Invalid mISDN PTMP redirecting signaling
	  as TE towards NT. The mISDN PTMP redirection signaling (NOTIFY
	  redirecting number and notification code, SETUP redirecting
	  number) is also sent in PTMP/TE mode. It should only apply in
	  PTMP/NT mode. The call setup proceeds but the network (Deutsche
	  Telekom) reacts with ugly ISDN STATUS messages. Also don't send
	  the redirecting number ie when PTP is also sending the
	  DivertingLegInformation2 facility. The redirecting number ie is
	  redundant and the network (Deutsche Telekom) complains about it.
	  Patches: abe_2651_v4.patch uploaded by rmudgett (license 664)
	  JIRA ABE-2651 JIRA SWP-2537 ..........

2010-11-29 07:28 +0000 [r296534]  Tilghman Lesher <tlesher@digium.com>

	* main/asterisk.c, /, configure, include/asterisk/autoconfig.h.in,
	  configure.ac: Merged revisions 296533 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r296533 | tilghman | 2010-11-29 01:27:09 -0600 (Mon, 29 Nov 2010)
	  | 13 lines I love standards. There are so many to choose from.
	  Except when there isn't one. Linux and *BSD disagree on the
	  elements within the ucred structure. Detect which one is in use
	  on the system. (closes issue #18384) Reported by: bjm Patches:
	  cred-diffs uploaded by bjm (license 473)
	  20101127__issue18384__1.6.2.diff.txt uploaded by tilghman
	  (license 14) 20101127__issue18384__1.8.diff.txt uploaded by
	  tilghman (license 14) Tested by: tilghman, bjm ........

2010-11-27 10:40 +0000 [r296429-296467]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_meetme.c: Merged revisions 296466 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r296466 | tilghman | 2010-11-27 04:39:01 -0600 (Sat, 27 Nov 2010)
	  | 5 lines 18 characters is too short for most date/times (20 is
	  the usual, but we add more in case of greater precision). (closes
	  issue #18369) Reported by: tnakonz ........

	* include/asterisk.h: Also don't build DEBUG_FD_LEAKS when
	  STANDALONE2 is defined. (closes issue #18385) Reported by: cmaj

2010-11-26 21:37 +0000 [r296391]  Olle Johansson <oej@edvina.net>

	* main/say.c: Merged revisions 296351 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r296351 | oej | 2010-11-26 13:23:03 +0100 (Fre,
	  26 Nov 2010) | 17 lines Merged revisions 296309 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r296309 | oej | 2010-11-26 10:53:31 +0100 (Fre, 26 Nov 2010) | 11
	  lines Fix bugs in saying numbers using the Swedish language
	  syntax (closes issue #18355) Reported by: oej Patch by: oej Much
	  help from Peter Lindahl. Testing by the ClearIT team during a
	  coffee break. Review: https://reviewboard.asterisk.org/r/1033/
	  ........ ................

2010-11-26 18:31 +0000 [r296352-296354]  Brad Watkins <Marquis42@gmail.com>

	* res/res_jabber.c: Fix XMPP PubSub-based distributed device state.
	  Initialize pubsubflags to 0 so res_jabber doesn't think there is
	  already an XMPP connection sending device state. Also clean up
	  CLI commands a bit. (closes issue #18272) Reported by: klaus3000
	  Patches: res_jabber_fix_pubsubflags_and_CLI-patch.txt uploaded by
	  klaus3000 (license 65) Tested by: klaus3000, Marquis Review:
	  https://reviewboard.asterisk.org/r/1030/

	* channels/chan_sip.c: Fix reloading of peer when a user is
	  requested. Prevent peer reloading from causing multiple MWI
	  subscriptions to be created when using realtime. This had the
	  effect of sending one NOTIFY for every time a sip peer made a
	  call, in one case eventually overwhelming the phone and causing
	  it to reboot. (closes issue #18342) Reported by: nivek Patches:
	  issue0018342p1.patch uploaded by nivek (license 636) Tested by:
	  nivek Review: https://reviewboard.asterisk.org/r/1029/

2010-11-24 23:29 +0000 [r296230]  Russell Bryant <russell@digium.com>

	* main/channel.c, /: Merged revisions 296221 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r296221 | russell | 2010-11-24 17:28:19 -0600
	  (Wed, 24 Nov 2010) | 13 lines Merged revisions 296213 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r296213 | russell | 2010-11-24 17:26:43 -0600 (Wed, 24 Nov 2010)
	  | 6 lines Make Asterisk less crashy. Since we might not put a new
	  translation path on the channel, go ahead and set it to NULL
	  right after destroying the old one to ensure we don't try to free
	  an invalid translation path later on. ........ ................

2010-11-24 22:49 +0000 [r296167]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_analog.c,
	  /, channels/sig_analog.h: Merged revisions 296166 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r296166 | rmudgett | 2010-11-24 16:42:45 -0600
	  (Wed, 24 Nov 2010) | 50 lines Merged revisions 296165 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r296165 | rmudgett | 2010-11-24 16:41:07 -0600 (Wed, 24 Nov 2010)
	  | 43 lines Oneway audio to SIP phone from FXS port after FXS port
	  gets a CallWaiting pip. The FXS connected phone has to have
	  CW/CID support to fail, as it will send back a DTMF 'A' or 'D'
	  when it's ready to receive CallerID. A normal phone with no CID
	  never fails. Also the SIP phone does not hear MOH when the CW
	  call is answered. The DTMF end frame is suppressed when the phone
	  acknowledges the CW signal for CID. The problem is the DTMF begin
	  frame needs to be suppressed as well. The DTMF begin frame is
	  causing SIP to start sending the DTMF RTP frames. Since the DTMF
	  end frame is suppressed, SIP will not stop sending those DTMF RTP
	  packets. * Suppress the DTMF begin and end frames when the
	  channel driver is looking for DTMF digits. * Fixed a couple
	  issues caused by not cleaning up the CID spill if you answer the
	  CW call while it is sending the CID spill. * Fixed not sending
	  CW/CID spill to the phone when the call is natively bridged.
	  (Fixed by not using native bridge if CW/CID is possible.) *
	  Suppress received audio when sending CW/CID spills. The other
	  parties involved do not need to hear the CW/CID spills and may be
	  confused if the CW call is for them. (closes issue #18129)
	  Reported by: alecdavis Patches: issue_18129_v1.8_v3.patch
	  uploaded by rmudgett (license 664) Tested by: alecdavis, rmudgett
	  NOTE: * v1.4 does not have the main problem fixed by suppressing
	  the DTMF start frames. The other three items fixed are relevant.
	  * If you really must restore native bridging between analog
	  ports, you need to disable CW/CID either by configuring
	  chan_dahdi.conf callwaitingcallerid=no or dialing *70 before
	  dialing the number to temporarily disable CW. ........
	  ................

2010-11-24 20:23 +0000 [r296002-296084]  Russell Bryant <russell@digium.com>

	* main/channel.c, /: Merged revisions 296083 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r296083 | russell | 2010-11-24 14:23:11 -0600
	  (Wed, 24 Nov 2010) | 19 lines Merged revisions 296082 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r296082 | russell | 2010-11-24 14:22:32 -0600 (Wed, 24 Nov 2010)
	  | 12 lines Fix false reporting of an error by set_format(). In
	  the case that the native format was able to be changed to match
	  the new requested format, the code proceeded to attempt to build
	  a translation path, anyway. The result would be NULL, since no
	  translation path is necessary and resulted in this function
	  thinking an error has occurred. This case is now specifically
	  caught and no attempt to build a translation path is attempted.
	  Thanks to our automated tests and bamboo.asterisk.org for
	  catching this problem and making a whole lot of noise when things
	  started failing. :-) ........ ................

	* apps/app_dial.c, main/channel.c, /: Merged revisions 296001 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r296001 | russell | 2010-11-24 11:03:16 -0600
	  (Wed, 24 Nov 2010) | 45 lines Merged revisions 296000 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r296000 | russell | 2010-11-24 10:48:39 -0600 (Wed, 24 Nov 2010)
	  | 38 lines Handle failures building translation paths more
	  effectively. The problem scenario occurred on a heavily loaded
	  system that was using the codec_dahdi module and exceeded the
	  hardware transcoding capacity. The failure mode at that point was
	  not good. The report came in to us as an Asterisk lock-up. The
	  "core show locks" shows a ton of threads locked up (but no
	  obvious deadlock). Upon deeper investigation, when the system is
	  in this state, the CPU was maxed out. The CPU was being consumed
	  by the Asterisk logger spewing messages on every audio frame for
	  calls set up after transcoder capacity was reached. The purpose
	  of this patch is to make Asterisk handle failures to create a
	  translation path in a more graceful manner. If we can't
	  translate, then the call just needs to be dropped, as it's not
	  going to work. These are the changes: 1) In set_format() of
	  channel.c (which is called by set_read_format() and
	  set_write_format()), it was ignoring if
	  ast_translator_build_path() failed and returned NULL. It now pays
	  attention to that case and returns a result reflecting failure.
	  With this change in place, the bridging code will immediately
	  detect a failure and end the bridge instead of proceeding to try
	  to bridge frames that can't be translated and making channel
	  drivers freak out by sending them frames in a format they weren't
	  expecting. 2) In ast_indicate_data() of channel.c, failure of
	  ast_playtones_start() was ignored. It is now reflected in the
	  return value of the function. This didn't turn out to have any
	  affect on the bug, but seemed like a good change to leave in. 3)
	  In app_dial(), when only sending a call to a single endpoint, it
	  will attempt to do some bridging of its own of early audio. It
	  uses make_compatible() when it's going to do this. However, it
	  ignored failure from make compatible. So, even with the fix from
	  #1, if there was early audio going through app_dial, there would
	  still be a period of invalid frames passing through. After
	  detecting failure here, Dial() exits. ABE-2658 ........
	  ................

2010-11-23 10:30 +0000 [r295949]  Olle Johansson <oej@edvina.net>

	* /, main/say.c: Merged revisions 295907 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r295907 | oej | 2010-11-23 10:36:38 +0100 (Tis,
	  23 Nov 2010) | 14 lines Merged revisions 295906 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r295906 | oej | 2010-11-23 10:28:14 +0100 (Tis, 23 Nov 2010) | 8
	  lines Fix support of saynumber(1,n) in the Swedish language
	  (closes issue #18353) Reported by: oej Review:
	  https://reviewboard.asterisk.org/r/1031/ ........
	  ................

2010-11-22 20:03 +0000 [r295869]  Sean Bright <sean@malleable.com>

	* configs/chan_dahdi.conf.sample, /: Merged revisions 295868 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r295868 | seanbright | 2010-11-22 15:02:37 -0500 (Mon, 22 Nov
	  2010) | 2 lines Change some documentation to suggest
	  dahdi_monitor instead of ztmonitor. ........

2010-11-22 19:36 +0000 [r295866]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_macro.c, include/asterisk/channel.h,
	  include/asterisk/frame.h, main/channel.c, main/pbx.c, /: Merged
	  revisions 295843 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r295843 | rmudgett | 2010-11-22 13:28:23 -0600
	  (Mon, 22 Nov 2010) | 53 lines Merged revisions 295790 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r295790 | rmudgett | 2010-11-22 12:46:26 -0600 (Mon, 22 Nov 2010)
	  | 46 lines The channel redirect function (CLI or AMI) hangs up
	  the call instead of redirecting the call. To recreate the
	  problem: 1) Party A calls Party B 2) Invoke CLI "channel
	  redirect" command to redirect channel call leg associated with A.
	  3) All associated channels are hung up. Note that if the CLI
	  command were done on the channel call leg associated with B it
	  works. This regression was a result of the fix for issue #16946
	  (https://reviewboard.asterisk.org/r/740/). The regression affects
	  all features that use an async goto to execute the dialplan
	  because of an external event: Channel redirect, AMI redirect, SIP
	  REFER, and FAX detection. The struct ast_channel._softhangup code
	  is a mess. The variable is used for several purposes that do not
	  necessarily result in the call being hung up. I have added
	  doxygen comments to describe how the various _softhangup bits are
	  used. I have corrected all the places where the variable was
	  tested in a non-bit oriented manner. The primary fix is the new
	  AST_CONTROL_END_OF_Q frame. It acts as a weak hangup request so
	  the soft hangup requests that do not normally result in a hangup
	  do not hangup. JIRA SWP-2470 JIRA SWP-2489 (closes issue #18171)
	  Reported by: SantaFox (closes issue #18185) Reported by:
	  kwemheuer (closes issue #18211) Reported by: zahir_koradia
	  (closes issue #18230) Reported by: vmarrone (closes issue #18299)
	  Reported by: mbrevda (closes issue #18322) Reported by: nerbos
	  Review: https://reviewboard.asterisk.org/r/1013/ ........
	  ................

2010-11-20 03:11 +0000 [r295747]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: One way audio before answering call
	  waiting call on analog port. * Analog call waiting Caller ID
	  spills could get stuck resulting in one way audio until the
	  waiting call is answered. This only happens on the second (and
	  later) call waiting call if the active call is not the first
	  call. * The CLI/AMI "dahdi show channel" command could report the
	  wrong channel information. Must keep the struct analog_pvt.owner
	  and struct dahdi_pvt.owner pointer in sync.

2010-11-20 00:50 +0000 [r295711]  Russell Bryant <russell@digium.com>

	* main/event.c, include/asterisk/event.h, /: Merged revisions
	  295710 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r295710 | russell | 2010-11-19 18:45:51 -0600 (Fri, 19 Nov 2010)
	  | 29 lines Fix cache of device state changes for multiple
	  servers. This patch addresses a regression where device states
	  across multiple servers were not being processing completely
	  correctly. The code works to determine the overall state by
	  looking at the last known state of a device on each server.
	  However, there was a regression due to some invasive rewrites of
	  how the cache works that led to the cache only storing the last
	  device state change for a device, regardless of which server it
	  was on. The code is set up to cache device state change events by
	  ensuring that each event in the cache has a unique device name +
	  entity ID (server ID). The code that was responsible for
	  comparing raw information elements (which EID is) always returned
	  a match due to a memcmp() with a length of 0. There isn't much
	  code to fix the actual bug. This patch also introduces a new CLI
	  command that was very useful for debugging this problem. The
	  command allows you to dump the contents of the event cache.
	  (closes issue #18284) Reported by: klaus3000 Patches:
	  issue18284.rev1.txt uploaded by russell (license 2) Tested by:
	  russell, klaus3000 (closes issue #18280) Reported by: klaus3000
	  Review: https://reviewboard.asterisk.org/r/1012/ ........

2010-11-19 22:06 +0000 [r295673]  Terry Wilson <twilson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 295672 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r295672 | twilson | 2010-11-19 13:55:48 -0800
	  (Fri, 19 Nov 2010) | 15 lines Merged revisions 295628 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r295628 | twilson | 2010-11-19 12:53:36 -0800 (Fri, 19 Nov 2010)
	  | 8 lines Discard responses with more than one Via This is not a
	  perfect solution as headers that are joined via commas are not
	  detected. This is a parsing issue that to fix "correctly" would
	  necessitate a new SIP parser. Review:
	  https://reviewboard.asterisk.org/r/1019/ ........
	  ................

2010-11-19 21:40 +0000 [r295670]  Brett Bryant <bbryant@digium.com>

	* apps/app_queue.c: Patch for deadlock from ordering issue between
	  channel/queue locks in app_queue (set_queue_variables). (closes
	  issue #18031) Reported by: rain Review:
	  https://reviewboard.asterisk.org/r/1018/

2010-11-19 16:47 +0000 [r295516]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: Bring sig_analog extraction more into
	  alignment with orig-trunk/v1.6.2 chan_dahdi. * Restore SMDI
	  support. * Fixed initial value of struct analog_pvt.use_callerid.
	  It may get forced on depending upon other config options. * Call
	  analog_dnd() instead of manual inlined code. * Removed unused
	  struct analog_pvt.usedistinctiveringdetection. * Removed the
	  struct analog_pvt.unknown_alarm flag. It was really the struct
	  analog_pvt.inalarm flag. * Use ast_debug() instead of
	  ast_log(LOG_DEBUG). * Rename several function's index variable to
	  idx. * Some formatting tweaks.

2010-11-18 20:30 +0000 [r295477]  Leif Madsen <lmadsen@digium.com>

	* configs/sip_notify.conf.sample: 'sip notify clear-mwi' needs
	  terminating CRLF. (closes issue #18275) Reported by: klaus3000
	  Patches: fix_body_CRLF_patch.txt uploaded by klaus3000 (license
	  65)

2010-11-18 18:02 +0000 [r295361-295441]  Paul Belanger <pabelanger@digium.com>

	* res/res_jabber.c, /, include/asterisk/jabber.h: Merged revisions
	  295440 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r295440 | pabelanger | 2010-11-18 12:51:34 -0500 (Thu, 18 Nov
	  2010) | 4 lines Fix compiler warnings when using openssl-dev
	  1.0.0+ Review: https://reviewboard.asterisk.org/r/1016/ ........

	* contrib/scripts/install_prereq: Add RedHat specific dependencies

	* configs/res_curl.conf.sample: Uncomment settings under [global],
	  to surpress warning when loading Asterisk.

2010-11-16 23:02 +0000 [r295282]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c, /: Merged revisions 295281 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r295281 | rmudgett | 2010-11-16 16:57:07 -0600
	  (Tue, 16 Nov 2010) | 9 lines Merged revisions 295280 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r295280 | rmudgett | 2010-11-16 16:52:06 -0600 (Tue, 16
	  Nov 2010) | 1 line Dead code elimination in
	  channel.c:ast_channel_bridge() variable who. ........
	  ................

2010-11-16 22:41 +0000 [r295164-295278]  Russell Bryant <russell@digium.com>

	* build_tools/prep_tarball: Check for pdftotext and give a useful
	  error if not found.

	* build_tools/prep_tarball: Remove intentional typo I had added
	  when testing the check. oops.

	* build_tools/prep_tarball: Check for wikiexport.py in PATH and
	  give a useful error message if not found.

2010-12-02  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.1 Released.

2010-11-16  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.1-rc1 Released.

2010-11-15 18:30 +0000 [r294989-295078]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_expr.c (added), /: Merged revisions 295062 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r295062 | tilghman | 2010-11-15 12:24:02 -0600
	  (Mon, 15 Nov 2010) | 9 lines Merged revisions 295026 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r295026 | tilghman | 2010-11-15 11:58:37 -0600 (Mon, 15
	  Nov 2010) | 2 lines Create test verifying results of expression
	  parser ........ ................

	* funcs/func_curl.c, /: Merged revisions 294988 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r294988 | tilghman | 2010-11-15 01:42:39 -0600 (Mon, 15 Nov 2010)
	  | 8 lines It is possible to crash Asterisk by feeding the curl
	  engine invalid data. (closes issue #18161) Reported by: wdoekes
	  Patches: 20101029__issue18161.diff.txt uploaded by tilghman
	  (license 14) Tested by: tilghman ........

2010-11-12 21:14 +0000 [r294905-294911]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 294910 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r294910 | jpeeler | 2010-11-12 15:14:23 -0600 (Fri, 12
	  Nov 2010) | 4 lines Return correct error code if lock path fails.
	  The recent changes to open_mailbox actually caused it to be
	  fixed, but let's be consistent. Reported by alecdavis in
	  asterisk-dev. ........

	* apps/app_voicemail.c, /: Merged revisions 294904 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r294904 | jpeeler | 2010-11-12 14:51:15 -0600
	  (Fri, 12 Nov 2010) | 23 lines Merged revisions 294903 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r294903 | jpeeler | 2010-11-12 14:49:09 -0600 (Fri, 12 Nov 2010)
	  | 16 lines Fix regression causing abort in voicemail after
	  opening a mailbox with no mesgs. In order to be more safe, some
	  error handling code was changed to respect more error conditions
	  including the potential memory allocation failure for deleted and
	  heard message tracking introduced in 293004. However,
	  last_message_index returns -1 for zero messages (perhaps as
	  expected) and was triggering the stricter error checking. Because
	  last_message_index is only called directly in one place, just
	  return 0 from open_mailbox (for file based storage) when no
	  messages are detected unless a real error has occurred. (closes
	  issue #18240) Reported by: leobrown Patches:
	  bug18240.1-6-2.diff.txt uploaded by alecdavis (license 585)
	  Tested by: pabelanger ........ ................

2010-11-12 02:45 +0000 [r294823]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c, channels/sig_pri.h, /: Merged revisions
	  294822 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r294822 | rmudgett | 2010-11-11 20:44:12 -0600
	  (Thu, 11 Nov 2010) | 18 lines Merged revisions 294821 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r294821 | rmudgett | 2010-11-11 20:41:13 -0600 (Thu, 11 Nov 2010)
	  | 11 lines Asterisk is getting a "No D-channels available!"
	  warning message every 4 seconds. Asterisk is just whining too
	  much with this message: "No D-channels available! Using Primary
	  channel XXX as D-channel anyway!". Filtered the message so it
	  only comes out once if there is no D channel available without an
	  intervening D channel available period. (closes issue #17270)
	  Reported by: jmls ........ ................

2010-11-11 22:17 +0000 [r294740-294745]  Russell Bryant <russell@digium.com>

	* doc/CCSS_architecture.pdf (removed): Remove CCSS architecture
	  PDF. It has been moved to:
	  https://wiki.asterisk.org/wiki/display/AST/CCSS+Architecture

	* doc/digium-mib.txt (removed), doc/followme.txt (removed),
	  doc/building_queues.txt (removed), doc/timing.txt (removed),
	  doc/advice_of_charge.txt (removed), doc/unistim.txt (removed),
	  doc/video_console.txt (removed), doc/macroexclusive.txt
	  (removed), doc/google-soc2009-ideas.txt (removed), doc/README.txt
	  (added), doc/callfiles.txt (removed), doc/externalivr.txt
	  (removed), doc/codec-64bit.txt (removed),
	  build_tools/prep_tarball, doc/video.txt (removed), doc/jingle.txt
	  (removed), doc/modules.txt (removed), doc/manager_1_1.txt
	  (removed), doc/PEERING (removed), doc/snmp.txt (removed),
	  doc/siptls.txt (removed), doc/HOWTO_collect_debug_information.txt
	  (removed), doc/ldap.txt (removed), doc/sip-retransmit.txt
	  (removed), doc/distributed_devstate.txt (removed),
	  doc/voicemail_odbc_postgresql.txt (removed), doc/tex (removed),
	  doc/queue.txt (removed), doc/jabber.txt (removed),
	  doc/chan_sip-perf-testing.txt (removed), Makefile,
	  doc/asterisk-mib.txt (removed), doc/database_transactions.txt
	  (removed), doc/smdi.txt (removed), doc/janitor-projects.txt
	  (removed), doc/hoard.txt (removed), doc/res_config_sqlite.txt
	  (removed), doc/osp.txt (removed), doc/speechrec.txt (removed),
	  doc/sms.txt (removed), doc/distributed_devstate-XMPP.txt
	  (removed), doc/valgrind.txt (removed), doc/realtimetext.txt
	  (removed), doc/cli.txt (removed), doc/rtp-packetization.txt
	  (removed), doc/datastores.txt (removed), doc/CODING-GUIDELINES
	  (removed), doc/ss7.txt (removed), doc/backtrace.txt (removed),
	  doc/India-CID.txt (removed): Remove most of the contents of the
	  doc dir in favor of the wiki content. This merge does the
	  following things: * Removes most of the contents from the doc/
	  directory in favor of the wiki - http://wiki.asterisk.org/ *
	  Updates the build_tools/prep_tarball script to know how to export
	  the contents of the wiki in both PDF and plain text formats so
	  that the documentation is still included in Asterisk release
	  tarballs.

2010-11-11 21:58 +0000 [r294640-294734]  Jeff Peeler <jpeeler@digium.com>

	* /, channels/chan_sip.c: Merged revisions 294733 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r294733 | jpeeler | 2010-11-11 15:57:22 -0600
	  (Thu, 11 Nov 2010) | 25 lines Merged revisions 294688 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r294688 | jpeeler | 2010-11-11 15:12:27 -0600 (Thu, 11 Nov 2010)
	  | 18 lines Fix problem with qualify option packets for realtime
	  peers never stopping. The option packets not only never stopped,
	  but if a realtime peer was not in the peer list multiple options
	  dialogs could accumulate over time. This scenario has the
	  potential to progress to the point of saturating a link just from
	  options packets. The fix was to ensure that the poke scheduler
	  checks to see if a peer is in the peer list before continuing to
	  poke. The reason a peer must be in the peer list to be able to
	  properly manage an options dialog is because otherwise the call
	  pointer is lost when the peer is regenerated from the database,
	  which is how existing qualify dialogs are detected. (closes issue
	  #16382) (closes issue #17779) Reported by: lftsy Patches:
	  bug16382-3.patch uploaded by jpeeler (license 325) Tested by:
	  zerohalo ........ ................

	* main/asterisk.c, include/asterisk.h, main/pbx.c, /: Merged
	  revisions 294639 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r294639 | jpeeler | 2010-11-11 13:31:00 -0600
	  (Thu, 11 Nov 2010) | 53 lines Merged revisions 294384 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r294384 | jpeeler | 2010-11-09 11:37:59 -0600 (Tue, 09 Nov 2010)
	  | 47 lines Fix a deadlock in device state change processing.
	  Copied from some notes from the original author (Russell):
	  Deadlock scenario: Thread 1: device state change thread Holds -
	  rdlock on contexts Holds - hints lock Waiting on channels
	  container lock Thread 2: SIP monitor thread Holds the "iflock"
	  Holds a sip_pvt lock Holds channel container lock Waiting for a
	  channel lock Thread 3: A channel thread (chan_local in this case)
	  Holds 2 channel locks acquired within app_dial Holds a 3rd
	  channel lock it got inside of chan_local Holds a local_pvt lock
	  Waiting on a rdlock of the contexts lock A bunch of other threads
	  waiting on a wrlock of the contexts lock To address this
	  deadlock, some locking order rules must be put in place and
	  enforced. Existing relevant rules: 1) channel lock before a pvt
	  lock 2) contexts lock before hints lock 3) channels container
	  before a channel What's missing is some enforcement of the order
	  when you involve more than any two. To fix this problem, I put in
	  some code that ensures that (at least in the code paths involved
	  in this bug) the locks in (3) come before the locks in (2). To
	  change the operation of thread 1 to comply, I converted the
	  storage of hints to an astobj2 container. This allows processing
	  of hints without holding the hints container lock. So, in the
	  code path that led to thread 1's state, it no longer holds either
	  the contexts or hints lock while it attempts to lock the channels
	  container. (closes issue #18165) Reported by: antonio ABE-2583
	  ........ ................

2010-11-10 23:26 +0000 [r294569-294605]  Tilghman Lesher <tlesher@digium.com>

	* pbx/pbx_spool.c: Fixing the Mac OS X build (bamboo warning)

	* pbx/pbx_spool.c: Properly queue files with inotify(7). (closes
	  issue #18089) Reported by: abelbeck Patches:
	  20101021__issue18089.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman

2010-11-10 14:14 +0000 [r294501-294535]  Russell Bryant <russell@digium.com>

	* UPGRADE.txt, res/ais/clm.c, res/ais/evt.c: Tweak a couple of CLI
	  commands back to their original form. The "module" in this case
	  is two parts, so there are two words before the verb of the CLI
	  command.

	* main/devicestate.c, /: Merged revisions 294500 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r294500 | russell | 2010-11-10 06:41:41 -0600 (Wed, 10 Nov 2010)
	  | 7 lines Improve a debug message to be more readable and
	  consistent. (closes issue #18282) Reported by: klaus3000 Patches:
	  ast_devstate2str-patch.txt uploaded by klaus3000 (license 65)
	  ........

2010-11-09 22:46 +0000 [r294466]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c: Allow ast_do_masquerade() failure to be reported
	  again.

2010-11-09 20:33 +0000 [r294430]  Tilghman Lesher <tlesher@digium.com>

	* /, configure, include/asterisk/autoconfig.h.in, configure.ac:
	  Merged revisions 294429 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r294429 | tilghman | 2010-11-09 14:27:23 -0600 (Tue, 09 Nov 2010)
	  | 8 lines Detect GMime properly on systems where gmime flags and
	  libs are configured with pkg-config. (closes issue #16155)
	  Reported by: jcollie Patches: 20100917__issue16155.diff.txt
	  uploaded by tilghman (license 14) Tested by: tilghman ........

2010-11-09 16:55 +0000 [r294349]  Richard Mudgett <rmudgett@digium.com>

	* include/asterisk/channel.h, channels/sig_pri.c, main/channel.c,
	  channels/chan_misdn.c, channels/sig_analog.c: Analog lines do not
	  transfer CONNECTED LINE or execute the interception macros. Add
	  connected line update for sig_analog transfers and simplify the
	  corresponding sig_pri and chan_misdn transfer code. Note that if
	  you create a three-way call in sig_analog before transferring the
	  call, the distinction of the caller/callee interception macros
	  make little sense. The interception macro writer needs to be
	  prepared for either caller/callee macro to be executed. The
	  current implementation swaps which caller/callee interception
	  macro is executed after a three-way call is created. Review:
	  https://reviewboard.asterisk.org/r/996/ JIRA ABE-2589 JIRA
	  SWP-2372

2010-11-08 22:32 +0000 [r294278-294313]  Jeff Peeler <jpeeler@digium.com>

	* /, res/res_timing_timerfd.c: Merged revisions 294312 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r294312 | jpeeler | 2010-11-08 16:30:49 -0600 (Mon, 08
	  Nov 2010) | 1 line add missing unlock not present in 294277
	  ........

	* include/asterisk/timing.h, main/timing.c, main/channel.c, /,
	  res/res_timing_timerfd.c: Merged revisions 294277 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r294277 | jpeeler | 2010-11-08 15:58:13 -0600 (Mon, 08
	  Nov 2010) | 16 lines Fix playback failure when using IAX with the
	  timerfd module. To fix this issue the alert pipe will now be used
	  when the timerfd module is in use. There appeared to be a race
	  that was not solved by adding locking in the timerfd module, but
	  needed to be there anyway. The race was between the timer being
	  put in non-continuous mode in ast_read on the channel thread and
	  the IAX frame scheduler queuing a frame which would enable
	  continuous mode before the non-continuous mode event was read.
	  This race for now is simply avoided. (closes issue #18110)
	  Reported by: tpanton Tested by: tpanton I put tested by tpanton
	  because it was tested on his hardware. Thanks for the remote
	  access to debug this issue! ........

2010-11-08 20:56 +0000 [r294243]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 294242 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r294242 | mnicholson | 2010-11-08 14:50:21 -0600 (Mon, 08 Nov
	  2010) | 8 lines Go off hold when we get an empty reinvite telling
	  us to. (closes issue 0014448) Reported by: frawd (closes issue
	  #17878) Reported by: frawd ........

2010-11-08 19:56 +0000 [r294207]  Terry Wilson <twilson@digium.com>

	* configs/calendar.conf.sample, res/res_calendar.c: Set a default
	  waittime, and make sure to convert it to milliseconds

2010-11-08 17:16 +0000 [r294125]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c: valgrind reported references to freed
	  memory during a mISDN hangup collision. Bad things have been
	  happening in chan_misdn because the chan_misdn channel private
	  struct chan_list is not protected from reentrancy. Hangup
	  collisions have be causing read and write accesses to freed
	  memory. Converted chan_misdn struct chan_list to an ao2 object
	  for its reference counting feature. ********** Removed an
	  impediment to converting chan_list to an ao2 object. The use of
	  the other_ch member in chan_list is shaky at best. It is set if
	  the incoming and outgoing call legs are mISDN. The use of the
	  other_ch member goes against the Asterisk architecture and can
	  even cause problems. 1) It is used to disable echo cancellation.
	  This could be bad if the call is forked and the winning call leg
	  is not mISDN or the winning call leg is not the last mISDN
	  channel called by the fork. The other_ch would become a dangling
	  pointer. 2) It is used when the far end is alerting to hear the
	  far end's inband audio instead of Asterisk's generated ringback
	  tone. This is bad if the call is forked. You would only hear the
	  last forked mISDN channel and it may not be ringing yet. The
	  other_ch would become a dangling pointer if the call is later
	  transferred. ********** JIRA SWP-2423 JIRA ABE-2614

2010-11-05 22:03 +0000 [r294084]  Brett Bryant <bbryant@digium.com>

	* channels/chan_sip.c: Fixed deadlock avoidance issues while
	  locking channel when adding the Max-Forwards header to a request.
	  (closes issue #17949) (closes issue #18200) Reported by: bwg
	  Review: https://reviewboard.asterisk.org/r/997/

2010-11-05 16:05 +0000 [r294047-294049]  Terry Wilson <twilson@digium.com>

	* contrib/scripts/ast_tls_cert: Corret spelling and example

	* contrib/scripts/ast_tls_cert: Tell people to use the correct
	  common name for clients as well

2010-11-05 00:07 +0000 [r293970]  Shaun Ruffell <sruffell@digium.com>

	* codecs/codec_dahdi.c, /: Merged revisions 293969 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r293969 | sruffell | 2010-11-04 19:06:02 -0500
	  (Thu, 04 Nov 2010) | 25 lines Merged revisions 293968 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r293968 | sruffell | 2010-11-04 19:02:53 -0500 (Thu, 04 Nov 2010)
	  | 17 lines codecs/codec_dahdi: Prevent "choppy" audio when
	  receiving unexpected frame sizes. dahdi-linux 2.4.0 (specifically
	  commit 9034) added the capability for the wctc4xxp to return more
	  than a single packet of data in response to a read. However, when
	  decoding packets, codec_dahdi was still assuming that the default
	  number of samples was in each read. In other words, each packet
	  your provider sent you, regardless of size, would result in 20 ms
	  of decoded data (30 ms if decoding G723). If your provider was
	  sending 60 ms packets then codec_dahdi would end up stripping 40
	  ms of data from each transcoded frame resulting in "choppy"
	  audio. This would only affect systems where G729 packets are
	  arriving in sizes greater than 20ms or G723 packets arriving in
	  sizes greater than 30ms. DAHDI-744. ........ ................

2010-11-04 21:39 +0000 [r293924]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Fixes ringback tone on sip semi-attended
	  transfer. ABE-2168

2010-11-04 13:27 +0000 [r293887]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_sip.c: Do not output port in IPaddress for AMI
	  sippeers. (closes issue #18248) Reported by: orn Patches:
	  ami_sippeers.patch uploaded by pabelanger (license 224) Tested
	  by: orn

2010-11-03 18:35 +0000 [r293807]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /: Merged revisions
	  293806 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r293806 | rmudgett | 2010-11-03 13:31:57 -0500
	  (Wed, 03 Nov 2010) | 27 lines Merged revisions 293805 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r293805 | rmudgett | 2010-11-03 13:23:04 -0500 (Wed, 03 Nov 2010)
	  | 20 lines Party A in an analog 3-way call would continue to hear
	  ringback after party C answers. All parties are analog FXS ports.
	  1) A calls B. 2) A flash hooks to call C. 3) A flash hooks to
	  bring C into 3-way call before C answers. (A and B hear ringback)
	  4) C answers 5) A continues to hear ringback during the 3-way
	  call. (All parties can hear each other.) * Fixed use of wrong
	  variable in dahdi_bridge() that stopped ringback on the wrong
	  subchannel. * Made several debug messages have more information.
	  A similar issue happens if B and C are SIP channels. B continues
	  to hear ringback. For some reason this only affects v1.8 and
	  trunk. * Don't start ringback on the real and 3-way subchannels
	  when creating the 3-way conference. Removing this code is benign
	  on v1.6.2 and earlier. ........ ................

2010-11-03 18:05 +0000 [r293803]  Terry Wilson <twilson@digium.com>

	* include/asterisk/rtp_engine.h, main/rtp_engine.c,
	  channels/chan_sip.c: Avoid valgrind warnings for
	  ast_rtp_instance_get_xxx_address The documentation for
	  ast_rtp_instance_get_(local/remote)_address stated that they
	  returned 0 for success and -1 on failure. Instead, they returned
	  0 if the address structure passed in was already equivalent to
	  the address instance local/remote address or 1 otherwise. 90% of
	  the calls to these functions completely ignored the return
	  address and passed in an uninitialized struct, which would make
	  valgrind complain even though the operation was technically safe.
	  This patch fixes the documentation and converts the
	  get_xxx_address functions to void since all they really do is
	  copy the address and cannot fail. Additionally two new functions
	  (ast_rtp_instance_get_and_cmp_(local/remote)_address) are created
	  for the 3 times where the return value was actually checked. The
	  get_and_cmp_local_address function is currently unused, but
	  exists for the sake of symmetry. The only functional change as a
	  result of this change is that we will not do an
	  ast_sockaddr_cmp() on (mostly uninitialized) addresses before
	  doing the ast_sockaddr_copy() in the get_*_address functions. So,
	  even though it is an API change, it shouldn't have a noticeable
	  change in behavior. Review:
	  https://reviewboard.asterisk.org/r/995/

2010-11-02 23:09 +0000 [r293724]  Jeff Peeler <jpeeler@digium.com>

	* /, channels/chan_sip.c: Merged revisions 293723 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r293723 | jpeeler | 2010-11-02 18:07:13 -0500
	  (Tue, 02 Nov 2010) | 15 lines Merged revisions 293722 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r293722 | jpeeler | 2010-11-02 18:02:51 -0500 (Tue, 02 Nov 2010)
	  | 8 lines Add enabled/disabled information for rtautoclear sip
	  show settings output. When setting to zero/"no", the numeric
	  default was shown making it not obvious the disabled setting was
	  respected. (closes issue #18123) Reported by: zerohalo ........
	  ................

2010-11-02 21:29 +0000 [r293648]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /: Merged revisions
	  293647 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r293647 | rmudgett | 2010-11-02 16:26:30 -0500
	  (Tue, 02 Nov 2010) | 13 lines Merged revisions 293639 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r293639 | rmudgett | 2010-11-02 16:24:13 -0500 (Tue, 02 Nov 2010)
	  | 6 lines Make warning message have more useful information in
	  it. Change "Unable to get index, and nullok is not asserted" to
	  "Unable to get index for '<channel-name>' on channel <number>
	  (<function>(), line <number>)". ........ ................

2010-11-02 20:45 +0000 [r293611]  Paul Belanger <paul.belanger@polybeacon.com>

	* main/manager.c: If manager and tls are disabled, do not display
	  TCP/TLS Bindaddress.

2010-11-01 17:29 +0000 [r293530]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: Analog 3-way call would not connect all
	  parties if one was using sig_pri. Also the "dahdi show channel"
	  would not show the correct 3-way call status. * Synchronized the
	  inthreeway flag between chan_dahdi and sig_analog. * Fixed a
	  my_set_linear_mode() sign error and made take an analog sub
	  channel enum.

2010-11-01 16:09 +0000 [r293496]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_iax2.c: Use ast_sockaddr_from_sin function not
	  memcpy This resolves some IAX2 registration issue report on the
	  asterisk-users mailing list. (closes issue #18202) Reported by:
	  pabelanger Patches: update_registry.patch.v2 uploaded by
	  pabelanger (license 224) Tested by: pabelanger, Nic Colledge
	  (mailing list) Review: https://reviewboard.asterisk.org/r/993

2010-11-01 14:58 +0000 [r293493]  Terry Wilson <twilson@digium.com>

	* channels/chan_sip.c: Only offer codecs both sides support for
	  directmedia When using directmedia, Asterisk needs to limit the
	  codecs offered to just the ones that both sides recognize,
	  otherwise they may end up sending audio that the other side
	  doesn't understand. (closes issue #17403) Reported by: one47
	  Patches: sip_codecs_simplified4 uploaded by one47 (license 23)
	  Tested by: one47, falves11 Review:
	  https://reviewboard.asterisk.org/r/967/

2010-10-30 01:53 +0000 [r293341-293418]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /: Merged revisions
	  293417 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r293417 | rmudgett | 2010-10-29 20:49:15 -0500
	  (Fri, 29 Oct 2010) | 9 lines Merged revisions 293416 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r293416 | rmudgett | 2010-10-29 20:45:49 -0500 (Fri, 29
	  Oct 2010) | 1 line Remove some more code that serves no purpose.
	  ........ ................

	* channels/chan_dahdi.c, channels/sig_analog.c, /: Merged revisions
	  293340 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r293340 | rmudgett | 2010-10-29 19:40:10 -0500
	  (Fri, 29 Oct 2010) | 9 lines Merged revisions 293339 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r293339 | rmudgett | 2010-10-29 19:34:12 -0500 (Fri, 29
	  Oct 2010) | 1 line Remove some code that serves no purpose.
	  ........ ................

2010-10-29 21:48 +0000 [r293305]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_sip.c: Modify sip_setoption to not complain about
	  unknown options. This now behaves just like the other setoption
	  callbacks. For the curious the offending option for the reporter
	  was AST_OPTION_CHANNEL_WRITE which was getting passed due to a
	  fix for chan_local in 286189. (closes issue #17985) Reported by:
	  globalnetinc

2010-10-28 20:00 +0000 [r293197]  Tilghman Lesher <tlesher@digium.com>

	* res/ael/ael.tab.h, main/ast_expr2.c, /, main/ast_expr2.h,
	  res/ael/ael.tab.c, main/ast_expr2.y, res/ael/ael_lex.c: Merged
	  revisions 293195-293196 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r293195 | tilghman | 2010-10-28 14:52:52 -0500
	  (Thu, 28 Oct 2010) | 12 lines Merged revisions 293194 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r293194 | tilghman | 2010-10-28 14:44:37 -0500 (Thu, 28 Oct 2010)
	  | 5 lines "!00" evaluated as false, which is incorrect. Fixing.
	  Reported (though the reporter did not understand he was reporting
	  a bug) on the asterisk-users list:
	  http://lists.digium.com/pipermail/asterisk-users/2010-October/255505.html
	  ........ ................ r293196 | tilghman | 2010-10-28
	  14:54:34 -0500 (Thu, 28 Oct 2010) | 12 lines Merged revisions
	  293194 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r293194 | tilghman | 2010-10-28 14:44:37 -0500 (Thu, 28 Oct 2010)
	  | 5 lines "!00" evaluated as false, which is incorrect. Fixing.
	  Reported (though the reporter did not understand he was reporting
	  a bug) on the asterisk-users list:
	  http://lists.digium.com/pipermail/asterisk-users/2010-October/255505.html
	  ........ ................

2010-10-28 16:11 +0000 [r293159]  Jeff Peeler <jpeeler@digium.com>

	* /, funcs/func_strings.c: Merged revisions 293158 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r293158 | jpeeler | 2010-10-28 11:09:40 -0500 (Thu, 28
	  Oct 2010) | 11 lines Fix infinite loop in FILTER(). Specifically
	  when you're using characters above \x7f or invalid character
	  escapes (e.g. \xgg). (closes issue #18060) Reported by: wdoekes
	  Patches: issue18060_func_strings_filter_infinite_loop.patch
	  uploaded by wdoekes (license 717) Tested by: wdoekes ........

2010-10-26 18:49 +0000 [r293119]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 293118 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r293118 | jpeeler | 2010-10-26 13:33:24 -0500
	  (Tue, 26 Oct 2010) | 36 lines Merged revisions 293004 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r293004 | jpeeler | 2010-10-25 17:55:28 -0500 (Mon, 25 Oct 2010)
	  | 29 lines Fix inprocess_container in voicemail to correctly
	  restrict max messages. The comparison function logic was off, so
	  the number of sessions for a given mailbox were not being
	  incremented properly. This problem caused the maximum number of
	  messages per folder to not be respected when simultaneously
	  leaving multiple voicemails just below the threshold. These
	  problems should be fixed by the above, but just in case: Fixed
	  resequence_mailbox to rely on the actual number of detected
	  number of files in a directory rather than just assuming only 10
	  messages more than the maximum had been left. Also if more
	  messages than the maximum are deleted they are actually removed
	  now. The second purpose of this commit should have been separated
	  out probably, but is related to the above. Again, if the number
	  of messages in a given voicemail folder exceeds the maximum set
	  limit make sure to allocate enough space for the deleted and
	  heard index tracking array. A few random fixes: There was a
	  forgotten decrement of the inprocess count in imap_store_file.
	  When using IMAP storage, do not look in the directory where file
	  based storage messages may still reside and influence the message
	  count. Ensure to use only the first format in sendmail. ABE-2516
	  ........ ................

2010-10-26 16:32 +0000 [r293046-293081]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: No need to define the struct if there are no
	  users.

	* channels/sig_pri.c, configure, include/asterisk/autoconfig.h.in,
	  configure.ac: Allow the DAHDI driver to compile, even with a
	  sufficiently older version of libpri. Fixes our Bamboo builds.

2010-10-25 21:15 +0000 [r292906-292969]  Tilghman Lesher <tlesher@digium.com>

	* channels/sig_pri.c: Several more defines that need to be altered
	  for compiling against an older version of libpri

	* channels/sig_pri.c, configure, include/asterisk/autoconfig.h.in,
	  configure.ac: Allow the DAHDI driver to compile, even with a
	  sufficiently older version of libpri. Fixes our Bamboo builds.

2010-10-25 19:07 +0000 [r292868]  David Vossel <dvossel@digium.com>

	* channels/chan_local.c, /: Merged revisions 292867 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r292867 | dvossel | 2010-10-25 14:06:21 -0500
	  (Mon, 25 Oct 2010) | 32 lines Merged revisions 292866 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r292866 | dvossel | 2010-10-25 14:05:07 -0500 (Mon, 25 Oct 2010)
	  | 27 lines This patch turns chan_local pvts into astobj2 objects.
	  chan_local does some dangerous things involving deadlock
	  avoidance. tech_pvt functions like hangup and queue_frame are
	  provided with a locked channel upon entry. Those functions are
	  completely safe as long as you don't attempt to give up that
	  channel lock, but that is impossible to guarantee due to the
	  required deadlock avoidance necessary to lock both the tech_pvt
	  and both channels involved. In the past, we have tried to account
	  for this by doing things like setting a "glare" flag that
	  indicates what function should destroy the pvt. This was used in
	  local_hangup and local_queue_frame to decided who should destroy
	  the pvt if they collided in separate threads. I have removed the
	  need to do this by converting all chan_local tech_pvts to
	  astobj2. This means we can ref a pvt before deadlock avoidance
	  and not have to worry about that pvt possibly getting destroyed
	  under us. It also cleans up where we destroy the tech_pvt. The
	  only unlink from the tech_pvt container occurs in local_hangup
	  now, which is where it should occur. Since there still may be
	  thread collisions on some functions like local_hangup after
	  deadlock avoidance, I have added some checks to detect those
	  collisions and exit appropriately. I think this patch is going to
	  solve quite a bit of weirdness we have had with local channels in
	  the past. ........ ................

2010-10-22 22:35 +0000 [r292794-292825]  Terry Wilson <twilson@digium.com>

	* contrib/scripts/ast_tls_cert: Don't create directories without at
	  least o+x Also, making files that you are going to modify
	  read-only is dumb.

	* contrib/scripts/ast_tls_cert: Make files readable only by the
	  owner

2010-10-22 21:28 +0000 [r292787]  Leif Madsen <lmadsen@digium.com>

	* configs/res_ldap.conf.sample, contrib/scripts/asterisk.ldif, /,
	  channels/chan_sip.c: Merged revisions 292786 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r292786 | lmadsen | 2010-10-22 16:16:12 -0500 (Fri, 22 Oct 2010)
	  | 13 lines Update the LDIF file for LDAP. The LDIF file
	  asterisk.ldif was quite a bit out of date from the
	  asterisk.ldap-schema file, so I've now updated that to be in
	  sync. The asterisk.ldif file being out of sync was a problem on
	  my systems where I was doing an ldapadd to import the schema into
	  the LDAP database, and the existing file would cause problems and
	  ERROR messages when registering. Additional documention has been
	  added based on feedback in the issue I'm closing. (closes issue
	  #13861) Reported by: scramatte Patches: ldap-update.txt uploaded
	  by lmadsen (license 10) Tested by: lmadsen, jcovert, suretec,
	  rgenthner ........

2010-10-22 17:09 +0000 [r292741]  Mark Michelson <mmichelson@digium.com>

	* tests/test_event.c: Prevent multiple runs of event_sub_test from
	  producing false failure results. The array of test subscriptions
	  was declared "static," meaning that the data.count field would
	  retain its value between runs of the test. After the first test
	  run, this would result in false reports of test failures. I chose
	  to just remove the "static" keyword from the structure since it's
	  not a huge deal to construct this structure during each run of
	  the test. Another alternative would have been to zero out the
	  data.count fields of each test subscription instead.

2010-10-22 16:49 +0000 [r292740]  Terry Wilson <twilson@digium.com>

	* contrib/scripts/ast_tls_cert (added): Add TLS cert helper script
	  This script is useful for quickly generating self-signed CA,
	  server, and client certificates for use with Asterisk. It is
	  still recommended to obtain certificates from a recognized
	  Certificate Authority and to develop an understanding how SSL
	  certificates work. Real security is hard work. OPTIONS: -h Show
	  this message -m Type of cert "client" or "server". Defaults to
	  server. -f Config filename (openssl config file format) -c CA
	  cert filename (creates new CA cert/key as ca.crt/ca.key if not
	  passed) -k CA key filename -C Common name (cert field) For a
	  server cert, this should be the same address that clients attempt
	  to connect to. Usually this will be the Fully Qualified Domain
	  Name, but might be the IP of the server. For a CA or client cert,
	  it is merely informational. Make sure your certs have unique
	  common names. -O Org name (cert field) An informational string
	  (company name) -o Output filename base (defaults to asterisk) -d
	  Output directory (defaults to the current directory) Example: To
	  create a CA and a server (pbx.mycompany.com) cert with output in
	  /tmp: ast_tls_cert -C pbx.mycompany.com -O "My Company" -d /tmp
	  This will create a CA cert and key as well as asterisk.pem and
	  the the two files that it is made from: asterisk.crt and
	  asterisk.key. Copy asterisk.pem and ca.crt somewhere (like
	  /etc/asterisk) and set tlscertfile=/etc/asterisk.pem and
	  tlscafile=/etc/ca.crt. Since this is a self-signed key, many
	  devices will require you to import the ca.crt file as a trusted
	  cert. To create a client cert using the CA cert created by the
	  example above: ast_tls_cert -m client -c /tmp/ca.crt -k
	  /tmp/ca.key -C "Joe User" -O \ "My Company" -d /tmp -o joe_user
	  This will create client.crt/key/pem in /tmp. Use this if your
	  device supports a client certificate. Make sure that you have the
	  ca.crt file set up as a tlscafile in the necessary Asterisk
	  configs. Make backups of all .key files in case you need them
	  later.

2010-10-22 15:47 +0000 [r292704]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c, main/channel.c, channels/chan_misdn.c:
	  Connected line is not updated when chan_dahdi/sig_pri or
	  chan_misdn transfers a call. When a call is transfered by ECT or
	  implicitly by disconnect in sig_pri or implicitly by disconnect
	  in chan_misdn, the connected line information is not exchanged.
	  The connected line interception macros also need to be executed
	  if defined. The CALLER interception macro is executed for the
	  held call. The CALLEE interception macro is executed for the
	  active/ringing call. JIRA ABE-2589 JIRA SWP-2296 Patches:
	  abe_2589_c3bier.patch uploaded by rmudgett (license 664)
	  abe_2589_v1.8_v2.patch uploaded by rmudgett (license 664) Review:
	  https://reviewboard.asterisk.org/r/958/

2010-10-21 22:09 +0000 [r292667]  Tilghman Lesher <tlesher@digium.com>

	* channels/misdn/ie.c: Compile correctly on Linux
	  (asterisk/localtime.h depends upon asterisk/autoconfig.h loading
	  first).

2010-10-21 18:13 +0000 [r292628]  Paul Belanger <paul.belanger@polybeacon.com>

	* contrib/init.d/rc.suse.asterisk: Fix typo in SUSE init script.
	  Reported by: Dave Cotton on asterisk-users list.

2010-10-21 16:14 +0000 [r292595]  David Vossel <dvossel@digium.com>

	* main/manager.c: Fixes recursive lock problem in manager.c It is
	  possible for a AMI session to freeze because of invalid use of
	  recursive locks during the EVENT processing. This patch removes
	  the unnecessary locks. (closes issue #18167) Reported by: sustav
	  Patches: manager_locking_v1.diff uploaded by dvossel (license
	  671) Tested by: sustav

2010-10-21 13:12 +0000 [r292557]  Leif Madsen <lmadsen@digium.com>

	* configs/res_ldap.conf.sample, /: Merged revisions 292556 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r292556 | lmadsen | 2010-10-21 08:11:52 -0500 (Thu, 21 Oct 2010)
	  | 6 lines Change res_ldap.sample.conf to match the schema.
	  (closes issue #17376) Reported by: jcovert Patches:
	  res_ldap.conf.sample.patch uploaded by jcovert (license 551)
	  ........

2010-10-21 11:36 +0000 [r292523]  Russell Bryant <russell@digium.com>

	* res/res_config_ldap.c: Add var=value to log message on update
	  failure, and add newline. ... just for you, Leif.

2010-10-21 01:02 +0000 [r292489]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Send CONNECT_ACKNOWLEDGE for CIS calls too.
	  The originator of the Q.SIG call completion signaling link was
	  not changed to the active state when the CONNECT message came in.
	  The T309 processing would immediately kill the signaling link
	  because it was not in the active state.

2010-10-21 00:21 +0000 [r292413-292436]  Paul Belanger <paul.belanger@polybeacon.com>

	* apps/app_voicemail.c: Application not properly unregister in
	  voicemail (closes issue #18128) Reported by: junky Patches:
	  vm_unregister.diff uploaded by junky (license 177) Tested by:
	  pabelanger, lmadsen

	* apps/app_dial.c, /: Merged revisions 292412 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r292412 | pabelanger | 2010-10-20 20:05:45 -0400
	  (Wed, 20 Oct 2010) | 17 lines Merged revisions 292411 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r292411 | pabelanger | 2010-10-20 20:00:51 -0400 (Wed, 20 Oct
	  2010) | 10 lines Record priv-recordintro as sln, not gsm This
	  removes the gsm->sln step when transcoding priv-recordintro.
	  (closes issue #18176) Reported by: pabelanger Patches:
	  chan_sip.diff uploaded by pabelanger (license 224) ........
	  ................

2010-10-20 00:40 +0000 [r292376]  Tilghman Lesher <tlesher@digium.com>

	* res/res_musiconhold.c: Oops. This module uses the generic timer
	  and no longer uses DAHDI. This causes a problem with the Solaris
	  and other system builds that have gcc 4.1 (where optional_api is
	  non-optional).

2010-10-19 22:14 +0000 [r292343]  Paul Belanger <paul.belanger@polybeacon.com>

	* contrib/scripts/install_prereq: Add resample and imap_tk
	  dependencies.

2010-10-19 19:27 +0000 [r292309]  Terry Wilson <twilson@digium.com>

	* res/res_srtp.c, channels/chan_sip.c: Add sip show peer info about
	  crypto and remove dated comment This patch adds information about
	  the encryption setting to 'sip show peers' and removes an
	  out-of-date comment from res_srtp.c and instead directs users to
	  the proper documentation. (closes issue #18140) Reported by:
	  chodorenko

2010-10-21  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0 Released.

2010-10-18  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-rc5 Released.

2010-10-18 22:02 +0000 [r292230]  Leif Madsen <lmadsen@digium.com>

	* sounds/Makefile, /: Merged revisions 292229 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r292229 | lmadsen | 2010-10-18 17:01:16 -0500 (Mon, 18 Oct 2010)
	  | 3 lines Fix typo in the sounds/Makefile. (Issue #17426)
	  ........

2010-10-18 21:55 +0000 [r292227]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 292226 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r292226 | jpeeler | 2010-10-18 16:54:38 -0500
	  (Mon, 18 Oct 2010) | 18 lines Merged revisions 292223 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r292223 | jpeeler | 2010-10-18 16:50:30 -0500 (Mon, 18 Oct 2010)
	  | 11 lines Fix improper operator key acceptance and clean up temp
	  recording files. This is a fix for when pressing the operator key
	  after recording an unavailable, busy, name, or temporary message
	  in mailbox options. The operator key should not be accepted here,
	  but should be allowed during the message recording. If the
	  operator key is pressed during ensure the file is saved or
	  deleted as apporopriate. Also, ensure removal of temporary
	  recorded files after an early hang up or when message acceptance
	  confirmation times out. ABE-2518 ........ ................

2010-10-18 21:51 +0000 [r292225]  Leif Madsen <lmadsen@digium.com>

	* sounds/sounds.xml, sounds/Makefile, /: Merged revisions 292224
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r292224 | lmadsen | 2010-10-18 16:50:47 -0500
	  (Mon, 18 Oct 2010) | 17 lines Merged revisions 292222 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r292222 | lmadsen | 2010-10-18 16:47:25 -0500 (Mon, 18 Oct 2010)
	  | 9 lines Add support for the new English (Australian Accent)
	  sound files. (closes issue #17426) Reported by: camsown Patches:
	  core-sounds-en_AU.txt uploaded by camsown (license 1050)
	  add_AU_sounds.patch.txt uploaded by lmadsen (license 10) Tested
	  by: camsown, lmadsen, jtodd, qwell ........ ................

2010-10-18 19:50 +0000 [r292188]  Russell Bryant <russell@digium.com>

	* main/netsock2.c: Resolve some compiler errors in
	  ast_sockaddr_is_any(). These errors came up once this function
	  was used from within netsock2.c. The errors were like the
	  following: netsock2.c:393: error: dereferencing pointer
	  ‘({anonymous})’ does break strict-aliasing rules The usage of a
	  union here avoids this problem.

2010-10-18 19:16 +0000 [r292155]  David Vossel <dvossel@digium.com>

	* main/netsock2.c: Fixes build error for systems not supporting
	  IPV6_TCLASS.

2010-10-18 17:15 +0000 [r292122]  Matthew Nicholson <mnicholson@digium.com>

	* addons/chan_mobile.c: Fix the cmgr parser. (closes issue 0018152)
	  Reported by: menschentier

2010-10-18  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-rc4 Released

2010-10-18 16:02 +0000 [r292085]  David Vossel <dvossel@digium.com>

	* main/netsock2.c: Fixes qos settings for sockets bound to any IPv6
	  or IPv4 address. (closes issue #18099) Reported by: jamesnet
	  Patches: issues_18099_v3.diff uploaded by dvossel (license 671

2010-10-18 15:32 +0000 [r292083]  Jeff Peeler <jpeeler@digium.com>

	* pbx/pbx_spool.c: Disable use of inotify for call file handling as
	  it is not working properly. (related to #18089)

2010-10-16 10:47 +0000 [r292050]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* res/res_musiconhold.c, /, configs/musiconhold.conf.sample: Merged
	  revisions 292049 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r292049 | tzafrir | 2010-10-16 12:03:04 +0200 (ש', 16 אוק 2010) |
	  15 lines Base directory for MOH should be ASTDATADIR If the
	  directive 'directory' is relative, make it relative to the
	  datadir, rather than to the varlibdir. In the sample
	  configuration it is relative ('moh'). This has no effect unless
	  you have actively set the datadir explicitly (at build time or at
	  run time). (closes issue #16906) Patches: moh_datadir uploaded by
	  tzafrir (license 46) Review:
	  https://reviewboard.asterisk.org/r/974/ ........

2010-10-15 21:40 +0000 [r292016]  Terry Wilson <twilson@digium.com>

	* res/res_srtp.c: Ref/unref res_srtp when we create/destroy a
	  session This avoids unhappy crashing when we try to 'core stop
	  gracefully' and res_srtp tries to unload before chan_sip does.
	  Thanks, Russell! (closes issue #18085) Reported by: st

2010-10-15 20:12 +0000 [r291942]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Fixes peer's host port information being
	  lost on sip reload. (closes issue #18135) Reported by: lmadsen
	  Patches: crazy_ports_v2.diff uploaded by dvossel (license 671)
	  Tested by: lmadsen

2010-10-15 19:50 +0000 [r291940]  Paul Belanger <paul.belanger@polybeacon.com>

	* configs/gtalk.conf.sample, /: Merged revisions 291939 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r291939 | pabelanger | 2010-10-15 15:35:20 -0400
	  (Fri, 15 Oct 2010) | 9 lines Merged revisions 291938 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r291938 | pabelanger | 2010-10-15 15:30:41 -0400 (Fri,
	  15 Oct 2010) | 2 lines Clean up formatting. ........
	  ................

2010-10-15 16:39 +0000 [r291905]  Terry Wilson <twilson@digium.com>

	* res/res_jabber.c, /: Merged revisions 291904 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r291904 | twilson | 2010-10-15 09:16:57 -0700 (Fri, 15 Oct 2010)
	  | 7 lines Don't crash or deadlock on module unload We can't hold
	  the lock while pthread_join is called since aji_log_hook will
	  attempt to lock from the other therad. We reorder the
	  pthread_join and ast_aji_disconnect so that we don't do an
	  SSL_read() while SSL_shutdown is running, causing a crash.
	  ........

2010-10-14 22:09 +0000 [r291827-291829]  David Vossel <dvossel@digium.com>

	* main/netsock2.c: Set TCLASS field of IPv6 header when sip qos
	  options are set. (closes issue #18099) Reported by: jamesnet
	  Patches: issues_18099_v2.diff uploaded by dvossel (license 671)
	  Tested by: dvossel, jamesnet

	* channels/chan_gtalk.c: Safer xml parsing, treat all clients the
	  same, and better local candidate selection. The gtalk channel
	  driver was doing several unsafe operations in regards to how it
	  parsed incoming XML messages. I have cleaned that code up so it
	  should be much safer now. We now treat all clients types the
	  same. We have no reason to distinguish between GMAIL and GOOGLE
	  VOICE clients anymore because they all work the same way. I also
	  modified how the local ip is found. If no bindaddress is provided
	  in the config file, we attempt to determine the local ip we would
	  use to connect to google.com. If that fails, then we fall back to
	  the ast_find_ourip() function as a last resort. Using the new
	  method makes it much less likely that we would ever advertise a
	  local RTP candidate as a loopback address.

2010-10-14 18:45 +0000 [r291791]  Jeff Peeler <jpeeler@digium.com>

	* main/stdtime/localtime.c: Add missing ifdefs for test framework
	  and new locale code. (closes issue #18137) Reported by: ovi
	  Patches: 18137_test_framework_ifdef.patch uploaded by wdoekes
	  (license 717) 18137_localelist_warning.patch uploaded by wdoekes
	  (license 717) Tested by: ovi

2010-10-14 15:15 +0000 [r291758]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_gtalk.c, channels/chan_jingle.c,
	  include/asterisk/acl.h, channels/chan_sip.c,
	  channels/chan_h323.c, main/acl.c: Add the ability for
	  ast_find_ourip to return IPv4, IPv6 or both. While testing
	  chan_gtalk I noticed jabber was using my IPv6 address and not
	  IPv4. When using bindaddr=0.0.0.0 it is possible for
	  ast_find_ourip() to return both IPv6 and IPv4 results. Adding a
	  family parameter gives you the ablility to choose. Since
	  jabber/gtalk/h323 do not support IPv6, we should only return IPv4
	  results. Review: https://reviewboard.asterisk.org/r/973/

2010-10-14 12:08 +0000 [r291725]  Russell Bryant <russell@digium.com>

	* doc/tex/secure-calls.tex: Fix a typo - s/seucre/secure/

2010-10-13 23:45 +0000 [r291656]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /,
	  channels/sig_analog.h: Merged revisions 291655 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r291655 | rmudgett | 2010-10-13 18:36:50 -0500
	  (Wed, 13 Oct 2010) | 27 lines Merged revisions 291643 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r291643 | rmudgett | 2010-10-13 18:29:58 -0500 (Wed, 13 Oct 2010)
	  | 20 lines Deadlock between dahdi_exception() and
	  dahdi_indicate(). There is a deadlock between dahdi_exception()
	  and dahdi_indicate() for analog ports. The call-waiting and
	  three-way-calling feature can experience deadlock if these
	  features are trying to do something and an event from the bridged
	  channel happens at the same time. Deadlock avoidance code added
	  to obtain necessary channel locks before attemting an operation
	  with call-waiting and three-way-calling. (closes issue #16847)
	  Reported by: shin-shoryuken Patches: issue_16847_v1.4.patch
	  uploaded by rmudgett (license 664) issue_16847_v1.6.2.patch
	  uploaded by rmudgett (license 664) issue_16847_v1.8_v2.patch
	  uploaded by rmudgett (license 664) Tested by: alecdavis, rmudgett
	  Review: https://reviewboard.asterisk.org/r/971/ ........
	  ................

2010-10-13 23:01 +0000 [r291581]  Terry Wilson <twilson@digium.com>

	* main/channel.c, /: Merged revisions 291580 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r291580 | twilson | 2010-10-13 15:58:43 -0700
	  (Wed, 13 Oct 2010) | 28 lines Merged revisions 291577 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r291577 | twilson | 2010-10-13 15:45:15 -0700 (Wed, 13 Oct 2010)
	  | 21 lines Don't ignore frames that have been queued when
	  softhangup'd When an outgoing call is answered and hung up by the
	  far end *very* quickly, we may not read any frames and therefor
	  end up with a call that displays the wrong
	  disposition/DIALSTATUS. The reason is because ast_queue_hangup()
	  immediately sets the _softhangup flag on the channel and then
	  queues the HANGUP control frame, but __ast_read refuses to read
	  any frames if ast_check_hangup() indicates that a hangup request
	  has been made (which it will if _softhangup is set). So, we end
	  up losing control frames. This change makes __ast_read continue
	  to read frames even if a soft hangup has been requested. It
	  queues a hangup frame to make sure that __ast_read() will still
	  eventually return NULL. Much thanks to David Vossel for all of
	  the reviews, discussion, and help! (closes issue #16946) Reported
	  by: davidw Review: https://reviewboard.asterisk.org/r/740/
	  ........ ................

2010-10-13 22:46 +0000 [r291578]  David Vossel <dvossel@digium.com>

	* channels/chan_gtalk.c: More fixup for chan_gtalk. This patch
	  makes the xml parsing safer.

2010-10-13 22:24 +0000 [r291575]  Terry Wilson <twilson@digium.com>

	* Makefile, static-http/mantest.html (added): Add a simple AMI
	  client web page This patch uses the XML docs to parse all of the
	  available AMI commands and allows you to enter the command name
	  and be presented with a form with the available fields. You can
	  then rapidly tab through the fields and submit the command and
	  view the response. It is much faster/easier than having to use
	  telnet for testing purposes.

2010-10-13 20:21 +0000 [r291469-291541]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: The chan_dahdi faxdetect option only works
	  for the first FAX call. The chan_dahdi faxdetect option only
	  works for the first call. After that the option no longer works.
	  The struct dahdi_pvt.callprogress member is the encoded user
	  config setting for the callprogress and faxdetect config options.
	  Changing this value alters the configuration for all following
	  calls until the chan_dahdi.conf file is reloaded. * Fixed the
	  chan_dahdi ast_channel_setoption callback to not change the users
	  faxdetect config setting except for the current call. * Fixed the
	  chan_dahdi ast_channel_queryoption callback to read the active
	  DSP setting of the faxdetect option. * Made actually disable the
	  active faxdetect DSP setting for the current call on the analog
	  port. my_handle_dtmfup() is used for normal analog ports.
	  dahdi_handle_dtmfup() is the legacy code and is no longer used
	  unless in a radio mode. (closes issue #18116) Reported by:
	  seandarcy Patches: issue18116_v1.8.patch uploaded by rmudgett
	  (license 664) Review: https://reviewboard.asterisk.org/r/972/

	* channels/chan_misdn.c: Merged revision 291504 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  .......... r291504 | rmudgett | 2010-10-13 13:30:21 -0500 (Wed,
	  13 Oct 2010) | 11 lines Hold off ast_hangup() from destroying the
	  ast_channel. Must get the ast_channel lock before proceeding with
	  release_chan() and release_chan_early() to hold off ast_hangup()
	  from destroying the ast_channel. Missed this change for -r291468.
	  JIRA ABE-2598 JIRA SWP-2317 ..........

	* channels/chan_misdn.c: Merge revision 291468 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  .......... r291468 | rmudgett | 2010-10-13 12:39:02 -0500 (Wed,
	  13 Oct 2010) | 16 lines Memory overwrites when releasing mISDN
	  call. Phone <--> Asterisk <-- ALERTING --> DISCONNECT <-- RELEASE
	  --> RELEASE_COMPLETE * Add lock protection around channel list
	  for find/add/delete operations. * Protect misdn_hangup() from
	  release_chan() and vise versa using the release_lock. JIRA
	  ABE-2598 JIRA SWP-2317 ..........

2010-10-13 15:46 +0000 [r291394]  Russell Bryant <russell@digium.com>

	* /, channels/chan_sip.c: Merged revisions 291393 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r291393 | russell | 2010-10-13 10:29:21 -0500
	  (Wed, 13 Oct 2010) | 13 lines Merged revisions 291392 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r291392 | russell | 2010-10-13 10:23:19 -0500 (Wed, 13 Oct 2010)
	  | 6 lines Lock pvt so pvt->owner can't disappear when queueing up
	  a frame. This fixes a crash due to a hangup race condition.
	  ABE-2601 ........ ................

2010-10-12 17:20 +0000 [r291284]  Leif Madsen <lmadsen@digium.com>

	* configs/phoneprov.conf.sample, /: Merged revisions 291280 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r291280 | lmadsen | 2010-10-12 12:20:02 -0500 (Tue, 12 Oct 2010)
	  | 7 lines Add undocumented variables to phoneprov.conf.sample
	  (closes issue #18107) Reported by: lathama Patches:
	  phoneprov.conf.sample.diff uploaded by lathama (license 1028)
	  ........

2010-10-12 17:06 +0000 [r291265]  Tilghman Lesher <tlesher@digium.com>

	* /, main/acl.c: Merged revisions 291264 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r291264 | tilghman | 2010-10-12 12:05:31 -0500
	  (Tue, 12 Oct 2010) | 9 lines Merged revisions 291263 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r291263 | tilghman | 2010-10-12 11:55:30 -0500 (Tue, 12
	  Oct 2010) | 2 lines Oops, incorrect range (although unallocated
	  at ARIN) ........ ................

2010-10-12 16:08 +0000 [r291230]  Leif Madsen <lmadsen@digium.com>

	* configs/manager.conf.sample, /: Merged revisions 291229 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r291229 | lmadsen | 2010-10-12 11:07:28 -0500 (Tue, 12 Oct 2010)
	  | 2 lines Add documention that mentions options are defined but
	  not used. (Issue #18101) ........

2010-10-12 15:58 +0000 [r291192-291227]  David Vossel <dvossel@digium.com>

	* main/manager.c: Fixes manager.c crash. This issue was caused by
	  improper use of the mansession lock and manession_session lock.
	  These two structures are confusing to begin with so I'm not
	  surprised this occurred. I fixed this by consistently making sure
	  we use each of these locks only to protect the data in the
	  corresponding structure. We had mismatched usage of these locks
	  which resulted in no mutual exclusivity occurring at all. (closes
	  issue #17994) Reported by: vrban Patches:
	  mansession_locking_fix.diff uploaded by dvossel (license 671)
	  Tested by: vrban

	* CHANGES: Update CHANGES to reflect new gtalk.conf options.

	* channels/chan_gtalk.c, include/asterisk/stun.h,
	  configs/gtalk.conf.sample, res/res_stun_monitor.c: Gtalk
	  enhancements and general code cleanup. This patch includes
	  several chan_gtalk enhancements. Two new gtalk.conf options have
	  been added, externip and stunadd. Setting externip allows us to
	  manually specify what the external IP address is outside of a NAT
	  environment. Setting the stunaddr option to a valid stun server
	  allows for that external ip to be retrieved via a STUN server
	  automatically. This external IP is then advertised during call
	  setup as a possible candidate. I have also attempted to clean up
	  chan_gtalk's code so it meets our coding guidelines. During this
	  cleanup I noticed several things that need to be done in the code
	  and made a TODO section at the top of the file.

2010-10-11 18:51 +0000 [r291075-291113]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_sip.c: Move declaration closer to where now used.

	* /, channels/chan_sip.c: Merged revisions 291110-291111 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r291110 | rmudgett | 2010-10-11 13:34:22 -0500
	  (Mon, 11 Oct 2010) | 9 lines Merged revisions 291109 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r291109 | rmudgett | 2010-10-11 13:29:43 -0500 (Mon, 11
	  Oct 2010) | 1 line Add missing unlock to an exception condition
	  in reload_config(). ........ ................ r291111 | rmudgett
	  | 2010-10-11 13:39:06 -0500 (Mon, 11 Oct 2010) | 1 line Make exit
	  from handle_request_do() consistent. ................

	* main/cli.c, /: Merged revisions 291073 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r291073 | rmudgett | 2010-10-11 11:39:17 -0500 (Mon, 11 Oct 2010)
	  | 15 lines Fixed infinite loop in verbose/debug message output.
	  Setting the module/filename specific message level and then
	  changing it resulted in the linked list being looped on itself.
	  Traversing this linked list is an infinite loop if what you are
	  looking for is not in the list. Also plugged some CLI parsing
	  holes in the associated CLI command: * Removing a nonexistent
	  module from the list actually added it with a level of zero. *
	  Setting the non-module specific level to zero is now equivalent
	  to setting it to "off" as documented. ........

2010-10-09 23:25 +0000 [r291038]  Tilghman Lesher <tlesher@digium.com>

	* cdr/cdr_pgsql.c, configs/cdr_pgsql.conf.sample: Add missing
	  option to set calls to be logged in GMT/UTC.

2010-10-09 15:00 +0000 [r291005-291037]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/oochannels.c: small correction for verbose
	  print h.323 packets

	* addons/ooh323c/src/ooh323.c, addons/chan_ooh323.c,
	  addons/ooh323c/src/ooh245.c: Added fast start and h.245 tunneling
	  options per user and peer. Added options for faststart/h.245
	  tunneling per user/peer, properly handle these and global
	  options, correction of handling fs/tunneling fields in signalling
	  responses (issue #17972) Reported by: salecha Patches:
	  fs-tunnel-per-point-3.patch uploaded by may213 (license 454)
	  Tested by: may213, salecha

2010-10-08 20:44 +0000 [r290973]  David Vossel <dvossel@digium.com>

	* channels/chan_gtalk.c: Make outbound Google Voice calls. This
	  patch allows for outbound Google Voice calls to be dialed from
	  Asterisk using chan_gtalk. Below is an example dialstring. exten
	  -> blah,1,Dial(Gtalk/asterisk/+15552225555@voice.google.com,,) In
	  this example, 'asterisk' is the jabber.conf profile configured to
	  connect to your gmail account. In order to receive Google Voice
	  calls make sure to enable 'allowguest=yes' in gtalk.conf.

2010-10-08 15:49 +0000 [r290937-290938]  Erin Spiceland <erin@thespicelands.com>

	* addons/res_config_mysql.c: Parentheses around assignment used as
	  truth value, introduced in r290937.

	* addons/res_config_mysql.c, addons/app_mysql.c,
	  configs/res_config_mysql.conf.sample: Add option to
	  res_config_mysql and app_mysql to specify a character set that
	  MySQL should use. (closes issue 17948) Reported by qmax.

2010-10-08 02:56 +0000 [r290864]  Jeff Peeler <jpeeler@digium.com>

	* main/asterisk.c, /: Merged revisions 290863 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r290863 | jpeeler | 2010-10-07 21:45:44 -0500
	  (Thu, 07 Oct 2010) | 16 lines Merged revisions 290862 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r290862 | jpeeler | 2010-10-07 21:35:29 -0500 (Thu, 07 Oct 2010)
	  | 9 lines Ensure editline cleanup occurs when Ctrl-C is pressed
	  at control console. A recent change was made to avoid a race
	  condition on shutdown which only called the end functions from
	  the console thread. However, when pressing Ctrl-C the quit
	  handler is called from the signal handler thread. (closes issue
	  #17698) Reported by: jmls ........ ................

2010-10-07 22:38 +0000 [r290828-290829]  David Vossel <dvossel@digium.com>

	* channels/chan_gtalk.c: Add Philippe Sultan to chan_gtalk author
	  list. Philippe has made some notable contributions to the gtalk
	  channel driver. His name deserves to be listed amoung the authors
	  of that file. Thanks Philippe!

	* channels/chan_gtalk.c: Outbound gtalk calls now work correctly.
	  There was a problem with how the candidates were being built on
	  an outbound call. This patch fixes that.

2010-10-07 20:58 +0000 [r290752]  Jason Parker <jparker@digium.com>

	* autoconf/ast_ext_lib.m4, /, configure,
	  include/asterisk/autoconfig.h.in: Merged revisions 290751 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r290751 | qwell | 2010-10-07 15:57:14 -0500
	  (Thu, 07 Oct 2010) | 16 lines Merged revisions 290750 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r290750 | qwell | 2010-10-07 15:56:04 -0500 (Thu, 07 Oct 2010) |
	  9 lines Allow PRI to build properly when using --with-pri. Use
	  the directories found for the parent when using lib dependencies.
	  (closes issue #17314) Reported by: tzafrir Patches:
	  17314-withdeps.diff uploaded by qwell (license 4) ........
	  ................

2010-10-07  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-rc3 Released.

2010-10-07 11:00 +0000 [r290713]  Russell Bryant <russell@digium.com>

	* main/pbx.c, /: Merged revisions 290712 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r290712 | russell | 2010-10-07 12:53:56 +0200 (Thu, 07 Oct 2010)
	  | 4 lines Don't crash when Set() is called without a value.
	  Review: https://reviewboard.asterisk.org/r/949/ ........

2010-10-06 21:22 +0000 [r290648-290674]  David Vossel <dvossel@digium.com>

	* channels/chan_gtalk.c: Fixes commented out code to use #if 0
	  instead. Thanks to rmudgett for catching this!

	* channels/chan_gtalk.c: Fixes gtalk outbound DTMF to work
	  properly. Outbound DTMF with gtalk needs to be done within the
	  RTP stream. I discovered this after investigating a packet
	  capture from the gmail client. Instead of performing jingle
	  signaling DTMF, the gtalk servers expect all DTMF to arrive on
	  the RTP stream using RFC2833 way of doing things. Chan_gtalk also
	  had an issue with negotiating RTP payload type 106 for the
	  telephony-event and then sending DTMF as payload 101. This has
	  been resolved by always negotiating 101 as the payload type like
	  we do everywhere else. With this patch, incoming google voice
	  calls forwarded to Asterisk via gtalk work.

2010-10-06 18:50 +0000 [r290614]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_dial.c: Merged revision 290613 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  .......... r290613 | rmudgett | 2010-10-06 13:42:41 -0500 (Wed,
	  06 Oct 2010) | 5 lines Eliminate a redundant test for
	  AST_CONTROL_REDIRECTING. Eliminate redundant test for
	  AST_CONTROL_REDIRECTING that prevents running the redirecting
	  interception macro if it is defined. ..........

2010-10-06 13:49 +0000 [r290576]  Tilghman Lesher <tlesher@digium.com>

	* /, main/file.c: Merged revisions 290575 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r290575 | tilghman | 2010-10-06 08:48:27 -0500 (Wed, 06 Oct 2010)
	  | 8 lines Allow streaming audio from a pipe. (closes issue
	  #18001) Reported by: jamicque Patches:
	  20100926__issue18001.diff.txt uploaded by tilghman (license 14)
	  Tested by: jamicque ........

2010-10-06 04:35 +0000 [r290542]  Terry Wilson <twilson@digium.com>

	* res/res_rtp_asterisk.c: Don't try to send RTP when remote_address
	  is null It is possible for ast_rtp_stop() to be called which will
	  clear the remote address and cause the sendto to fail and spam
	  warnings. Don't send in this case.

2010-10-05 22:23 +0000 [r290479-290506]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: Fixes uninitialized memory problem in 'iax2
	  set debug peer' option.

	* include/asterisk/jingle.h, channels/chan_gtalk.c,
	  res/res_jabber.c, include/asterisk/jabber.h: Fixes chan_gtalk to
	  work with gmail client This patch was written by Philippe Sultan
	  (phsultan). Thanks for keeping this up to date!

2010-10-05 20:23 +0000 [r290408]  Tilghman Lesher <tlesher@digium.com>

	* res/res_jabber.c, /: Merged revisions 290396 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r290396 | tilghman | 2010-10-05 15:21:02 -0500
	  (Tue, 05 Oct 2010) | 15 lines Merged revisions 290392 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r290392 | tilghman | 2010-10-05 15:20:07 -0500 (Tue, 05 Oct 2010)
	  | 8 lines Fix a crash by ensuring that we don't alter memory
	  after it's freed. (closes issue #17387) Reported by: jmls
	  Patches: 20100726__issue17387.diff.txt uploaded by tilghman
	  (license 14) Tested by: jmls ........ ................

2010-10-05 20:09 +0000 [r290376-290378]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: Resolves dnsmgr memory corruption in
	  chan_iax2. (closes issue #17902) Reported by: afried Patches:
	  issue_17902.rev1.txt uploaded by russell (license 2) Tested by:
	  afried, russell, dvossel Review:
	  https://reviewboard.asterisk.org/r/965/

	* /, apps/app_directed_pickup.c: Merged revisions 290375 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r290375 | dvossel | 2010-10-05 14:54:50 -0500 (Tue, 05 Oct 2010)
	  | 10 lines Fixes PickupChan() not working with full channel name.
	  (closes issue #18011) Reported by: schern Patches:
	  app_directed_pickup.c.2.patch uploaded by schern (license 995)
	  app_directed_pickup.c.trunk.patch uploaded by schern (license
	  995) Tested by: schern, dvossel ........

2010-10-05 14:15 +0000 [r290066-290289]  Tilghman Lesher <tlesher@digium.com>

	* configure, configure.ac: Restore run directory for OS X, as well
	  as standardizing some other paths to Mac OS X.

	* pbx/ael/ael-test/ref.ael-test4, pbx/ael/ael-test/ref.ael-test5,
	  pbx/ael/ael-test/ref.ael-test19,
	  pbx/ael/ael-test/ref.ael-vtest13, res/ael/pval.c, main/pbx.c,
	  pbx/ael/ael-test/ref.ael-vtest17, /,
	  pbx/ael/ael-test/ref.ael-ntest10, pbx/ael/ael-test/ref.ael-test1,
	  pbx/ael/ael-test/ref.ael-test2, pbx/ael/ael-test/ref.ael-test3:
	  Merged revisions 290254 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r290254 | tilghman | 2010-10-04 18:14:59 -0500 (Mon, 04 Oct 2010)
	  | 11 lines Change new pattern matcher to regard dashes the same
	  as the old pattern matcher -- as visual candy to be ignored. Also
	  change the AEL parser to not generate dashes within extensions,
	  as those dashes would be ignored. Update the AEL tests to match
	  this behavior. (closes issue #17366) Reported by: murf Patches:
	  20100727__issue17366.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman ........

	* /, configure, configure.ac: Merged revisions 290201 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r290201 | tilghman | 2010-10-04 15:22:03 -0500
	  (Mon, 04 Oct 2010) | 9 lines Merged revisions 290177 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r290177 | tilghman | 2010-10-04 15:15:26 -0500 (Mon, 04
	  Oct 2010) | 2 lines Fixing Mac OS X auto-builder. ........
	  ................

	* /, configure, configure.ac: Merged revisions 290101 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r290101 | tilghman | 2010-10-03 16:06:58 -0500
	  (Sun, 03 Oct 2010) | 9 lines Merged revisions 290100 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r290100 | tilghman | 2010-10-03 16:04:29 -0500 (Sun, 03
	  Oct 2010) | 2 lines Automatically re-run configure test for
	  menuselect, when the relevant makeopts settings change. ........
	  ................

	* pbx/pbx_spool.c: Get notification only when file is closed, not
	  when created. (closes issue #17924) Reported by: mkeuter Patches:
	  asterisk-1.8-bugid17924.patch uploaded by abelbeck (license 946)
	  Tested by: abelbeck

2010-10-02 17:57 +0000 [r290026]  Kevin P. Fleming <kpfleming@digium.com>

	* contrib/scripts/get_mp3_source.sh: Allow users to pass additional
	  arguments to the Subversion command that obtains the MP-3 source
	  code. (reported on IRC by jmls)

2010-10-02 08:56 +0000 [r289951]  Olle Johansson <oej@edvina.net>

	* main/manager.c, /: Merged revisions 289950 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289950 | oej | 2010-10-02 10:52:03 +0200 (Lör,
	  02 Okt 2010) | 9 lines Merged revisions 289949 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289949 | oej | 2010-10-02 10:50:05 +0200 (Lör, 02 Okt 2010) | 2
	  lines Add documentation for undocumented option to AMI action
	  originate ........ ................

2010-10-02 04:46 +0000 [r289875]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 289874 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289874 | tilghman | 2010-10-01 23:45:49 -0500
	  (Fri, 01 Oct 2010) | 15 lines Merged revisions 289873 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289873 | tilghman | 2010-10-01 23:42:08 -0500 (Fri, 01 Oct 2010)
	  | 8 lines When forwarding a message, a prepend means that the
	  filesystem will always have a better copy. (closes issue #17803)
	  Reported by: dpetersen Patches: 20100923__issue17803.diff.txt
	  uploaded by tilghman (license 14) Tested by: dpetersen ........
	  ................

2010-10-02 02:43 +0000 [r289840]  Jeff Peeler <jpeeler@digium.com>

	* include/asterisk/rtp_engine.h, res/res_rtp_asterisk.c,
	  main/rtp_engine.c, /, channels/chan_sip.c: Merged revisions
	  289798 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289798 | jpeeler | 2010-10-01 18:01:31 -0500
	  (Fri, 01 Oct 2010) | 22 lines Merged revisions 289797 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289797 | jpeeler | 2010-10-01 17:58:38 -0500 (Fri, 01 Oct 2010)
	  | 15 lines Change RFC2833 DTMF event duration on end to report
	  actual elapsed time. The scenario here is with a non P2P early
	  media session. The reported time length of DTMF presses are
	  coming up short when sending to the remote side. Currently the
	  event duration is a running total that is incremented when
	  sending continuation packets. These continuation packets are only
	  triggered upon incoming media from the remote side, which means
	  that the running total probably is not going to end up matching
	  the actual length of time Asterisk received DTMF. This patch
	  changes the end event duration to be lengthened if it is detected
	  that the end event is going to come up short. Review:
	  https://reviewboard.asterisk.org/r/957/ ABE-2476 ........
	  ................

2010-10-01 17:19 +0000 [r289718]  Paul Belanger <paul.belanger@polybeacon.com>

	* res/res_jabber.c, /, configs/jabber.conf.sample: Merged revisions
	  289704 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289704 | pabelanger | 2010-10-01 13:09:03 -0400
	  (Fri, 01 Oct 2010) | 13 lines Merged revisions 289703 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289703 | pabelanger | 2010-10-01 13:03:11 -0400 (Fri, 01 Oct
	  2010) | 6 lines Disable debugging by default and reformat .config
	  file. Review: https://reviewboard.asterisk.org/r/929/ ........
	  ................

2010-10-01 16:22 +0000 [r289701]  Jeff Peeler <jpeeler@digium.com>

	* /, channels/chan_sip.c: Merged revisions 289700 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289700 | jpeeler | 2010-10-01 11:21:04 -0500
	  (Fri, 01 Oct 2010) | 21 lines Merged revisions 289699 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289699 | jpeeler | 2010-10-01 11:20:00 -0500 (Fri, 01 Oct 2010)
	  | 14 lines Ensure user portion of SIP URI matches dialplan when
	  using encoded characters. This commit takes a simliar approach to
	  288112 and checks the dialplan to determine the proper action for
	  an incoming contact header as to whether or not it should be
	  decoded or not. sip_new was blindly always decoding the
	  extension, which also caused the outgoing contact header to be
	  incorrect as well as failing to match the encoded extension in
	  the dialplan. (closes issue #17892) Reported by: wdoekes Patches:
	  bug17892-1.patch uploaded by jpeeler (license 325) Tested by:
	  wdoekes ........ ................

2010-10-01 09:42 +0000 [r289622]  Stefan Schmidt <sst@sil.at>

	* channels/chan_sip.c: don't iterate through all dialogs to find
	  and delete old subscribes On every incoming subscribe there is a
	  iteration through all dialogs to find old subscribes and delete
	  them. This is slow and not RFC conform. This was only needed in
	  1.2 cause a subscribe was not deleted when a dialog was
	  destroyed, after 1.4 a subscribe get removed when its dialog is
	  destroyed. (closes issue #17950) Reported by: schmidts Tested by:
	  schmidts Review: https://reviewboard.asterisk.org/r/901/

2010-09-30 20:23 +0000 [r289581]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_env.c: Solaris fixes.

2010-09-30 19:53 +0000 [r289554]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 289553 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r289553 | mnicholson | 2010-09-30 14:51:27 -0500 (Thu, 30 Sep
	  2010) | 4 lines Properly handle channel allocation failures duing
	  invites with replaces. ABE-2588 ........

2010-09-30 19:28 +0000 [r289549]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c: Merged revision 289547 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  .......... r289547 | rmudgett | 2010-09-30 14:16:36 -0500 (Thu,
	  30 Sep 2010) | 10 lines In chan_misdn, the
	  DivertingLegInformation2 DivertingNr is garbage when the number
	  is restricted. The same thing happens with
	  DivertingLegInformation1 DivertedTo number. The
	  misdn_PresentedNumberUnscreened_extract() extracted the
	  Unscreened PartyNumber field unconditionally. It now checks the
	  presented number unscreened type to see if the PartyNumber was
	  even present. JIRA ABE-2595 ..........

2010-09-30 17:50 +0000 [r289543]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/localtime.h, main/stdtime/localtime.c,
	  tests/test_time.c, tests/test_utils.c, res/res_agi.c: More
	  Solaris compatibility fixes

2010-09-30 15:39 +0000 [r289426]  Russell Bryant <russell@digium.com>

	* apps/app_sms.c, /: Merged revisions 289425 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289425 | russell | 2010-09-30 10:37:29 -0500
	  (Thu, 30 Sep 2010) | 15 lines Merged revisions 289424 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289424 | russell | 2010-09-30 10:34:29 -0500 (Thu, 30 Sep 2010)
	  | 8 lines Fix a crash in app_sms. Since the data being passed to
	  the generator callback is on the stack of the SMS() application,
	  we must ensure that the generator is stopped before the
	  application exits. ABE-2587 ........ ................

2010-09-29 21:12 +0000 [r289340]  Jason Parker <jparker@digium.com>

	* main/channel.c, /, main/features.c: Merged revisions 289339 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289339 | qwell | 2010-09-29 16:03:47 -0500
	  (Wed, 29 Sep 2010) | 15 lines Merged revisions 289338 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289338 | qwell | 2010-09-29 15:56:26 -0500 (Wed, 29 Sep 2010) |
	  8 lines Allow a manager originate to succeed on forwarded
	  devices. The timeout to wait for an answer was being set to 0
	  when a device forwarded to another extension. We don't always
	  need the timeout set like this, so make it an optional parameter,
	  and don't use it in this case. ABE-2544 ........ ................

2010-09-29 20:27 +0000 [r289336]  Leif Madsen <lmadsen@digium.com>

	* configs/res_ldap.conf.sample, /: Merged revisions 289334 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r289334 | lmadsen | 2010-09-29 15:24:47 -0500 (Wed, 29 Sep 2010)
	  | 1 line Update sample documentation to note md5secret
	  requirements. ........

2010-09-29 20:20 +0000 [r289333]  Russell Bryant <russell@digium.com>

	* res/res_config_ldap.c, /: Merged revisions 289332 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r289332 | russell | 2010-09-29 15:15:57 -0500 (Wed, 29
	  Sep 2010) | 4 lines Don't completely ignore md5secret from LDAP
	  if the value does not begin with {md5}. This fixes a problem that
	  lmadsen ran in to where md5secret was not working for him.
	  ........

2010-09-29 17:53 +0000 [r289268-289300]  Matthew Nicholson <mnicholson@digium.com>

	* configs/res_fax.conf.sample: Add 'ecm' to the sample fax config
	  file

	* main/channel.c: Update the CDR record when
	  ast_channel_set_caller_event() is called (related to issue
	  #17569) Reported by: tbelder

2010-09-29 16:16 +0000 [r289253]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c: Make development error message indicate which
	  channel.

2010-09-29 15:04 +0000 [r289179]  Matthew Nicholson <mnicholson@digium.com>

	* main/channel.c, /: Merged revisions 289178 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289178 | mnicholson | 2010-09-29 10:04:11 -0500
	  (Wed, 29 Sep 2010) | 15 lines Merged revisions 289177 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289177 | mnicholson | 2010-09-29 10:03:27 -0500 (Wed, 29 Sep
	  2010) | 8 lines Set the caller id on CDRs when it is set on the
	  parent channel. (closes issue #17569) Reported by: tbelder
	  Patches: 17569.diff uploaded by tbelder (license 618) Tested by:
	  tbelder ........ ................

2010-09-28 18:18 +0000 [r289104]  Tilghman Lesher <tlesher@digium.com>

	* makeopts.in, apps/app_voicemail.c, Makefile, tests/test_time.c,
	  configure, include/asterisk/autoconfig.h.in,
	  include/asterisk/compat.h, main/strcompat.c, tests/test_utils.c,
	  configure.ac: Solaris compatibility fixes Review:
	  https://reviewboard.asterisk.org/r/942/

2010-09-28 18:18 +0000 [r289099]  Brett Bryant <bbryant@digium.com>

	* main/channel.c, /: Merged revisions 289095 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r289095 | bbryant | 2010-09-28 14:14:19 -0400
	  (Tue, 28 Sep 2010) | 21 lines Merged revisions 289094 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r289094 | bbryant | 2010-09-28 14:10:19 -0400 (Tue, 28 Sep 2010)
	  | 14 lines Fixes an issue with the Newchannel AMI event during
	  the Masquerading process. Fixes an issue with the Newchannel AMI
	  event during the Masquerading process, where no Newchannel AMI
	  event was generated for the psuedo channel used during the
	  masquerading process. (closes issue #17987) Reported by:
	  RadicAlish Patches: newchannel.patch.txt uploaded by RadicAlish
	  (license 1122) Tested by: RadicAlish Review:
	  https://reviewboard.asterisk.org/r/937/ ........ ................

2010-09-28 01:04 +0000 [r289054-289057]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Avoid deadlock processing incoming AOC-E
	  messages. Deadlock avoidance for the owner channel was not done
	  when processing incoming AOC-E messages.

	* channels/sig_pri.c: Revert stuff not ready for commit in
	  -r289054.

	* channels/sig_pri.c, channels/chan_sip.c: Break up long
	  ast_manager_event_multichan() event lines.

2010-09-27 18:37 +0000 [r288961]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Still build SIP, even if res_crypto cannot
	  be built (use, not depend). (closes issue #18062) Reported by: a
	  user on the mailing list

2010-09-27 13:03 +0000 [r288925-288927]  Russell Bryant <russell@digium.com>

	* res/res_agi.c: Fix some documentation typos and spelling errors.

	* res/res_agi.c: Fix a documentation spelling error.

2010-09-24 17:58 +0000 [r288821-288852]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Append Retry-After header on 500 error
	  response to Re-INVITE according to RFC3261 section 14.2. ABE-2301

	* channels/chan_sip.c: Inspect Require header on BYE transaction
	  according to RFC3261 section 8.2.2.3. ABE-2293

2010-09-24 16:02 +0000 [r288748]  Terry Wilson <twilson@digium.com>

	* channels/chan_local.c, /: Merged revisions 288747 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288747 | twilson | 2010-09-24 08:37:39 -0700
	  (Fri, 24 Sep 2010) | 12 lines Merged revisions 288746 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r288746 | twilson | 2010-09-24 08:26:09 -0700 (Fri, 24 Sep 2010)
	  | 5 lines Don't fail a masquerade if it is already being hung up
	  This avoids noise on some Local channel situations where we don't
	  use /n. Thanks to Alec Davis for the suggestion. ........
	  ................

2010-09-24 13:54 +0000 [r288606-288713]  Tilghman Lesher <tlesher@digium.com>

	* /, funcs/func_strings.c: Merged revisions 288712 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r288712 | tilghman | 2010-09-24 08:53:30 -0500 (Fri, 24
	  Sep 2010) | 5 lines Solaris won't printf a NULL. (closes issue
	  #18041) Reported by: asgaroth ........

	* main/asterisk.exports.in: Export timersub for platforms which do
	  not have it

	* include/asterisk/channel.h, cdr/cdr_pgsql.c, /, configure,
	  include/asterisk/autoconfig.h.in, include/asterisk/compat.h,
	  main/strcompat.c, configure.ac: Merged revisions 288637 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288637 | tilghman | 2010-09-23 22:36:01 -0500
	  (Thu, 23 Sep 2010) | 9 lines Merged revisions 288636 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r288636 | tilghman | 2010-09-23 22:20:24 -0500 (Thu, 23
	  Sep 2010) | 2 lines Solaris compatibility fixes ........
	  ................

	* CHANGES: Add note about the checkhangup option of ${CHANNEL()}

2010-09-23  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-rc2 Released.

2010-09-23 18:05 +0000 [r288507-288572]  Terry Wilson <twilson@digium.com>

	* main/manager.c: Make AMI honor enabled=no (closes issue #18040)
	  Reported by: twilson Review:
	  https://reviewboard.asterisk.org/r/938/

	* channels/chan_local.c, /: Merged revisions 288500 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288500 | twilson | 2010-09-22 16:10:09 -0700
	  (Wed, 22 Sep 2010) | 15 lines Merged revisions 288499 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r288499 | twilson | 2010-09-22 16:00:30 -0700 (Wed, 22 Sep 2010)
	  | 8 lines Don't let a Local channel get bridged to itself If a
	  local channel gets bridged to itself, it becomes orphaned with no
	  devices left to actually tell it to hang up. This patch modifies
	  local_fixup() to detect this case and deny it. Review:
	  https://reviewboard.asterisk.org/r/934 ........ ................

2010-09-22  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-rc1 Released.

2010-09-22 17:49 +0000 [r288345-288418]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 288417 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288417 | dvossel | 2010-09-22 12:49:05 -0500
	  (Wed, 22 Sep 2010) | 11 lines Merged revisions 288416 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r288416 | dvossel | 2010-09-22 12:48:15 -0500 (Wed, 22 Sep 2010)
	  | 5 lines RFC3261 section 12.2 explicitly says out of order
	  requests are responded with a 500 Server Internal Error response.
	  ABE-2458 ........ ................

	* /, channels/chan_sip.c: Merged revisions 288344 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288344 | dvossel | 2010-09-22 11:53:28 -0500
	  (Wed, 22 Sep 2010) | 9 lines Merged revisions 288343 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r288343 | dvossel | 2010-09-22 11:49:56 -0500 (Wed, 22
	  Sep 2010) | 2 lines During check_pendings, if the dialog is
	  terminated with a CANCEL, change the invitestate to INV_CANCEL
	  like in sip_hangup. ........ ................

2010-09-22 16:45 +0000 [r288341]  Russell Bryant <russell@digium.com>

	* main/asterisk.c, /: Merged revisions 288340 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288340 | russell | 2010-09-22 11:44:13 -0500
	  (Wed, 22 Sep 2010) | 18 lines Merged revisions 288339 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r288339 | russell | 2010-09-22 11:39:16 -0500 (Wed, 22 Sep 2010)
	  | 11 lines Fix a 100% CPU consumption problem when setting
	  console=yes in asterisk.conf. The handling of -c and console=yes
	  should be the same, but they were not. When you specify -c, it
	  sets both a flag for console module and for asterisk not to
	  fork() off into the background. The handling of console=yes only
	  set console mode, so you would end up with a background process()
	  trying to run the Asterisk console and freaking out since it
	  didn't have anything to read input from. Thanks to beagles for
	  reporting and helping debug the problem! ........
	  ................

2010-09-22 15:14 +0000 [r288268]  Tilghman Lesher <tlesher@digium.com>

	* UPGRADE.txt, cdr/cdr_pgsql.c, configs/cdr_pgsql.conf.sample, /:
	  Merged revisions 288267 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288267 | tilghman | 2010-09-22 10:11:09 -0500
	  (Wed, 22 Sep 2010) | 23 lines Merged revisions 288265-288266 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r288265 | tilghman | 2010-09-22 09:48:04 -0500 (Wed, 22 Sep 2010)
	  | 9 lines Allow the encoding to be set, in case local charset
	  does not agree with database. (closes issue #16940) Reported by:
	  jamicque Patches: 20100827__issue16940.diff.txt uploaded by
	  tilghman (license 14) 20100921__issue16940__1.6.2.diff.txt
	  uploaded by tilghman (license 14) Tested by: jamicque ........
	  r288266 | tilghman | 2010-09-22 10:04:52 -0500 (Wed, 22 Sep 2010)
	  | 5 lines Document addition of encoding parameter. (issue #16940)
	  Reported by: jamicque ........ ................

2010-09-22 00:06 +0000 [r288194]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_iax2.c, /: Merged revisions 288193 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288193 | rmudgett | 2010-09-21 19:03:37 -0500
	  (Tue, 21 Sep 2010) | 33 lines Merged revisions 288192 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r288192 | rmudgett | 2010-09-21 18:55:58 -0500 (Tue, 21 Sep 2010)
	  | 26 lines In chan_iax2.c:schedule_delivery() calls
	  ast_bridged_channel() on an unlocked channel. Near the beginning
	  of schedule_delivery(), ast_bridged_channel() is called on
	  iaxs[fr->callno]->owner. However, the channel is not locked,
	  which can result in ast_bridged_channel() crashing should
	  owner->tech change to a technology that doesn't implement
	  bridged_channel. I also fixed the other calls to
	  ast_bridged_channel() in chan_iax2.c since the owner lock was not
	  held there either. Converted the existing channel deadlock
	  avoidance to use iax2_lock_owner(). Using the new function
	  simplified some awkward code. In the process of fixing the
	  locking on ast_bridged_channel(), I also found a memory leak in
	  socket_process() for v1.6.2 and v1.8. The local struct variable
	  ies.vars is not freed on early/abnormal function exits. (closes
	  issue #17919) Reported by: rain Patches: issue17919_v1.4.patch
	  uploaded by rmudgett (license 664) issue17919_w_leak_v1.6.2.patch
	  uploaded by rmudgett (license 664) issue17919_w_leak_v1.8.patch
	  uploaded by rmudgett (license 664) Review:
	  https://reviewboard.asterisk.org/r/926/ ........ ................

2010-09-21 22:57 +0000 [r288159]  Tilghman Lesher <tlesher@digium.com>

	* /, channels/chan_sip.c: Merged revisions 288113 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288113 | tilghman | 2010-09-21 16:59:46 -0500
	  (Tue, 21 Sep 2010) | 22 lines Merged revisions 288112 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r288112 | tilghman | 2010-09-21 16:58:13 -0500 (Tue, 21 Sep 2010)
	  | 15 lines Try both the encoded and unencoded subscription URI
	  for a match in hints. When a phone sends an encoded URI for a
	  subscription, the URI is not matched with the actual hint that is
	  in decoded format. For example, if we have an extension with a
	  hint that is named: "#5601" or "*5601", the subscription will
	  work fine if the phone subscribes with an already decoded URI,
	  but when it's decoded like "%255601" or "%2A5601", Asterisk is
	  unable to match it with the correct hint. (closes issue #17785)
	  Reported by: ramonpeek Patches: 20100831__issue17785.diff.txt
	  uploaded by tilghman (license 14) Tested by: ramonpeek ........
	  ................

2010-09-21 22:26 +0000 [r288157]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_iax2.c, /: Merged revisions 288147 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r288147 | pabelanger | 2010-09-21 18:22:43 -0400 (Tue,
	  21 Sep 2010) | 9 lines Setup timer before set_config(). (closes
	  issue #18019) Reported by: Netview Patches: issue_0018019.patch
	  uploaded by pabelanger (license 224) Tested by: Netview ........

2010-09-21 21:03 +0000 [r288079-288082]  Richard Mudgett <rmudgett@digium.com>

	* doc/tex/partymanip.tex: Add note in party manipulation chapter on
	  interception macros.

	* apps/app_queue.c, apps/app_dial.c: Simplify locking code for
	  REDIRECTING interception macro when forwarding a call. Simplified
	  the locking code by using a local copy of the redirecting party
	  information in app_dial.c:do_forward() and
	  app_queue.c:wait_for_answer() for launching the REDIRECTING
	  interception macro when a call is forwarded. Reduced the lock
	  time of the 'o->chan' and 'in' channels.

	* main/channel.c: Protect channel access in CONNECTED_LINE and
	  REDIRECTING interception macro launch code.

2010-09-21 19:48 +0000 [r288007]  Brett Bryant <bbryant@digium.com>

	* main/channel.c, /: Merged revisions 288006 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r288006 | bbryant | 2010-09-21 15:46:20 -0400
	  (Tue, 21 Sep 2010) | 14 lines Merged revisions 288005 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r288005 | bbryant | 2010-09-21 15:43:46 -0400 (Tue, 21 Sep 2010)
	  | 8 lines Add a check to fix a rare segmentation fault you'd get
	  if ast_frdup couldn't allocate memory on the first frame being
	  queued in ast_queue_frame. (closes issue #17882) Reported by:
	  seanbright Tested by: seanbright ........ ................

2010-09-21 19:08 +0000 [r287935]  Tilghman Lesher <tlesher@digium.com>

	* main/asterisk.c, /: Merged revisions 287934 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r287934 | tilghman | 2010-09-21 14:07:53 -0500
	  (Tue, 21 Sep 2010) | 9 lines Merged revisions 287933 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r287933 | tilghman | 2010-09-21 14:07:07 -0500 (Tue, 21
	  Sep 2010) | 2 lines Less than zero is an error, not any non-zero
	  value. ........ ................

2010-09-21 19:02 +0000 [r287931]  Terry Wilson <twilson@digium.com>

	* main/channel.c: Revert change in favor of a more targeted fix

2010-09-21 18:32 +0000 [r287929]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Send a "415 Unsupported Media Type" after
	  failure to process sdp due to unknown Content-Encoding header.
	  ABE-2258

2010-09-21 15:53 +0000 [r287897]  Richard Mudgett <rmudgett@digium.com>

	* main/features.c: Cut-n-paste error in builtin_blindtransfer().

2010-09-21 15:43 +0000 [r287895]  Russell Bryant <russell@digium.com>

	* res/res_rtp_asterisk.c, main/dnsmgr.c, channels/chan_sip.c,
	  main/acl.c: Don't use ast_strdupa() from within the arguments to
	  a function. (closes issue #17902) Reported by: afried Patches:
	  issue_17902.rev1.txt uploaded by russell (license 2) Tested by:
	  russell Review: https://reviewboard.asterisk.org/r/927/

2010-09-21 15:24 +0000 [r287893]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Anonymous callerid needs a "sip:" uri
	  prefix. (closes issue #17981) Reported by: avalentin Patches:
	  sip-anonymous-aastra.patch uploaded by avalentin (license 1107)
	  (plus an additional fix by me) Tested by: avalentin

2010-09-21 13:41 +0000 [r287863]  Russell Bryant <russell@digium.com>

	* main/logger.c: Fix a regression in verbose logger processing.

2010-09-21 04:37 +0000 [r287833]  Terry Wilson <twilson@digium.com>

	* main/channel.c: Don't generate connected line buffer twice for
	  comparison

2010-09-21 00:00 +0000 [r287760]  Brett Bryant <bbryant@digium.com>

	* /, apps/app_meetme.c: Merged revisions 287759 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r287759 | bbryant | 2010-09-20 19:58:26 -0400
	  (Mon, 20 Sep 2010) | 23 lines Merged revisions 287758 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r287758 | bbryant | 2010-09-20 19:57:08 -0400 (Mon, 20 Sep 2010)
	  | 16 lines Fix misvalidation of meetme pins in conjunction with
	  the 'a' MeetMe flag. When using the 'a' MeetMe flag and having a
	  user and admin pin setup for your conference, using the user pin
	  would gain you admin priviledges. Also, when no user pin was set,
	  an admin pin was, the 'a' MeetMe flag wasn't used, and the user
	  tried to enter a conference then they were still prompted for a
	  pin and forced to hit #. (closes issue #17908) Reported by: kuj
	  Patches: pins_2.patch uploaded by kuj (license 1111) Tested by:
	  kuj Review: [full review board URL with trailing slash] ........
	  ................

2010-09-20 23:51 +0000 [r287757]  Terry Wilson <twilson@digium.com>

	* main/channel.c: Avoid infinite loop with certain local channel
	  connected line updates Compare connected line data before sending
	  a connected line indication to avoid possible loops. Review:
	  https://reviewboard.asterisk.org/r/932/

2010-09-20 23:20 +0000 [r287701]  Alec L Davis <sivad.a@paradise.net.nz>

	* main/channel.c, /: Merged revisions 287685 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r287685 | alecdavis | 2010-09-21 11:16:45 +1200 (Tue, 21 Sep
	  2010) | 18 lines ast_channel_masquerade: Avoid recursive
	  masquerades. Check all 4 combinations of (original/clonechan) *
	  (masq/masqr). Initially original->masq and clonechan->masqr were
	  only checked. It's possible with multiple masq's planned - and
	  not yet executed, that the 'original' chan could already have
	  another masq'd into it - thus original->masqr would be set, that
	  masqr would lost. Likewise for the clonechan->masq. (closes issue
	  #16057;#17363) Reported by: amorsen;davidw,alecdavis Patches:
	  based on bug16057.diff4.txt uploaded by alecdavis (license 585)
	  Tested by: ramonpeek, davidw, alecdavis ........

2010-09-20 23:14 +0000 [r287683]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: The inalarm flag was not set in sig_analog
	  struct if the port is initially in alarm. Fixed initial inalarm
	  value for sig_analog ports. Along with -r261007, this gets the
	  inalarm flag in sync with chan_dahdi for sig_analog ports.
	  (closes issue #16983)

2010-09-20 22:21 +0000 [r287661]  Alec L Davis <sivad.a@paradise.net.nz>

	* main/channel.c: ast_do_masquerade. Keep channels ao2_container
	  locked while unlink and linking channels. Previously, Masquerade
	  would unlock 'original' and 'clonechan' and allow another masq
	  thread to run. End result would be corrupted memory, and the
	  frequent report 'Bad Magic Number'. (closes issue #17801,#17710)
	  Reported by: notthematrix Patches: Based on bug17801.diff1.txt
	  uploaded by alecdavis (license 585) Tested by: alecdavis Review:
	  https://reviewboard.asterisk.org/r/928

2010-09-20 22:09 +0000 [r287645-287647]  David Vossel <dvossel@digium.com>

	* include/asterisk/channel.h, CHANGES, include/asterisk/framehook.h
	  (added), main/channel.c, main/framehook.c (added),
	  funcs/func_frame_trace.c (added): Addition of the FrameHook API
	  (AKA AwesomeHooks) So far all our tools for viewing and
	  manipulating media streams within Asterisk have been entirely
	  focused on audio. That made sense then, but is not scalable now.
	  The FrameHook API lets us tap into and manipulate _ANY_ type of
	  media or signaling passed on a channel present today or in the
	  future. This tool is a step in the direction of expanding
	  Asterisk's boundaries and will help generate some rather
	  interesting applications in the future. In addition to the
	  FrameHook API, a simple dialplan function exercising the api has
	  been included as well. This function is called FRAME_TRACE().
	  FRAME_TRACE() allows for the internal ast_frames read and written
	  to a channel to be output. Filters can be placed on this function
	  to debug only certain types of frames. This function could be
	  thought of as an internal way of doing ast_frame packet captures.
	  Review: https://reviewboard.asterisk.org/r/925/

	* channels/chan_sip.c: Fixes issue with registrations not working
	  properly with pedantic=yes. (closes issue #18017) Reported by:
	  schmidts Patches: issues_18017_v1.diff uploaded by dvossel
	  (license 671) Tested by: schmidts

2010-09-20 21:29 +0000 [r287643]  Jason Parker <jparker@digium.com>

	* /, channels/chan_skinny.c: Merged revisions 287642 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r287642 | qwell | 2010-09-20 16:28:32 -0500 (Mon, 20 Sep
	  2010) | 8 lines Don't crash when parking a non-bridged call.
	  (closes issue #17680) Reported by: jmhunter Patches:
	  chan_skinny-park-v1.txt uploaded by DEA (license 3) Tested by:
	  jmhunter, DEA ........

2010-09-20 21:19 +0000 [r287639]  Brett Bryant <bbryant@digium.com>

	* main/logger.c: Fixes an error with the logger that caused verbose
	  messages to be spammed to the screen if syslog was configured in
	  logger.conf (closes issue #17974) Reported by: lmadsen Review:
	  https://reviewboard.asterisk.org/r/915/

2010-09-20 15:57 +0000 [r287559]  Matthew Nicholson <mnicholson@digium.com>

	* main/pbx.c, /: Merged revisions 287558 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r287558 | mnicholson | 2010-09-20 10:56:21 -0500
	  (Mon, 20 Sep 2010) | 14 lines Use ast_str when processing hint
	  state changes Merged revisions 287555 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r287555 | mnicholson | 2010-09-20 10:48:14 -0500 (Mon, 20 Sep
	  2010) | 5 lines Use ast_dynamic_str when processing hint state
	  changes (related to issue #17928) Reported by: mdu113 ........
	  ................

2010-09-19 16:09 +0000 [r287471]  Olle Johansson <oej@edvina.net>

	* main/manager.c, /: Merged revisions 287470 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r287470 | oej | 2010-09-19 18:06:10 +0200 (Sön,
	  19 Sep 2010) | 14 lines Merged revisions 287469 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r287469 | oej | 2010-09-19 17:56:50 +0200 (Sön, 19 Sep 2010) | 7
	  lines Make sure we always free variables properly in manager
	  originate. (closes issue #17891) reported, solved and tested by
	  oej Review: https://reviewboard.asterisk.org/r/869/ ........
	  ................

2010-09-17 21:08 +0000 [r287388]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_queue.c, /: Merged revisions 287387 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r287387 | tilghman | 2010-09-17 16:08:00 -0500
	  (Fri, 17 Sep 2010) | 14 lines Merged revisions 287386 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r287386 | tilghman | 2010-09-17 16:06:03 -0500 (Fri, 17 Sep 2010)
	  | 7 lines Blank columns should get set on reload, not ignored.
	  (closes issue #16893) Reported by: haakon Patches:
	  20100818__issue16893.diff.txt uploaded by tilghman (license 14)
	  ........ ................

2010-09-17 13:37 +0000 [r287309]  Matthew Nicholson <mnicholson@digium.com>

	* main/pbx.c, /: Merged revisions 287308 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r287308 | mnicholson | 2010-09-17 08:36:07 -0500
	  (Fri, 17 Sep 2010) | 12 lines Merged revisions 287307 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r287307 | mnicholson | 2010-09-17 08:34:34 -0500 (Fri, 17 Sep
	  2010) | 5 lines Use ast_strdup() instead of ast_strdupa() while
	  processing in ast_hint_state_changed(). (related to issue #17928)
	  Reported by: mdu113 ........ ................

2010-09-17 08:44 +0000 [r287269-287271]  Jan Kalab <pitlicek@gmail.com>

	* res/res_calendar_ews.c: Events are visible after they were
	  removed from EWS calendar Because we must merge calendar even
	  when it's empty. (closes issue #17786)

	* res/res_calendar_ews.c: Asterisk crashing because of double free
	  when EWS request fails The free is done later in code. I think
	  ast_free() should have built in checks for double free. (closes
	  issue #17782)

	* res/res_calendar_caldav.c, res/res_calendar_ews.c,
	  res/res_calendar_exchange.c, res/res_calendar_icalendar.c:
	  Support for HTTP redirects in calendar's URL libneon does not
	  support HTTP redirects (3xx responses) by default. You must tell
	  it to follow them. Also, another little unsigned int fix. (closes
	  issue #17776) Review: https://reviewboard.asterisk.org/r/921/

2010-09-16 22:04 +0000 [r287195]  Jason Parker <jparker@digium.com>

	* contrib/init.d/rc.debian.asterisk: Don't fail when running the
	  Debian init script directly (as one would normally do). readlink
	  apparently returns 1 when the arg isn't a symlink, which caused
	  the script to exit. (closes issue #17910) Reported by: wurstsalat

2010-09-16 21:57 +0000 [r287193]  Russell Bryant <russell@digium.com>

	* UPGRADE.txt, apps/app_queue.c, configs/queues.conf.sample: Set
	  the default for "autofill" and "shared_lastcall" to "yes" in
	  queues.conf. Review: https://reviewboard.asterisk.org/r/922/

2010-09-16 20:07 +0000 [r287116-287120]  Matthew Nicholson <mnicholson@digium.com>

	* main/pbx.c, /: Merged revisions 287119 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r287119 | mnicholson | 2010-09-16 15:06:16 -0500
	  (Thu, 16 Sep 2010) | 15 lines Merged revisions 287118 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r287118 | mnicholson | 2010-09-16 15:04:46 -0500 (Thu, 16 Sep
	  2010) | 8 lines Don't limit hint processing in
	  ast_hint_state_changed() to AST_MAX_EXTENSION length strings.
	  (closes issue #17928) Reported by: mdu113 Patches:
	  20100831__issue17928.diff.txt uploaded by tilghman (license 14)
	  Tested by: mdu113 ........ ................

	* main/cdr.c, /: Merged revisions 287115 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r287115 | mnicholson | 2010-09-16 14:53:41 -0500
	  (Thu, 16 Sep 2010) | 15 lines Merged revisions 287114 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r287114 | mnicholson | 2010-09-16 14:52:39 -0500 (Thu, 16 Sep
	  2010) | 8 lines Don't stop printing cdr variables if we encounter
	  one with a blank name or value. (closes issue #17900) Reported
	  by: under Patches: core-show-channel-cdr-fix1.diff uploaded by
	  mnicholson (license 96) Tested by: mnicholson ........
	  ................

2010-09-15 22:17 +0000 [r287056]  Terry Wilson <twilson@digium.com>

	* res/res_srtp.c: Don't hang up a call on an SRTP unprotect failure
	  Also make it more obvious when there is an issue en/decrypting.
	  (closes issue #17563) Reported by: Alexcr Patches:
	  res_srtp.c.patch uploaded by sfritsch (license 1089) Tested by:
	  twilson

2010-09-15 20:58 +0000 [r287020]  Jeff Peeler <jpeeler@digium.com>

	* main/features.c: fix uninintialized variable

2010-09-15 20:53 +0000 [r287017]  Richard Mudgett <rmudgett@digium.com>

	* channels/misdn/isdn_msg_parser.c, channels/chan_misdn.c: Merged
	  revision 287014 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  .......... r287014 | rmudgett | 2010-09-15 15:32:24 -0500 (Wed,
	  15 Sep 2010) | 58 lines The handling of call transfer signaling
	  for mISDN PTMP is not fully implemented. The handling of call
	  transfer signaling for mISDN PTMP is not fully implemented. The
	  signaling of number updates with ISDN/DSS1 ECT supplementary
	  services (ETS 300 369-1) comes along with a notification
	  indicator IE and redirection number IE for PTMP. The
	  implementation in the current Asterisk mISDN channel
	  unfortunately can handle these information elements only in a
	  NOTIFY message. These information elements are also signaled in a
	  FACILTY message with a RequestSubaddress facility, when the
	  subscriber is already in the active state (see 9.2.4 and 9.2.5 of
	  ETS 300 369-1). ********** abe_2526_ast.patch * Added support to
	  handle the notification indicator IE and redirection number IE
	  with the RequestSubaddress facility. * Made
	  misdn_update_connected_line() send a NOTIFY message if Asterisk
	  originated the call and it is not connected yet. * Made
	  misdn_update_connected_line() send a FACILITY message if the call
	  is already connected. This patch requires the presence of the
	  associated mISDN patches to compile. I had to enhance mISDN to
	  allow the notification indicator IE and the redirection number IE
	  to be used with a FACILITY message. Earlier versions of the
	  Digium enhanced mISDN are no longer going to work. **********
	  abe_2526_misdn.patch * Made an incoming FACILITY message allow
	  the presence of the notification indicator IE and the redirection
	  number IE. ********** abe_2526_misdnuser_v3.patch * Added support
	  to send and receive a FACILITY message with the notification
	  indicator IE and the redirection number IE. * Added the ability
	  to send a NOTIFY message in PTMP/NT mode to all responding
	  subcalls in Q.931 states 6, 7, 8, 9, and 25. ********** Patches:
	  abe_2526_ast.patch uploaded by rmudgett (license 664)
	  abe_2526_misdn.patch uploaded by rmudgett (license 664)
	  abe_2526_misdnuser_v3.patch uploaded by rmudgett (license 664)
	  Tested by: rmudgett and reporter JIRA SWP-2146 JIRA ABE-2526
	  ..........

2010-09-15 20:32 +0000 [r286931-287015]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 286998 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r286998 | jpeeler | 2010-09-15 15:28:02 -0500
	  (Wed, 15 Sep 2010) | 14 lines Merged revisions 286941 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r286941 | jpeeler | 2010-09-15 15:08:52 -0500 (Wed, 15 Sep 2010)
	  | 7 lines Ensure mailbox is not filled to capacity before doing
	  message forwarding. Specifically, before prompting to record a
	  prepended message the capacity is checked first. If the mailbox
	  is full the extension will be reprompted. ABE-2517 ........
	  ................

	* CHANGES, channels/chan_iax2.c, channels/sip/include/sip.h,
	  configs/features.conf.sample, channels/chan_mgcp.c,
	  include/asterisk/features.h, channels/chan_dahdi.c,
	  channels/sig_analog.c, channels/chan_sip.c, main/features.c: Add
	  parking extension for non-default parking lots. This is a new
	  feature that allows for parking to custom parking lots to be
	  accessed directly, rather than with channel variables or by
	  changing the default parking lot. The extension is set with the
	  parkext option just as the default parking lot is done. Also, the
	  manager action has been updated to optionally allow a specified
	  parking lot. (closes issue #14882) Reported by: vmikhnevych
	  Patches: patch_14882.txt uploaded by mnick (license 874) modified
	  by me Review: https://reviewboard.asterisk.org/r/884/

2010-09-15 18:29 +0000 [r286904-286905]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_analog.c: Simplify some code in sig_analog.

	* channels/sig_analog.c: Unable to originate calls using E&M over
	  T1. When originating a call from Unit Under Test to Reference
	  Unit using E&M RBS signaling mode, I get the following warning
	  message: "Ring/Off-hook in strange state 3 on channel 1". Fixed
	  the sig_analog outgoing flag. It was never set when sig_analog
	  was extracted from chan_dahdi. JIRA SWP-2191 JIRA AST-408

2010-09-15 13:05 +0000 [r286868]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Set tohost to the domain specified in the
	  configuration file instead of the IP address of the host we are
	  calling. This fixes a regression introduced in r274783. (closes
	  issue #17960) Reported by: adriavidal Patches:
	  sip-tohost-fix1.diff uploaded by mnicholson (license 96) Tested
	  by: mich, mnicholson, adriavidal (closes issue #17676) Reported
	  by: outcast Patches: sip-tohost-fix1.diff uploaded by mnicholson
	  (license 96) Tested by: mnicholson

2010-09-14 21:57 +0000 [r286834]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Sets subscribed type for outgoing MWI
	  subscriptions so correct Event header is used.

2010-09-14 19:28 +0000 [r286682-286758]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 286757 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r286757 | mnicholson | 2010-09-14 14:27:28 -0500
	  (Tue, 14 Sep 2010) | 20 lines Merged revisions 286756 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r286756 | mnicholson | 2010-09-14 14:26:18 -0500 (Tue, 14 Sep
	  2010) | 13 lines Don't clear the username from a realtime
	  database when a registration expires. Non-realtime chan_sip does
	  not clear the username from memory when a registration expiries
	  so realtime probably shouldn't either. (closes issue #17551)
	  Reported by: ricardolandim Patches:
	  reg-expiry-username-1.4-fix1.diff uploaded by mnicholson (license
	  96) reg-expiry-username-1.6.2-fix1.diff uploaded by mnicholson
	  (license 96) reg-expiry-username-1.8-fix1.diff uploaded by
	  mnicholson (license 96) reg-expiry-username-trunk-fix1.diff
	  uploaded by mnicholson (license 96) Tested by: ricardolandim,
	  mnicholson ........ ................

	* main/channel.c, /: Merged revisions 286681 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r286681 | mnicholson | 2010-09-14 13:02:24 -0500
	  (Tue, 14 Sep 2010) | 14 lines Merged revisions 286679 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r286679 | mnicholson | 2010-09-14 13:00:01 -0500 (Tue, 14 Sep
	  2010) | 7 lines Only drop duplicate answer frames if the channel
	  is bridged. Back in r3710 ast_read() was modified to drop answer
	  frames on channels that were in the UP state. This modification
	  prevented bridges that were up before the answer from being
	  broken and reestablished by an ANSWER control frame. That change
	  also prevents pickup of channels called from the ast_dial
	  framework from working properly. The ast_dial framework expects
	  to see an ANSWER frame after dialing and the pickup code queues
	  one but ast_read() drops it. This new change only drops ANSWER
	  frames when the channel is bridged, allowing the answer queued by
	  the pickup code to properly pass through ast_read() on to the
	  ast_dial framework. ABE-2473 (related to issue #2342) ........
	  ................

2010-09-14 15:30 +0000 [r286647]  Richard Mudgett <rmudgett@digium.com>

	* doc/tex/channelvariables.tex, doc/tex/partymanip.tex: Corrected
	  documented CONNECTED_LINE and REDIRECTING party manipulation
	  macro names.

2010-09-14 06:55 +0000 [r286617]  Jan Kalab <pitlicek@gmail.com>

	* res/res_calendar_ews.c: Merging events for Exchange web service
	  doesn't work as expected, resulting in only one event in calendar
	  The solution is to use "global" counter of events, since we do
	  new requests for every event and calendar sync after every
	  request. So now we do sync only after last request. (closes issue
	  #17877) Review: https://reviewboard.asterisk.org/r/916/

2010-09-14 05:07 +0000 [r286528-286588]  Tilghman Lesher <tlesher@digium.com>

	* contrib/realtime/mysql/voicemail_data.sql (added), /,
	  contrib/realtime/mysql/voicemail_messages.sql (added): Merged
	  revisions 286587 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r286587 | tilghman | 2010-09-14 00:06:05 -0500 (Tue, 14 Sep 2010)
	  | 2 lines Add documentation on missing backend tables for
	  Voicemail ........

	* /, main/features.c: Merged revisions 286557 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r286557 | tilghman | 2010-09-13 18:48:51 -0500 (Mon, 13 Sep 2010)
	  | 2 lines C precedence got me ........

	* /, main/features.c: Merged revisions 286527 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r286527 | tilghman | 2010-09-13 18:03:26 -0500 (Mon, 13 Sep 2010)
	  | 2 lines Refactor conversion to ast_poll() to fix callparking
	  regression. ........

2010-09-13 19:40 +0000 [r286457]  Jason Parker <jparker@digium.com>

	* /, channels/chan_sip.c: Merged revisions 286456 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r286456 | qwell | 2010-09-13 14:38:35 -0500 (Mon, 13 Sep 2010) |
	  5 lines Remove "Internal IP" from sip show settings, as it's not
	  at all useful to display. (closes issue #17840) Reported by: oej
	  ........

2010-09-13 15:52 +0000 [r286426]  Richard Mudgett <rmudgett@digium.com>

	* configs/chan_dahdi.conf.sample: Update chan_dahdi.conf.sample to
	  reflect new libpri T309 default value.

2010-09-11 17:09 +0000 [r286270]  Olle Johansson <oej@edvina.net>

	* /, main/file.c: Merged revisions 286268 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r286268 | oej | 2010-09-11 19:05:16 +0200 (Lör,
	  11 Sep 2010) | 11 lines Merged revisions 286267 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r286267 | oej | 2010-09-11 18:59:20 +0200 (Lör, 11 Sep 2010) | 4
	  lines Handle error response when we can't make file compatible
	  Review: https://reviewboard.asterisk.org/r/911/ ........
	  ................

2010-09-10 22:04 +0000 [r286189]  Terry Wilson <twilson@digium.com>

	* include/asterisk/channel.h, include/asterisk/pbx.h,
	  include/asterisk/frame.h, channels/chan_local.c,
	  funcs/func_channel.c: Merged revisions 286115 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r286115 | twilson | 2010-09-10 15:35:25 -0500
	  (Fri, 10 Sep 2010) | 23 lines Merged revisions 286059 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r286059 | twilson | 2010-09-10 14:25:08 -0500 (Fri, 10 Sep 2010)
	  | 16 lines Inherit CHANNEL() writes to both sides of a Local
	  channel Having Local (/n) channels as queue members and setting
	  the language in the extension with Set(CHANNEL(language)=fr) sets
	  the language on the Local/...,2 channel. Hold time report
	  playbacks happen on the Local/...,1 channel and therefor do not
	  play in the specified language. This patch modifies
	  func_channel_write to call the setoption callback and pass the
	  CHANNEL() write info to the callback. chan_local uses this
	  information to look up the other side of the channel and apply
	  the same changes to it. (closes issue #17673) Reported by:
	  Guggemand Review: https://reviewboard.asterisk.org/r/903/
	  ........ ................

2010-09-10 21:11 +0000 [r286120]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_iax2.c, /: Merged revisions 286117 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r286117 | pabelanger | 2010-09-10 16:55:06 -0400
	  (Fri, 10 Sep 2010) | 11 lines Merged revisions 286114 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r286114 | pabelanger | 2010-09-10 16:35:08 -0400 (Fri, 10 Sep
	  2010) | 4 lines Load iax.conf before registering any
	  functions/applications/actions. Review:
	  https://reviewboard.asterisk.org/r/914/ ........ ................

2010-09-10 20:55 +0000 [r286118]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c, /: Merged revisions 286116 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r286116 | rmudgett | 2010-09-10 15:42:44 -0500
	  (Fri, 10 Sep 2010) | 18 lines Merged revisions 286113 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r286113 | rmudgett | 2010-09-10 15:33:16 -0500 (Fri, 10 Sep 2010)
	  | 11 lines An outgoing call may not get hung up if a pre-connect
	  incoming ISDN call is disconnected. If the ISDN link a
	  pre-connect incoming call is using fails or is reset, the
	  outgoing leg may not hang up or be delayed in hanging up.
	  (Causes: PRI_CAUSE_NETWORK_OUT_OF_ORDER,
	  PRI_CAUSE_DESTINATION_OUT_OF_ORDER, and
	  PRI_CAUSE_NORMAL_TEMPORARY_FAILURE.) Just hang up the call if the
	  incoming call leg hangs up before connecting for any reason. It
	  makes no sense to send a BUSY or CONGESTION control frame to the
	  outgoing call leg under these circumstances. ........
	  ................

2010-09-10 20:31 +0000 [r286112]  Russell Bryant <russell@digium.com>

	* main/db.c: Rate limit calls to fsync() to 1 per second after
	  astdb updates. Astdb was determined to be one of the most
	  significant bottlenecks in SIP registration processing. This
	  patch improved the speed of an astdb load test by 50000% (yes,
	  Fifty-Thousand Percent). On this particular load test setup, this
	  doubled the number of SIP registrations the server could handle.
	  Review: https://reviewboard.asterisk.org/r/825/

2010-09-10 18:31 +0000 [r286025]  Tilghman Lesher <tlesher@digium.com>

	* /: Merged revisions 286024 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r286024 | tilghman | 2010-09-10 13:30:21 -0500
	  (Fri, 10 Sep 2010) | 9 lines Merged revisions 286023 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r286023 | tilghman | 2010-09-10 13:22:04 -0500 (Fri, 10
	  Sep 2010) | 2 lines Missing newline ........ ................

2010-09-10 13:13 +0000 [r285992]  David Ruggles <thedavidfactor@gmail.com>

	* doc/externalivr.txt, CHANGES: Added missing documentation for
	  ExternalIVR feature added in January 2010

2010-09-10 05:32 +0000 [r285931-285962]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/select.h, /: Merged revisions 285961 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r285961 | tilghman | 2010-09-10 00:31:31 -0500 (Fri, 10 Sep 2010)
	  | 6 lines Another fix for Mac OS X. While trying to fix this the
	  "right" way, I wandered into dependency hell. Two hours later, I
	  backed out, and just removed the offending code. ast_inline_api
	  only goes one level deep and then it breaks. Ouch. ........

	* tests/test_poll.c, include/asterisk/select.h, /, configure,
	  include/asterisk/autoconfig.h.in, configure.ac: Merged revisions
	  285930 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285930 | tilghman | 2010-09-09 20:16:32 -0500
	  (Thu, 09 Sep 2010) | 14 lines Merged revisions 285889 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r285889 | tilghman | 2010-09-09 19:13:45 -0500 (Thu, 09 Sep 2010)
	  | 7 lines Fix Mac OS X build. This also fixes a rather grievous
	  calculation error for the offset of ast_fdset, which was masked
	  on Linux and FreeBSD, because these platforms check the first 256
	  FDs regardless of the bitmask setting (due to backwards
	  compatibility). ........ ................

2010-09-09 22:52 +0000 [r285819]  Paul Belanger <paul.belanger@polybeacon.com>

	* /, codecs/gsm/Makefile: Merged revisions 285818 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285818 | pabelanger | 2010-09-09 18:49:19 -0400
	  (Thu, 09 Sep 2010) | 15 lines Merged revisions 285817 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r285817 | pabelanger | 2010-09-09 18:34:35 -0400 (Thu, 09 Sep
	  2010) | 8 lines GCC 4.2.x optimizations result in improper
	  behavior of GSM codec (closes issue #17688) Reported by:
	  pprindeville Patches: asterisk-trunk-bugid11243.patch uploaded by
	  pprindeville (license 347) Tested by: mkeuter, pprindeville
	  ........ ................

2010-09-09 20:11 +0000 [r285745]  Jason Parker <jparker@digium.com>

	* main/channel.c, /: Merged revisions 285744 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285744 | qwell | 2010-09-09 15:09:23 -0500
	  (Thu, 09 Sep 2010) | 16 lines Merged revisions 285742 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r285742 | qwell | 2010-09-09 15:06:31 -0500 (Thu, 09 Sep 2010) |
	  9 lines Transmit silence when reading DTMF in ast_readstring.
	  Otherwise, you could get issues with DTMF timeouts causing
	  hangups. (closes issue #17370) Reported by: makoto Patches:
	  channel-readstring-silence-generator.patch uploaded by makoto
	  (license 38) ........ ................

2010-09-09 18:51 +0000 [r285640-285711]  Brett Bryant <bbryant@digium.com>

	* main/pbx.c, /: Merged revisions 285710 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r285710 | bbryant | 2010-09-09 14:50:13 -0400 (Thu, 09 Sep 2010)
	  | 8 lines Fixes an issue with dialplan pattern matching where the
	  specificity for pattern ranges and pattern special characters was
	  inconsistent. (closes issue #16903) Reported by: Nick_Lewis
	  Patches: pbx.c-specificity.patch uploaded by Nick Lewis (license
	  657) Tested by: Nick_Lewis ........

	* res/res_musiconhold.c, /: Merged revisions 285639 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285639 | bbryant | 2010-09-09 13:22:25 -0400
	  (Thu, 09 Sep 2010) | 14 lines Merged revisions 285638 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r285638 | bbryant | 2010-09-09 13:20:17 -0400 (Thu, 09 Sep 2010)
	  | 7 lines Fixes an issue with MOH where it doesn't recover
	  cleanly when it can't play a file and would just stop, instead of
	  continuing to find the next playable file in the MOH class.
	  (closes issue #17807) Reported by: kshumard Review:
	  https://reviewboard.asterisk.org/r/910/ ........ ................

2010-09-08 22:14 +0000 [r285564-285568]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 285567 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285567 | dvossel | 2010-09-08 17:11:28 -0500
	  (Wed, 08 Sep 2010) | 9 lines Merged revisions 285566 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r285566 | dvossel | 2010-09-08 17:07:31 -0500 (Wed, 08
	  Sep 2010) | 2 lines In retrans_pkt, do not unlock pvt until the
	  end of the function on a transmit failure. ........
	  ................

	* /, channels/chan_sip.c: Merged revisions 285563 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r285563 | dvossel | 2010-09-08 16:47:29 -0500 (Wed, 08 Sep 2010)
	  | 54 lines Fixes interoperability problems with session timer
	  behavior in Asterisk. CHANGES: 1. Never put "timer" in "Require"
	  header. This is not to our benefit and RFC 4028 section 7.1 even
	  warns against it. It is possible for one endpoint to perform
	  session-timer refreshes while the other endpoint does not support
	  them. If in this case the end point performing the refreshing
	  puts "timer" in the Require field during a refresh, the dialog
	  will likely get terminated by the other end. 2. Change the
	  behavior of 'session-timer=accept' in sip.conf (which is the
	  default behavior of Asterisk with no session timer configuration
	  specified) to only run session-timers as result of an incoming
	  INVITE request if the INVITE contains an "Session-Expires"
	  header... Asterisk is currently treating having the "timer"
	  option in the "Supported" header as a request for session timers
	  by the UAC. I do not agree with this. Session timers should only
	  be negotiated in "accept" mode when the incoming INVITE supplies
	  a "Session-Expires" header, otherwise RFC 4028 says we should
	  treat a request containing no "Session-Expires" header as a
	  session with no expiration. Below I have outlined some situations
	  and what Asterisk's behavior is. The table reflects the behavior
	  changes implemented by this patch. SITUATIONS: -Asterisk as UAS
	  1. Incoming INVITE: NO "Session-Expires" 2. Incoming INVITE: HAS
	  "Session-Expires" -Asterisk as UAC 3. Outgoing INVITE: NO
	  "Session-Expires". 200 Ok Response HAS "Session-Expires" header
	  4. Outgoing INVITE: NO "Session-Expires". 200 Ok Response NO
	  "Session-Expires" header 5. Outgoing INVITE: HAS
	  "Session-Expires". Active - Asterisk will have an active refresh
	  timer regardless if the other endpoint does. Inactive - Asterisk
	  does not have an active refresh timer regardless if the other
	  endpoint does. XXXXXXX - Not possible for mode.
	  ______________________________________ |SITUATIONS |
	  'session-timer' MODES | |___________|________________________| |
	  | originate | accept | |-----------|------------|-----------| |1.
	  | Active | Inactive | |2. | Active | Active | |3. | XXXXXXXX |
	  Active | |4. | XXXXXXXX | Inactive | |5. | Active | XXXXXXXX |
	  -------------------------------------- (closes issue #17005)
	  Reported by: alexrecarey ........

2010-09-08 20:58 +0000 [r285533]  Brett Bryant <bbryant@digium.com>

	* /, apps/app_meetme.c: Merged revisions 285532 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r285532 | bbryant | 2010-09-08 16:56:12 -0400 (Wed, 08 Sep 2010)
	  | 8 lines Fixes a bug with MeetMe where after announcing the
	  amount of time left in a conference, if music on hold was
	  playing, it doesn't restart. (closes issue #17408) Reported by:
	  sysreq Patches: asterisk-issue-17408_fixed.patch uploaded by
	  sysreq (license 1009) Tested by: sysreq ........

2010-09-08 20:43 +0000 [r285527-285530]  Jason Parker <jparker@digium.com>

	* res/res_musiconhold.c, /, include/asterisk/astobj2.h: Merged
	  revisions 285529 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r285529 | qwell | 2010-09-08 15:42:44 -0500 (Wed, 08 Sep 2010) |
	  1 line Follow coding guidelines in moh rescan fix. Also fix the
	  documentation that got me in trouble. ........

	* res/res_musiconhold.c, /: Merged revisions 285526 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r285526 | qwell | 2010-09-08 15:31:43 -0500 (Wed, 08 Sep
	  2010) | 8 lines Fixes issue where moh files were no longer
	  rescanned during a reload. (closes issue #16744) Reported by: pj
	  Patches: 16744-reload.diff uploaded by qwell (license 4) Tested
	  by: qwell ........

2010-09-08 07:14 +0000 [r285484]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_channel.c: Documentation only

2010-09-07 22:22 +0000 [r285455]  Jason Parker <jparker@digium.com>

	* channels/chan_sip.c: Don't automatically add domains for wildcard
	  bindaddrs. (closes issue #17832) Reported by: oej Patches:
	  17832-wildcard.diff uploaded by qwell (license 4) Tested by:
	  qwell

2010-09-07 21:20 +0000 [r285373-285386]  Tilghman Lesher <tlesher@digium.com>

	* pbx/pbx_spool.c: Don't notify on attribute changes, and change
	  how the queuing mechanism works. Fixes call spools in 1.8.
	  (closes issue #17337) Reported by: loloski Patches:
	  20100827__issue17337.diff.txt uploaded by tilghman (license 14)
	  (closes issue #17924) Reported by: mkeuter Tested by: mkeuter

	* funcs/func_channel.c: Add CHANNEL(checkhangup) to check whether a
	  channel is in the process of being hanged up. (closes issue
	  #17652) Reported by: kobaz Patches: func_channel.patch uploaded
	  by kobaz (license 834)

2010-09-07 21:08 +0000 [r285371]  Richard Mudgett <rmudgett@digium.com>

	* main/features.c: Fix cut-n-paste error.

2010-09-07 20:58 +0000 [r285369]  Jason Parker <jparker@digium.com>

	* channels/chan_sip.c: Add note to 'sip show settings' regarding
	  dual-stack support, and a :: bindaddress. (closes issue #17831)
	  Reported by: oej Patches: 17831-v6wildcardbind.diff uploaded by
	  qwell (license 4)

2010-09-07 20:56 +0000 [r285268-285367]  Tilghman Lesher <tlesher@digium.com>

	* pbx/pbx_config.c, /: Merged revisions 285366 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285366 | tilghman | 2010-09-07 15:31:41 -0500
	  (Tue, 07 Sep 2010) | 16 lines Merged revisions 285365 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r285365 | tilghman | 2010-09-07 15:30:22 -0500 (Tue, 07 Sep 2010)
	  | 9 lines Catch invalid extensions at the parser, instead of
	  making the core deal with them. (closes issue #17794) Reported
	  by: PavelL Patches: 20100820__issue17794__1.6.2.diff.txt uploaded
	  by tilghman (license 14) 20100820__issue17794__1.4.diff.txt
	  uploaded by tilghman (license 14) Tested by: PavelL ........
	  ................

	* include/asterisk/compiler.h, addons/ooh323c/src/ooSocket.h: Fix
	  build on FreeBSD 8.0, take 2.

	* main/poll.c, /: Merged revisions 285267 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285267 | tilghman | 2010-09-07 14:07:17 -0500
	  (Tue, 07 Sep 2010) | 11 lines Merged revisions 285266 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r285266 | tilghman | 2010-09-07 14:04:50 -0500 (Tue, 07 Sep 2010)
	  | 4 lines Use poll, if indicated to do so, in the ast_poll2
	  implementation. This fixes the unit tests on FreeBSD 8.0.
	  ........ ................

2010-09-07 17:54 +0000 [r285197]  Brett Bryant <bbryant@digium.com>

	* apps/app_voicemail.c, /: Merged revisions 285196 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285196 | bbryant | 2010-09-07 13:49:07 -0400
	  (Tue, 07 Sep 2010) | 17 lines Merged revisions 285194 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r285194 | bbryant | 2010-09-07 13:45:41 -0400 (Tue, 07 Sep 2010)
	  | 10 lines Fixes voicemail.conf issues where mailboxes with
	  passwords that don't precede a comma would throw unnecessary
	  error messages. (closes issue #15726) Reported by: 298 Patches:
	  M15726.diff uploaded by junky (license 177) Tested by: junky
	  Review: [full review board URL with trailing slash] ........
	  ................

2010-09-07 17:47 +0000 [r285195]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c: Merged revisions 285193 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  ........ Merged revisions 285192 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3 ........
	  r285192 | rmudgett | 2010-09-07 11:58:57 -0500 (Tue, 07 Sep 2010)
	  | 8 lines COLP/CONP and chan_misdn missing update chan_misdn does
	  not update the caller id of the channel if a new connected number
	  or ECT-INFORM (w/ new peer number on call transfer) is received.
	  JIRA ABE-2502 JIRA SWP-2058 ........ ........

2010-09-06 20:10 +0000 [r285161-285162]  Russell Bryant <russell@digium.com>

	* configure: regenerate configure script.

	* include/asterisk/autoconfig.h.in, configure.ac: Fix libsrtp -fPIC
	  check for when non-standard prefix is used. Thanks to loompek in
	  #asterisk for reporting the issue and testing this patch.

2010-09-06 06:56 +0000 [r285090]  Tilghman Lesher <tlesher@digium.com>

	* BSDmakefile (added), makeopts.in, /: Merged revisions 285089 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r285089 | tilghman | 2010-09-06 01:55:17 -0500
	  (Mon, 06 Sep 2010) | 9 lines Merged revisions 285088 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r285088 | tilghman | 2010-09-06 01:54:18 -0500 (Mon, 06
	  Sep 2010) | 2 lines Silly convenience script for BSD platforms.
	  ........ ................

2010-09-04 18:08 +0000 [r285057]  Russell Bryant <russell@digium.com>

	* include/asterisk/cli.h: Add a C++ compatible version of
	  AST_CLI_DEFINE().

2010-09-03 23:19 +0000 [r285017]  Terry Wilson <twilson@digium.com>

	* channels/chan_sip.c: Call correct lock function as transferer is
	  a sip_pvt not a channel Both functions are #defined to ao2_lock,
	  but still...

2010-09-03 22:21 +0000 [r285006]  David Vossel <dvossel@digium.com>

	* configs/sip.conf.sample, channels/sip/include/sip.h,
	  channels/chan_sip.c: Disables auth_options_request option by
	  default. The auth_options_request option was created to do
	  authentication on OPTIONS request just like INVITES are done.
	  Since it has been noted that some endpoints use OPTIONS requests
	  as a way of qualifying a peer and that a 401 authentication
	  response could result in interoperability issues, this option has
	  been disabled by default.

2010-09-03 18:19 +0000 [r284967]  Brett Bryant <bbryant@digium.com>

	* channels/chan_iax2.c, /: Merged revisions 284958 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r284958 | bbryant | 2010-09-03 14:15:49 -0400 (Fri, 03
	  Sep 2010) | 8 lines This is a patch provided for issue #17935 to
	  add the ActionID to the IAXregistry AMI response. (closes issue
	  #17935) Reported by: alexkuklin Patches: iaxshowreg uploaded by
	  alexkuklin (license 1115) Tested by: alexkuklin ........

2010-09-03 18:03 +0000 [r284950-284952]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: During OPTIONS authentication, the authpeer
	  does not need to be returned for any reason.

	* configs/sip.conf.sample, CHANGES, channels/sip/include/sip.h,
	  channels/chan_sip.c: authenticate OPTIONS requests just like we
	  would an INVITE OPTIONS requests should be treated the same as an
	  INVITE This includes authentication. This patch adds the ability
	  for incoming out of dialog OPTION requests to be authenticated
	  before providing a response indicating whether an extension is
	  available or not. The authentication routine works the exact same
	  way as it does for incoming INVITEs. This means that if a peer
	  has 'insecure=invite' in their peer definition, the same will be
	  true for the processing of the OPTIONS request. Review:
	  https://reviewboard.asterisk.org/r/881/

2010-09-03 16:28 +0000 [r284921]  Terry Wilson <twilson@digium.com>

	* apps/app_chanspy.c, /: Merged revisions 284897 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r284897 | twilson | 2010-09-03 11:20:45 -0500
	  (Fri, 03 Sep 2010) | 12 lines Merged revisions 284881 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r284881 | twilson | 2010-09-03 11:10:23 -0500 (Fri, 03 Sep 2010)
	  | 5 lines Properly detect when a sound file doesn't exist
	  ast_fileexists returns -1 for error and 0 for a non-existant
	  file. The existing code treated missing files as though they
	  existed. ........ ................

2010-09-03 13:07 +0000 [r284849-284852]  Jan Kalab <pitlicek@gmail.com>

	* res/res_calendar_ews.c: Calendar categories and priorities:
	  strdupa() fix

	* res/res_calendar_ews.c: Fix for calendar categories and
	  priorities according to ISO C90

	* res/res_calendar_caldav.c, include/asterisk/calendar.h,
	  res/res_calendar_ews.c, res/res_calendar.c,
	  res/res_calendar_icalendar.c: Support for calendar events
	  priorities and categories Review 880

2010-09-02 21:04 +0000 [r284781]  Brett Bryant <bbryant@digium.com>

	* main/manager.c, /: Merged revisions 284778 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r284778 | bbryant | 2010-09-02 16:54:33 -0400
	  (Thu, 02 Sep 2010) | 14 lines Merged revisions 284777 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r284777 | bbryant | 2010-09-02 16:25:03 -0400 (Thu, 02 Sep 2010)
	  | 7 lines Fixes a bug in manager.c where the default
	  configuration values weren't reset when the manager configuration
	  was reloaded. (closes issue #17917) Reported by: lmadsen Review:
	  https://reviewboard.asterisk.org/r/883/ ........ ................

2010-09-02 21:02 +0000 [r284779-284780]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Simplified pri_dchannel() poll timeout
	  duration code.

	* channels/sig_pri.c, channels/sig_pri.h, channels/chan_dahdi.c:
	  Made output libpri event names if pri debugging is enabled when
	  sig_pri processes them. * Simplified CLI "pri debug xx span xx"
	  command code and removed redundant debugging enabled messages. *
	  Made CLI "pri debug xx span xx" command only close the debugging
	  log file if it was opened.

2010-09-02 16:56 +0000 [r284705]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 284704 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r284704 | dvossel | 2010-09-02 11:48:51 -0500
	  (Thu, 02 Sep 2010) | 13 lines Merged revisions 284703 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r284703 | dvossel | 2010-09-02 11:47:15 -0500 (Thu, 02 Sep 2010)
	  | 7 lines Removed relatedpeer code from sip_autodestruct Handling
	  of the relatedpeer structure associated with a sip_pvt should be
	  done during the final sip_destruction function, not in
	  sip_autodestruct. ........ ................

2010-09-02 16:43 +0000 [r284701]  Jason Parker <jparker@digium.com>

	* formats/format_wav.c: Add slin16 support for format_wav (new
	  wav16 file extension) (closes issue #15029) Reported by: andrew
	  Patches: wav16.patch uploaded by andrew (license 240) Tested by:
	  qwell, andrew

2010-09-02 16:34 +0000 [r284698]  Richard Mudgett <rmudgett@digium.com>

	* doc/tex/channelvariables.tex, doc/tex/partymanip.tex (added),
	  doc/tex/asterisk.tex: Added documentation for CONNECTEDLINE and
	  REDIRECTING functions. (closes issue #17808) Reported by: jtodd
	  Review: https://reviewboard.asterisk.org/r/875/

2010-09-02 16:27 +0000 [r284597-284696]  Tilghman Lesher <tlesher@digium.com>

	* addons/ooh323c/src/oochannels.c: Fixing build

	* channels/chan_usbradio.c, /: Merged revisions 284665 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r284665 | tilghman | 2010-09-02 11:07:19 -0500 (Thu, 02
	  Sep 2010) | 2 lines Fixing build. ........

	* apps/app_queue.c, /: Merged revisions 284631 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r284631 | tilghman | 2010-09-02 00:30:16 -0500 (Thu, 02 Sep 2010)
	  | 7 lines Don't reset queue stats on a module reload. (closes
	  issue #17535) Reported by: raarts Patches:
	  20100819__issue17535.diff.txt uploaded by tilghman (license 14)
	  ........

	* channels/chan_iax2.c, apps/app_queue.c, apps/app_getcpeid.c,
	  apps/app_followme.c, main/loader.c, apps/app_speech_utils.c,
	  pbx/pbx_loopback.c, channels/chan_dahdi.c, funcs/func_aes.c,
	  include/asterisk/module.h, pbx/pbx_realtime.c, pbx/pbx_dundi.c,
	  apps/app_stack.c, channels/chan_mgcp.c, apps/app_voicemail.c,
	  apps/app_adsiprog.c, channels/chan_sip.c, channels/chan_agent.c:
	  When optional_api is non-optional, force dependent modules to be
	  loaded. (closes issue #17707) Reported by: ira Patches:
	  20100819__issue17707__asterisk1.8.diff.txt uploaded by tilghman
	  (license 14) Tested by: tilghman Review:
	  https://reviewboard.asterisk.org/r/876/

	* include/asterisk/channel.h, res/res_jabber.c, res/res_pktccops.c,
	  main/poll.c, channels/chan_usbradio.c, include/asterisk/select.h
	  (added), channels/chan_phone.c, channels/chan_misdn.c, configure,
	  main/features.c, include/asterisk/poll-compat.h,
	  tests/test_poll.c (added), addons/ooh323c/src/oochannels.c,
	  main/asterisk.c, addons/ooh323c/src/ooSocket.h, main/stun.c,
	  res/res_ais.c, /, include/asterisk/autoconfig.h.in, configure.ac,
	  channels/console_video.c: Merged revisions 284593,284595 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r284593 | tilghman | 2010-09-01 17:59:50 -0500
	  (Wed, 01 Sep 2010) | 18 lines Merged revisions 284478 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r284478 | tilghman | 2010-09-01 13:49:11 -0500 (Wed, 01 Sep 2010)
	  | 11 lines Ensure that all areas that previously used select(2)
	  now use poll(2), with implementations that need poll(2)
	  implemented with select(2) safe against 1024-bit overflows. This
	  is a followup to the fix for the pthread timer in 1.6.2 and
	  beyond, fixing a potential crash bug in all supported releases.
	  (closes issue #17678) Reported by: russell Branch:
	  https://origsvn.digium.com/svn/asterisk/team/tilghman/ast_select
	  Review: https://reviewboard.asterisk.org/r/824/ ........
	  ................ r284595 | tilghman | 2010-09-01 22:57:43 -0500
	  (Wed, 01 Sep 2010) | 2 lines Failed to rerun bootstrap.sh after
	  last commit ................

2010-09-01 21:47 +0000 [r284561]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: During request to dialog matching, verify
	  init_ruri is present before comparing. During request to dialog
	  matching, we attempt a best effort routine for fork detection
	  which requires several elements to be in place. The dialog's
	  initial request uri is one of those elements. Since it is best
	  effort, if the init_ruri is not present for some reason we can
	  not proceed with that routine.

2010-09-01  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-beta5 released.

2010-09-01 18:44 +0000 [r284477]  Terry Wilson <twilson@digium.com>

	* res/res_srtp.c, res/res_rtp_asterisk.c,
	  include/asterisk/res_srtp.h, main/rtp_engine.c,
	  channels/chan_sip.c: Fix SRTP for changing SSRC and multiple
	  a=crypto SDP lines Adding code to Asterisk that changed the SSRC
	  during bridges and masquerades broke SRTP functionality. Also
	  broken was handling the situation where an incoming INVITE had
	  more than one crypto offer. This patch caches the SRTP policies
	  the we use so that we can change the ssrc and inform libsrtp of
	  the new streams. It also uses the first acceptable a=crypto line
	  from the incoming INVITE. (closes issue #17563) Reported by:
	  Alexcr Patches: srtp.diff uploaded by twilson (license 396)
	  Tested by: twilson Review:
	  https://reviewboard.asterisk.org/r/878/

2010-09-01 18:16 +0000 [r284415-284473]  Tilghman Lesher <tlesher@digium.com>

	* res/res_config_pgsql.c, /: Merged revisions 284472 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r284472 | tilghman | 2010-09-01 13:13:35 -0500 (Wed, 01
	  Sep 2010) | 5 lines Don't warn on floats and timestamps (closes
	  issue #17082) Reported by: coolmig ........

	* /, channels/chan_sip.c: Merged revisions 284399 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r284399 | tilghman | 2010-08-31 15:18:32 -0500
	  (Tue, 31 Aug 2010) | 14 lines Merged revisions 284393 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r284393 | tilghman | 2010-08-31 15:13:21 -0500 (Tue, 31 Aug 2010)
	  | 7 lines Don't send a devstate change on poke_noanswer if the
	  state did not change. (closes issue #17741) Reported by: schmidts
	  Patches: chan_sip.c.patch uploaded by schmidts (license 1077)
	  ........ ................

2010-08-31 19:00 +0000 [r284318]  Leif Madsen <lmadsen@digium.com>

	* configs/say.conf.sample, /: Merged revisions 284317 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r284317 | lmadsen | 2010-08-31 13:59:31 -0500
	  (Tue, 31 Aug 2010) | 15 lines Merged revisions 284316 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r284316 | lmadsen | 2010-08-31 13:57:59 -0500 (Tue, 31 Aug 2010)
	  | 7 lines Update say.conf.sample to match the rules in say.c
	  (closes issue #17835) Reported by: RoadKill Patches:
	  say.conf.sample.patch.rules uploaded by RoadKill (license 933)
	  Tested by: RoadKill ........ ................

2010-08-30 22:28 +0000 [r284281]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_festival.c: Merged revisions 284280 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r284280 | tilghman | 2010-08-30 17:27:06 -0500 (Mon, 30 Aug 2010)
	  | 11 lines Fix 3 coding errors: 1) After we close FD, we should
	  not be trying to write to it. 2) Call _exit(0), not exit(0), to
	  avoid running shutdown routines in a child. 3) Use endian, not
	  processor, detection to ensure bytes are written in the correct
	  order. (closes issue #15706) Reported by: modelnine Patches:
	  asterisk-1.6.1.1-festival-debug.patch uploaded by modelnine
	  (license 865) Tested by: gmartinez ........

2010-08-29 07:05 +0000 [r284096-284158]  Tilghman Lesher <tlesher@digium.com>

	* configs/res_curl.conf.sample (added): Missed adding this file

	* sounds: Also ignore the checksums

	* configs/cel_odbc.conf.sample (added), cel/cel_adaptive_odbc.c
	  (removed), cel/cel_odbc.c (added),
	  configs/cel_adaptive_odbc.conf.sample (removed): Rename CEL
	  adaptive driver to plain driver, since there isn't another ODBC
	  driver (and the other CEL drivers have adaptive capabilities,
	  anyway).

2010-08-28 21:29 +0000 [r284065]  Russell Bryant <russell@digium.com>

	* main/manager.c: Be more flexible with whitespace on AMI action
	  headers. Previously, this code required exactly one space to be
	  after the ':' in headers for an AMI action. This now makes
	  whitespace optional, and allows whitespace that is there to vary
	  in amount. (closes issue #17862) Reported by: cmoye Patches:
	  manager.c.patch_trunk uploaded by cmoye (license 858)
	  manager.c.patch_1.8 uploaded by cmoye (license 858) Tested by:
	  cmoye

2010-08-27 22:37 +0000 [r284032]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 284002 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r284002 | dvossel | 2010-08-27 17:27:50 -0500
	  (Fri, 27 Aug 2010) | 14 lines Merged revisions 283960 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r283960 | dvossel | 2010-08-27 17:17:26 -0500 (Fri, 27 Aug 2010)
	  | 8 lines Parse all "Accept" headers for SIP SUBSCRIBE requests.
	  (closes issue #17758) Reported by: ibc Patches:
	  multiple_accept_headers_1.4.diff uploaded by dvossel (license
	  671) ........ ................

2010-08-27 21:33 +0000 [r283951]  Russell Bryant <russell@digium.com>

	* pbx/pbx_realtime.c: Print exten@context:priority in verbose
	  messages from pbx_realtime.

2010-08-27 20:31 +0000 [r283882]  Jason Parker <jparker@digium.com>

	* main/config.c, addons/res_config_mysql.c, res/res_config_odbc.c,
	  /: Merged revisions 283881 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r283881 | qwell | 2010-08-27 15:30:27 -0500
	  (Fri, 27 Aug 2010) | 15 lines Merged revisions 283880 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r283880 | qwell | 2010-08-27 15:29:11 -0500 (Fri, 27 Aug 2010) |
	  8 lines Fix issue with decoding ^-escaped characters in realtime.
	  (closes issue #17790) Reported by: denzs Patches:
	  17790-chunky.diff uploaded by qwell (license 4) Tested by: qwell,
	  denzs ........ ................

2010-08-26 23:47 +0000 [r283770]  Tilghman Lesher <tlesher@digium.com>

	* res/res_musiconhold.c: Convert MOH to use generic timers. (closes
	  issue #17726) Reported by: lmadsen Patches:
	  20100825__issue17726__2.diff.txt uploaded by tilghman (license
	  14) Tested by: tilghman

2010-08-26 15:26 +0000 [r283692]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 283691 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r283691 | dvossel | 2010-08-26 10:24:40 -0500
	  (Thu, 26 Aug 2010) | 25 lines Merged revisions 283690 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r283690 | dvossel | 2010-08-26 10:22:28 -0500 (Thu, 26 Aug 2010)
	  | 19 lines Fixed how Asterisk destroys a dialog on channel hangup
	  before invite receives a response. If an ast_channel with a SIP
	  tech pvt hangs up before the sip dialog gets a response to its
	  outgoing INVITE, Asterisk used to pretend_ack the INVITE. This is
	  not rfc compliant and results in confusion at the other endpoint.
	  sip_pretend_ack will ack and remove all the packets in the
	  retransmit queue. This means that the INVITE will stop
	  retransmitting, and that any response to that INVITE that comes
	  after the pretend_ack occurs will be ignored. Instead of faking
	  any sort of acknowledgement for an outgoing INVITE during an
	  internal hangup, we should let the protocol stack process the
	  INVITE transaction and terminate the dialog properly. This is
	  achieved by setting the PENDING_BYE flag. When this flag is used,
	  once the dialog proceeds to an escapable state the transaction
	  will either be canceled with a SIP_CANCEL or completed followed
	  immediately by a BYE. Attempting to do this any other way is
	  incorrect. If the endpoint is not responding to the INVITE
	  request, the INVITE must continue to be retransmitted until it
	  times out which will result in the dialog being destroyed.
	  ........ ................

2010-08-26 13:26 +0000 [r283627-283659]  Russell Bryant <russell@digium.com>

	* res/res_odbc.c: Slight improvement to a debug message.

	* keys/iaxtel.pub (removed), keys/freeworlddialup.pub (removed),
	  Makefile: Remove public keys that are no longer useful.

	* configs/manager.conf.sample: Move httptimeout out from in between
	  port and bindaddr.

2010-08-25 22:57 +0000 [r283595]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 283594 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r283594 | dvossel | 2010-08-25 17:56:42 -0500 (Wed, 25 Aug 2010)
	  | 7 lines Add to and from tags to NOTIFY dialog-info xml body so
	  pickup can occur. When pedantic mode is used, the dialog-info xml
	  generated during a ringing event must contain the to and from tag
	  values. Otherwise if a pickup occurs using INVITE with replaces,
	  Astrisk will not be able to locate the subscription. ........

2010-08-25 16:12 +0000 [r283561]  Tilghman Lesher <tlesher@digium.com>

	* res/res_odbc.c: Initialize connect timeout on each time through
	  the loop. (closes issue #17911) Reported by: wurstsalat

2010-08-25 15:54 +0000 [r283559]  David Vossel <dvossel@digium.com>

	* channels/sip/include/sip.h, /, channels/chan_sip.c: Merged
	  revisions 283558 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r283558 | dvossel | 2010-08-25 10:52:54 -0500 (Wed, 25 Aug 2010)
	  | 10 lines Asterisk will not advertise session timers are
	  supported when 'session-timers=refuse' is used. Asterisk now
	  dynamically builds the "Supported" header depending on what is
	  enabled/disabled in sip.conf. Session timers used to always be
	  advertised as being supported even when they were disabled in the
	  configuration. This caused problems with some end points. (issue
	  #17005) ........

2010-08-25 14:55 +0000 [r283527]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Convert ast_log(LOG_DEBUG, ...) to
	  ast_debug(...)

2010-08-24 20:34 +0000 [r283493]  David Vossel <dvossel@digium.com>

	* UPGRADE.txt, configs/sip.conf.sample, channels/sip/include/sip.h:
	  Changes the default behavior for sip.conf's pedantic option from
	  "no" to "yes".

2010-08-24 18:56 +0000 [r283457]  Leif Madsen <lmadsen@digium.com>

	* res/res_rtp_asterisk.c, channels/chan_sip.c: Fix issue where TOS
	  is no longer set on RTP packets. Fix issue where the tos is no
	  longer being set on RTP packets through res_rtp_asterisk. (closes
	  issue #17890) Reported by: elguero Patches: qos_18.diff uploaded
	  by elguero (license 37) Review:
	  https://reviewboard.asterisk.org/r/868

2010-08-24 16:11 +0000 [r283382]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 283381 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r283381 | dvossel | 2010-08-24 11:07:37 -0500
	  (Tue, 24 Aug 2010) | 18 lines Merged revisions 283380 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r283380 | dvossel | 2010-08-24 11:01:51 -0500 (Tue, 24 Aug 2010)
	  | 11 lines This fix makes sure the ast_channel hangs up correctly
	  when the dialog's PENDING_BYE flag is set. When the pending bye
	  flag is used, it is possible that the dialog will terminate and
	  leave the sip_pvt->owner channel up. This is because we never
	  hangup the ast_channel after sending the SIP_BYE request. When we
	  receive the response for the SIP_BYE we set need_destroy which we
	  would expect to destroy the dialog on the next do_monitor loop,
	  but this is not the case. The dialog will only be destroyed once
	  the owner is hungup even with the need_destroy flag set. This
	  patch sets the softhangup flag on the ast_channel when a SIP_BYE
	  request is sent as a result of the pending bye flag. ........
	  ................

2010-08-24 12:49 +0000 [r283350]  Russell Bryant <russell@digium.com>

	* funcs/func_odbc.c: Don't attempt to release a NULL ODBC handle.

2010-08-23 21:33 +0000 [r283319]  Tilghman Lesher <tlesher@digium.com>

	* cdr/cdr_adaptive_odbc.c, cdr/cdr_odbc.c, cel/cel_adaptive_odbc.c,
	  /: Merged revisions 283318 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r283318 | tilghman | 2010-08-23 16:32:14 -0500 (Mon, 23 Aug 2010)
	  | 2 lines CDR drivers depend upon res_odbc, not directly on the
	  ODBC libraries ........

2010-08-23  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-beta4 Released.

2010-08-23 13:35 +0000 [r283177-283241]  Russell Bryant <russell@digium.com>

	* configs/cel.conf.sample: Add sample configuration for cel_radius.

	* main/cel.c, include/asterisk/cel.h: Make the AST_CEL_AMA enum
	  match up with the AST_CDR_ ama flag values. Really, having 2
	  enums for this is silly and error prone, demonstrated by the
	  crash that I hit because there was an assumption in the code that
	  the values in each matched up. However, this is a quick fix to
	  get them to match up so it will work.

	* main/cel.c: Don't blow up on an invalid AMA flag.

	* configs/cel_custom.conf.sample: Tack on ${eventextra} to the
	  sample cel_custom.conf.

	* configs/cel_custom.conf.sample: Cut down on excessive quotation.

2010-08-23 12:06 +0000 [r283175]  Tilghman Lesher <tlesher@digium.com>

	* res/res_stun_monitor.c: Don't fail to start if the config file is
	  missing.

2010-08-23 11:58 +0000 [r283173]  Russell Bryant <russell@digium.com>

	* configs/cel_custom.conf.sample: Expand cel_custom.conf.sample.
	  Include the usage of CSV_QUOTE() to ensure data has valid CSV
	  formatting. Also list the special CEL variables that are
	  available for use in the mapping.

2010-08-20 16:51 +0000 [r283050-283125]  Richard Mudgett <rmudgett@digium.com>

	* /: Recorded merge of revisions 283124 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r283124 | rmudgett | 2010-08-20 11:48:10 -0500
	  (Fri, 20 Aug 2010) | 16 lines Merged revisions 283123 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r283123 | rmudgett | 2010-08-20 11:46:22 -0500
	  (Fri, 20 Aug 2010) | 9 lines Merged revision 278274 from
	  https://origsvn.digium.com/svn/asterisk/trunk .......... r278274
	  | rmudgett | 2010-07-20 17:38:13 -0500 (Tue, 20 Jul 2010) | 1
	  line Reference correct struct member for unlikely event
	  PRI_EVENT_CONFIG_ERR. .......... ................
	  ................

	* channels/sig_pri.c, /: Merged revisions 283049 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r283049 | rmudgett | 2010-08-20 10:31:03 -0500
	  (Fri, 20 Aug 2010) | 29 lines Merged revisions 283048 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r283048 | rmudgett | 2010-08-20 10:24:36 -0500 (Fri, 20 Aug 2010)
	  | 22 lines Q931 - Sending PROGRESS after sending ALERTING is a
	  protocol error The PRI layer in chan_dadhi will check if a
	  PROGRESS message has already been sent, and not allow sending
	  another (although that is technically allowed by the Q931 spec),
	  however it does not protect against sending an ALERTING and then
	  sending a PROGRESS message, which is a violation of the
	  specification. Most switches don't seem to care too deeply about
	  this, but some do, and will disconnect the call when receiving
	  this invalid sequence. Protocol specification reference:
	  T-REC-Q.931-199805-I page 223, "Figure A.5/Q.931 -- Overview
	  protocol control (network side) point-point (sheet 3 of 8)"
	  (closes issue #17874) Reported by: nic_bellamy Patches:
	  asterisk-1.4-r282537_no-progress-after-alerting.patch uploaded by
	  nic bellamy (license 299)
	  asterisk-1.6.2-r282537_no-progress-after-alerting.patch uploaded
	  by nic bellamy (license 299)
	  asterisk-trunk-r282537_no-progress-after-alerting.patch uploaded
	  by nic bellamy (license 299) ........ ................

2010-08-20 12:45 +0000 [r282979-283013]  Russell Bryant <russell@digium.com>

	* configs/cel_adaptive_odbc.conf.sample: Fix a typo in a column
	  name.

	* apps/app_celgenuserevent.c: Add an argument missing from the
	  CELGenUserEvent documentation.

2010-08-19 21:07 +0000 [r282891-282895]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 282894 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r282894 | dvossel | 2010-08-19 16:05:54 -0500
	  (Thu, 19 Aug 2010) | 18 lines Merged revisions 282893 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r282893 | dvossel | 2010-08-19 16:03:24 -0500 (Thu, 19 Aug 2010)
	  | 11 lines tos_sip option was not being set correctly When
	  tos_sip is used, the tos of the sip socket is only set correctly
	  if the socket binding changes on a reload. If the binding stays
	  the same but the TOS changes, the new tos value would not take
	  into effect. This patch fixes that. (closes issue #17712)
	  Reported by: nickb ........ ................

	* /, channels/chan_sip.c: Merged revisions 282890 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r282890 | dvossel | 2010-08-19 15:31:22 -0500 (Thu, 19 Aug 2010)
	  | 5 lines fixes sip peer memory leaks in the peer_by_ip table
	  (issue #17798) ........

2010-08-19 20:01 +0000 [r282860]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 282859 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r282859 | mnicholson | 2010-08-19 14:44:00 -0500
	  (Thu, 19 Aug 2010) | 23 lines Merged revisions 277944 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277944 | pabelanger | 2010-07-19 15:56:07 -0500 (Mon, 19 Jul
	  2010) | 16 lines Regression with T.38 negotiation Prior to
	  1.4.26.3 T.38 negotiation worked properly, in the case of the
	  reporter. (issue #16852) Reported by: cfc (closes issue #16705)
	  Reported by: mpiazzatnetbug Patches: issue16705_2.diff uploaded
	  by ebroad (license 878) Tested by: vrban, ebroad, c0rnoTa,
	  samdell3 Review: https://reviewboard.asterisk.org/r/754/ ........
	  ................

2010-08-19 14:44 +0000 [r282826]  Tilghman Lesher <tlesher@digium.com>

	* main/netsock2.c: Only output debugging if the debug level is on.

2010-08-19 02:18 +0000 [r282740]  Terry Wilson <twilson@digium.com>

	* configs/sip.conf.sample, /: Merged revisions 282730 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r282730 | twilson | 2010-08-18 21:14:28 -0500
	  (Wed, 18 Aug 2010) | 9 lines Merged revisions 282729 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r282729 | twilson | 2010-08-18 21:12:55 -0500 (Wed, 18
	  Aug 2010) | 2 lines Add some documentation about codec
	  negotiation to sip.conf ........ ................

2010-08-18 15:28 +0000 [r282671-282672]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h: Use the correct type for aoce_delayhangup bit
	  field.

	* channels/chan_dahdi.c: Use the correct operator when calculating
	  the PRI span devstate.

2010-08-18 13:10 +0000 [r282639]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Properly handle 200 and unknown responses
	  conatined in NOTIFY requests received in response to REFER
	  requests. This patch fixes the way asterisk handles NOTIFY
	  requests received in response to REFER requests. These changes to
	  NOTIFY handler were first introduced in r217482. This new change
	  properly handles the 200 response by queueing an
	  AST_TRANSFER_SUCCESS control frame and also prevents that control
	  frame from being queued when provisional and unknown responses
	  are received. (issue #17486) Reported by: davidw Tested by:
	  mnicholson (issue #12713) Reported by: davidw Review:
	  https://reviewboard.asterisk.org/r/860/

2010-08-18 12:30 +0000 [r282638]  Russell Bryant <russell@digium.com>

	* channels/chan_multicast_rtp.c: Split _all_ arguments before
	  parsing them. This fixes multicast RTP paging using linksys mode.

2010-08-18 07:49 +0000 [r282608]  Tilghman Lesher <tlesher@digium.com>

	* channels/sig_pri.c, /: Merged revisions 282607 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r282607 | tilghman | 2010-08-18 02:43:14 -0500 (Wed, 18 Aug 2010)
	  | 9 lines Don't warn on callerid when completely text, instead of
	  numeric with localdialplan prefixes. (closes issue #16770)
	  Reported by: jamicque Patches: 20100413__issue16770.diff.txt
	  uploaded by tilghman (license 14) 20100811__issue16770.diff.txt
	  uploaded by tilghman (license 14) Tested by: jamicque ........

2010-08-17 21:36 +0000 [r282543-282577]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 282576 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r282576 | dvossel | 2010-08-17 16:35:17 -0500 (Tue, 17 Aug 2010)
	  | 9 lines fixes no default transport for temp peer creation in
	  chan_sip (closes issue #17829) Reported by: falves11 Patches:
	  issue_17829.rev1.txt uploaded by russell (license 2)
	  issue_17829.diff uploaded by dvossel (license 671) Tested by:
	  falves11 ........

	* channels/chan_iax2.c: ACCEPT message should respond with the new
	  FORMAT2 ie (closes issue #17804) Reported by: tpanton

	* include/asterisk/unaligned.h: fixes truncated uint64_t value in
	  put_unaligned_uint64_t() function (issue #17804)

2010-08-16 18:01 +0000 [r282470]  Leif Madsen <lmadsen@digium.com>

	* doc/tex/asterisk.tex, doc/tex/sounds.tex (added), /: Merged
	  revisions 282469 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r282469 | lmadsen | 2010-08-16 13:00:09 -0500 (Mon, 16 Aug 2010)
	  | 7 lines Add information about creating sounds files using the
	  sounds tools publically available so that others can create their
	  own sounds prompts using the same tools we use to generate sounds
	  releases. This allows people creating their own prompts to sound
	  consistent with the prompts available from the open source
	  project. SWP-595 ........

2010-08-16 17:53 +0000 [r282468]  Terry Wilson <twilson@digium.com>

	* main/channel.c, /: Merged revisions 282467 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r282467 | twilson | 2010-08-16 12:32:01 -0500
	  (Mon, 16 Aug 2010) | 23 lines Merged revisions 282430 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r282430 | twilson | 2010-08-16 12:06:37 -0500 (Mon, 16 Aug 2010)
	  | 16 lines Send a SRCCHANGE indication when we masquerade
	  Masquerading a channel means that the src of the audio is
	  potentially changing, so send a SRCCHANGE so that RTP-based media
	  streams can get a new SSRC generated to reflect the change.
	  Original patch by addix (along with lots of testing--thanks!).
	  (closes issue #17007) Reported by: addix Patches:
	  1001-reset-SSRC-original-channel.diff uploaded by addix (license
	  1006) srcchange.diff uploaded by twilson (license 396) Tested by:
	  addix, twilson Review: https://reviewboard.asterisk.org/r/862/
	  ........ ................

2010-08-14 04:53 +0000 [r282366]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_iax2.c, include/asterisk/sched.h: Fix our FRACKing
	  issue with chan_iax2 a different way. Review:
	  https://reviewboard.asterisk.org/r/861/

2010-08-13 23:53 +0000 [r282334]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: PRI CCSS may use a stale dial string for
	  the recall dial string. If an outgoing call negotiates a
	  different B channel than initially requested, the saved original
	  dial string was not transferred to the new B channel. CCSS uses
	  that dial string to generate the recall dial string.

2010-08-13 22:23 +0000 [r282236-282302]  David Vossel <dvossel@digium.com>

	* UPGRADE.txt, configs/sip.conf.sample, CHANGES,
	  channels/chan_sip.c: remove current STUN support from chan_sip.c
	  This patch removes the current broken/useless stun support from
	  chan_sip. (closes issue #17622) Reported by: philipp2 Review:
	  https://reviewboard.asterisk.org/r/855/

	* CHANGES: res_stun_monitor and corresponding options CHANGES
	  documentation

	* configs/res_stun_monitor.conf.sample (added),
	  configs/sip.conf.sample, channels/chan_iax2.c,
	  configs/iax.conf.sample, channels/chan_sip.c,
	  include/asterisk/event_defs.h, res/res_stun_monitor.c (added):
	  res_stun_monitor for monitoring network changes behind a NAT
	  device Review: https://reviewboard.asterisk.org/r/854

	* /, channels/chan_sip.c: Merged revisions 282235 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r282235 | dvossel | 2010-08-13 13:54:53 -0500 (Fri, 13 Aug 2010)
	  | 16 lines only do magic pickup when notifycid is enabled A new
	  way of doing BLF pickup was introduced into 1.6.2. This feature
	  adds a call-id value into the XML of a SIP_NOTIFY message sent to
	  alert a subscriber that a device is ringing. This option should
	  only be enabled when the new 'notifycid' option is set... but
	  this was not the case. Instead the call-id value was included for
	  every RINGING Notify message, which caused a regression for
	  people who used other methods for call pickup. (closes issue
	  #17633) Reported by: urosh Patches: chan_sip.txt uploaded by
	  urosh (license ) blf_cid_issue.diff uploaded by dvossel (license
	  671) Tested by: dvossel, urosh, okrief, alecdavis ........

2010-08-13 16:02 +0000 [r282200-282201]  Terry Wilson <twilson@digium.com>

	* configure.ac: Whitespace fix :-/

	* configure, configure.ac: Detect when libsrtp cannot be linked in
	  a shared library The libsrtp build system currently does not
	  produce a shared library or a static library compiled with -fPIC,
	  so on 64-bit systems it is possible that we will get a compile
	  error if libsrtp is installed and res_srtp is selected in
	  menuselect. This patch attempts to detect this situation and
	  provide the user with instructions to work around the problem.

2010-08-12 22:51 +0000 [r282131]  Jason Parker <jparker@digium.com>

	* pbx/pbx_config.c, /: Merged revisions 282130 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r282130 | qwell | 2010-08-12 17:50:54 -0500
	  (Thu, 12 Aug 2010) | 9 lines Merged revisions 282129 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r282129 | qwell | 2010-08-12 17:49:28 -0500 (Thu, 12 Aug
	  2010) | 1 line Register CLI commands before parsing config, in
	  case there is a config error. ........ ................

2010-08-12 22:06 +0000 [r282098]  Richard Mudgett <rmudgett@digium.com>

	* include/asterisk/ccss.h, main/ccss.c: Separate call completion
	  config parameter allocation and default initialization. If you
	  ever have a need to reset the call completion config parameters
	  to defaults, now you can. And no Virginia, C++ idioms do not
	  always work in C.

2010-08-12 20:41 +0000 [r282066]  Russell Bryant <russell@digium.com>

	* CHANGES, main/cli.c: Add a "core reload" CLI command. Review:
	  https://reviewboard.asterisk.org/r/859/

2010-08-12 20:15 +0000 [r282047]  David Vossel <dvossel@digium.com>

	* CHANGES, include/asterisk/translate.h, main/cli.c,
	  main/translate.c: improved translation paths for wideband codecs
	  The problem I'm addressing is that Asterisk's current method of
	  building the least cost translation paths between codecs does not
	  take into account sample rate. For instance, it was possible for
	  siren14 (a 32khz codec), to contain the a translation path to
	  siren7 (a 16khz audio codec) that goes through slin at 8khz. In
	  this case Asterisk takes a 32khz codec, down samples it to 8khz
	  and then up samples it to 16khz which is terrible regardless if
	  it is computationally less expensive. This patch now builds
	  translation paths that give priority to maintaining the best
	  possible sample rate before taking into consideration
	  computational cost. This patch also adds cli commands to expose
	  what translation paths are actually being used. Changes: 1.
	  Translation paths will never contain a step that changes the
	  sample rate unless absolutely necessary. 2. When choosing the
	  best codec to make two channels compatible. Shared codecs with
	  the highest sample rate are given priority. 3. A new cli command
	  to show all translation paths available for a specific codec
	  'core show translation paths [codec name]' has been added. 4.
	  'core show translation' which displays the translation matrix now
	  includes the new higher bit audio codecs in the table. 5. 'core
	  show channel [channel name]' now displays the translation paths
	  if translation is used. (closes issue #16841) Reported by:
	  dvossel Review: https://reviewboard.asterisk.org/r/842/

2010-08-12 18:03 +0000 [r281982-282015]  Russell Bryant <russell@digium.com>

	* main/pbx.c: Put back pointer value output for ast_debug(), such
	  that it is only removed for verbose output.

	* main/pbx.c: Remove debugging output from verbose messages.
	  Pointer values to internal objects is not terribly useful to
	  users in the verbose messages about adding extensions and
	  contexts.

2010-08-12 03:03 +0000 [r281913]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /: Merged revisions 281912 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r281912 | jpeeler | 2010-08-11 22:01:38 -0500
	  (Wed, 11 Aug 2010) | 27 lines Merged revisions 281911 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r281911 | jpeeler | 2010-08-11 22:00:14 -0500 (Wed, 11 Aug 2010)
	  | 20 lines Ensure SSRC is changed when media source is changed to
	  resolve audio delay. This change causes the SSRC to change right
	  before the channels are bridged, which is what used to happen. It
	  seems that fixes were made to attempt limiting SSRC changes,
	  targeted mainly at sending DTMF. DTMF is not affecting the SSRC
	  with this change. There are two other control frames sent in
	  ast_channel_bridge that probably should also be changed to
	  AST_CONTROL_SRCCHANGE as well, but I'm going to leave this change
	  up to the discretion of resolving issue #17007. For reference -
	  old review implementing new control frame SRCCHANGE:
	  https://reviewboard.asterisk.org/r/540 (closes issue #17404)
	  Reported by: sdolloff Patches: bug17404.patch uploaded by jpeeler
	  (license 325) Tested by: sdolloff ........ ................

2010-08-11 21:12 +0000 [r281875]  Leif Madsen <lmadsen@digium.com>

	* configs/say.conf.sample, /: Merged revisions 281873 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r281873 | lmadsen | 2010-08-11 16:09:47 -0500
	  (Wed, 11 Aug 2010) | 14 lines Merged revisions 281819 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r281819 | lmadsen | 2010-08-11 13:28:10 -0500 (Wed, 11 Aug 2010)
	  | 6 lines Add Danish support to say.conf.sample (closes issue
	  #17836) Reported by: RoadKill Patches: say.conf.sample.patch.dk
	  uploaded by RoadKill (license 933) ........ ................

2010-08-11 21:11 +0000 [r281874]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: handle all possible responses to REFER
	  requests (closes issue #17486) Reported by: davidw Patches:
	  Issue17486-counterbid.diff.txt uploaded by davidw (license 780)
	  Tested by: davidw Review: https://reviewboard.asterisk.org/r/837/

2010-08-11 20:30 +0000 [r281870]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_analog.c, channels/sig_analog.h: Fix a call to
	  analog_set_pulsedial() not setting 0 or 1 only. * Also a couple
	  minor tweaks.

2010-08-11 17:54 +0000 [r281764]  Leif Madsen <lmadsen@digium.com>

	* configs/say.conf.sample, /: Merged revisions 281763 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r281763 | lmadsen | 2010-08-11 12:54:09 -0500
	  (Wed, 11 Aug 2010) | 14 lines Merged revisions 281762 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r281762 | lmadsen | 2010-08-11 12:51:40 -0500 (Wed, 11 Aug 2010)
	  | 6 lines Allow say.conf to handle large numbers ending with
	  multiple zeros. (closes issue #17833) Reported by: RoadKill
	  Patches: say.conf.sample.patch.largenumbers uploaded by RoadKill
	  (license 933) ........ ................

2010-08-11 17:27 +0000 [r281760]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Avoid a deadlock in
	  add_header_max_forwards(). Related to r276951

2010-08-11 15:18 +0000 [r281723]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_readexten.c: Merged revisions 281722 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r281722 | tilghman | 2010-08-11 10:17:20 -0500 (Wed, 11
	  Aug 2010) | 7 lines Only set status TIMEOUT, if we have no
	  digits. (closes issue #15188) Reported by: jcovert Patches:
	  app_readexten.c.patch-1.6.2.8-rc1 uploaded by jcovert (license
	  551) ........

2010-08-11 13:30 +0000 [r281687]  <simon.perreault@viagenie.ca>

	* include/asterisk/netsock2.h, configs/sip.conf.sample,
	  channels/sip/config_parser.c, main/netsock2.c: Fix parsing of
	  IPv6 address literals in outboundproxy (closes issue #17757)
	  Reported by: oej Patches: 17757.diff uploaded by sperreault
	  (license 252) sip.conf.diff uploaded by sperreault (license 252)
	  Tested by: oej

2010-08-10 21:47 +0000 [r281568-281650]  Russell Bryant <russell@digium.com>

	* UPGRADE.txt, configs/sip.conf.sample, channels/sip/include/sip.h:
	  Change the default value for alwaysauthreject in sip.conf to
	  "yes". (closes issue #17756) Reported by: oej

	* main/sched.c, /: Merged revisions 281574 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r281574 | russell | 2010-08-10 13:04:32 -0500 (Tue, 10 Aug 2010)
	  | 9 lines Don't move the time threshold for running scheduled
	  events on every iteration. Instead, only calculate the time
	  threshold each time ast_sched_runq() is called. (closes issue
	  #17742) Reported by: schmidts Patches: sched.c.patch uploaded by
	  schmidts (license 1077) ........

	* apps/app_dial.c, /: Merged revisions 281567 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r281567 | russell | 2010-08-10 12:47:13 -0500
	  (Tue, 10 Aug 2010) | 15 lines Merged revisions 281566 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r281566 | russell | 2010-08-10 12:45:45 -0500 (Tue, 10 Aug 2010)
	  | 8 lines Reset visible indication after answer. (closes issue
	  #17641) Reported by: klaus3000 Patches:
	  ast1.6.2.9-app_dial-visible_indication.patch.txt uploaded by
	  klaus3000 (license 65) Tested by: schmidts ........
	  ................

2010-08-10  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-beta3 Released.

2010-08-10 17:48 +0000 [r281529-281568]  Russell Bryant <russell@digium.com>

	* apps/app_dial.c, /: Merged revisions 281567 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r281567 | russell | 2010-08-10 12:47:13 -0500
	  (Tue, 10 Aug 2010) | 15 lines Merged revisions 281566 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r281566 | russell | 2010-08-10 12:45:45 -0500 (Tue, 10 Aug 2010)
	  | 8 lines Reset visible indication after answer. (closes issue
	  #17641) Reported by: klaus3000 Patches:
	  ast1.6.2.9-app_dial-visible_indication.patch.txt uploaded by
	  klaus3000 (license 65) Tested by: schmidts ........
	  ................

	* channels/chan_sip.c: Ensure that the proper external address is
	  used for the RTP destination. (closes issue #17044) Reported by:
	  ebroad Tested by: ebroad Review:
	  https://reviewboard.asterisk.org/r/566/

	* main/cli.c: Resolve a problem with channel name tab completion.
	  Hitting tab without typing any part of a channel name resulted in
	  no results. This now results in getting a full list of active
	  channels, just as it did in previous versions of Asterisk.
	  Review: https://reviewboard.asterisk.org/r/818/

2010-08-10 07:26 +0000 [r281497]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c: Fixed the issue caused by EXTEN including
	  user parameters.

2010-08-09 23:04 +0000 [r281466]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_local.c: Add some more stuff to copy from 281429.

2010-08-09 20:47 +0000 [r281432]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 281430 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r281430 | dvossel | 2010-08-09 15:46:50 -0500 (Mon, 09 Aug 2010)
	  | 13 lines fixes SIP peers memory leak We zeroed out the peer's
	  addr before it was removed from the peers_by_ip container. This
	  made it impossible to be removed from the container as the addr
	  is the key used by the container to find the peer. (closes issue
	  #17774) Reported by: kkm Patches:
	  017774-sip-peer-leak-1.6.2.10.diff uploaded by kkm (license 888)
	  017774-sip-peer-leak-1.8.diff uploaded by kkm (license 888)
	  ........

2010-08-09 20:43 +0000 [r281429]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_local.c, /: Merged revisions 281391 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r281391 | jpeeler | 2010-08-09 15:07:29 -0500
	  (Mon, 09 Aug 2010) | 20 lines Merged revisions 281390 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r281390 | jpeeler | 2010-08-09 15:04:30 -0500 (Mon, 09 Aug 2010)
	  | 13 lines Prevent loss of Caller ID information set on local
	  channel after masquerade. Caller ID set on the channel before a
	  masquerade occurs when using a local channel would cause the
	  information to be lost. The problem was that the information was
	  set on a channel destined to be hung up. The somewhat confusing
	  fix is to detect if any Caller ID has been set on the channel and
	  if so preswap the Caller ID data so that basically the masquerade
	  puts the data back. (closes issue #17138) Reported by: kobaz
	  Review: https://reviewboard.asterisk.org/r/847/ ........
	  ................

2010-08-09 14:49 +0000 [r281358]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Validate minrate, maxrate, and modem settings
	  before attempting a fax session. FAX-224

2010-08-09 14:31 +0000 [r281356]  <simon.perreault@viagenie.ca>

	* configs/sip.conf.sample: Added comment about IPv4-mapped IPv6
	  addresses and the output of netstat.

2010-08-09 12:51 +0000 [r281294-281325]  Russell Bryant <russell@digium.com>

	* configs/cdr.conf.sample: Add a couple of default values to the
	  documentation of cdr.conf.

	* configs/cdr.conf.sample: Reorder some options in cdr.conf.sample.
	  Put all of the options that affect the contents of CDRs together,
	  instead of having the batch mode options in the middle of them.

2010-08-06 18:57 +0000 [r281085]  Tilghman Lesher <tlesher@digium.com>

	* main/utils.c: Fix alignment of stringfields on the SPARC
	  architecture (closes issue #17789) Reported by: Ian Mason
	  Patches: 20100806__issue17789__2.diff.txt uploaded by tilghman
	  (license 14) Tested by: Ian_Mason

2010-08-05 13:16 +0000 [r281052]  Russell Bryant <russell@digium.com>

	* main/cdr.c, /: Merged revisions 281051 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r281051 | russell | 2010-08-05 08:11:32 -0500 (Thu, 05 Aug 2010)
	  | 9 lines Cleanup default option value handling for cdr.conf
	  [general]. The default values would differ depending on whether
	  or not cdr.conf exists. That is no longer the case. Apply a
	  default value to the unanswered option. Define all default values
	  as named constants. ........

2010-08-05 07:46 +0000 [r280984]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/pbx.h, main/pbx.c, /: Merged revisions 280983
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r280983 | tilghman | 2010-08-05 02:40:47 -0500
	  (Thu, 05 Aug 2010) | 15 lines Merged revisions 280982 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r280982 | tilghman | 2010-08-05 02:28:33 -0500 (Thu, 05 Aug 2010)
	  | 8 lines Change context lock back to a mutex, because
	  functionality depends upon the lock being recursive. (closes
	  issue #17643) Reported by: zerohalo Patches:
	  20100726__issue17643.diff.txt uploaded by tilghman (license 14)
	  Tested by: zerohalo ........ ................

2010-08-04 15:11 +0000 [r280909]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Initialize FAXOPT() status variables in sendfax
	  and receivefax instead of when the details structure is created.

2010-08-04 14:04 +0000 [r280809-280879]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_mgcp.c: Check cur value before attempting a deref.
	  (closes issue #17775) Reported by: svinson Patches:
	  20100804__issue17775.diff.txt uploaded by tilghman (license 14)
	  Tested by: svinson (closes issue #17743) Reported by: tgruenberg
	  Patches: 20100804__issue17775.diff.txt uploaded by tilghman
	  (license 14) Tested by: tgruenberg

	* CHANGES, funcs/func_strings.c: Sneak FIELDNUM() into 1.8. Returns
	  a 1-based index into a list of a specified item. Matches up with
	  FIELDQTY() and CUT(). (closes issue #17713) Reported by: gareth
	  Patches: svn-279754.diff uploaded by gareth (license 208) Tested
	  by: gareth, tilghman Review:
	  https://reviewboard.asterisk.org/r/810/

2010-08-03 19:54 +0000 [r280777-280778]  <simon.perreault@viagenie.ca>

	* channels/chan_sip.c: Fixed IPv6-related SIP parsing bugs. (closes
	  issue #17663) Reported by: oej Patches: diff uploaded by
	  sperreault (license 252) diff2 uploaded by sperreault (license
	  252) get_domain.diff uploaded by sperreault (license 252)

	* configs/sip.conf.sample: Better documentation related to IPv6.
	  (closes issue #17737) Reported by: oej Patches: doc.diff uploaded
	  by sperreault (license 252) Tested by: mmichelson

2010-08-03 18:48 +0000 [r280742]  Russell Bryant <russell@digium.com>

	* addons/Makefile, addons/mp3 (removed),
	  contrib/scripts/get_mp3_source.sh (added): Remove the MP3 decoder
	  source code and replace it with a small shell script. Review:
	  https://reviewboard.asterisk.org/r/836/

2010-08-03 18:42 +0000 [r280624-280740]  Tilghman Lesher <tlesher@digium.com>

	* doc/asterisk.sgml, /, doc/asterisk.8, doc/Makefile (added):
	  Merged revisions 280739 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r280739 | tilghman | 2010-08-03 13:39:28 -0500 (Tue, 03 Aug 2010)
	  | 2 lines Document -B and -W flags and regenerate manpage from
	  sgml ........

	* apps/app_voicemail.c, /: Merged revisions 280671 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r280671 | tilghman | 2010-08-02 16:26:11 -0500 (Mon, 02
	  Aug 2010) | 2 lines Allow the pipe, but also allow the comma
	  ........

	* main/Makefile: Make this a little more deterministic... we want
	  the latest value, not just a 1 somewhere.

	* main/Makefile: Apparently, the values in makeopts are sometimes
	  1:1 and sometimes 1. Compensate for this.

2010-07-29 21:07 +0000 [r280557]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Fix regression introduced in r1664. Give the fax
	  stack time to shutdown and populate the FAXOPT output variables.
	  FAX-222

2010-07-29 20:43 +0000 [r280552]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 280551 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r280551 | dvossel | 2010-07-29 15:42:29 -0500 (Thu, 29 Jul 2010)
	  | 11 lines fixes wrong SRV query for TLS connection (closes issue
	  #17612) Reported by: marcelloceschia Patches:
	  chan-sip_srvQuery.patch uploaded by marcelloceschia (license
	  1079) chan-sip_Trunk_srvQuery.patch uploaded by st (license 907)
	  chan-sip_asterisk18b1_srvQuery.patch uploaded by marcelloceschia
	  (license 1079) Tested by: marcelloceschia, st, pabelanger
	  ........

2010-07-29 20:35 +0000 [r280549]  Russell Bryant <russell@digium.com>

	* configs/ccss.conf.sample: Add header to ccss.conf to appease oej.
	  (closes issue #17755) Reported by: oej

2010-07-29 19:47 +0000 [r280519]  Sean Bright <sean@malleable.com>

	* channels/sig_pri.c: Fix compilation error in chan_dahdi (strdupa
	  -> ast_strdupa). (closes issue #17751) Reported by: b11d Patches:
	  strdupa_oops.diff uploaded by malcolmd (license 924)

2010-07-29 19:13 +0000 [r280450]  David Vossel <dvossel@digium.com>

	* main/channel.c, /: Merged revisions 280449 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r280449 | dvossel | 2010-07-29 14:05:25 -0500
	  (Thu, 29 Jul 2010) | 18 lines Merged revisions 280448 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r280448 | dvossel | 2010-07-29 14:04:23 -0500 (Thu, 29 Jul 2010)
	  | 12 lines fixes issue with translator frame not getting freed A
	  translator frame even if it local storage so the translation path
	  can be freed. This issue prevented g729 licenses from being freed
	  up. (closes issue #17630) Reported by: manvirr Patches:
	  encoder_fix.diff uploaded by dvossel (license 671) Tested by:
	  manvirr, dvossel ........ ................

2010-07-29 18:37 +0000 [r280414-280446]  Paul Belanger <paul.belanger@polybeacon.com>

	* tests/test_utils.c: Remove res_crypto dependency.

	* tests/test_utils.c: crypto_loaded_test depends on res_crypto,
	  else test will fail.

2010-07-29 16:25 +0000 [r280391]  Russell Bryant <russell@digium.com>

	* main/rtp_engine.c: Don't blow up if get_codec() was not provided
	  in the RTP glue.

2010-07-29 16:07 +0000 [r280346]  Jean Galarneau <jgalarneau@digium.com>

	* /, apps/app_meetme.c: Merged revisions 280345 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r280345 | jeang | 2010-07-29 11:01:35 -0500
	  (Thu, 29 Jul 2010) | 10 lines Merged revisions 280341 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r280341 | jeang | 2010-07-29 10:52:31 -0500 (Thu, 29 Jul 2010) |
	  2 lines Fix a dsp structure leak occuring when a local channel is
	  put into a meetme conference, then masquaraded away. ABE-2422
	  ........ ................

2010-07-29 15:57 +0000 [r280307-280343]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_usbradio.c: Use PRIx64 instead of PRId64 in format
	  string. related to r280302

	* main/channel.c, channels/chan_local.c, /: Merged revisions 280306
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r280306 | mnicholson | 2010-07-29 08:45:11 -0500 (Thu, 29 Jul
	  2010) | 2 lines Implement support for ast_channel_queryoption on
	  local channels. Currently only AST_OPTION_T38_STATE is supported.
	  ABE-2229 Review: https://reviewboard.asterisk.org/r/813/ ........
	  Additionally, pass AST_CONTROL_T38_PARAMETERS control frames
	  through generic bridges. This change appears to have been
	  unintentionally left out of rev 203699.

2010-07-29 00:45 +0000 [r280302]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_usbradio.c: Use PRId64 with format_t

2010-07-28 20:49 +0000 [r280269]  Jeff Peeler <jpeeler@digium.com>

	* channels/sip/reqresp_parser.c: Give test category missing leading
	  slash

2010-07-28 20:12 +0000 [r280235]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 280229 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r280229 | rmudgett | 2010-07-28 14:57:49 -0500 (Wed, 28
	  Jul 2010) | 2 lines Add missing enum value "unknown" to the SS7
	  called_nai and calling_nai config options. ........

2010-07-28 20:03 +0000 [r280233]  Jason Parker <jparker@digium.com>

	* sounds/Makefile, /: Merged revisions 280231 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r280231 | qwell | 2010-07-28 15:02:27 -0500 (Wed, 28 Jul 2010) |
	  6 lines Work around some silly behavior on BSD. A non-zero exit
	  from a subshell should make the build fail. (closes issue #17621)
	  ........

2010-07-28 19:34 +0000 [r280225]  Terry Wilson <twilson@digium.com>

	* res/res_rtp_asterisk.c: Do rtp/rtcp debugging when it is turned
	  on w/o filtering

2010-07-28 18:24 +0000 [r280195]  Jason Parker <jparker@digium.com>

	* sounds/Makefile, /: Merged revisions 280193 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r280193 | qwell | 2010-07-28 13:05:54 -0500 (Wed, 28 Jul 2010) |
	  9 lines Remove unnecessary subshells. Attempt to make
	  checksumming work. Also improves readability. (issue #17621)
	  Reported by: bjm Review: https://reviewboard.asterisk.org/r/808/
	  ........

2010-07-28 16:52 +0000 [r280161]  Sean Bright <sean@malleable.com>

	* apps/app_queue.c, /: Merged revisions 280160 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r280160 | seanbright | 2010-07-28 12:51:11 -0400 (Wed, 28 Jul
	  2010) | 8 lines Plug a reference leak in app_queue when adding
	  members dynamically. (closes issue #17738) Reported by:
	  bobwienholt Patches: issue17738.patch uploaded by bobwienholt
	  (license 950) Tested by: bobwienholt, seanbright ........

2010-07-28 13:52 +0000 [r280090]  Leif Madsen <lmadsen@digium.com>

	* contrib/scripts/live_ast, /: Merged revisions 280089 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r280089 | lmadsen | 2010-07-28 08:51:16 -0500
	  (Wed, 28 Jul 2010) | 9 lines Merged revisions 280088 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r280088 | lmadsen | 2010-07-28 08:50:38 -0500 (Wed, 28
	  Jul 2010) | 1 line Update help text to be less confusing.
	  ........ ................

2010-07-28 13:01 +0000 [r280058]  Russell Bryant <russell@digium.com>

	* res/res_crypto.c: s/init keys/keys init/

2010-07-28 01:37 +0000 [r280023]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_usbradio.c: Resolve compiler warning about
	  formatting (closes issue #17732) Reported by: pabelanger

2010-07-27 22:30 +0000 [r280019-280020]  Sean Bright <sean@malleable.com>

	* main/editline/el.h, main/term.c, main/cli.c,
	  main/editline/parse.c, main/editline/tokenizer.c,
	  main/editline/config.sub, main/editline/parse.h,
	  main/editline/tokenizer.h, configure, main/editline/histedit.h,
	  main/editline/sig.c, main/editline/PLATFORMS,
	  main/editline/sig.h, main/editline/key.c, main/editline/editrc.5,
	  main/editline/np/fgetln.c, main/editline/key.h,
	  main/editline/TEST/test.c, main/Makefile,
	  main/editline/configure, main/editline/Makefile.in, configure.ac,
	  main/editline/configure.in, main/editline/readline/readline.h,
	  main/editline/README, main/editline/editline.3,
	  main/editline/vi.c, main/editline/sys.h, main/editline/emacs.c,
	  main/asterisk.c, main/editline/install-sh, main/editline/term.c,
	  main/editline/config.guess, main/editline/read.c,
	  main/editline/term.h, main/editline/map.c,
	  main/editline/np/strlcpy.c, main/editline (added),
	  main/editline/config.h.in, main/editline/read.h,
	  main/editline/tty.c, main/editline/np/unvis.c,
	  main/editline/prompt.c, main/editline/map.h, main/editline/tty.h,
	  main/editline/chared.c, main/editline/prompt.h,
	  main/editline/np/strlcat.c, main/editline/chared.h,
	  main/editline/np, main/editline/TEST, main/editline/refresh.c,
	  main/editline/history.c, main/editline/readline,
	  include/asterisk/term.h, main/editline/refresh.h,
	  main/editline/search.c, main/editline/hist.c,
	  main/editline/search.h, main/editline/hist.h,
	  main/editline/np/vis.c, build_tools/menuselect-deps.in, main,
	  main/editline/readline.c, main/editline/np/vis.h,
	  main/editline/INSTALL, makeopts.in, main/editline/CHANGES,
	  main/editline/common.c, main/xmldoc.c, main/editline/makelist.in,
	  include/asterisk/autoconfig.h.in, main/editline/el.c: Revert
	  r280019 for now - This was poorly executed.

	* include/asterisk/term.h, makeopts.in, main/asterisk.c,
	  main/xmldoc.c, main/cli.c, main/term.c, main/editline (removed),
	  build_tools/menuselect-deps.in, configure,
	  include/asterisk/autoconfig.h.in, main/Makefile, configure.ac,
	  main: Add ability to use system libedit and update bundled
	  libedit. The version of libedit that is bundled with asterisk is
	  old and has some bugs. This patch updates the bundled version of
	  libedit within asterisk, and also updates asterisk to use the
	  system libedit instead if one is available (and pkg-config is
	  available). This review integrates several patches from other
	  users specifically kkm and tzafrir. (closes issue #15929)
	  Reported by: kkm Patches: 015929-astcli-editrc-trunk.240324.diff
	  uploaded by kkm (license 888) (issue #16858) Reported by:
	  jw-asterisk (closes issue #17039) Reported by: tzafrir Patches:
	  0001-allow-using-system-copy-of-libedit.patch uploaded by tzafrir
	  (license 46) Review: https://reviewboard.asterisk.org/r/807/

2010-07-27 21:16 +0000 [r279953]  Russell Bryant <russell@digium.com>

	* res/ais, main/db1-ast/mpool, Makefile.rules, res/snmp, cdr,
	  formats, codecs/gsm/src, funcs, bridges, codecs/lpc10,
	  main/db1-ast/btree, configure, main/editline, codecs/g722, main,
	  main/db1-ast/recno, channels/sip, makeopts.in, pbx, res, res/ael,
	  channels, main/stdtime, main/editline/np, codecs, utils,
	  main/db1-ast/hash, cel, apps, configure.ac, main/db1-ast/db: Add
	  --enable-coverage option to configure script. This option enables
	  the proper compiler flags for tracking code coverage, which is
	  useful along side automated testing.

2010-07-27 20:57 +0000 [r279949]  David Vossel <dvossel@digium.com>

	* main/audiohook.c, main/channel.c, /,
	  include/asterisk/audiohook.h: Merged revisions 279946 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r279946 | dvossel | 2010-07-27 15:54:32 -0500
	  (Tue, 27 Jul 2010) | 24 lines Merged revisions 279945 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r279945 | dvossel | 2010-07-27 15:33:40 -0500 (Tue, 27 Jul 2010)
	  | 19 lines remove empty audiohook write list on channel If a
	  channel has an audiohook write list created on it, that list
	  stays on the channel until the channel is destroyed. There is no
	  reason to keep that list on the channel if it becomes empty. If
	  it is empty that just means we are doing needless translating for
	  every ast_read and ast_write. This patch removes the audiohook
	  list from the channel once it is detected to be empty on either a
	  read or write. If a audiohook is added back to the channel after
	  this list is destroyed, the list just gets recreated as if it
	  never existed to begin with. (closes issue #17630) Reported by:
	  manvirr Review: https://reviewboard.asterisk.org/r/799/ ........
	  ................

2010-07-27 19:50 +0000 [r279916]  Russell Bryant <russell@digium.com>

	* channels/sig_pri.c, channels/chan_dahdi.c: Fix inband DTMF
	  detection on outgoing ISDN calls. This is a regression from the
	  sig_pri split from chan_dahdi. When a call is first initiated,
	  the inband DTMF detector is not enabled if it's an outgoing ISDN
	  call. However, it needs to be turned on once the media path
	  starts up. This handling was put back in the open_media()
	  callback of chan_dahdi. In sig_pri, open_media() calls were added
	  to a few places where it was needed, including handling of
	  PRI_EVENT_RINGING, PRI_EVENT_PROGRESS, and PRI_EVENT_PROCEEDING.
	  Thanks to rmudgett for helping me with the patch!

2010-07-27 18:54 +0000 [r279887]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix parsing error in sip_sipredirect(). The
	  code was written in a way that did a bad job of parsing the port
	  out of a URI. Specifically, it would do badly when dealing with
	  an IPv6 address. In this particular scenario, there was no value
	  from parsing the port out, so I just removed that logic. And
	  while I was messing around in the function, I changed some
	  variable names to be more descriptive. (closes issue #17661)
	  Reported by: oej Patches: 17661.diff uploaded by mmichelson
	  (license 60)

2010-07-27 16:40 +0000 [r279850]  Jason Parker <jparker@digium.com>

	* sounds/Makefile, /: Merged revisions 279849 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r279849 | qwell | 2010-07-27 11:39:16 -0500 (Tue, 27 Jul 2010) |
	  1 line Simply sounds/Makefile some more. ........

2010-07-27 16:09 +0000 [r279817]  David Vossel <dvossel@digium.com>

	* main/netsock2.c, channels/chan_sip.c: fix sip transaction match
	  with authentication, fix confusing log message when using
	  getaddrinfo

2010-07-27 16:06 +0000 [r279815]  Russell Bryant <russell@digium.com>

	* channels/chan_dahdi.c: Support "channels" in addition to
	  "channel" in chan_dahdi.conf. Review:
	  https://reviewboard.asterisk.org/r/804

2010-07-27 15:15 +0000 [r279785]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 279784 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r279784 | mmichelson | 2010-07-27 10:13:24 -0500 (Tue, 27 Jul
	  2010) | 14 lines Fix bad behavior of dynamic_exclude_static
	  option in sip.conf. We were attempting to create a contactdeny
	  rule based on the peer's IP address before the peer's IP address
	  had been set. By moving the processing further down in the
	  function, we can ensure stuff works as we expect for it to.
	  (closes issue #17717) Reported by: mmichelson Patches:
	  17717.patch uploaded by mmichelson (license 60) Tested by:
	  DennisD ........

2010-07-27 02:57 +0000 [r279726-279755]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_dahdi.c: If dringXcontext is null, fallback to
	  default context value. (closes issue #17693) Reported by:
	  iasgoscouk Patches: issue17693.patch uploaded by pabelanger
	  (license 224) Tested by: iasgoscouk Review:
	  https://reviewboard.asterisk.org/r/803/

	* main/http.c: Use ast_sockaddr_setnull() when http is not enabled.
	  Otherwise, ast_tcptls_server_start() will still start http.
	  (closes issue #17708) Reported by: pabelanger Patches: http.patch
	  uploaded by pabelanger (license 224)

2010-07-26  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-beta2 Released.

2010-07-26 23:29 +0000 [r279689]  Paul Belanger <paul.belanger@polybeacon.com>

	* UPGRADE.txt, CHANGES: Updated documentation for FAX logger level.

2010-07-26 23:03 +0000 [r279658]  Jason Parker <jparker@digium.com>

	* sounds/Makefile (added), /, sounds/Makefile.380 (removed),
	  configure, include/asterisk/autoconfig.h.in, sounds/Makefile.381
	  (removed), configure.ac: Merged revisions 279657 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r279657 | qwell | 2010-07-26 17:59:52 -0500 (Mon, 26 Jul
	  2010) | 5 lines Really fix sounds Makefile (and make it
	  readableish). There was a rather large syntax error that should
	  have caused ALL versions of GNU make to fail. I don't know how it
	  worked. ........

2010-07-26 21:53 +0000 [r279636]  Russell Bryant <russell@digium.com>

	* main/channel.c: Ignore a control subclass of -1 in
	  ast_waitfordigit_full().

2010-07-26 21:20 +0000 [r279599-279619]  Tilghman Lesher <tlesher@digium.com>

	* /, configure, configure.ac: Merged revisions 279609 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r279609 | tilghman | 2010-07-26 16:18:17 -0500 (Mon, 26
	  Jul 2010) | 2 lines Dunno why this worked on my machine, but it
	  works better this way. ........

	* res/res_config_ldap.c, /: Merged revisions 279597 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r279597 | ghenry | 2010-07-26 15:25:54 -0500 (Mon, 26
	  Jul 2010) | 13 lines Apply all patches in:
	  https://issues.asterisk.org/view.php?id=13573 (closes issue
	  #13573) Reported by: navkumar Patches:
	  res_config_ldap-category.diff uploaded by navkumar (license 580)
	  res_config_ldap.patch uploaded by bencer (license 961)
	  res_config_ldap uploaded by bencer (license 961) Tested by:
	  suretec ........

	* /: Reverting property remove

2010-07-26 20:58 +0000 [r279598]  Gavin Henry <ghenry@suretecsystems.com>

	* /: Merged revisions 279597 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/1.6.2
	  -----------------------------------------------------------------------
	  r279597 | ghenry | 2010-07-26 15:25:53 -0500 (Mon, 26 Jul 2010) |
	  13 lines Apply all patches in:
	  https://issues.asterisk.org/view.php?id=13573 [^] (closes issue
	  0013573) Reported by: navkumar Patches:
	  res_config_ldap-category.diff uploaded by navkumar (license 580)
	  res_config_ldap.patch uploaded by bencer (license 961)
	  res_config_ldap uploaded by bencer (license 961) Tested by:
	  suretec
	  ------------------------------------------------------------------------

2010-07-26 19:59 +0000 [r279568]  David Vossel <dvossel@digium.com>

	* channels/sip/include/sip.h,
	  channels/sip/include/reqresp_parser.h, channels/chan_sip.c,
	  channels/sip/reqresp_parser.c: transaction matching using top
	  most Via header This patch modifies the way chan_sip.c does
	  transaction to dialog matching. Asterisk now stores information
	  in the top most Via header of the initial incoming request and
	  compares that against other Requests that have the same call-id.
	  This results in Asterisk being able to detect a forked call in
	  which it has received multiple legs of the fork. I completely
	  stripped out the previous matching code and made the comparisons
	  a little more explicit and easier to understand. My comments in
	  the code should offer all the details involving this patch. This
	  patch also fixes a bug with the usage of the OBJ-MULTIPLE flag to
	  find multiple dialogs with the same call-id. Since the callback
	  function was returning (CMP_MATCH | CMP_STOP) only the first item
	  found was being returned. I fixed this by making a new callback
	  function for finding multiple dialogs that only returns
	  (CMP_MATCH) on a match allowing for multiple items to be
	  returned. Review: https://reviewboard.asterisk.org/r/776/

2010-07-26 19:51 +0000 [r279566]  Paul Belanger <paul.belanger@polybeacon.com>

	* UPGRADE.txt, CHANGES, configs/logger.conf.sample: Add
	  documentation for FAX logger level. (closes issue #17715)
	  Reported by: vrban Patches: 17715.patch uploaded by pabelanger
	  (license 224) Tested by: vrban

2010-07-26 19:18 +0000 [r279562]  Tilghman Lesher <tlesher@digium.com>

	* sounds/Makefile (removed), /, sounds/Makefile.380 (added),
	  configure, include/asterisk/autoconfig.h.in, sounds/Makefile.381
	  (added), configure.ac: Merged revisions 279561 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........
	  r279561 | tilghman | 2010-07-26 14:15:59 -0500 (Mon, 26 Jul 2010)
	  | 2 lines Use a special Makefile for noobs who still have GNU
	  Make 3.80. ........

2010-07-26 16:04 +0000 [r279504]  Mark Michelson <mmichelson@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  channels/sip/reqresp_parser.c: Allow for systems without locale
	  support to be usable. A recent change to SIP URI comparison code
	  added a locale-specific string comparison to the mix, and certain
	  systems do not support such functions. This fix allows for those
	  systems to still use Asterisk 1.8 (closes issue #17697) Reported
	  by: pprindeville Patches: asterisk-trunk-bugid17697.patch
	  uploaded by pprindeville (license 347) Tested by: mmichelson

2010-07-26 15:43 +0000 [r279502]  Sean Bright <sean@malleable.com>

	* autoconf/ast_ext_lib.m4, /: Merged revisions 279501 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ........ r279501 | seanbright | 2010-07-26 11:41:13 -0400 (Mon,
	  26 Jul 2010) | 5 lines Expand the correct value within
	  AST_OPTION_ONLY. (closes issue #17703) Reported by: stuarth
	  ........

2010-07-26 03:27 +0000 [r279472]  Tilghman Lesher <tlesher@digium.com>

	* formats/format_sln16.c, formats/format_wav_gsm.c,
	  formats/format_siren7.c, formats/format_ilbc.c,
	  formats/format_vox.c, formats/format_pcm.c,
	  formats/format_h263.c, formats/format_g723.c,
	  formats/format_h264.c, formats/format_g726.c,
	  formats/format_jpeg.c, formats/format_siren14.c,
	  formats/format_gsm.c, formats/format_g719.c,
	  formats/format_g729.c, formats/format_sln.c,
	  formats/format_wav.c, formats/format_ogg_vorbis.c: Formats need
	  to load before apps, because some apps call
	  ast_format_str_reduce() at load time.

2010-07-25 21:26 +0000 [r279442]  Paul Belanger <paul.belanger@polybeacon.com>

	* tests/test_func_file.c: Add trailing backslash to silence warning
	  message.

2010-07-25 18:21 +0000 [r279390-279410]  Tilghman Lesher <tlesher@digium.com>

	* cdr/cdr_odbc.c: Don't re-register CDR module on reload. (closes
	  issue #17304) Reported by: jnemeth Patches:
	  20100507__issue17304.diff.txt uploaded by tilghman (license 14)
	  Tested by: jnemeth

	* main/logger.c: Don't assume qlog is open. (closes issue #17704)
	  Reported by: vrban Patches: issue17704.patch uploaded by
	  pabelanger (license 224) Tested by: vrban

2010-07-24 23:58 +0000 [r279348]  Bradley Latus <brad.latus@gmail.com>

	* doc/asterisk.8: Minor update to man page

2010-07-24 20:47 +0000 [r279273-279314]  Paul Belanger <paul.belanger@polybeacon.com>

	* Makefile: Remove duplicate -c flag when using $(INSTALL) (closes
	  issue #17695) Reported by: pabelanger Patches: Makefile.diff
	  uploaded by pabelanger (license 224)

	* include/asterisk/netsock2.h: Check if ast_sockaddr is NULL then
	  return. (closes issue #17677) Reported by: outcast Patches:
	  issue0017677.patch uploaded by pabelanger (license 224) Tested
	  by: elguero

	* main/manager.c: Default sin_family to AF_INET for TCP / TLS
	  Bindaddress. Otherwise, 'manager show settings' will generate
	  errors if manager is not enabled.

2010-07-23 22:20 +0000 [r279227]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_queue.c, apps/app_dial.c, /: Merged revisions 279207 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.6.2
	  ................ r279207 | rmudgett | 2010-07-23 17:11:23 -0500
	  (Fri, 23 Jul 2010) | 14 lines Merged revisions 279206 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r279206 | rmudgett | 2010-07-23 16:56:44 -0500 (Fri, 23 Jul 2010)
	  | 7 lines SIP promiscuous redirect could fail to dial the
	  redirect. The ast_channel was created with one variable to
	  ast_request() but the call to ast_call() that initiates the
	  outgoing call was using a different variable. The two variables
	  are not equivalent if the call_forward string included a channel
	  technology specifier. e.g., SIP/200 ........ ................

2010-07-12  Leif Madsen <lmadsen@digium.com>

	* Asterisk 1.8.0-beta1 Released.

2010-07-23 18:56 +0000 [r279113]  Tilghman Lesher <tlesher@digium.com>

	* res/res_odbc.c: Silly 64-bit compilers (who uses 64-bit anyway?)

2010-07-23 18:23 +0000 [r279056-279094]  Russell Bryant <russell@digium.com>

	* /: fix up properties on 1.8 branch

	* / (added): Create a branch for Asterisk 1.8.

	  ___      _            _     _      _   ___
	 / _ \ ___| |_ ___ _ __(_)___| | __ / | ( _ )
	| |_| / __| __/ _ \ '__| / __| |/ / | | / _ \
	|  _  \__ \ ||  __/ |  | \__ \   <  | || (_) |
	|_| |_|___/\__\___|_|  |_|___/_|\_\ |_(_)___/

2010-07-23 17:05 +0000 [r278982-278985]  Tilghman Lesher <tlesher@digium.com>

	* autoconf/ast_check_pwlib.m4, /, configure, configure.ac: Merged
	  revisions 278984 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r278984 | tilghman | 2010-07-23 12:04:15 -0500 (Fri, 23 Jul 2010)
	  | 5 lines Establish a maximum version for openh323 (i.e. not
	  opal), because chan_h323 will fail to load, even if it links.
	  (issue #17679) Reported by: am ........

	* /, main/asterisk.c: Merged revisions 278981 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r278981 | tilghman | 2010-07-23 11:42:25 -0500 (Fri, 23 Jul 2010)
	  | 8 lines Avoid race with consolethread on shutdown (on parallel
	  processors). (closes issue #17080) Reported by: sybasesql
	  Patches: 20100721__issue17080.diff.txt uploaded by tilghman
	  (license 14) Tested by: sybasesql ........

2010-07-23 16:33 +0000 [r278980]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c, channels/sip/reqresp_parser.c,
	  channels/sip/include/reqresp_parser.h: SIP URI comparison fixes.
	  This initially was created to work around the issue of using a
	  string comparison instead of a binary comparison for IP
	  addresses. It evolved a bit when test cases were created and it
	  was discovered that comparison of URI parameters was not working
	  exactly as it should. sip_uri_cmp() and its helpers have been
	  moved to reqresp_parser.c and a new test has been added. (closes
	  issue #17662) Reported by: oej Review:
	  https://reviewboard.asterisk.org/r/792

2010-07-23 16:19 +0000 [r278957]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/res_odbc.h, res/res_config_odbc.c,
	  configs/extconfig.conf.sample, CHANGES, main/config.c,
	  res/res_odbc.c, configs/res_odbc.conf.sample: Merge the realtime
	  failover branch

2010-07-23 16:07 +0000 [r278947]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* doc/asterisk.8: Some left-over hyphen-minus fixes in the man page

2010-07-23 15:57 +0000 [r278944-278945]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: ... just kidding. Enable SIP by default. :-)

	* channels/chan_sip.c: Disable SIP support by default for Asterisk
	  1.8.

2010-07-23 15:52 +0000 [r278943]  Mark Michelson <mmichelson@digium.com>

	* addons/chan_ooh323.c: Well, who knew chan_ooh323 used udptl? I
	  sure didn't!

2010-07-23 15:41 +0000 [r278942]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  Rename sig_pri_pri to sig_pri_span. More descriptive of concept.

2010-07-23 15:16 +0000 [r278908]  Mark Michelson <mmichelson@digium.com>

	* main/udptl.c, channels/chan_sip.c, include/asterisk/udptl.h,
	  channels/sip/include/sip.h: Allow IPv6 addresses for UDPTL
	  streams. Review: https://reviewboard.asterisk.org/r/795

2010-07-23 13:37 +0000 [r278875]  Olle Johansson <oej@edvina.net>

	* res/res_config_ldap.c: Minor corrections to the LDAP realtime
	  driver Review: https://reviewboard.asterisk.org/r/798/ Thanks
	  Mark for a quick review!

2010-07-23 13:26 +0000 [r278873]  Paul Belanger <paul.belanger@polybeacon.com>

	* Makefile, agi/Makefile, sounds/Makefile: Portability updates for
	  Makefiles. When possible, use $(INSTALL). This allows us to use
	  the functionality within install for setting directory / file
	  permissions, a requirement for unprivileged installation. Also
	  move any directory we plan to create within the installdirs
	  macro. Plus various other formatting issues. (issue #17436)
	  Reported by: pabelanger Patches: non-root.patch.v8 uploaded by
	  pabelanger (license 224) Tested by: pabelanger Review:
	  https://reviewboard.asterisk.org/r/654/

2010-07-23 11:01 +0000 [r278809-278841]  Alec L Davis <sivad.a@paradise.net.nz>

	* channels/chan_dahdi.c, channels/sig_analog.c: missed FXS kewl
	  start polarityswitch when finally on hook. (issue #17318)

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample,
	  channels/sig_analog.c, channels/sig_analog.h: Support FXS module
	  Polarity Reversal on remote party Answer and Hangup FXS lines
	  normally connect to a telephone. However, when FXS lines are
	  routed to an external PBX or Key System to act as "external" or
	  "CO" lines, it is extremely difficult, if not impossible for the
	  external PBX to know when the call has been disconnected without
	  receiving a polarity reversal on the line. Now using
	  answeronpolarityswitch and hanguponpolarityswitch keywords that
	  previously were used only for FXO ports, now applies like
	  functionality for an FXS port, but from the connected equipment's
	  point of view. (closes issue #17318) Reported by: armeniki
	  Patches: fxs_linepolarity.diff5.txt uploaded by alecdavis
	  (license 585) Tested by: alecdavis Review:
	  https://reviewboard.asterisk.org/r/797/

2010-07-22 21:16 +0000 [r278777]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: DNID not cleared when channel hang up
	  (Affects PRI and SS7) The "dahdi show channels" CLI command still
	  reports the DNID of the previous call even if the call is already
	  hang up. The "dahdi show channels" command of older releases
	  clear the DNID once the channel is hang up. Regression from the
	  sig_analog/sig_pri extraction from chan_dahdi. (closes issue
	  #17623) Reported by: klaus3000 Patches: issue17623.patch uploaded
	  by rmudgett (license 664) Tested by: rmudgett

2010-07-22 19:45 +0000 [r278708]  Jeff Peeler <jpeeler@digium.com>

	* main/xmldoc.c: Add method for finding XML doc files for systems
	  that don't support GLOB_BRACE. In particular, Solaris and perhaps
	  others do not support the above mentioned GNU extension. In this
	  case the paths are simply expanded without the braces and the
	  calls to glob are made separately. Note: I could not explain
	  memory allocation failures that were being reported from within
	  libxml itself when making calls to glob without using
	  GLOB_NOCHECK. This is the only reason why that flag is being
	  used. (closes issue #15402) Reported by: snuffy Patches:
	  bug_xmlpatt-v3.diff uploaded by snuffy (license 35), modified by
	  me

2010-07-22 14:58 +0000 [r278620]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c, /: Merged revisions 278618 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r278618 | mmichelson | 2010-07-22 09:55:04 -0500 (Thu, 22 Jul
	  2010) | 13 lines Allow PLC to function properly when channels use
	  SLIN for audio. If a channel involved in a bridge was using SLIN
	  audio, then translation paths were not guaranteed to be set up
	  properly since in all likelihood the number of translation steps
	  was only 1. This patch enforces the transcode_via_slin behavior
	  if transcode_via_slin or generic_plc is enabled and one of the
	  formats to make compatible is SLIN. AST-352 ........

2010-07-22 14:56 +0000 [r278619]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: update sip subscription debug message to a
	  warning message If the Expire header of a SUBSCRIBE is less that
	  our expiremin, a log warning will be displayed.

2010-07-22 05:29 +0000 [r278579]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/doxyref.h: Add the full current set of CDR
	  drivers

2010-07-21 19:16 +0000 [r278539]  David Vossel <dvossel@digium.com>

	* tests/test_func_file.c: make func_file unit test's category
	  consistent with other tests

2010-07-21 19:11 +0000 [r278538]  Terry Wilson <twilson@digium.com>

	* channels/iax2-parser.h, include/asterisk/crypto.h,
	  main/aescrypt.c (removed), include/asterisk/aes_internal.h
	  (removed), funcs/func_aes.c, res/res_crypto.c, main/aestab.c
	  (removed), main/aesopt.h (removed), include/asterisk/aes.h
	  (removed), main/aeskey.c (removed), pbx/pbx_dundi.c,
	  channels/chan_iax2.c, res/res_crypto.exports.in,
	  pbx/dundi-parser.h: Remove built-in AES code and use optional_api
	  instead Review: https://reviewboard.asterisk.org/r/793/

2010-07-21 18:52 +0000 [r278536]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: send "423 Interval too small" Response to
	  Subscribe with Expires less that min allowed [RFC3265]3.1.6.1....
	  The notifier MAY also check that the duration in the "Expires"
	  header is not too small. If and only if the expiration interval
	  is greater than zero AND smaller than one hour AND less than a
	  notifier- configured minimum, the notifier MAY return a "423
	  Interval too small" error which contains a "Min-Expires" header
	  field. The "Min- Expires" header field is described in SIP [1].

2010-07-21 17:44 +0000 [r278501]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_dahdi.c, channels/sig_analog.c: Fix invalid test
	  for rxisoffhook in FXO channels This fixes some cases of no
	  outgoing calls on FXO before an incoming call. Remove an
	  unnecessary testing of an "off-hook" bit from DAHDI for FXO
	  (KS/GS) channels.In some cases the bit would not be initialized
	  properly before the first inbound call and thus prevent an
	  outgoing call. If those tests are actually required by anybody,
	  they should define DAHDI_CHECK_HOOKSTATE in channels/sig_analog.c
	  . (closes issue #14577) Reported by: jkroon Patches:
	  asterisk_chan_dahdi_hookstate_fix_trunk_new.diff uploaded by
	  frawd (license 610) Tested by: frawd Review:
	  https://reviewboard.asterisk.org/r/699/

2010-07-21 16:15 +0000 [r278465]  Russell Bryant <russell@digium.com>

	* res/res_timing_pthread.c: Use poll() instead of select() in
	  res_timing_pthread to avoid stack corruption. This code did not
	  properly check FD_SETSIZE to ensure that it did not try to
	  select() on fds that were too large. Switching to poll() removes
	  the limitation on the maximum fd value. (closes issue #15915)
	  Reported by: keiron (closes issue #17187) Reported by: Eddie
	  Edwards (closes issue #16494) Reported by: Hubguru (closes issue
	  #15731) Reported by: flop (closes issue #12917) Reported by:
	  falves11 (closes issue #14920) Reported by: vrban (closes issue
	  #17199) Reported by: aleksey2000 (closes issue #15406) Reported
	  by: kowalma (closes issue #17438) Reported by: dcabot (closes
	  issue #17325) Reported by: glwgoes (closes issue #17118) Reported
	  by: erikje possibly other issues, too ...

2010-07-21 15:56 +0000 [r278463]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c: Ensure realtime conferences are treated the
	  same as static conferences when trying to find an empty one.
	  Also, parse the useropts properly, when retrieving from realtime,
	  and add them to the existing flags. (closes issue #17502)
	  Reported by: kenji Patches: 20100720__issue17502.diff.txt
	  uploaded by tilghman (license 14) Tested by: kenji

2010-07-21 15:54 +0000 [r278426-278462]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax_spandsp.c: Properly show the current page being
	  transfered for 'fax show session'

	* channels/chan_sip.c: Properly set the port number for UDPTL media
	  sessions.

	* res/res_fax.c: Don't print failure status when the remote end
	  hangs up, it may not be an actual failure.

2010-07-21 13:02 +0000 [r278425]  Russell Bryant <russell@digium.com>

	* main/features.c, UPGRADE.txt, configs/features.conf.sample:
	  Update documentation for 'comebacktoorigin' in featuers.conf. The
	  documentation for this option did not match the code. Fix that
	  along with some minor cleanups to the code along the way.
	  Document a slight change in behavior (to something that was
	  previously undocumented) in UPGRADE.txt.

2010-07-21 06:45 +0000 [r278393]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_iax2.c: Change order so that it more closely
	  matches the related SIP command. (closes issue #17648) Reported
	  by: GMLudo Review: https://reviewboard.asterisk.org/r/789/

2010-07-21 03:53 +0000 [r278361]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: include stat.h for everybody, needed for
	  device2chan

2010-07-20 23:23 +0000 [r278275-278307]  Tilghman Lesher <tlesher@digium.com>

	* res/res_config_pgsql.c, main/logger.c, CHANGES,
	  contrib/realtime/mysql/queue_log.sql (added),
	  configs/logger.conf.sample: Separate queue_log arguments into
	  separate fields, and allow the text file to be used, even when
	  realtime is used. (closes issue #17082) Reported by: coolmig
	  Patches: 20100720__issue17082.diff.txt uploaded by tilghman
	  (license 14) Tested by: coolmig

	* /, apps/app_voicemail.c: Merged revisions 278261 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r278261 | tilghman | 2010-07-20 17:23:13 -0500 (Tue, 20
	  Jul 2010) | 7 lines Delete IMAP messages in reverse order, to
	  ensure reordering after each expunge does not cause deletion of
	  the wrong message. (closes issue #16350) Reported by: noahisaac
	  Patches: 20100623__issue16350.diff.txt uploaded by tilghman
	  (license 14) ........

2010-07-20 22:38 +0000 [r278274]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Reference correct struct member for unlikely
	  event PRI_EVENT_CONFIG_ERR.

2010-07-20 22:26 +0000 [r278272]  Tilghman Lesher <tlesher@digium.com>

	* main/autoservice.c, /, main/features.c,
	  include/asterisk/channel.h: Merged revisions 278167 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r278167 | tilghman | 2010-07-20 15:59:06 -0500 (Tue, 20
	  Jul 2010) | 4 lines Do not queue up DTMF frames while a call is
	  on hold. (Fixes ABE-2110) ........

2010-07-20 21:41 +0000 [r278234]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes sip CANCEL race condition If Asterisk
	  sends a 4xx error and the other side sends a CANCEl before
	  receiving the 4xx and responding with the ACK, Asterisk will
	  process the CANCEL and send a 487 Request Terminated as a new
	  final response to the INVITE. Since we are issuing a new final
	  response to the INVITE, the old one must be pretend_acked else it
	  will keep retransmitting.

2010-07-20 21:01 +0000 [r278168]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: This commit contains several changes to the way
	  output channel variables are handled. FAX output channel
	  variables will now match the values reported by FAXOPT() and
	  should be set in all failure and success cases. This commit also
	  contains a few modifications to the way FAXOPT() variables are
	  populated in a few spots and fixes for some reference count leaks
	  of the session details structure in some failure cases. Also
	  found and fixed more cases where FAXOPT(status) may not have
	  gotten set. FAX-214 FAX-203

2010-07-20 19:35 +0000 [r278132]  Tilghman Lesher <tlesher@digium.com>

	* cel/cel_pgsql.c, cdr/cdr_sqlite3_custom.c, channels/chan_local.c,
	  res/res_timing_dahdi.c, cdr/cdr_adaptive_odbc.c,
	  res/res_calendar_caldav.c, formats/format_sln16.c,
	  formats/format_wav_gsm.c, channels/chan_iax2.c, main/config.c,
	  main/loader.c, res/res_rtp_multicast.c, channels/chan_dahdi.c,
	  res/res_smdi.c, channels/chan_skinny.c,
	  include/asterisk/module.h, formats/format_pcm.c,
	  channels/chan_alsa.c, formats/format_h263.c, res/res_curl.c,
	  cdr/cdr_odbc.c, formats/format_jpeg.c, res/res_speech.c,
	  formats/format_gsm.c, cdr/cdr_manager.c, formats/format_g719.c,
	  res/res_calendar_exchange.c, cel/cel_tds.c, formats/format_wav.c,
	  channels/chan_bridge.c, channels/chan_agent.c,
	  formats/format_ogg_vorbis.c, res/res_monitor.c,
	  res/res_calendar_ews.c, res/res_config_curl.c,
	  channels/chan_misdn.c, funcs/func_curl.c,
	  res/res_timing_kqueue.c, formats/format_g726.c, main/asterisk.c,
	  res/res_odbc.c, cel/cel_adaptive_odbc.c, res/res_calendar.c,
	  cel/cel_radius.c, channels/chan_multicast_rtp.c,
	  apps/app_meetme.c, formats/format_sln.c, res/res_musiconhold.c,
	  channels/chan_gtalk.c, cdr/cdr_pgsql.c, cdr/cdr_radius.c,
	  res/res_jabber.c, res/res_config_sqlite.c,
	  formats/format_siren7.c, cdr/cdr_csv.c, formats/format_ilbc.c,
	  res/res_config_odbc.c, cel/cel_manager.c, cel/cel_custom.c,
	  cdr/cdr_sqlite.c, res/res_agi.c, res/res_timing_timerfd.c,
	  apps/app_confbridge.c, formats/format_h264.c,
	  res/res_config_ldap.c, addons/chan_mobile.c,
	  formats/format_siren14.c, cdr/cdr_custom.c, channels/chan_mgcp.c,
	  res/res_rtp_asterisk.c, res/res_config_pgsql.c,
	  res/res_calendar_icalendar.c, channels/chan_sip.c,
	  cdr/cdr_syslog.c, res/res_fax.c, res/res_crypto.c,
	  res/res_adsi.c, include/asterisk/config.h, pbx/pbx_lua.c,
	  channels/chan_console.c, apps/app_queue.c, cdr/cdr_tds.c,
	  res/res_srtp.c, channels/chan_jingle.c, formats/format_vox.c,
	  res/res_timing_pthread.c, channels/chan_h323.c,
	  cel/cel_sqlite3_custom.c, formats/format_g723.c,
	  funcs/func_devstate.c, formats/format_g729.c,
	  addons/res_config_mysql.c: Add load priority order, such that
	  preload becomes unnecessary in most cases

2010-07-20 18:11 +0000 [r278051-278096]  Russell Bryant <russell@digium.com>

	* contrib/scripts/install_prereq: Add a package to install_prereq.

	* channels/chan_local.c: Only call ast_channel_cc_params_init() if
	  allocating a channel succeeds.

2010-07-20 16:50 +0000 [r278024]  Tilghman Lesher <tlesher@digium.com>

	* main/manager.c, /: Merged revisions 278023 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r278023 | tilghman | 2010-07-20 11:37:18 -0500 (Tue, 20 Jul 2010)
	  | 7 lines Off-by-one error (closes issue #16506) Reported by:
	  nik600 Patches: 20100629__issue16506.diff.txt uploaded by
	  tilghman (license 14) ........

2010-07-19 21:07 +0000 [r277945]  Jean Galarneau <jgalarneau@digium.com>

	* /, main/features.c: Merged revisions 277906 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277906 | jeang | 2010-07-19 15:16:36 -0500 (Mon, 19 Jul 2010) |
	  7 lines Avoid trying to pickup a parked extension before the park
	  operation is completed. A crash could occur if the extension is
	  picked up while the parking extension is being announced. Testing
	  pu->notquiteyet while searching for a parked extension resolves
	  this crash. (ABE-2418) ........

2010-07-19 17:16 +0000 [r277872-277873]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample,
	  channels/sip/include/sip.h: Fix port setting of external address
	  in SIP. There are two changes here: 1. Since the externip setting
	  can now have a port attached to it, calling it "externip" is
	  misleading. The option is now documented and parsed as
	  "externaddr." This also extends to the "matchexterniplocally"
	  setting. It is now documented and parsed as
	  "matchexternaddrlocally." The old names for the options may still
	  be used, but they are no longer used in the sip.conf.sample file.
	  2. If no port is set for the externaddr, and UDP is the transport
	  to be used, then we will set the port of the externaddr to that
	  of the udpbindaddr. This was how things worked prior to the IPv6
	  merge, so this is a regression fix. (closes issue #17665)
	  Reported by: mmichelson Patches: 17665.diff#2 uploaded by
	  pprindeville (license 347) Tested by: pprindeville

	* tests/test_acl.c: Remove the fe80:1234::1234 test case from
	  test_acl.c The ACL test was failing on Mac OS X because it would
	  convert the above invalid link-local address into fe80::1234
	  while reporting no error from getaddrinfo(). Linux does not do
	  this.

2010-07-19 14:39 +0000 [r277837]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: Fix regression with distinctive ring
	  detection. The issue here is that passing an array to a function
	  prohibits the ARRAY_LEN macro from returning the real size. To
	  avoid this the size is now defined and use of ARRAY_LEN is
	  avoided. (closes issue #15718) Reported by: alecdavis Patches:
	  bug15718.patch uploaded by jpeeler (license 325)

2010-07-19 14:17 +0000 [r277814]  Mark Michelson <mmichelson@digium.com>

	* include/asterisk/acl.h, main/netsock2.c, main/manager.c,
	  channels/chan_sip.c, channels/chan_skinny.c, tests/test_acl.c,
	  main/acl.c, include/asterisk/netsock2.h, configs/sip.conf.sample,
	  channels/chan_iax2.c: Make ACLs IPv6-capable. ACLs can now be
	  configured to match IPv6 networks. This is only relevant for ACLs
	  in chan_sip for now since other channel drivers do not support
	  IPv6 addressing. However, once those channel drivers are
	  outfitted to support IPv6 addressing, the ACLs will already be
	  ready for IPv6 support. https://reviewboard.asterisk.org/r/791

2010-07-17 17:42 +0000 [r277773-277775]  Tilghman Lesher <tlesher@digium.com>

	* /, autoconf/ast_func_fork.m4, configure,
	  include/asterisk/autoconfig.h.in: Merged revisions 277738 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277738 | tilghman | 2010-07-17 11:59:11 -0500 (Sat, 17 Jul 2010)
	  | 5 lines Remove uclibc cross-compile triplet, as uclibc has a
	  working fork()... it's only uclinux that does not. (closes issue
	  #17616) Reported by: pprindeville ........

	* res/res_config_pgsql.c, res/res_config_odbc.c, /,
	  include/asterisk/config.h, main/config.c,
	  addons/res_config_mysql.c: Merged revisions 277568 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r277568 | tilghman | 2010-07-16 16:54:29 -0500 (Fri, 16
	  Jul 2010) | 8 lines Since we split values at the semicolon, we
	  should store values with a semicolon as an encoded value. (closes
	  issue #17369) Reported by: gkservice Patches:
	  20100625__issue17369.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman ........

2010-07-17 13:10 +0000 [r277703]  Russell Bryant <russell@digium.com>

	* Makefile, configure, include/asterisk/autoconfig.h.in,
	  configure.ac, makeopts.in: Allow xmllint to be used for XML docs
	  validation. xmllint seems to be more commonly available since it
	  comes with libxml2.

2010-07-17 00:03 +0000 [r277667]  Bradley Latus <brad.latus@gmail.com>

	* res/res_fax.c: Update res_fax.c to be a good xml citizen. (closes
	  issues #17667) Reported by: snuffy

2010-07-16 23:23 +0000 [r277657]  Tim Ringenbach <tim.ringenbach@gmail.com>

	* main/features.c: Merged revisions 277625 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277625 | tringenbach | 2010-07-16 17:43:39 -0500 (Fri, 16 Jul
	  2010) | 9 lines Save and restore AST_FLAG_BRIDGE_HANGUP_DONT on
	  attended transfer. ast_bridge_call() clears
	  AST_FLAG_BRIDGE_HANGUP_DONT. But during an attended transfer,
	  ast_bridge_call() is called for a second bridge on the same
	  channel, and it clears that flag, which still needs to get set
	  for when the original ast_bridge_call() gets control back and
	  checks it. Review: https://reviewboard.asterisk.org/r/741
	  ........

2010-07-16 21:24 +0000 [r277530]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 277497 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277497 | mnicholson | 2010-07-16 16:18:38 -0500 (Fri, 16 Jul
	  2010) | 4 lines Default to no udptl error correction so that
	  error correction will be disabled in the event that the remote
	  end indicates that they do not support the error correction mode
	  we requested. FAX-128 ........

2010-07-16 21:16 +0000 [r277488]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_queue.c: Fix reporting estimated queue hold time. Just
	  say the number of seconds (after minutes) rather than doing some
	  incorrect calculation with respect to minutes. (closes issue
	  #17498) Reported by: corruptor Patches: holdesecs_bug.diff
	  uploaded by corruptor (license 253)

2010-07-16 20:35 +0000 [r277484]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/sched.h, main/sched.c: Finally, a method that
	  really fixes the assertions in chan_iax2.c related to cancelling
	  lagid. No, replacing usleep(1) with sched_yield() did not have an
	  effect.

2010-07-16 20:27 +0000 [r277467]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 277419 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r277419 | rmudgett | 2010-07-16 15:18:54 -0500 (Fri, 16
	  Jul 2010) | 15 lines priexclusive in chan_dahdi.conf ignored when
	  reloading dahdi module During a reload, the priexclusive and
	  outsignalling parameters are not read in from the config file as
	  intended. Unfortunately, they get set to defaults as a result.
	  This patch makes sure that they do not get set to defaults during
	  a reload. (closes issue #17441) Reported by: mtryfoss Patches:
	  issue17441_v1.4.patch uploaded by rmudgett (license 664)
	  issue17441_v1.6.2.patch uploaded by rmudgett (license 664)
	  issue17441_trunk.patch uploaded by rmudgett (license 664) Tested
	  by: rmudgett ........

2010-07-16 20:25 +0000 [r277452]  Tilghman Lesher <tlesher@digium.com>

	* res/res_musiconhold.c, contrib/realtime/mysql/musiconhold.sql
	  (added): Add documentation for MOH realtime fields

2010-07-16 19:32 +0000 [r277409]  Matthew Nicholson <mnicholson@digium.com>

	* tests/test_devicestate.c: updated devicestate test for device
	  state changes

2010-07-16 19:22 +0000 [r277366]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_queue.c: Add missing handling for ringing state for use
	  with queue empty options. (closes issue #17471) Reported by:
	  jazzy Patches: app_queue.c.diff uploaded by jazzy (license 1056)

2010-07-16 18:31 +0000 [r277331]  Matthew Nicholson <mnicholson@digium.com>

	* main/pbx.c, /: Merged revisions 277327 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277327 | mnicholson | 2010-07-16 13:30:22 -0500 (Fri, 16 Jul
	  2010) | 8 lines Interpret device state AST_DEVICE_UNKNOWN as
	  extension state AST_EXTENSION_NOT_INUSE. (closes issue #16035)
	  Reported by: francesco_r Patches: pbx.c.patch uploaded by
	  viniciusfontes (license 978) Tested by: francesco_r, agx, lawbar
	  ........

2010-07-16 18:14 +0000 [r277263]  Tilghman Lesher <tlesher@digium.com>

	* main/manager.c, /: Merged revisions 277261 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277261 | tilghman | 2010-07-16 13:04:11 -0500 (Fri, 16 Jul 2010)
	  | 5 lines If variable gotten is not set, will segfault on
	  Solaris. (closes issue #17636) Reported by: bklang ........

2010-07-16 18:05 +0000 [r277250-277262]  Matthew Nicholson <mnicholson@digium.com>

	* main/channel.c: Print f->subclass.integer instead of f->subclass.
	  (fix build breakage introduced in r277250)

	* main/channel.c, /: Merged revisions 277247 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277247 | mnicholson | 2010-07-16 12:29:57 -0500 (Fri, 16 Jul
	  2010) | 4 lines For pass through DTMF tones, measure the actual
	  duration between the begin and end packets on the wire. If it is
	  detected to be less than AST_MIN_DTMF_DURATION, trigger dtmf
	  emulation. AST-362 ........

2010-07-16 17:13 +0000 [r277183]  Paul Belanger <paul.belanger@polybeacon.com>

	* /, apps/app_amd.c: Merged revisions 277182 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r277182 | pabelanger | 2010-07-16 13:10:36 -0400 (Fri, 16 Jul
	  2010) | 8 lines Total analysis time error with SIP and silence
	  suppression When using app_amd with SIP providers that have
	  silence suppression on, the iTotalTime count increases
	  exponentially. (closes issue #17656) Reported by: juls ........

2010-07-16 16:25 +0000 [r277175]  Mark Michelson <mmichelson@digium.com>

	* channels/sip/reqresp_parser.c: Fix up some weird indentation
	  problems in reqresp_parser.c

2010-07-16 15:20 +0000 [r277143]  Sean Bright <sean@malleable.com>

	* main/translate.c: Avoid crashing when installing a duplicate
	  translation path with a lower cost. (closes issue #17092)
	  Reported by: moy Patches: translate.rev254273.patch uploaded by
	  moy (license 222) Tested by: moy

2010-07-16 13:40 +0000 [r277103]  Eliel C. Sardanons <eliels@gmail.com>

	* CREDITS: Add Despegar.com (my main sponsor) to the CREDITS file.

2010-07-16 13:32 +0000 [r276950-277102]  Olle Johansson <oej@edvina.net>

	* main/dnsmgr.c, main/srv.c: Formatting changes

	* channels/chan_sip.c: Formatting fixes

	* configs/sip.conf.sample: Clarify syntax changes

	* CREDITS: Adding a few more to the list of CREDITS

	* channels/chan_sip.c: Formatting changes (guideline corrections)
	  Found a unused bag of curly brackets under my table. I always
	  wondered where they had gone. They where indeed needed in
	  chan_sip.c

	* CREDITS: Adding a few more credits

	* channels/chan_sip.c, doc/tex/channelvariables.tex,
	  configs/sip.conf.sample, CHANGES, channels/sip/include/sip.h: Add
	  ability to configure the Max-Forwards header in the dialplan, as
	  well as in sip.conf configuration for the channel and for
	  devices. The Max-Forwards header is used to prevent loops in a
	  SIP network. Each intermediary, like SIP proxys and SBCs,
	  decrement this counter and detects when it reaches zero, at which
	  point the SIP request is nicely killed in a SIP-friendly way.
	  Review: https://reviewboard.asterisk.org/r/778/ Thanks to dvossel
	  for the review and good advice.

	* CHANGES, apps/app_queue.c: Add a dialplan function to check if a
	  queue exists: QUEUE_EXISTS Review:
	  https://reviewboard.asterisk.org/r/777/

2010-07-16 06:04 +0000 [r276910-276911]  Tilghman Lesher <tlesher@digium.com>

	* res/res_jabber.c: And yet one more

	* res/res_jabber.c: "Item may be used uninitialized in this
	  function."

2010-07-16 05:42 +0000 [r276909]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix reversed logic of if statement. Found
	  based on message from Philip Prindeville on the Asterisk
	  Developers mailing list.

2010-07-16 05:38 +0000 [r276830-276908]  Tilghman Lesher <tlesher@digium.com>

	* configure, configure.ac: Detect the --dynamic-list flag a bit
	  better

	* configure, main/Makefile, configure.ac, makeopts.in: Fix build on
	  FreeBSD

	* tests/test_utils.c: Fix trunk build for Mac OS X 10.6

	* contrib/realtime/mysql/iaxfriends.sql,
	  contrib/realtime/mysql/meetme.sql,
	  contrib/realtime/postgresql/realtime.sql,
	  contrib/realtime/mysql/sipfriends.sql: Allow ipaddress to contain
	  the maximum IPv6 address. Also, update meetme to the full list of
	  supported fields.

	* configure, autoconf/ast_gcc_attribute.m4: Quote AC_SUBST within
	  m4_ifval, so it does not get prematurely expanded. (closes issue
	  #17654) Reported by: pprindeville Patches: issue17654.diff
	  uploaded by qwell (license 4) Tested by: qwell, pprindeville

2010-07-15 20:21 +0000 [r276788]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_sip.c: Correct not setting the bindport before
	  attempting to open the socket. Related to changes from 276571, I
	  was accidentally testing with a port set in my configuration
	  causing me to miss this. Also moved the TCP handling as well to
	  occur before build_peer is called.

2010-07-15 19:46 +0000 [r276731-276769]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in,
	  include/asterisk/compat.h, configure.ac: Define LLONG_MAX on
	  systems that do not have it. (closes issue #17644) Reported by:
	  pprindeville

	* configure, main/Makefile, autoconf/ast_gcc_attribute.m4,
	  configure.ac, makeopts.in: Fix linking asterisk on CentOS 5,
	  which is using gcc 4.1.1. Gcc 4.1.2 has the real fix. Review:
	  https://reviewboard.asterisk.org/r/790/

2010-07-15 13:51 +0000 [r276653]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /: Merged revisions 276652 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r276652 | jpeeler | 2010-07-15 08:48:58 -0500 (Thu, 15 Jul 2010)
	  | 2 lines In a perfect world, the frame source would never be
	  NULL. In the meantime, don't crash when it is. ........

2010-07-15 12:21 +0000 [r276616]  Russell Bryant <russell@digium.com>

	* contrib/scripts/install_prereq: Add lua5.1 to the handy dandy
	  list of packages.

2010-07-14 22:58 +0000 [r276571]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_sip.c: Fix MWI notification transmission problems
	  over SIP. MWI updates were not being sent if no messages were
	  found in the event cache. This was corrected since a phone may
	  need to clear its MWI status configured previously from another
	  mailbox. Upon module or sip reload, MWI updates could not be sent
	  due to the sipsock socket not being set early enough in
	  reload_config. The code handling the descriptor assignment and
	  such has simply been moved before the call to build_peer. Issuing
	  a sip reload cleared the IP address of the peer, but skipped
	  checking the database for registration information. The database
	  is now checked both for sip reload and actually reloading the
	  module. If a transmission occurs before the do_monitor thread has
	  started, do not attempt to send a signal to it. (closes issue
	  #17398) Reported by: ip-rob

2010-07-14 22:32 +0000 [r276570]  Mark Michelson <mmichelson@digium.com>

	* res/res_rtp_asterisk.c, main/dnsmgr.c, channels/chan_sip.c,
	  main/acl.c: Fix errors where incorrect address information was
	  printed. ast_sockaddr_stringiy_fmt (which is call by all
	  ast_sockaddr_stringify* functions) uses thread-local storage for
	  storing the string that it creates. In cases where
	  ast_sockaddr_stringify_fmt was being called twice within the same
	  statement, the result of one call would be overwritten by the
	  result of the other call. This usually was happening in
	  printf-like statements and was resulting in the same stringified
	  addressed being printed twice instead of two separate addresses.
	  I have fixed this by using ast_strdupa on the result of stringify
	  functions if they are used twice within the same statement. As
	  far as I could tell, there were no instances where a pointer to
	  the result of such a call were saved anywhere, so this is the
	  only situation I could see where this error could occur.

2010-07-14 21:29 +0000 [r276531]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_h323.c: Make compile again.

2010-07-14 21:11 +0000 [r276490-276493]  Tilghman Lesher <tlesher@digium.com>

	* main/loader.c: Oops, merge reverted this fix.

	* include/asterisk/adsi.h, include/asterisk/agi.h,
	  include/asterisk/crypto.h, main/asterisk.dynamics, main/Makefile,
	  tests/test_utils.c, main/adsistub.c (removed), main/cryptostub.c
	  (removed), res/res_adsi.c, res/res_crypto.c,
	  res/res_crypto.exports.in (added), res/res_adsi.exports.in,
	  main/loader.c, include/asterisk/optional_api.h: Remove the old
	  stub files, preferring the optional_api method. (closes issue
	  #17475) Reported by: tilghman Review:
	  https://reviewboard.asterisk.org/r/695/

2010-07-14 20:15 +0000 [r276441]  Kevin P. Fleming <kpfleming@digium.com>

	* main/loader.c: Don't try to call an embedded module's
	  backup_globals() function until after confirming it exists.

2010-07-14 19:51 +0000 [r276439]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: handle special case were "200 Ok" to pending
	  INVITE never receives ACK Unlike most responses, the 200 Ok to a
	  pending INVITE Request is acknowledged by an ACK Request. If the
	  ACK Request for this Response is not received the previous
	  behavior was to immediately destroy the dialog and hangup the
	  channel. Now in an effort to be more RFC compliant, instead of
	  immediately destroying the dialog during this special case,
	  termination is done with a BYE Request as the dialog is
	  technically confirmed when the 200 Ok is sent even if the ACK is
	  never received. The behavior of immediately hanging up the
	  channel remains. This only affects how dialog termination
	  proceeds for this one special case. RFC 3261 section 13.3.1.4 "If
	  the server retransmits the 2xx response for 64*T1 seconds without
	  receiving an ACK, the dialog is confirmed, but the session SHOULD
	  be terminated. This is accomplished with a BYE, as described in
	  Section 15."

2010-07-14 16:58 +0000 [r276393]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_vpb.cc, channels/chan_sip.c,
	  include/asterisk/channel.h, channels/sig_pri.c,
	  channels/chan_iax2.c, main/cel.c, channels/chan_oss.c,
	  main/channel.c, main/cdr.c, channels/chan_jingle.c,
	  channels/chan_usbradio.c, channels/chan_dahdi.c,
	  channels/chan_phone.c, channels/sig_analog.c,
	  channels/chan_misdn.c, channels/chan_skinny.c,
	  channels/chan_h323.c, res/snmp/agent.c, apps/app_amd.c,
	  funcs/func_callerid.c, channels/sig_ss7.c, channels/chan_mgcp.c:
	  Expand the caller ANI field to an ast_party_id Expand the ani
	  field in ast_party_caller and ast_party_connected_line to an
	  ast_party_id. This is an extension to the ast_callerid
	  restructuring patch in review:
	  https://reviewboard.asterisk.org/r/702/ Review:
	  https://reviewboard.asterisk.org/r/744/

2010-07-14 16:40 +0000 [r276392]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: collapse debug code in retrans_pkt into
	  separate lines I've been working in this function a bunch lately,
	  and these huge debug strings are getting annoying.

2010-07-14 16:39 +0000 [r276391]  Richard Mudgett <rmudgett@digium.com>

	* res/snmp/agent.c: Make compile again.

2010-07-14 16:36 +0000 [r276389]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_sip.c: Do not skip sending MWI for a peer if an
	  address is defined. Really just a merge mistake from IPv6

2010-07-14 16:09 +0000 [r276349]  Tim Ringenbach <tim.ringenbach@gmail.com>

	* cel/cel_pgsql.c, doc/tex/celdriver.tex, doc/tex/cdrdriver.tex:
	  Fix documentation for pgsql cel and cdr, and slightly improve
	  pgsql_cel. Change the documented pgsql schema to use "timestamp"
	  instead of "time", as the latter is only a time without a date.
	  Added some missing columns for cel's pgsql schema, and corrected
	  spelling on some others. Updated cel's uniqueid size to be the
	  same as the cdr. Added id column to cel's pgsql schema and
	  updated code to allow unknown columns to get their default value
	  instead of forcing 0 or empty string. Added microseconds to the
	  timestamp cel logs to pgsql. Review:
	  https://reviewboard.asterisk.org/r/734

2010-07-14 15:48 +0000 [r276347]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_local.c, addons/chan_ooh323.c,
	  apps/app_alarmreceiver.c, channels/chan_iax2.c, main/cli.c,
	  channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/chan_skinny.c, main/features.c, apps/app_dumpchan.c,
	  channels/sig_analog.h, apps/app_amd.c, channels/sig_ss7.c,
	  apps/app_dial.c, main/pbx.c, apps/app_privacy.c, apps/app_fax.c,
	  channels/chan_agent.c, apps/app_disa.c,
	  include/asterisk/channel.h, apps/app_talkdetect.c, main/cel.c,
	  funcs/func_redirecting.c (removed), channels/chan_misdn.c,
	  apps/app_macro.c, apps/app_zapateller.c, apps/app_voicemail.c,
	  channels/chan_unistim.c, tests/test_substitution.c,
	  channels/chan_vpb.cc, apps/app_meetme.c, main/ccss.c,
	  apps/app_readexten.c, channels/chan_gtalk.c, apps/app_followme.c,
	  include/asterisk/callerid.h, main/cdr.c, main/channel.c,
	  channels/chan_phone.c, main/dial.c, apps/app_setcallerid.c,
	  apps/app_osplookup.c, main/manager.c, apps/app_minivm.c,
	  res/res_agi.c, main/app.c, apps/app_rpt.c, channels/chan_mgcp.c,
	  apps/app_parkandannounce.c, apps/app_while.c,
	  funcs/func_dialplan.c, channels/chan_sip.c, UPGRADE.txt,
	  channels/chan_console.c, channels/sig_pri.c, apps/app_queue.c,
	  channels/chan_oss.c, channels/chan_usbradio.c,
	  channels/chan_jingle.c, funcs/func_blacklist.c,
	  apps/app_directed_pickup.c, main/file.c,
	  funcs/func_connectedline.c (removed), channels/chan_h323.c,
	  main/callerid.c, res/snmp/agent.c, apps/app_sms.c,
	  apps/app_stack.c, funcs/func_callerid.c: ast_callerid
	  restructuring The purpose of this patch is to eliminate struct
	  ast_callerid since it has turned into a miscellaneous collection
	  of various party information. Eliminate struct ast_callerid and
	  replace it with the following struct organization: struct
	  ast_party_name { char *str; int char_set; int presentation;
	  unsigned char valid; }; struct ast_party_number { char *str; int
	  plan; int presentation; unsigned char valid; }; struct
	  ast_party_subaddress { char *str; int type; unsigned char
	  odd_even_indicator; unsigned char valid; }; struct ast_party_id {
	  struct ast_party_name name; struct ast_party_number number;
	  struct ast_party_subaddress subaddress; char *tag; }; struct
	  ast_party_dialed { struct { char *str; int plan; } number; struct
	  ast_party_subaddress subaddress; int transit_network_select; };
	  struct ast_party_caller { struct ast_party_id id; char *ani; int
	  ani2; }; The new organization adds some new information as well.
	  * The party name and number now have their own presentation value
	  that can be manipulated independently. ISDN supplies the
	  presentation value for the name and number at different times
	  with the possibility that they could be different. * The party
	  name and number now have a valid flag. Before this change the
	  name or number string could be empty if the presentation were
	  restricted. Most channel drivers assume that the name or number
	  is then simply not available instead of indicating that the name
	  or number was restricted. * The party name now has a character
	  set value. SIP and Q.SIG have the ability to indicate what
	  character set a name string is using so it could be presented
	  properly. * The dialed party now has a numbering plan value that
	  could be useful to have available. The various channel drivers
	  will need to be updated to support the new core features as
	  needed. They have simply been converted to supply current
	  functionality at this time. The following items of note were
	  either corrected or enhanced: * The CONNECTEDLINE() and
	  REDIRECTING() dialplan functions were consolidated into
	  func_callerid.c to share party id handling code. * CALLERPRES()
	  is now deprecated because the name and number have their own
	  presentation values. * Fixed app_alarmreceiver.c
	  write_metadata(). The workstring[] could contain garbage. It also
	  can only contain the caller id number so using
	  ast_callerid_parse() on it is silly. There was also a typo in the
	  CALLERNAME if test. * Fixed app_rpt.c using ast_callerid_parse()
	  on the channel's caller id number string. ast_callerid_parse()
	  alters the given buffer which in this case is the channel's
	  caller id number string. Then using ast_shrink_phone_number()
	  could alter it even more. * Fixed caller ID name and number
	  memory leak in chan_usbradio.c. * Fixed uninitialized char arrays
	  cid_num[] and cid_name[] in sig_analog.c. * Protected access to a
	  caller channel with lock in chan_sip.c. * Clarified intent of
	  code in app_meetme.c sla_ring_station() and dial_trunk(). Also
	  made save all caller ID data instead of just the name and number
	  strings. * Simplified cdr.c set_one_cid(). It hand coded the
	  ast_callerid_merge() function. * Corrected some weirdness with
	  app_privacy.c's use of caller presentation. Review:
	  https://reviewboard.asterisk.org/r/702/

2010-07-14 11:51 +0000 [r276268]  Leif Madsen <lmadsen@digium.com>

	* /, configs/voicemail.conf.sample: Merged revisions 276267 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r276267 | lmadsen | 2010-07-14 06:49:01 -0500 (Wed, 14 Jul 2010)
	  | 1 line Update documentation for voicemail.conf externpass
	  option. ........

2010-07-13 22:18 +0000 [r276219]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, channels/sip/include/sip.h: chan_sip: RFC
	  compliant retransmission timeout Retransmission of packets should
	  not be based on how many packets were sent, but instead on a
	  timeout period. Depending on whether or not the packet is for a
	  INVITE or NON-INVITE transaction, the number of packets sent
	  during the retransmission timeout period will be different, so
	  timing out based on the number of packets sent is not accurate.
	  This patch fixes this by removing the retransmit limit and only
	  stopping retransmission after a timeout period is reached. By
	  default this timeout period is 64*(Timer T1) for both INVITE and
	  non-INVITE transactions. For more information on sip timer values
	  refer to RFC3261 Appendix A. Review:
	  https://reviewboard.asterisk.org/r/749/

2010-07-13 21:42 +0000 [r276206]  Terry Wilson <twilson@digium.com>

	* channels/sip/include/dialog.h, channels/chan_sip.c: Revert early
	  destruction of RTP sessions Some code improperly assumes that the
	  sessions are still there, so revert the change until I can find
	  all of them and fix them.

2010-07-13 19:15 +0000 [r276124-276127]  Russell Bryant <russell@digium.com>

	* /: Recorded merge of revisions 276126 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r276126 | russell | 2010-07-13 14:14:54 -0500 (Tue, 13 Jul 2010)
	  | 2 lines Only reset a CDR that exists. ........

	* /, main/features.c: Merged revisions 276123 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r276123 | russell | 2010-07-13 14:06:53 -0500 (Tue, 13 Jul 2010)
	  | 2 lines Use chan->cdr instead of chan_cdr (just like peer->cdr
	  instead of peer_cdr in the last commit). ........

2010-07-13 19:05 +0000 [r276114-276122]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_env.c: Oops, XML documentation fix.

	* funcs/func_env.c: It really cannot fail in the places below, but
	  the stupid compiler doesn't know that.

	* funcs/func_env.c: Weird compiler error on Bamboo.

	* funcs/func_env.c, CHANGES, tests/test_func_file.c (added): FILE()
	  now supports line-mode and writing (altering) files. (closes
	  issue #16461) Reported by: skyman Patches:
	  20100622__issue16461.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman Review:
	  https://reviewboard.asterisk.org/r/737/

2010-07-13 17:37 +0000 [r276074]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_meetme.c: Merged revisions 275773 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r275773 | jpeeler | 2010-07-12 15:34:51 -0500 (Mon, 12 Jul 2010)
	  | 12 lines Make user removals and traversals thread safe in
	  meetme. Race conditions present in meetme involving the user list
	  where a lack of locking has the potential for a user to be
	  removed during a traversal or as in the case of the reporter
	  after checking if the list is empty could cause a crash. Fixing
	  this was done by convering the userlist to an ao2 container.
	  (closes issue #17390) Reported by: Vince Review:
	  https://reviewboard.asterisk.org/r/746/ ........

2010-07-13 17:11 +0000 [r275998]  Terry Wilson <twilson@digium.com>

	* channels/sip/include/dialog.h, channels/chan_sip.c: Destroy RTP
	  fds when we schedule final dialog destruction Since we are only
	  keeping the dialog around for retransmissions at this point and
	  there is no possibility that we are still handling RTP, go ahead
	  and destroy the RTP sessions. Keeping them alive for 32 past when
	  they are used is unnecessary and can lead to problems with having
	  too many open file descriptors, etc.

2010-07-13 16:53 +0000 [r275995]  Russell Bryant <russell@digium.com>

	* /, main/features.c: Merged revisions 275994 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r275994 | russell | 2010-07-13 11:51:18 -0500 (Tue, 13 Jul 2010)
	  | 14 lines Access peer->cdr directly instead of through a saved
	  off reference. At this point in the code, it is possible that
	  peer_cdr may be invalid. Specifically, in the blind transfer
	  code, CDRs are swapped between channels. So, peer_cdr is no
	  longer == peer->cdr. The scenario that exposed a crash in this
	  code was a blind transfer that hit the system call limit, causing
	  the transferee channel to get destroyed after the transfer
	  attempt failed. Even if it succeeds and this code doesn't crash,
	  this code was still trying to reset a CDR on a channel that was
	  now owned by a different thread, which is a BadThing(tm).
	  (ABE-2417) ........

2010-07-13 14:48 +0000 [r275910]  Tilghman Lesher <tlesher@digium.com>

	* contrib/scripts/realtime_pgsql.sql (removed),
	  contrib/scripts/iax-friends.sql (removed), /,
	  contrib/realtime/mysql/iaxfriends.sql, contrib/scripts/meetme.sql
	  (removed), contrib/realtime (added), contrib/realtime/postgresql,
	  contrib/realtime/postgresql/realtime.sql, contrib/realtime/mysql,
	  contrib/realtime/oracle, contrib/scripts/sip-friends.sql
	  (removed), contrib/realtime/mysql/sipfriends.sql,
	  contrib/realtime/mysql/voicemail.sql, contrib/scripts/vmdb.sql
	  (removed), contrib/realtime/mysql/meetme.sql,
	  contrib/realtime/sqlserver: Merged revisions 275909 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r275909 | tilghman | 2010-07-13 09:47:30 -0500 (Tue, 13
	  Jul 2010) | 2 lines Move SQL scripts into their own
	  database-specific directories. ........

2010-07-13 11:41 +0000 [r275863]  Russell Bryant <russell@digium.com>

	* configs/voicemail.conf.sample,
	  contrib/scripts/voicemailpwcheck.py (added): Add example script
	  for use with the externpasscheck voicemail.conf option. (closes
	  issue #17628) Reported by: lmadsen Tested by: russell, lmadsen
	  Review: https://reviewboard.asterisk.org/r/774/

2010-07-12 23:27 +0000 [r275816]  Terry Wilson <twilson@digium.com>

	* channels/chan_sip.c: Don't try to ref authpeer when it isn't set

2010-07-12 17:54 +0000 [r275725]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c: Add which ITU spec specifies the numbering plan.

2010-07-12 17:21 +0000 [r275682]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /: Merged revisions 275665 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r275665 | jpeeler | 2010-07-12 11:58:39 -0500 (Mon, 12 Jul 2010)
	  | 11 lines Change ast_write to not stop generator when called
	  from ast_prod. For SIP channels configured with the
	  progressinband option on, the ringback was being immediately
	  stopped. This problem was due to ast_prod being moved for a
	  deadlock fix in 259858. Prodding the channel after setting up the
	  generator triggered the check in ast_write to stop the generator.
	  The fix here should write the frame the same as was done before
	  the call to ast_prod was moved. (closes issue #17372) Reported
	  by: tech_admin ........

2010-07-12 15:37 +0000 [r275626]  Leif Madsen <lmadsen@digium.com>

	* cdr/cdr_pgsql.c: cdr_pgsql does not detect when a table is found.
	  This change adds an ERROR message to let you know when a failure
	  exists to get the columns from the pgsql database, which
	  typically means that the table does not exist. (closes issue
	  #17478) Reported by: kobaz Patches: cdr_pgsql.patch uploaded by
	  kobaz (license 834) Tested by: kobaz, russell, lmadsen

2010-07-12 14:55 +0000 [r275587]  Mark Michelson <mmichelson@digium.com>

	* main/netsock2.c: Allow netsock2.c to compile on systems that do
	  not define AI_NUMERICSERV. (closes issue #17617) Reported by:
	  pprindeville Patches: asterisk-trunk-bugid17617.patch uploaded by
	  pprindeville (license 347)

2010-07-12 04:16 +0000 [r275551]  TransNexus OSP Development <support@transnexus.com>

	* configs/osp.conf.sample, apps/app_osplookup.c: Added support for
	  indirect work mode.

2010-07-10 20:49 +0000 [r275509]  Eliel C. Sardanons <eliels@gmail.com>

	* apps/app_meetme.c: When creating a conference for a unit test, it
	  is not mandatory to open a dahdi pseudo channel, so if we fail
	  doing it, continue creating the conference.

2010-07-10 14:48 +0000 [r275424-275467]  Russell Bryant <russell@digium.com>

	* CHANGES: Make indentation consistent, move some queue features to
	  the queue section.

	* CREDITS, channels/chan_unistim.c, configs/unistim.conf.sample,
	  CHANGES: Add support for devices with less than 3 lines on the
	  LCD. (closes issue #17600) Reported by: minaguib Patches:
	  ast_unistim_height_v2.patch uploaded by minaguib (license 1078)
	  Tested by: minaguib

	* main/features.c, configs/features.conf.sample: Fix some issues
	  related to dynamic feature groups in features.conf. The bridge
	  handling code did not properly consider feature groups when
	  setting parameters that would affect whether or not a native
	  bridge would be attempted. If DYNAMIC_FEATURES only include a
	  feature group, a native bridge would occur that may prevent
	  features from working. Fix a bug in verbose output that would
	  show the key mapping as empty if it was using the default mapping
	  and not a custom mapping in the feature group. Add feature groups
	  to the output of "features show". Adjust the feature execution
	  logic to match that of the logic when executing a feature that
	  was not configured through a feature group. Update
	  features.conf.sample to show that an '=' is still required if
	  using the default key mapping from [applicationmap]. Finally,
	  clean up a little bit of formatting to better coform to coding
	  guidelines while in the area. (closes issue #17589) Reported by:
	  lmadsen Patches: issue_17589.rev4.txt uploaded by russell
	  (license 2) Tested by: russell, lmadsen

2010-07-09 20:58 +0000 [r275385]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix error in parsing SIP registry strings
	  from ASTdb. It was essentially an off-by-one error. The easiest
	  way to fix this was to use the handy-dandy
	  AST_NONSTANDARD_RAW_ARGS macro to parse the pieces of the
	  registration string out. Tested and it works wonderfully.

2010-07-09 20:01 +0000 [r275312]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c, channels/chan_iax2.c: Get more information
	  about the Bamboo test failures

2010-07-09 19:58 +0000 [r275309-275310]  Russell Bryant <russell@digium.com>

	* main/features.c: Add missing ao2_iterator_destroy().

	* apps/app_voicemail.c: Fix compile error.

2010-07-09 19:46 +0000 [r275308]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix port parsing in check_via. If a Via
	  header contained an IPv6 address, we would not properly parse the
	  port. We would instead get the information after the first colon
	  in the address. (closes issue #17614) Reported by: oej Patches:
	  diff uploaded by sperreault (license 252)

2010-07-09 19:32 +0000 [r275307]  Paul Belanger <paul.belanger@polybeacon.com>

	* CHANGES, apps/app_voicemail.c: Include rdnis in msgXXXX.txt file.
	  (closes issue #17566) Reported by: outcast Patches:
	  voicemail-rdnis.patch uploaded by outcast (license 1071) Tested
	  by: outcast

2010-07-09 19:29 +0000 [r275294]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix an issue where the port for p->ourip was
	  being set to 0. This should fix all the CDR tests that were not
	  passing. When they would originate a call, all fields in the
	  INVITE that contained the source port would have the port set to
	  0. Most troubling of these was the Contact header. Tests are
	  passing locally now and should also pass on the bamboo build
	  agents.

2010-07-09 19:21 +0000 [r275249]  Paul Belanger <paul.belanger@polybeacon.com>

	* /, channels/chan_sip.c: Merged revisions 275241 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r275241 | pabelanger | 2010-07-09 15:20:00 -0400 (Fri, 09 Jul
	  2010) | 8 lines Fix logging message for stale nonce. (closes
	  issue #17582) Reported by: kenner Patches: chan_sip.c.diff
	  uploaded by kenner (license 1040) Tested by: lmadsen ........

2010-07-09 18:55 +0000 [r275227]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c, channels/chan_iax2.c: Weird, no output and
	  Bamboo still fails...

2010-07-09 18:24 +0000 [r275186]  Matthew Nicholson <mnicholson@digium.com>

	* /, main/loader.c: Merged revisions 275182 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r275182 | mnicholson | 2010-07-09 13:23:23 -0500 (Fri, 09 Jul
	  2010) | 2 lines give a better error message when attempting to
	  unload a module that is not loaded ........

2010-07-09 18:21 +0000 [r275172]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c, channels/chan_iax2.c: Add some diagnostic
	  feedback to our data tests

2010-07-09 18:11 +0000 [r275147]  Russell Bryant <russell@digium.com>

	* configs/features.conf.sample: Move parking lot sample config out
	  from the middle of dynamic features sample config.

2010-07-09 17:50 +0000 [r275144]  Matthew Nicholson <mnicholson@digium.com>

	* /, main/loader.c: Merged revisions 275143 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r275143 | mnicholson | 2010-07-09 12:50:05 -0500 (Fri, 09 Jul
	  2010) | 2 lines don't unload modules that returned
	  AST_MODULE_LOAD_DECLINE when they were loaded ........

2010-07-09 17:00 +0000 [r275105]  Tilghman Lesher <tlesher@digium.com>

	* main/netsock2.c, tests/test_substitution.c, tests/test_heap.c,
	  apps/app_meetme.c, tests/test_gosub.c, funcs/func_strings.c,
	  tests/test_event.c, channels/sip/reqresp_parser.c,
	  channels/chan_iax2.c, tests/test_stringfields.c,
	  tests/test_time.c, tests/test_devicestate.c, tests/test_utils.c,
	  main/features.c, res/res_agi.c, include/asterisk/netsock2.h,
	  tests/test_astobj2.c, channels/chan_sip.c,
	  tests/test_ast_format_str_reduce.c, tests/test_app.c,
	  funcs/func_math.c, include/asterisk/channel.h,
	  tests/test_sched.c, tests/test_pbx.c, tests/test_strings.c,
	  main/data.c, tests/test_skel.c, tests/test_acl.c,
	  channels/sip/dialplan_functions.c, tests/test_aoc.c, main/test.c,
	  channels/sip/config_parser.c, res/res_timing_kqueue.c,
	  apps/app_voicemail.c: Kill some startup warnings and errors and
	  make some messages more helpful in tracking down the source.

2010-07-09 16:39 +0000 [r275104]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Return logic of sip_debug_test_addr() to its
	  original functionality.

2010-07-09 16:05 +0000 [r275028]  Matthew Nicholson <mnicholson@digium.com>

	* apps/app_dial.c, /: Merged revisions 275027 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r275027 | mnicholson | 2010-07-09 11:04:21 -0500 (Fri, 09 Jul
	  2010) | 8 lines Clear the AST_CDR_FLAG_DIALED flag for channels
	  going into the pbx via the G option in app_dial (closes issue
	  #17592) Reported by: jamicque Patches: G-flag-cdr-fix1.diff
	  uploaded by mnicholson (license 96) Tested by: jamicque,
	  mnicholson ........

2010-07-09 15:35 +0000 [r275022]  Russell Bryant <russell@digium.com>

	* include/asterisk/test.h, /, main/test.c: Merged revisions 275021
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r275021 | russell | 2010-07-09 10:33:08 -0500 (Fri, 09 Jul 2010)
	  | 4 lines Document that a leading and trailing slash is expected
	  for test categories. Also, emit a warning if a test is registered
	  without one of these. ........

2010-07-09 14:27 +0000 [r274984]  Mark Michelson <mmichelson@digium.com>

	* channels/sip/reqresp_parser.c: Fix sip_uri_parse test comparison.
	  Part of the change with the IPv6 changes is to treat a host:port
	  as a single 'domain' entity. This test was not updated to have
	  the correct expectation after calling parse_uri().

2010-07-09 13:30 +0000 [r274909-274947]  <simon.perreault@viagenie.ca>

	* channels/chan_sip.c: Copy the address into the peer structure
	  after we set the default port

	* main/netsock2.c: Sadly we can't dereference a pointer cast and
	  use it as an lvalue without getting this warning (at least with
	  gcc 4.4.4): netsock2.c:492: warning: dereferencing pointer
	  ‘({anonymous})’ does break strict-aliasing rules So we're back to
	  using memcpy()...

2010-07-09 12:48 +0000 [r274907]  Russell Bryant <russell@digium.com>

	* include/asterisk/indications.h: Extend length limit on country
	  name in indications.conf.

2010-07-09 11:06 +0000 [r274866]  Olle Johansson <oej@edvina.net>

	* configs/cdr.conf.sample, cdr/cdr_csv.c: Make it possible to
	  disable individual cdr files per accountcode in cdr_csv Review:
	  https://reviewboard.asterisk.org/r/678/

2010-07-08 23:46 +0000 [r274827-274828]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_jingle.c, channels/chan_h323.c,
	  channels/chan_gtalk.c: Fix calls of ast_sockaddr_from_sin() from
	  IPv6 integration.

	* addons/chan_ooh323.c: Fix compile of chan_ooh323.c from IPv6
	  integration.

2010-07-08 22:16 +0000 [r274783-274786]  Mark Michelson <mmichelson@digium.com>

	* /: And the automerge property.

	* /: Delete properties I merged during v6-new merge.

	* channels/chan_unistim.c, include/asterisk/acl.h, main/netsock2.c
	  (added), channels/sip/include/dialog.h,
	  channels/chan_multicast_rtp.c, addons/chan_ooh323.c,
	  main/rtp_engine.c, /, channels/sip/reqresp_parser.c,
	  include/asterisk/tcptls.h, channels/chan_gtalk.c,
	  channels/chan_iax2.c, main/config.c, res/res_rtp_multicast.c,
	  main/manager.c, channels/chan_skinny.c,
	  channels/sip/include/globals.h, main/http.c, main/app.c,
	  include/asterisk/netsock2.h (added), apps/app_externalivr.c,
	  configs/sip.conf.sample, include/asterisk/rtp_engine.h,
	  channels/sip/include/sip.h, channels/chan_mgcp.c,
	  channels/sip/include/reqresp_parser.h, res/res_rtp_asterisk.c,
	  main/dnsmgr.c, channels/chan_sip.c, include/asterisk/config.h,
	  main/acl.c, CHANGES, channels/chan_jingle.c, main/tcptls.c,
	  channels/sip/dialplan_functions.c, channels/chan_h323.c,
	  include/asterisk/dnsmgr.h: Add IPv6 to Asterisk. This adds a
	  generic API for accommodating IPv6 and IPv4 addresses within
	  Asterisk. While many files have been updated to make use of the
	  API, chan_sip and the RTP code are the files which actually
	  support IPv6 addresses at the time of this commit. The way has
	  been paved for easier upgrading for other files in the near
	  future, though. Big thanks go to Simon Perrault, Marc Blanchet,
	  and Jean-Philippe Dionne for their hard work on this. (closes
	  issue #17565) Reported by: russell Patches:
	  asteriskv6-test-report.pdf uploaded by russell (license 2)
	  Review: https://reviewboard.asterisk.org/r/743

2010-07-08 22:05 +0000 [r274773-274782]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c: Generate a correct AstData string for
	  ast_callerid.cid_ton

	* main/channel.c: Fix trunk compile.

2010-07-08 14:48 +0000 [r274727]  Eliel C. Sardanons <eliels@gmail.com>

	* main/pbx.c, channels/chan_sip.c, apps/app_meetme.c,
	  include/asterisk/indications.h, channels/chan_agent.c,
	  include/asterisk/channel.h, include/asterisk/cdr.h,
	  include/asterisk/data.h, channels/chan_iax2.c, apps/app_queue.c,
	  main/indications.c, main/channel.c, main/cdr.c,
	  channels/chan_dahdi.c, main/data.c, res/res_odbc.c,
	  apps/app_voicemail.c: Implement AstData API data providers as
	  part of the GSOC 2010 project, midterm evaluation. Review:
	  https://reviewboard.asterisk.org/r/757/

2010-07-07 20:09 +0000 [r274686]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Fixes some ref count issues introduced by
	  r274539

2010-07-07 18:32 +0000 [r274595-274639]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Add missing conditional around chan_dahdi
	  mfcr2_skip_category config parameter.

	* channels/chan_dahdi.c, /: Merged revisions 274579 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r274579 | rmudgett | 2010-07-07 13:12:41 -0500 (Wed, 07
	  Jul 2010) | 1 line Close the DAHDI FD on error when processing
	  chan_dahdi toneduration config parameter. ........

2010-07-07 16:40 +0000 [r274540]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Set proper FAXOPT(status), FAXOPT(statusstr), and
	  FAXOPT(error) values where possible. Previously some failure
	  cases did not result in proper FAXOPT values. FAX-203

2010-07-07 16:21 +0000 [r274539]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Use the relatedpeer field of a sip_pvt
	  during INVITE processing. Review:
	  https://reviewboard.asterisk.org/r/629

2010-07-07 07:07 +0000 [r274492]  TransNexus OSP Development <support@transnexus.com>

	* configs/osp.conf.sample, doc/osp.txt: Changed OSP TCP port from
	  1080 to 5045.

2010-07-07 06:32 +0000 [r274418-274491]  Tilghman Lesher <tlesher@digium.com>

	* CHANGES, apps/app_voicemail.c: Also run the externnotify script
	  when the pollmailboxes thread notices a change.

	* /, configs/say.conf.sample: Merged revisions 274417 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r274417 | tilghman | 2010-07-07 01:13:54 -0500 (Wed, 07
	  Jul 2010) | 8 lines Correct how 100, 200, 300, etc. is said. Also
	  add the crazy British numbers. (closes issue #16102) Reported by:
	  Delvar Patches: say.conf.fix.patch uploaded by Delvar (license
	  908) (plus a few additional fixes and simplifications by me)
	  ........

2010-07-06 22:23 +0000 [r274316]  Jeff Peeler <jpeeler@digium.com>

	* /, configs/sip.conf.sample: Merged revisions 274283 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r274283 | jpeeler | 2010-07-06 17:15:21 -0500 (Tue, 06
	  Jul 2010) | 7 lines Correct sip.conf.sample comments for
	  prematuremedia option. (closes issue #17513) Reported by: festr
	  Patches: patch uploaded by festr (license 443) ........

2010-07-06 22:15 +0000 [r274284]  Terry Wilson <twilson@digium.com>

	* /, channels/chan_sip.c, UPGRADE.txt: Merged revisions 274280 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r274280 | twilson | 2010-07-06 17:08:20 -0500 (Tue, 06 Jul 2010)
	  | 9 lines Add option to not do a call forward on 482 Loop
	  Detected Asterisk has always set up a forwarded call when
	  receiving a 482 Loop Detected. This prevents handling the call
	  failure by just continuing on in the dialplan. Since this would
	  be a change in behavior, the new option to disable this behavior
	  is forwardloopdetected which defaults to 'yes'. Review:
	  https://reviewboard.asterisk.org/r/764/ ........ (no option for
	  trunk, just changing the behavior)

2010-07-06 22:09 +0000 [r274281]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_dahdi.c: Status shows all non-CRC4 lines as
	  "yellow", even if "yellow" was not in the bitfield.

2010-07-06 19:53 +0000 [r274243]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Properly detect and report invalid maxrate and
	  maxrate values in the FAXOPT dialplan function. Also make
	  fax_rate_str_to_int() return an unsigned int and return 0 instead
	  of -1 in the event of an error. FAX-202

2010-07-06 14:31 +0000 [r274164]  Mark Michelson <mmichelson@digium.com>

	* res/res_rtp_asterisk.c, /: Merged revisions 274157 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r274157 | mmichelson | 2010-07-06 09:29:23 -0500 (Tue,
	  06 Jul 2010) | 16 lines Fix problem with RFC 2833 DTMF not being
	  accepted. A recent check was added to ensure that we did not
	  erroneously detect duplicate DTMF when we received packets out of
	  order. The problem was that the check did not account for the
	  fact that the seqno of an RTP stream will roll over back to 0
	  after hitting 65535. Now, we have a secondary check that will
	  ensure that the seqno rolling over will not cause us to stop
	  accepting DTMF. (closes issue #17571) Reported by: mdeneen
	  Patches: rtp_seqno_rollover.patch uploaded by mmichelson (license
	  60) Tested by: richardf, maxochoa, JJCinAZ ........

2010-07-06 06:01 +0000 [r274053]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Uh, yeah.

2010-07-05 13:53 +0000 [r273886]  Paul Belanger <paul.belanger@polybeacon.com>

	* /, main/config.c: Merged revisions 273884 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r273884 | pabelanger | 2010-07-05 09:51:29 -0400 (Mon, 05 Jul
	  2010) | 8 lines Remove extra line breaks from 'core show config
	  mappings' (closes issue #17583) Reported by: pabelanger Patches:
	  issue17583.patch uploaded by pabelanger (license 224) Tested by:
	  lmadsen ........

2010-07-03 02:36 +0000 [r273714-273830]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_local.c, /, channels/chan_agent.c,
	  channels/chan_h323.c, include/asterisk/lock.h: Merged revisions
	  273793 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r273793 | tilghman | 2010-07-02 16:36:39 -0500 (Fri, 02 Jul 2010)
	  | 9 lines Have the DEADLOCK_AVOIDANCE macro warn when an unlock
	  fails, to help catch potentially large software bugs. (closes
	  issue #17407) Reported by: pdf Patches:
	  20100527__issue17407.diff.txt uploaded by tilghman (license 14)
	  Review: https://reviewboard.asterisk.org/r/751/ ........

	* main/autoservice.c, /: Merged revisions 273717 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r273717 | tilghman | 2010-07-02 12:09:47 -0500 (Fri, 02 Jul 2010)
	  | 8 lines Autoservice loop optimization causes a busy loop, when
	  channels are serviced while in hangup. (closes issue #17564)
	  Reported by: ramonpeek Patches: 20100630__issue17564.diff.txt
	  uploaded by tilghman (license 14) Tested by: ramonpeek ........

	* apps/app_queue.c: The switch fallthrough could create some
	  errorneous situations, so best to force directly to the default
	  case.

2010-07-02 15:57 +0000 [r273641]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_dahdi.c, channels/chan_misdn.c,
	  channels/chan_sip.c, main/say.c, main/fixedjitterbuf.c,
	  res/res_agi.c, channels/chan_h323.c, main/utils.c,
	  channels/chan_iax2.c, addons/chan_mobile.c, apps/app_rpt.c,
	  channels/chan_mgcp.c, main/xmldoc.c, apps/app_voicemail.c,
	  apps/app_while.c: Fix various typos reported by Lintian (Also fix
	  the typos in the comments)

2010-07-01 22:16 +0000 [r273566]  Russell Bryant <russell@digium.com>

	* /, main/datastore.c: Merged revisions 273565 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r273565 | russell | 2010-07-01 17:09:19 -0500 (Thu, 01 Jul 2010)
	  | 7 lines Don't return a partially initialized datastore. If
	  memory allocation fails in ast_strdup(), don't return a partially
	  initialized datastore. Bad things may happen. (related to
	  ABE-2415) ........

2010-07-01 20:28 +0000 [r273522]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_meetme.c: Merged revisions 273474 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r273474 | jpeeler | 2010-07-01 15:19:16 -0500 (Thu, 01 Jul 2010)
	  | 14 lines Allow admin user to join conference without using
	  admin mode and no user pin. Configuring the conference in
	  meetme.conf like the following: conf => 2345,,6666 did not prompt
	  for pin when used without admin mode. This meant that the
	  conference could not be joined as an admin even if the user knew
	  the correct pin. The original bug report was submitted claiming
	  that the blank user pin should deny entry into the conference. I
	  think a better way to handle this would be with a feature
	  enhancement that used the following syntax: conf => 2345,X,6666 -
	  where X denotes no acceptable pin allowed (closes issue #15704)
	  Reported by: modelnine ........

2010-07-01 19:34 +0000 [r273464]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c: Properly handle failures of fax->start_session()
	  FAX-177

2010-07-01 16:40 +0000 [r273427]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, channels/sip/include/sip.h: correct handling
	  of get_destination return values A failure when calling the
	  get_destination can mean multiple things. If the extension is not
	  found, a 404 error is appropriate, but if the URI scheme is
	  incorrect, a 404 is not approperiate. This patch adds the
	  get_destination_result enum to differentiate between these and
	  other failure types. The only logical difference in this patch is
	  that we now send a "416 Unsupported URI scheme" response instead
	  of a "404" when the scheme is not recognized. This indicates to
	  the initiator of the INVITE to retry the request with a correct
	  URI.

2010-07-01 15:12 +0000 [r273355]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_meetme.c: Merged revisions 273354 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r273354 | jpeeler | 2010-07-01 10:05:43 -0500 (Thu, 01 Jul 2010)
	  | 12 lines Ensure channel placed in meetme in ringing state is
	  properly hung up. An outgoing channel placed in meetme while
	  still ringing which was then hung up would not exit meetme and
	  the channel was not properly destroyed. Specifically checking for
	  this scenario by looking at the appropriate control frames
	  resolves the issue. (closes issue #15871) Reported by: Ivan
	  Patches: meetme_congestion_trunk_v2.patch uploaded by Ivan
	  (license 229) ........

2010-07-01 14:37 +0000 [r273270-273352]  Matthew Nicholson <mnicholson@digium.com>

	* main/manager.c: Fixed whitespace problems

	* main/manager.c: Altered my comment about TCP_NODELAY

	* addons/chan_mobile.c: Don't free written frames in chan_mobile's
	  mbl_write() function. (closes issue #16430) Reported by: azbest
	  Tested by: azbest

	* main/manager.c: Set TCP_NODELAY on manager TCP sockets to prevent
	  delays on outgoing packets. This regression was introduced in
	  r48338. AST-359

2010-06-30 17:28 +0000 [r273233]  Paul Belanger <paul.belanger@polybeacon.com>

	* res/res_rtp_asterisk.c: Fix rt(c)p set debug ip taking wrong
	  argument Also clean up some coding errors. (closes issue #17469)
	  Reported by: wdoekes Patches: astsvn-rtp-set-debug-ip.patch
	  uploaded by wdoekes (license 717) Tested by: wdoekes, pabelanger

2010-06-30 17:17 +0000 [r273197-273198]  Richard Mudgett <rmudgett@digium.com>

	* include/asterisk/config.h: Remove unnecessary if test in
	  CV_DSTR()

	* include/asterisk/config.h: Misc doxygen cleanup in config.h

2010-06-30 01:07 +0000 [r273054-273144]  Tilghman Lesher <tlesher@digium.com>

	* main/manager.c: Permission checking for the system application is
	  backwards. (closes issue #17550) Reported by: kenner Patches:
	  manager.c.diff uploaded by kenner (license 1040) Tested by:
	  kenner

	* main/config.c: Don't attempt to proceed if our internal parser
	  indicates an invalid file. (closes issue #17560) Reported by:
	  Nick_Lewis

	* /, channels/chan_sip.c: Merged revisions 273060 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r273060 | tilghman | 2010-06-29 18:15:28 -0500 (Tue, 29 Jun 2010)
	  | 10 lines Allow the "useragent" value to be restored into memory
	  from the realtime backend. This value is purely informational. It
	  does not alter configuration at all. (closes issue #16029)
	  Reported by: Guggemand Patches: realtime-useragent.patch uploaded
	  by Guggemand (license 897) Tested by: Guggemand ........

	* /: Recorded merge of revisions 273057 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r273057 | tilghman | 2010-06-29 17:58:58 -0500 (Tue, 29 Jun 2010)
	  | 4 lines _Really_ skip the channel... don't just retry for
	  another 200 cycles. (Closes issue SWP-1652, ABE-2240) ........

	* configure, include/asterisk/autoconfig.h.in, configure.ac:
	  Exclude libical for insufficient versions.

	* main/pbx.c: Send DialPlanComplete as a response, not as a
	  separate event. Otherwise, it goes to all manager sessions and
	  may exclude the current session, if the Events mask excludes it.
	  (closes issue #17504) Reported by: rrb3942 Patches:
	  showdialplan_patch.diff uploaded by rrb3942 (license 1003) Tested
	  by: rrb3942

2010-06-29 20:44 +0000 [r272981]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: send a 400 Bad Request on malformed sip
	  request RFC 2361 section 24.4.1 send a 400 Bad Request if the
	  request can not be understood due to malformed syntax. Currently
	  we simply ignore a packet with a missing callid, to, from, or via
	  header. Instead of ignoring we now send the 400 Bad request.

2010-06-28 21:50 +0000 [r272923-272926]  Tilghman Lesher <tlesher@digium.com>

	* /, main/asterisk.c: Merged revisions 272925 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r272925 | tilghman | 2010-06-28 16:50:02 -0500 (Mon, 28 Jun 2010)
	  | 8 lines Don't change ownership/group/permissions on run
	  directory, if it already exists. (closes issue #17076) Reported
	  by: stuarth Patches: 20100324__issue17076.diff.txt uploaded by
	  tilghman (license 14) Tested by: stuarth ........

	* /, main/config.c: Merged revisions 272921-272922 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r272921 | tilghman | 2010-06-28 16:29:27 -0500 (Mon, 28
	  Jun 2010) | 8 lines Change the way that we read include files, to
	  accommodate for changes in GCC 4.4. (closes issue #17472)
	  Reported by: seandarcy Patches: config2.patch uploaded by nivan
	  (license 1066) Tested by: nivan ........ r272922 | tilghman |
	  2010-06-28 16:38:49 -0500 (Mon, 28 Jun 2010) | 2 lines Also trim
	  trailing blanks on #includes ........

2010-06-28 18:38 +0000 [r272880]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, channels/sip/reqresp_parser.c,
	  channels/sip/include/sip.h,
	  channels/sip/include/reqresp_parser.h: rfc compliant sip option
	  parsing + new unit test RFC 3261 section 8.2.2.3 states that if
	  any unsupported options are found in the Require header field, a
	  "420 (Bad Extension)" response should be sent with an Unsupported
	  header field containing only the unsupported options. This is not
	  currently being done correctly. Right now, if Asterisk detects
	  any unsupported sip options in a Require header the entire list
	  of options are returned in the Unsupported header even if some of
	  those options are in fact supported. This patch fixes that by
	  building an unsupported options character buffer when parsing the
	  options that can be sent with the 420 response. A unit test
	  verifying this functionality has been created. Some code
	  refactoring was required. Review:
	  https://reviewboard.asterisk.org/r/680/

2010-06-28 17:33 +0000 [r272805]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 272804 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r272804 | mmichelson | 2010-06-28 12:31:40 -0500 (Mon, 28 Jun
	  2010) | 5 lines Decode URI in contact header of 302 response.
	  ABE-2352 ........

2010-06-28 15:33 +0000 [r272684]  Russell Bryant <russell@digium.com>

	* doc/tex/chan-mobile.tex (added), doc/tex/celdriver.tex,
	  doc/tex/chan_mobile.tex (removed), doc/tex/cdrdriver.tex,
	  doc/tex/asterisk.tex, doc/tex/cel-doc.tex: Use the underscore
	  package so that underscores do not need to be escaped.

2010-06-28 14:55 +0000 [r272652]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: code guidelines cleanup for retrans_pkt()
	  function I am doing work in this function. I noticed a large
	  number of coding guidline fixes that needed to be made. Rather
	  than have those changes distract from my functional changes I
	  decided to separate these into a separate patch.

2010-06-25 20:18 +0000 [r272568]  Tilghman Lesher <tlesher@digium.com>

	* /, doc/voicemail_odbc_postgresql.txt: Merged revisions 272562 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r272562 | tilghman | 2010-06-25 15:17:37 -0500 (Fri, 25 Jun 2010)
	  | 5 lines Make the structure of the table specified before match
	  the queries and results. (closes issue #17557) Reported by: cmaj
	  ........

2010-06-25 19:42 +0000 [r272558]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c, include/asterisk/res_fax.h: Implemement support
	  for handling multiple documents when sending.

2010-06-25 19:39 +0000 [r272557]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: chan_sip: more accurate retransmissions
	  RFC3261 states that Timer A should start at 500ms (T1) by
	  default. In chan_sip this value initially started at 1000ms and I
	  changed it to 500ms recently. After doing that I noticed in my
	  packet captures that it still occasionally retransmitted starting
	  at 1000ms instead of 500ms like I told it to. This occurs because
	  the scheduler runs in the do_monitor thread. If a new
	  retransmission is added while the do_monitor thread is sleeping
	  then it may not detect that retransmission for nearly 1000ms. To
	  fix this I just poke the do_monitor thread to wake up when a new
	  packet is sent reliably requiring retransmits. The thread then
	  detects the new scheduler entry and adjusts its sleep time to
	  account for it. Review: https://reviewboard.asterisk.org/r/747

2010-06-25 19:17 +0000 [r272533]  Tilghman Lesher <tlesher@digium.com>

	* sounds/Makefile: Symlink sounds files, to save disk space, when
	  multiple tarballs/checkouts are on the same system.

2010-06-24 22:11 +0000 [r272447]  Richard Mudgett <rmudgett@digium.com>

	* /, channels/sig_pri.c: Merged revisions 272446 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r272446 | rmudgett | 2010-06-24 16:58:49 -0500 (Thu, 24 Jun 2010)
	  | 10 lines ss_thread calls pri_grab without lock during overlap
	  dial Recent changes to chan_dahdi with relation to overlap
	  dialing call pri_grab without first obtaining a lock. (closes
	  issue #17414) Reported by: pdf Patches: bug17414.patch uploaded
	  by jpeeler (license 325) ........

2010-06-23 23:09 +0000 [r272370]  Russell Bryant <russell@digium.com>

	* channels/chan_iax2.c: Resolve some errors produced during module
	  unload of chan_iax2. The external test suite stops Asterisk using
	  the "core stop gracefully" command. The logs from the tests show
	  that there are a number of problems with Asterisk trying to
	  cleanly shut down. This patch addresses the following type of
	  error that comes from chan_iax2: [Jun 22 16:58:11] ERROR[29884]:
	  lock.c:129 __ast_pthread_mutex_destroy: chan_iax2.c line 11371
	  (iax2_process_thread_cleanup): Error destroying mutex
	  &thread->lock: Device or resource busy For an example in the
	  context of a build, see:
	  http://bamboo.asterisk.org/browse/AST-TRUNK-739/log The primary
	  purpose of this patch is to change the thread pool shutdown
	  procedure to be more explicit to ensure that the thread exits
	  from a point where it is not holding a lock. While testing that,
	  I encountered various crashes due to the order of operations in
	  unload_module() being problematic. I reordered some things there,
	  as well. Review: https://reviewboard.asterisk.org/r/736/

2010-06-23 22:36 +0000 [r272368]  Matthew Nicholson <mnicholson@digium.com>

	* /, apps/app_queue.c: Merged revisions 272367 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 This version
	  of the patch only adds AgentComplete for attended transfers. It
	  was already present for blind transfers. ........ r272367 |
	  mnicholson | 2010-06-23 17:33:51 -0500 (Wed, 23 Jun 2010) | 8
	  lines Send AgentComplete manager events in the event of blind and
	  attended transfers. (closes issue #16819) Reported by: elbriga
	  Patches: app_queue.diff uploaded by elbriga (license 482)
	  ........

2010-06-23 21:53 +0000 [r272260-272332]  Tilghman Lesher <tlesher@digium.com>

	* res/res_musiconhold.c: If there is realtime configuration, it
	  does not get re-read on reload unless the config file also
	  changes. (closes issue #16982) Reported by: dmitri Patches:
	  res_musiconhold.patch uploaded by dmitri (license 1001) Tested
	  by: atis

	* res/ael/ael.tab.c, res/ael/ael.y, res/ael/ael_lex.c,
	  res/ael/ael.flex: Ensure a NULL file while debugging cannot crash
	  AEL. (closes issue #17215) Reported by: vazir Patches:
	  20100518__issue17215.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman

2010-06-23 21:06 +0000 [r272257-272259]  Paul Belanger <paul.belanger@polybeacon.com>

	* apps/app_meetme.c: Fix previous merge. ast_test_flag !=
	  ast_test_flag64

	* /, apps/app_meetme.c: Merged revisions 272255 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r272255 | pabelanger | 2010-06-23 16:57:01 -0400 (Wed, 23 Jun
	  2010) | 12 lines First caller into a dynamic conference now enter
	  pin once. If MeetMe is configured to use dynamic conference
	  numbers, then the first caller (which creates the conference) had
	  to enter the PIN number twice. (closes issue #15878) Reported by:
	  shawkris Patches: issue15878.patch uploaded by pabelanger
	  (license 224) Tested by: pabelanger ........

2010-06-23 20:59 +0000 [r272254-272256]  Terry Wilson <twilson@digium.com>

	* configure, include/asterisk/autoconfig.h.in: Update configure
	  when changing autconf m4 files...

	* autoconf/ast_ext_tool_check.m4: Honor the --with-${library}=path
	  for AST_EXT_TOOL_CHECK (closes issue #16991) Reported by:
	  pprindeville Patches: with_netsnmp.patch.txt uploaded by twilson
	  (license 396) Tested by: twilson Review:
	  https://reviewboard.asterisk.org/r/739/

2010-06-23 20:35 +0000 [r272243-272252]  Paul Belanger <paul.belanger@polybeacon.com>

	* main/manager.c: Correct manager variable 'EventList' case.
	  (closes issue #17520) Reported by: kobaz Patches: manager.patch
	  uploaded by kobaz (license 834) Tested by: lmadsen

	* configs/say.conf.sample: Add localization support for Spanish
	  (closes issue #17548) Reported by: cjacobsen Patches:
	  say.conf.sample.diff uploaded by cjacobsen (license 1029)

2010-06-23 19:59 +0000 [r272218]  Tim Ringenbach <tim.ringenbach@gmail.com>

	* channels/chan_local.c: Add new AMI command LocalOptimizeAway.
	  This command lets you request a "/n" local channel optimize
	  itself out of the way anyway. Review:
	  https://reviewboard.asterisk.org/r/732/

2010-06-23 18:45 +0000 [r272148-272150]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_mgcp.c: D'oh! Defaultenabled FTL.

	* /: Recorded merge of revisions 272147 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r272147 | tilghman | 2010-06-23 13:40:28 -0500 (Wed, 23 Jun 2010)
	  | 5 lines Backport part of revision 136715 to fix callerid in
	  voicemail text files (IMAP only). (closes issue #16945) Reported
	  by: mneuhauser ........

2010-06-23 18:39 +0000 [r272146]  Terry Wilson <twilson@digium.com>

	* apps/app_meetme.c: Don't start the sla thread unless we realy
	  need it

2010-06-23 18:25 +0000 [r272145]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_mgcp.c: Load all lines from realtime, not just the
	  first one. (closes issue #17144) Reported by: nahuelgreco
	  Patches: 20100513__issue17144__trunk.diff.txt uploaded by
	  tilghman (license 14) Tested by: tilghman

2010-06-23 17:21 +0000 [r272109]  Terry Wilson <twilson@digium.com>

	* apps/app_meetme.c: Make sure reload updates SLA config Even if
	  there are no stations or trunks defined, we need to start the sla
	  thread to make sure we get the reload event. Also, when doing a
	  reload we need to remove the existing trunks and stations or they
	  end up hanging around. (closes issue #16818) Reported by: mbonin
	  Patches: sla_reload.patch uploaded by twilson (license 396)
	  Tested by: twilson

2010-06-23 17:08 +0000 [r272090]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Add extra protection for reinvite glare
	  scenario. Testing proved that if Asterisk sent a connected line
	  reinvite, and the endpoint to which the reinvite were being sent
	  sent a reinvite, Asterisk would not properly respond with a 491
	  response. The reason is that on connected line reinvites, we set
	  the dialog's invitestate to INV_CALLING to prevent Asterisk from
	  sending a rapid flurry of connected line reinvites. For other
	  reinvites we do not do this. Because of the current invitestate,
	  when Asterisk received the reinvite, we interpreted this as a
	  spiraled INVITE, and thus did not behave properly. The fix for
	  this is to not enter the loop detection or spiral logic in
	  handle_request_invite if the channel state is currently up. This
	  way, no mid-call reinvites will be misinterpreted, no matter what
	  the nature of the reinvite may have been.

2010-06-22 23:20 +0000 [r272052]  Russell Bryant <russell@digium.com>

	* channels/chan_dahdi.c: Don't try to lock/unlock an uninitialized
	  lock on a dahdi_pri. This small changes prevents
	  destroy_all_channels() from accessing a lock on an unused
	  dahdi_pri struct, resolving a ton of ERRORs that get spewed out
	  when shutting Asterisk down gracefully.

2010-06-22 22:11 +0000 [r271905-272014]  David Vossel <dvossel@digium.com>

	* pbx/pbx_config.c: fixes issue with 'dialplan remove extension
	  blah' segfaulting with tab completion (closes issue #17440)
	  Reported by: kobaz

	* channels/chan_sip.c: ignore CANCEL request after having already
	  received final response to INVITE RFC 3261 section 9 states that
	  a CANCEL has no effect on a request to a UAS that has already
	  given a final response. This patch checks to make sure there is a
	  pending invite before allowing a CANCEL request to be processed,
	  otherwise it responds to the CANCEL with a "481 Call/Transaction
	  Does Not Exist". Review: https://reviewboard.asterisk.org/r/697/

	* main/manager.c: minor fixes for white/black event filters This
	  fixes a ref count leak in event filters and checks for a filter
	  container allocation failure during session creation.

2010-06-22 17:35 +0000 [r271903]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 271902 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r271902 | mnicholson | 2010-06-22 12:31:57 -0500 (Tue, 22 Jun
	  2010) | 8 lines Decrease the module ref count in sip_hangup when
	  SIP_DEFER_BYE_ON_TRANSFER is set. This is necessary to keep the
	  ref count correct. (closes issue #16815) Reported by: rain
	  Patches: chan_sip-unref-fix.diff uploaded by rain (license 327)
	  (modified) Tested by: rain ........

2010-06-22 16:29 +0000 [r271868]  Jeff Peeler <jpeeler@digium.com>

	* main/manager.c, configs/manager.conf.sample, CHANGES: Add regular
	  expression filtering for manager events. This patch as documented
	  in the sample config allows one to optionally apply white, black,
	  or both types of filtering to manager events. The new
	  'eventfilter' option is set per user. (closes issue #14861)
	  Reported by: fnordian Patches: eventfilter3.patch uploaded by
	  fnordian (license 110), modified by me Review:
	  https://reviewboard.asterisk.org/r/673/

2010-06-22 16:28 +0000 [r271833-271867]  Russell Bryant <russell@digium.com>

	* res/ais/clm.c, res/ais/evt.c: Resolve some errors that occur on a
	  graceful shutdown. Don't Finalize() if Initialize() did not
	  succeed. This resulted in an error about trying to Finalize() an
	  invalid handle. Also trim some trailing whitespace while in the
	  area.

	* res/res_fax.c: Change the method of retrieving the Asterisk
	  version string. Using this method makes it so res_fax doesn't
	  have to be rebuilt on every svn update.

2010-06-22 15:46 +0000 [r271831]  David Vossel <dvossel@digium.com>

	* main/features.c: fixes attended transfer behavior when both
	  transferee and transferer hung up If both the transferer and
	  transferee of a attended transfer hangup before the new channel
	  picks up, the new channel should be hung up as well as it has no
	  endpoint to talk to. This mirrors the expected behavior used in
	  1.4. (closes issue #17444) Reported by: corruptor

2010-06-22 15:08 +0000 [r271690-271764]  Matthew Nicholson <mnicholson@digium.com>

	* CHANGES: Updated the CHANGES file documenting the addition of a
	  configurable port in the dundi config file.

	* configs/dundi.conf.sample, /, pbx/pbx_dundi.c: Merged revisions
	  271761 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r271761 | mnicholson | 2010-06-22 09:49:36 -0500 (Tue, 22 Jun
	  2010) | 9 lines Allow users to specify a port for dundi peers.
	  (closes issue #17056) Reported by: klaus3000 Patches:
	  dundi-peerport-patch-trunk.txt uploaded by klaus3000 (license 65)
	  Tested by: klaus3000 ........

	* /, channels/chan_sip.c, include/asterisk/strings.h,
	  channels/sip/include/sip.h: Merged revisions 271689 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r271689 | mnicholson | 2010-06-22 07:52:27 -0500 (Tue,
	  22 Jun 2010) | 8 lines Modify chan_sip's packet generation api to
	  automatically calculate the Content-Length. This is done by
	  storing packet content in a buffer until it is actually time to
	  send the packet, at which time the size of the packet is
	  calculated. This change was made to ensure that the
	  Content-Length is always correct. (closes issue #17326) Reported
	  by: kenner Tested by: mnicholson, kenner Review:
	  https://reviewboard.asterisk.org/r/693/ ........ This change also
	  adds an ast_str_copy_string() function (similar to
	  ast_copy_string), that copies one ast_str into another, properly
	  handling embedded nulls.

2010-06-21 22:41 +0000 [r271657]  Tilghman Lesher <tlesher@digium.com>

	* build_tools/menuselect-deps.in, configure, configure.ac,
	  res/res_timing_kqueue.c: Conflict kqueue on OS X, since it
	  doesn't work there yet, anyway.

2010-06-21 21:58 +0000 [r271625]  David Vossel <dvossel@digium.com>

	* codecs/codec_speex.c, codecs/ex_speex.h,
	  contrib/editors/asterisk.vim: add speex 16khz sample frame so
	  codec cost can be calculated (closes issue #17534) Reported by:
	  fabled Patches: speex-wb-sample.diff uploaded by fabled (license
	  448)

2010-06-21 20:46 +0000 [r271554]  Jeff Peeler <jpeeler@digium.com>

	* res/ael/pval.c, /: Merged revisions 271552 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r271552 | jpeeler | 2010-06-21 15:37:47 -0500 (Mon, 21 Jun 2010)
	  | 7 lines Do not use sizeof to calculate size of a heap allocated
	  character array. Change left out from 271399. (closes issue
	  #16053) Reported by: diLLec ........

2010-06-21 20:46 +0000 [r271551-271553]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, channels/sip/reqresp_parser.c: fixes crash
	  when From header URI is missing "sip:" (closes issue #17437)
	  Reported by: klaus3000 Patches: sip_crash uploaded by dvossel
	  (license 671) Tested by: klaus3000

	* res/res_rtp_asterisk.c: fixes logic error introduced by slin16
	  sip support

2010-06-21 05:10 +0000 [r271520]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_saycounted.c (added), CHANGES: Add new application for
	  declining counting words in multiple languages. (closes issue
	  #16869) Reported by: chappell Patches: app_say_counted-20100317.c
	  uploaded by chappell (license 8) Tested by: chappell

2010-06-18 21:32 +0000 [r271483]  Jeff Peeler <jpeeler@digium.com>

	* res/ael/pval.c, /, include/asterisk/pval.h, pbx/pbx_ael.c: Merged
	  revisions 271399 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r271399 | jpeeler | 2010-06-18 14:28:24 -0500 (Fri, 18 Jun 2010)
	  | 11 lines Fix crash when parsing some heavily nested statements
	  in AEL on reload. Due to the recursion used when compiling AEL in
	  gen_prios, all the stack space was being consumed when parsing
	  some AEL that contained nesting 13 levels deep. Changing a few
	  large buffers to be heap allocated fixed the crash, although I
	  did not test how many more levels can now be safely used. (closes
	  issue #16053) Reported by: diLLec Tested by: jpeeler ........

2010-06-18 18:59 +0000 [r271341]  David Vossel <dvossel@digium.com>

	* main/file.c: file.c was truncating audio file formats to the
	  lower 32bits.

2010-06-18 18:36 +0000 [r271336]  Jeff Peeler <jpeeler@digium.com>

	* /: Recorded merge of revisions 271335 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r271335 | jpeeler | 2010-06-18 13:33:17 -0500 (Fri, 18 Jun 2010)
	  | 13 lines Eliminate deadlock potential in dahdi_fixup(). (This
	  is a backport of 269307, committed to trunk by rmudgett.) Calling
	  dahdi_indicate() when the channel private lock is already held
	  can cause a deadlock if the PRI lock is needed because
	  dahdi_indicate() will also get the channel private lock. The
	  pri_grab() function assumes that the channel private lock is held
	  once to avoid deadlock. (closes issue #17261) Reported by: aragon
	  ........

2010-06-17 21:23 +0000 [r271231-271300]  David Vossel <dvossel@digium.com>

	* channels/sip/reqresp_parser.c: fixes some coding guideline issue

	* channels/sip/include/dialog.h, channels/chan_sip.c,
	  channels/sip/include/sip.h: retransmit response to BYE requests
	  until timer J expires According to RFC 3261 section 17.2.2, which
	  describes non-INVITE server transaction, when a dialog enters the
	  Completed state it must destroy the dialog after Timer J (T1*64)
	  fires. For a BYE transaction Asterisk terminates the dialog
	  immediately during sip_hangup() when it should be waiting T1*64
	  ms. This results in some odd behavior. For instance if Asterisk
	  receives a BYE and transmits a 200ok in response, if the endpoint
	  never receives the 200ok it will retransmit the BYE to which
	  Asterisk responds with a "481 Call leg/transaction does not
	  exist" because the dialog is already gone. To resolve this I made
	  a function called sip_scheddestroy_final(). This differs slightly
	  from sip_schedestroy() in that it enables a flag that will
	  prevent the destruction from ever being rescheduled or canceled
	  afterwards. It also prevents the pvt's needdestroy flag from
	  being set which triggers the destruction of the dialog within the
	  do_monitor thread(). By using this function we are guaranteed
	  destruction will not occur until the scheduled time. This allows
	  Asterisk to respond to any possible retransmits for a dialog
	  after we process the initial BYE request for T1*64 ms. Other
	  changes: I removed two instances where sip_cancel_destroy is used
	  right before calling sip_scheddestroy. sip_scheddestroy always
	  calls sip_cancel_destroy before scheduling the new destruction so
	  it is completely unnecessary. Review:
	  https://reviewboard.asterisk.org/r/694/

	* res/res_rtp_asterisk.c, main/rtp_engine.c, CHANGES: adds support
	  for slin16 in sip (closes issue #16153) Reported by: kfister
	  Patches: 16153-1.6.2.0-rc5.patch uploaded by kfister (license
	  912) slin16.sip.patch.1 uploaded by malcolmd (license 924) Tested
	  by: kfister, malcolmd

	* main/channel.c, res/res_rtp_asterisk.c, main/frame.c,
	  main/rtp_engine.c, codecs/codec_speex.c, CHANGES,
	  include/asterisk/frame.h: adds speex 16khz audio support (closes
	  issue #17501) Reported by: fabled Patches:
	  asterisk-trunk-speex-wideband-v2.patch uploaded by fabled
	  (license 448) Tested by: malcolmd, fabled, dvossel

2010-06-17 15:34 +0000 [r271192]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_analog.c: Change expected operation from error to
	  debug message

2010-06-17 00:30 +0000 [r271089]  Paul Belanger <paul.belanger@polybeacon.com>

	* apps/app_meetme.c: option w[(secs)] incorrectly capitalized in
	  xmldoc (closes issue #17516) Reported by: karlfife

2010-06-16 22:37 +0000 [r271056]  David Vossel <dvossel@digium.com>

	* channels/sip/reqresp_parser.c: addition of more parse_uri test
	  cases

2010-06-16 21:17 +0000 [r270987]  Paul Belanger <paul.belanger@polybeacon.com>

	* /, configs/extensions.conf.sample: Merged revisions 270979 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r270979 | pabelanger | 2010-06-16 17:10:05 -0400 (Wed, 16 Jun
	  2010) | 4 lines Fixed typo in macro-page Reported to
	  #asterisk-dev by a student of jsmith. ........

2010-06-16 21:12 +0000 [r270981-270983]  Jason Parker <jparker@digium.com>

	* channels/chan_agent.c: Fix the actual place that was pointed out,
	  for previous commit.

	* /, channels/chan_agent.c: Merged revisions 270980 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r270980 | qwell | 2010-06-16 16:10:09 -0500 (Wed, 16 Jun
	  2010) | 4 lines Need to lock the agent chan before access its
	  internal bits. Pointed out by russellb on asterisk-dev mailing
	  list. ........

2010-06-16 20:34 +0000 [r270974]  Matthew Nicholson <mnicholson@digium.com>

	* main/dnsmgr.c, main/acl.c: Set sin_family to AF_INET when doing
	  lookups, also reset sin_port the first time the ip address
	  changes. (closes issue #17496) Reported by: ManChicken (closes
	  issue #15827) Reported by: DennisD Patches: dnsmgr_15827.patch
	  uploaded by chappell (license 8) Tested by: DennisD, gentlec,
	  damage, wimpy

2010-06-16 19:03 +0000 [r270940]  David Vossel <dvossel@digium.com>

	* main/channel.c, res/res_rtp_asterisk.c, main/frame.c,
	  main/rtp_engine.c, channels/chan_sip.c, CHANGES,
	  channels/chan_iax2.c, include/asterisk/frame.h,
	  formats/format_g719.c (added): addition of G.719 pass-through
	  support (closes issue #16293) Reported by: malcolmd Patches:
	  g719.passthrough.patch.7 uploaded by malcolmd (license 924)
	  format_g719.c uploaded by malcolmd (license 924)

2010-06-16 18:43 +0000 [r270936]  Paul Belanger <paul.belanger@polybeacon.com>

	* res/res_agi.c, CHANGES: MSG_OOB flag on HANGUP packet removed.
	  Per Tilghman's request on IRC (#asterisk-bugs). (closes issue
	  #17506) Reported by: brycebaril Tested by: pabelanger, tilghman

2010-06-16 17:36 +0000 [r270867]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 270866 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r270866 | dvossel | 2010-06-16 12:35:29 -0500 (Wed, 16
	  Jun 2010) | 22 lines fixes chan_iax2 race condition There is code
	  in chan_iax2.c that attempts to guarantee that only a single
	  active thread will handle a call number at a time. This code
	  works once the thread is added to an active_list of threads, but
	  we are not currently guaranteed that a newly activated thread
	  will enter the active_list immediately because it is left up to
	  the thread to add itself after frames have been queued to it.
	  This means that if two frames come in for the same call number at
	  the same time, it is possible for them to grab two separate
	  threads because the first thread did not add itself to the
	  active_list fast enough. This causes some pretty complex
	  problems. This patch resolves this race condition by immediately
	  adding an activated thread to the active_list within the network
	  thread and only depending on the thread to remove itself once it
	  is done processing the frames queued to it. By doing this we are
	  guaranteed that if another frame for the same call number comes
	  in at the same time, that this thread will immediately be found
	  in the active_list of threads. Review:
	  https://reviewboard.asterisk.org/r/720/ ........

2010-06-16 16:45 +0000 [r270836]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_analog.c: Fix no call waiting caller ID Clearing the
	  callwaitcas flag in analog_call was causing the incoming D digit
	  to be ignored which triggers sending the caller ID.

2010-06-16 15:05 +0000 [r270801]  Paul Belanger <paul.belanger@polybeacon.com>

	* doc/tex/channelvariables.tex: Update formatting for
	  channelvariables.tex (closes issue #17511) Reported by: klaus3000
	  Patches: channelvariables.tex-patch.txt uploaded by klaus3000
	  (license 65) Tested by: pabelanger

2010-06-15 22:48 +0000 [r270726]  Russell Bryant <russell@digium.com>

	* channels/sig_analog.c: Don't blow up if an ast_channel doesn't
	  get allocated.

2010-06-15 21:42 +0000 [r270658-270692]  Terry Wilson <twilson@digium.com>

	* main/http.c: Don't continue sending the file when there has been
	  an error If there is a problem with a firmware file, Polycom
	  phones will close the connection. We were continuing to send the
	  file anyway. There should be no reason to continue sending a file
	  if there is an error writing it. (closes issue #16682) Reported
	  by: lmadsen

	* res/res_phoneprov.c: Don't send files twice and remove extra \r\n
	  from header After the manager http auth changes, we forgot to
	  remove the manual sending of the file. Also, ast_http_send adds
	  two \r\n to the header that is passed to it, so a trailing \r\n
	  is removed from the Content-type header. It might be better to
	  change ast_http_send, but I don't like changing the behavior of
	  an API function. (closes issue #17239) Reported by: cjacobsen
	  Patches: patch2.diff uploaded by cjacobsen (license 1029) Tested
	  by: lathama, cjacobsen

	* channels/chan_sip.c: Make contactdeny apply to src ip when
	  nat=yes chan_sip's "contactdeny" feature screens the "to be
	  registered contact". In case of nat=yes it should not use the
	  address information from the Contact header (which is not used at
	  all for routing), but the source IP address of the request. Thus,
	  if nat=yes and a client sends a request from a denied IP address
	  (e.g. by spoofing the src-IP address) it can bypass the
	  screening. This commit makes contactdeny apply to the src ip when
	  nat=yes instead. (closes issue #17276) Reported by: klaus3000
	  Patches: patch-asterisk-trunk-contactdeny.txt uploaded by
	  klaus3000 (license 65) Tested by: klaus3000

2010-06-15 18:26 +0000 [r270519-270584]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c, /: Merged revisions 270583 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r270583 | tilghman | 2010-06-15 13:25:12 -0500 (Tue, 15 Jun 2010)
	  | 5 lines Variables have always been case-sensitive, so we should
	  not be removing case-insensitive matches. Bug reported via the
	  -dev list. See
	  http://lists.digium.com/pipermail/asterisk-dev/2010-June/044510.html
	  ........

	* res/res_jabber.c: Argh, mixed declarations and code.

	* configs/jabber.conf.sample, include/asterisk/jabber.h,
	  doc/distributed_devstate-XMPP.txt (added), CHANGES,
	  res/res_jabber.c: Add distributed devicestate via the XMPP
	  protocol. (closes issue #15757) Reported by: Marquis Patches:
	  distributed_devstate-XMPP.txt uploaded by lmadsen (license 10)
	  Tested by: Marquis, lmadsen, marcelloceschia Review:
	  https://reviewboard.asterisk.org/r/351/

2010-06-15 12:51 +0000 [r270443]  Leif Madsen <lmadsen@digium.com>

	* /, configs/voicemail.conf.sample: Merged revisions 270442 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r270442 | lmadsen | 2010-06-15 07:47:03 -0500 (Tue, 15 Jun 2010)
	  | 1 line Move information about zonemessages into the
	  [zonemessages] section. ........

2010-06-14 21:33 +0000 [r270332]  Paul Belanger <paul.belanger@polybeacon.com>

	* /, res/res_musiconhold.c: Merged revisions 270331 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r270331 | pabelanger | 2010-06-14 17:31:59 -0400 (Mon,
	  14 Jun 2010) | 14 lines Properly play first file in sort list.
	  When using sort=alpha we would always skip the first file in the
	  list first time through. We now check for that properly. (closes
	  issue #17470) Reported by: pabelanger Patches: sort.aplha.patch
	  uploaded by pabelanger (license 224) Tested by: lmadsen Review:
	  https://reviewboard.asterisk.org/r/703/ ........

2010-06-14 20:51 +0000 [r270298]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_ss7.h, channels/sig_ss7.c:
	  Extract sig_ss7_init_linkset() to sig_ss7. Also found a place
	  where sig_pri_init_pri() was inlined and called it instead.

2010-06-14 19:41 +0000 [r270260]  Jason Parker <jparker@digium.com>

	* channels/chan_agent.c: Add option to get untruncated channel name
	  from AGENT function. The "channel" option would chop the channel
	  name at the last '-', which made it useless for something like a
	  channel transfer from the dialplan. The "fullchannel" option will
	  return the channel name as-is. ABE-2218

2010-06-14 15:55 +0000 [r270219]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c,
	  configs/chan_dahdi.conf.sample, channels/sig_pri.c: Add digit
	  manipulation tag support to chan_dahdi/sig_pri like chan_misdn.
	  Add the append_msn_to_cid_tag option to chan_dahdi like
	  chan_misdn. Review: https://reviewboard.asterisk.org/r/696/

2010-06-13 09:16 +0000 [r270184]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* autoconf/ast_check_pwlib.m4, configure: bashism in configure
	  script Theoretically the ./configure script is a pure
	  bourne-shell script. Practically it may be run by bash if /bin/sh
	  is not good enough. But we should not count on it. See bug report
	  for the gory details. (closes issue #17485) Patches:
	  0001-remove-bashism-from-ast_check_pwlib.m4.patch uploaded by
	  tzafrir (license 46)

2010-06-13 01:53 +0000 [r270042-270151]  Paul Belanger <paul.belanger@polybeacon.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac:
	  Reverting patch and reopening issue #16155, as patch breaks
	  FreeBSD / OSX builds.

	* /, doc/HOWTO_collect_debug_information.txt: Merged revisions
	  270078 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r270078 | pabelanger | 2010-06-12 14:54:20 -0400 (Sat, 12 Jun
	  2010) | 2 lines Fix typo in example ........

	* configure, include/asterisk/autoconfig.h.in, configure.ac: Use
	  pkg-config to find gmime libraries This way the libraries can be
	  found even if they are in non-standard locations. (closes issue
	  #16155) Reported by: jcollie Patches:
	  0008-change-configure.ac-to-look-for-pkg-config-gmime-2.0.patch
	  uploaded by jcollie (license 412) Tested by: jsmith, tilghman,
	  pabelanger

2010-06-11 18:31 +0000 [r269936-269976]  Tilghman Lesher <tlesher@digium.com>

	* main/frame.c, /: Merged revisions 269960 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r269960 | tilghman | 2010-06-11 13:23:05 -0500 (Fri, 11 Jun 2010)
	  | 8 lines For SpeeX, 0 bits remaining is valid and does not need
	  an emitted warning. (closes issue #15762) Reported by: nblasgen
	  Patches: issue15672.patch uploaded by pabelanger (license 224)
	  Tested by: nblasgen ........

	* CHANGES, main/db.c: Add DBGetComplete event after a
	  DBGetResponse. (closes issue #16965) Reported by: rrb3942
	  Patches: DBGetComplete.patch uploaded by rrb3942 (license 1003)

	* main/logger.c: Remove lines from the output related to the
	  backtrace itself.

2010-06-10 20:30 +0000 [r269889]  Paul Belanger <paul.belanger@polybeacon.com>

	* Makefile, makeopts.in: Remove ASTBINDIR variable (closes issue
	  #17031) Reported by: pabelanger Patches:
	  Makefile.ASTBINDIR.v2.patch uploaded by pabelanger (license 224)
	  Tested by: pabelanger, tilghman

2010-06-10 19:34 +0000 [r269749-269822]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c, /: Merged revisions 269821 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r269821 | mmichelson | 2010-06-10 14:30:12 -0500 (Thu, 10 Jun
	  2010) | 19 lines Fix potential crash when writing raw SLIN audio
	  on a PLC-enabled channel. The issue here was that the frame
	  created when adjusting for PLC had no offset to its audio data.
	  If this frame were translated to another format prior to being
	  sent out an RTP socket, all went well because the translation
	  code would put an appropriate offset into the frame. However, if
	  the SLIN audio were not translated before being sent out the RTP
	  socket, bad things would happen. Specifically, the
	  ast_rtp_raw_write makes the assumption that the frame has at
	  least enough of an offset that it can accommodate an RTP header.
	  This was not the case. As such, data was being written prior to
	  the allocation, likely corrupting the data the memory allocator
	  had written. Thus when the time came to free the data, all hell
	  broke loose. ....Well, Asterisk crashed at least. The fix was
	  just what one would expect. Offset the data in the frame by a
	  reasonable amount. The method I used is a bit odd since the data
	  in the frame is 16 bit integers and not bytes. I left a big ol'
	  comment about it. This can be improved on if someone is
	  interested. I was more interested in getting the crash resolved.
	  ........

	* doc/tex/plc.tex (added), doc/tex/asterisk.tex: Add documentation
	  explaining PLC in Asterisk. Review:
	  https://reviewboard.asterisk.org/r/688/

2010-06-10 13:17 +0000 [r269711]  Russell Bryant <russell@digium.com>

	* tests/test_heap.c: Fix an off by one error that caused a unit
	  test to occasionally crash.

2010-06-10 12:28 +0000 [r269707]  Kevin P. Fleming <kpfleming@digium.com>

	* main/logger.c: Ensure that 'logger show channels' works properly
	  when wildcards are used in logger.conf.

2010-06-10 08:15 +0000 [r269636]  Tilghman Lesher <tlesher@digium.com>

	* /, main/logger.c, utils/extconf.c, main/asterisk.c: Merged
	  revisions 269635 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r269635 | tilghman | 2010-06-10 02:52:34 -0500 (Thu, 10 Jun 2010)
	  | 9 lines Ensure restartable system calls can restart (BSD signal
	  semantics). This eliminates the annoying <beep> on the console.
	  (closes issue #17477) Reported by: jvandal Patches:
	  20100610__issue17477.diff.txt uploaded by tilghman (license 14)
	  ........

2010-06-10 00:32 +0000 [r269417-269602]  Russell Bryant <russell@digium.com>

	* channels/chan_dahdi.c: Attempt to fix a FreeBSD build error by
	  including sys/stat.h.
	  http://bamboo.asterisk.org/download/AST-TRUNKFREEBSD/build_logs/AST-TRUNKFREEBSD-187.log

	* main/lock.c: Attempt to fix FreeBSD build problem.

	* /, channels/chan_oss.c: Merged revisions 269495 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r269495 | russell | 2010-06-09 17:18:37 -0500 (Wed, 09 Jun 2010)
	  | 2 lines Don't stop Asterisk if chan_oss fails to register
	  'Console' (due to another channel driver already claiming it).
	  ........

	* include/asterisk/event.h, main/event.c: Resolve an invalid memory
	  read on an event. Valgrind pointed out that attempting to get an
	  IE value from an event that has no IEs produces an invalid memory
	  read past the end of the event. Thanks to mmichelson for pointing
	  the problem out to me and then testing the fix.

2010-06-09 17:32 +0000 [r269346]  Paul Belanger <paul.belanger@polybeacon.com>

	* contrib/init.d/rc.debian.asterisk, /, main/term.c: Merged
	  revisions 269334 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r269334 | pabelanger | 2010-06-09 13:24:53 -0400 (Wed, 09 Jun
	  2010) | 12 lines Fix Debian init script to not use -c. When using
	  the init script as-is currently, it could cause issues on Debian
	  such as high CPU usage. This fix has worked for several people so
	  I'm implementing the change. We now handle color displays
	  properly. (closes issue #16784) Reported by: pabelanger Patches:
	  20100530__issue16784__2.diff.txt uploaded by tilghman (license
	  14) Tested by: pabelanger, tilghman ........

2010-06-09 17:06 +0000 [r269307-269308]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_ss7.h, channels/sig_ss7.c:
	  Add missing API function to sig_ss7: sig_ss7_fixup().

	* channels/chan_dahdi.c: Eliminate deadlock potential in
	  dahdi_fixup(). Calling dahdi_indicate() within dahdi_fixup()
	  while the owner pointers are in a potentially inconsistent state
	  is a potentially bad thing in principle. However, calling
	  dahdi_indicate() when the channel private lock is already held
	  can cause a deadlock if the PRI lock is needed because
	  dahdi_indicate() will also get the channel private lock. The
	  pri_grab() function assumes that the channel private lock is held
	  once to avoid deadlock.

2010-06-09 15:09 +0000 [r269271]  David Vossel <dvossel@digium.com>

	* res/res_musiconhold.c: fixes crash in moh when cachertclasses
	  flag is used The result for moh_register was not verified to
	  guarantee the mohclass as added to the container. (closes issue
	  #16993) Reported by: dmitri Patches:
	  res_musiconhold_rtclass2.patch uploaded by dmitri (license 1001)
	  moh_crash2.diff uploaded by dvossel (license 671) Tested by:
	  dmitri

2010-06-09 13:17 +0000 [r269238]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample, CHANGES:
	  dial by name in chan_dahdi * chan_dahdi supports dialing
	  configuring and dialing by device file name.
	  DAHDI/span-name!local!1 will use /dev/dahdi/span-name/local/1 .
	  Likewise it may appear in chan_dahdi.conf as 'channel =>
	  span-name!local!1'. * A new options for chan_dahdi.conf:
	  'ignore_failed_channels'. Boolean. False by default. If set,
	  chan_dahdi will ignore failed 'channel' entries. Handy for the
	  above name-based syntax as it does not depend on initialization
	  order. * have my_pri_make_cc_dialstring() only manupulate
	  dial-strings of group (gGrR) dialing, which make it lsightly more
	  complicated. https://reviewboard.asterisk.org/r/535/

2010-06-09 10:55 +0000 [r269187-269205]  Russell Bryant <russell@digium.com>

	* contrib/scripts/install_prereq: Add libjack-dev to
	  install_prereq.

	* contrib/scripts/install_prereq: Add libpopt-dev, libical-dev, and
	  libspandsp-dev to install_prereq.

	* contrib/scripts/install_prereq: Add libnewt-dev to
	  install-prereq.

	* contrib/scripts/install_prereq: Add libopenais-dev to
	  install_prereq.

	* contrib/scripts/install_prereq: Add an "install-unpackaged"
	  command to install_prereq for installing unpackaged dependencies
	  (such as NBS and libresample).

	* contrib/scripts/install_prereq: Add libcurl to install_prereq.

	* contrib/scripts/install_prereq: Add freetds-dev to
	  install_prereq.

	* contrib/scripts/install_prereq: Add libradiusclient-ng-dev to
	  install_prereq.

	* contrib/scripts/install_prereq: Add libbluetooth-dev to
	  install_prereq.

	* contrib/scripts/install_prereq: Add libmysqlclient-dev to
	  install_prereq.

	* contrib/scripts/install_prereq: Add libgtk2.0-dev to the packages
	  list for install_prereq.

2010-06-08 23:48 +0000 [r269153]  Bradley Latus <brad.latus@gmail.com>

	* configs/cdr_custom.conf.sample, configs/cdr_tds.conf.sample,
	  cdr/cdr_sqlite.c, configs/cdr_sqlite3_custom.conf.sample,
	  funcs/func_cdr.c, configs/cdr_syslog.conf.sample, UPGRADE.txt,
	  cdr/cdr_adaptive_odbc.c, addons/cdr_mysql.c, cdr/cdr_pgsql.c,
	  CHANGES, cdr/cdr_odbc.c, cdr/cdr_tds.c,
	  configs/cdr_odbc.conf.sample: Add High Resolution Times to CDRs
	  for Asterisk People expressed an interest in having access to the
	  exact length of calls to a finer degree than seconds. See the
	  CHANGES and UPGRADE.txt for usage also updated the sample configs
	  to note the change. Patch by snuffy. (closes issue #16559)
	  Reported by: cianmaher Tested by: cianmaher, snuffy Review:
	  https://reviewboard.asterisk.org/r/461/

2010-06-08 22:45 +0000 [r269119]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  include/asterisk/localtime.h: Fix build on Mac OS X (and maybe
	  FreeBSD, too)

2010-06-08 18:50 +0000 [r269083]  Matthew Nicholson <mnicholson@digium.com>

	* apps/app_fax.c: Don't pass null to manager_event() (closes issue
	  #17087) Reported by: bklang Patches: app-fax-null-sprintf1.diff
	  uploaded by mnicholson (license 96) Tested by: bklang

2010-06-08 15:41 +0000 [r269008]  Russell Bryant <russell@digium.com>

	* Makefile.rules: Ensure CONFIG_FLAGS makes it into the build rules
	  when doing out of tree builds. (closes issue #16685) Reported by:
	  pprindeville

2010-06-08 15:39 +0000 [r269007]  Sean Bright <sean@malleable.com>

	* /, cdr/cdr_tds.c: Merged revisions 269006 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r269006 | seanbright | 2010-06-08 11:28:49 -0400 (Tue, 08 Jun
	  2010) | 11 lines Reduce startup time for cdr_tds with large CDR
	  tables. Since we are just checking for table existence, add a
	  WHERE clause that will return no rows but will raise an error if
	  the table doesn't exist. (closes issue #17380) Reported by:
	  kkwong Patches: issue17380-01.patch uploaded by seanbright
	  (license 71) Tested by: kkwong ........

2010-06-08 15:23 +0000 [r268969-268988]  Leif Madsen <lmadsen@digium.com>

	* configs/sip.conf.sample: Update note in sip.conf.sample. Update
	  note in sip.conf.sample about externip and externhost with STUN.
	  (closes issue #16323) Reported by: klaus3000 Patches:
	  sip.conf.sample-patch.txt uploaded by klaus3000 (license 65)

	* apps/app_meetme.c, main/ccss.c, include/asterisk/data.h,
	  res/res_jabber.c, res/res_config_sqlite.c,
	  include/asterisk/callerid.h, channels/chan_dahdi.c,
	  include/asterisk/bridging_technology.h,
	  include/asterisk/doxyref.h, include/asterisk/event.h,
	  include/asterisk/astmm.h, main/ast_expr2f.c, main/features.c,
	  include/asterisk/timing.h, include/asterisk/rtp_engine.h,
	  include/asterisk/ccss.h, include/asterisk/threadstorage.h,
	  include/asterisk/xml.h, main/pbx.c, channels/chan_sip.c,
	  include/asterisk/astobj2.h, include/asterisk/channel.h,
	  include/asterisk/calendar.h, include/asterisk/manager.h,
	  include/asterisk/features.h, include/asterisk/logger.h,
	  include/asterisk/http.h, channels/sig_pri.h,
	  include/asterisk/app.h, main/audiohook.c, include/asterisk/pbx.h,
	  include/asterisk/dnsmgr.h, include/asterisk/smdi.h,
	  apps/app_voicemail.c: Fix some doxygen warnings. (closes issue
	  #17336) Reported by: snuffy Patches: doxygen-fixes1.diff uploaded
	  by snuffy (license 35) Tested by: russell

2010-06-08 06:57 +0000 [r268896-268933]  Tilghman Lesher <tlesher@digium.com>

	* res/res_config_sqlite.c: Release list lock before returning on
	  error.

	* utils/extconf.c: Fix trunk build on Mac OS X.

2010-06-08 05:29 +0000 [r268894]  Terry Wilson <twilson@digium.com>

	* channels/sip/sdp_crypto.c (added), res/res_rtp_asterisk.c,
	  main/global_datastores.c, main/rtp_engine.c,
	  include/asterisk/res_srtp.h (added), channels/sip/srtp.c (added),
	  channels/chan_sip.c, include/asterisk/autoconfig.h.in,
	  res/res_srtp.exports.in (added), configure.ac, CHANGES,
	  channels/chan_iax2.c, res/res_srtp.c (added), main/channel.c,
	  build_tools/menuselect-deps.in, main/asterisk.exports.in,
	  configure, funcs/func_channel.c,
	  channels/sip/dialplan_functions.c,
	  channels/sip/include/sdp_crypto.h (added),
	  doc/tex/secure-calls.tex (added),
	  include/asterisk/global_datastores.h, channels/sip/include/srtp.h
	  (added), makeopts.in, include/asterisk/rtp_engine.h,
	  include/asterisk/frame.h, doc/tex/asterisk.tex,
	  channels/sip/include/sip.h: Add SRTP support for Asterisk After 5
	  years in mantis and over a year on reviewboard, SRTP support is
	  finally being comitted. This includes generic CHANNEL dialplan
	  functions that work for getting the status of whether a call has
	  secure media or signaling as defined by the underlying channel
	  technology and for setting whether or not a new channel being
	  bridged to a calling channel should have secure signaling or
	  media. See doc/tex/secure-calls.tex for examples. Original patch
	  by mikma, updated for trunk and revised by me. (closes issue
	  #5413) Reported by: mikma Tested by: twilson, notthematrix,
	  hemanshurpatel Review: https://reviewboard.asterisk.org/r/191/

2010-06-08 00:45 +0000 [r268857]  Richard Mudgett <rmudgett@digium.com>

	* channels/sip/dialplan_functions.c: Make SIP tests compile again.

2010-06-07 22:56 +0000 [r268817-268818]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Use the mailbox destructor function,
	  instead.

	* channels/chan_sip.c, channels/sip/include/sip.h: Mailbox list
	  would previously grow at each reload, containing duplicates.
	  Also, optimize the allocation of mailboxes to avoid additional
	  memory structures. (closes issue #16320) Reported by: Marquis
	  Patches: 20100525__issue16320.diff.txt uploaded by tilghman
	  (license 14)

2010-06-07 20:04 +0000 [r268774]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_ss7.h
	  (added), channels/Makefile, channels/sig_pri.c,
	  channels/sig_ss7.c (added): Extract sig_ss7 out of chan_dahdi.
	  Extract the SS7 specific code out of chan_dahdi like what was
	  done to ISDN/PRI and analog signaling. The new SS7 structures
	  were modeled on sig_pri. The changes to sig_pri are an
	  enhancement and a bug fix made possible because SS7 was
	  extracted. 1) The sig_pri TRANSFERCAPABILITY channel variable
	  should have been set unconditionally in
	  sig_pri_new_ast_channel(). 2) SS7/PRI transfer capability
	  interaction in dahdi_new() fixed because of SS7 extraction. 3)
	  Module ref count error in dahdi_new() if startpbx failed to start
	  the PBX for some reason. Review:
	  https://reviewboard.asterisk.org/r/661/

2010-06-07 19:52 +0000 [r268773]  Tilghman Lesher <tlesher@digium.com>

	* main/rtp_engine.c, channels/chan_sip.c,
	  channels/sip/dialplan_functions.c, include/asterisk/rtp_engine.h:
	  Seems strange (and the code backs up) that if the max and min of
	  a statistic is expressed as a double, the last value would not
	  also need to be a double. (closes issue #15807) Reported by:
	  klaus3000

2010-06-07 19:06 +0000 [r268734]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Moved AOC request code out of the middle of
	  code parsing the dialed number.

2010-06-07 18:59 +0000 [r268731]  Tilghman Lesher <tlesher@digium.com>

	* main/manager.c: Event well was going dry. (issue #17234)

2010-06-07 17:34 +0000 [r268690]  Paul Belanger <paul.belanger@polybeacon.com>

	* main/dsp.c: Set threshold for silence detection defaults to 256
	  (closes issue #15685) Reported by: david_s5 Patches:
	  dsp-silence-threshold-init.diff uploaded by dant (license 670)
	  issue15685.patch.v5 uploaded by pabelanger (license 224) Tested
	  by: danti Review: https://reviewboard.asterisk.org/r/670/

2010-06-07 17:14 +0000 [r268653]  Tilghman Lesher <tlesher@digium.com>

	* res/res_smdi.c: Avoid unloading res_smdi twice. (closes issue
	  #17237) Reported by: pabelanger

2010-06-07 15:51 +0000 [r268578]  Richard Mudgett <rmudgett@digium.com>

	* main/file.c: Suppress warning in waitstream_core(). Suppress the
	  warning about unexpected control subclass frames for
	  AST_CONTROL_CONNECTED_LINE, AST_CONTROL_REDIRECTING, and
	  AST_CONTROL_AOC in file.c:waitstream_core().

2010-06-06 05:29 +0000 [r268454-268534]  Tilghman Lesher <tlesher@digium.com>

	* contrib/init.d/rc.redhat.asterisk: Take advantage of variable
	  substitution already in the Makefile to specify the correct
	  location for files in init.d. (closes issue #16979) Reported by:
	  jw-asterisk (issue #15691) Reported by: itamarjp

	* channels/chan_iax2.c: Finally track down and eliminate the
	  "FRACK! warnings from chan_iax2".

	* main/dsp.c: Fix crash in DTMF detection. What I did not
	  originally see in my previous commit was that even though the
	  next digit could be detected before the previous was considered
	  ended, the detection of the next digit effectively ends the
	  detection of the previous. Therefore, the length moves in
	  lockstep with the digit, and no separate counter is needed for
	  the length alone. (closes issue #17371) Reported by: alecdavis
	  (closes issue #17474) Reported by: kenner

	* main/manager.c: Verify event is not NULL before attempting to
	  lower its usecount. (closes issue #17234) Reported by: mav3rick

2010-06-05 05:23 +0000 [r268395-268417]  Kevin P. Fleming <kpfleming@digium.com>

	* CHANGES: Typo fix.

	* CHANGES: Grammatical error fix.

2010-06-05 02:51 +0000 [r268321]  Tilghman Lesher <tlesher@digium.com>

	* /, configs/voicemail.conf.sample: Merged revisions 268320 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r268320 | tilghman | 2010-06-04 21:49:52 -0500 (Fri, 04 Jun 2010)
	  | 3 lines Rest In Peace
	  http://www.outandaboutnewspaper.com/article/4061 ........

2010-06-04 22:37 +0000 [r268205-268281]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes compile error from uninitialized
	  variable

	* channels/chan_sip.c: RFC3261 compliant sip unreliable retransmit
	  timing + 'registerattempts' option tweak Changes. 1. RFC 3261
	  states in section 17.1.2.2 and 17.1.1.2 that retransmission
	  timers should initially be set to timer T1. T1 by default is
	  500ms. Asterisk was starting the retransmission timers at T1*2
	  which shouldn't cause any problems, but is not RFC compliant. 2.
	  RFC 3261 states in section 17.1.2.2 that for a non-INVITE client
	  transaction, if the retransmit timer fires while in the
	  proceeding state that the request must be retransmitted. Asterisk
	  currently ack's requests for both INVITE and non-INVITE
	  transactions when a 1XX response is received, this patch changes
	  this for non-INVITE requests. 3. The 'registerattempts' option in
	  sip.conf is supposed to set how many registry attempts will be
	  made before giving up. When this option is set to 1, I would
	  expect only one registry attempt to be made before stopping
	  because of a failure, but instead two are made. In my opinion
	  this is not expected behavior. This option does not indicate that
	  these are re-attempts. The logic behind this option has been
	  changed to only attempt registers the exact number of times this
	  option is set to. If this option is 0, it still continues to
	  re-attempt the registration forever. Review:
	  https://reviewboard.asterisk.org/r/687/

2010-06-04 20:42 +0000 [r267972-268127]  Tilghman Lesher <tlesher@digium.com>

	* /, configure, configure.ac: Merged revisions 268126 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r268126 | tilghman | 2010-06-04 15:41:24 -0500 (Fri, 04
	  Jun 2010) | 2 lines AC_CONFIG_SUBDIRS has a bad side-effect on
	  cross-compiles. ........

	* Makefile, /, makeopts.in: Merged revisions 268050 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r268050 | tilghman | 2010-06-04 14:38:57 -0500 (Fri, 04
	  Jun 2010) | 6 lines Build menuselect with the build environment's
	  compiler, not the host (target)'s compiler. (closes issue #17464)
	  Reported by: pprindeville Tested by: tilghman ........

	* /, configure, configure.ac, autoconf/libcurl.m4: Merged revisions
	  267971 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r267971 | tilghman | 2010-06-04 11:27:02 -0500 (Fri, 04 Jun 2010)
	  | 2 lines As-fixiate the build process ........

2010-06-04 14:45 +0000 [r267928]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Incoming overlap dialing no longer works
	  after sig_pri extraction. The problem would manifest itself if
	  your dialplan matching could accept more digits to match than
	  were actually dialed. The time out waiting for overlap digits
	  disconnected the call instead of matching any accumulated digits
	  to the dialplan. Accidental conversion of a break out of loop as
	  a break out of switch. (closes issue #17401) Reported by:
	  avalentin Patches: issue17401_digit_timeout.patch uploaded by
	  rmudgett (license 664) Tested by: avalentin, rmudgett

2010-06-04 03:20 +0000 [r267877]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/slin.h: As signed linear audio data is accessed
	  as 16-bit values, certain processors require the values to be
	  aligned in memory. (closes issue #16912) Reported by:
	  michaelevdokimov Patches: asterisk.patch uploaded by
	  michaelevdokimov (license 997) Tested by: michaelevdokimov

2010-06-04 03:11 +0000 [r267863]  Terry Wilson <twilson@digium.com>

	* channels/chan_sip.c: Send an ACK for every final response
	  received for an INVITE From issue ABE-2247. RFC 3261 compliance
	  for sections 13.2.24 and 17.1.1.2. Review:
	  https://reviewboard.asterisk.org/r/692/

2010-06-04 02:58 +0000 [r267775-267862]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/slin.h: As signed linear audio data is accessed
	  as 16-bit values, certain processors require the values to be
	  aligned in memory. (closes issue #16912) Reported by:
	  michaelevdokimov

	* configure, autoconf/ast_ext_lib.m4: If there's a default, turn it
	  on, even when the option isn't specified.

	* /, configure, include/asterisk/autoconfig.h.in, configure.ac:
	  Merged revisions 267759 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r267759 | tilghman | 2010-06-03 20:16:26 -0500 (Thu, 03 Jun 2010)
	  | 7 lines Make the default install path appear to be /usr on
	  Linux, instead of /usr/local. Also, reorganize the options, so
	  that they're more alphabetical. (closes issue #17013) Reported
	  by: klaus3000 ........

2010-06-03 20:41 +0000 [r267714]  Russell Bryant <russell@digium.com>

	* main/ccss.c: Remove a LOG_WARNING. This came up when using the
	  sample configs, and just indicates expected behavior.

2010-06-03 19:46 +0000 [r267669]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_odbc.c: Handle OOM errors more gracefully. (closes
	  issue #17084) Reported by: falves11 Patches:
	  issue17084_162_A.diff uploaded by falves11 (license 374) Tested
	  by: falves11

2010-06-03 18:53 +0000 [r267624]  Leif Madsen <lmadsen@digium.com>

	* UPGRADE.txt, CHANGES: Update UPGRADE.txt and CHANGE for CDR
	  functionality changes. Updated the UPGRADE.txt and CHANGES file
	  stating that CDR records will not be explicity written unless
	  cdr.conf exists and is configured. (closes issue #17373) Reported
	  by: wdoekes Tested by: pabelanger

2010-06-03 18:38 +0000 [r267622]  Richard Mudgett <rmudgett@digium.com>

	* codecs/codec_dahdi.c: Make compile again.

2010-06-03 17:31 +0000 [r267537]  Russell Bryant <russell@digium.com>

	* channels/chan_usbradio.c: Don't stop Asterisk if chan_usbradio
	  isn't configured.

2010-06-03 17:09 +0000 [r267492]  Mark Michelson <mmichelson@digium.com>

	* codecs/codec_lpc10.c, codecs/codec_g722.c, codecs/codec_adpcm.c,
	  codecs/codec_alaw.c, main/translate.c, codecs/codec_g726.c,
	  codecs/codec_gsm.c, codecs/codec_ulaw.c, codecs/codec_dahdi.c,
	  include/asterisk/translate.h: Remove unnecessary code relating to
	  PLC. The logic for handling generic PLC is now handled in
	  ast_write in channel.c instead of in translation code. Review:
	  https://reviewboard.asterisk.org/r/683/

2010-06-03 17:05 +0000 [r267445-267490]  Russell Bryant <russell@digium.com>

	* channels/chan_usbradio.c: Remove a line that was killing Asterisk
	  on startup.

	* channels/h323/Makefile.in: Comment out a rule that likes to run
	  implicitly unnecessarily, breaking builds

2010-06-03 00:02 +0000 [r267399]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c,
	  configs/chan_dahdi.conf.sample, configure,
	  include/asterisk/autoconfig.h.in, configure.ac, CHANGES,
	  channels/sig_pri.c: Add ETSI Message Waiting Indication (MWI)
	  support. Add the ability to report waiting messages to ISDN
	  endpoints (phones). Relevant specification: EN 300 650 and EN 300
	  745 Review: https://reviewboard.asterisk.org/r/599/

2010-06-02 22:46 +0000 [r267352]  Russell Bryant <russell@digium.com>

	* channels/Makefile, channels/h323/Makefile.in: try to fix some
	  random chan_h323 compilation failures After some debugging, the
	  random chan_h323 build failures appear to be due to complications
	  introduced by some chan_h323 specific build stuff getting
	  triggered during a clean. Simplify this by moving the h323 clean
	  commands down into channels/makefile.

2010-06-02 22:28 +0000 [r267350]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c, configure, include/asterisk/autoconfig.h.in,
	  configure.ac, include/asterisk/channel.h, CHANGES,
	  channels/sig_pri.c: Add ETSI Malicious Call ID support. Add the
	  ability to report malicious callers as an AMI event in the call
	  event class. Relevant specification: EN 300 180 Review:
	  https://reviewboard.asterisk.org/r/576/

2010-06-02 21:44 +0000 [r267303-267305]  Russell Bryant <russell@digium.com>

	* utils/extconf.c: Fix a build error on mac.

	* main/Makefile: Ensure the -Wno-strict-aliasing flag makes it,
	  even if ASTCFLAGS has been specified. When ASTCFLAGS was
	  specified with the make command, Makefile.rules was using the
	  specified value from the command line and not the one here,
	  making it so this flag would go missing.

2010-06-02 21:05 +0000 [r267261]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c,
	  configs/chan_dahdi.conf.sample, configure,
	  include/asterisk/autoconfig.h.in, configure.ac, CHANGES,
	  channels/sig_pri.c: Add ETSI Call Waiting support. Add the
	  ability to announce a call to an endpoint when there are no B
	  channels available. A call waiting call is a SETUP message with
	  no B channel selected. Relevant specification: EN 300 056, EN 300
	  057, EN 300 058 For DAHDI/ISDN channels, the CHANNEL() dialplan
	  function now supports the "no_media_path" option. * Returns "0"
	  if there is a B channel associated with the call. * Returns "1"
	  if no B channel is associated with the call. The call is either
	  on hold or is a call waiting call. If you are going to allow
	  incoming call waiting calls then you need to use
	  CHANNEL(no_media_path) do determine if you must drop a call to
	  accept the new call. Review:
	  https://reviewboard.asterisk.org/r/568/

2010-06-02 19:33 +0000 [r267181]  David Vossel <dvossel@digium.com>

	* CHANGES, doc/advice_of_charge.txt: Update CHANGES and aoc help
	  doc to reflect AOC additions

2010-06-02 18:53 +0000 [r267138]  Russell Bryant <russell@digium.com>

	* main/cli.c: Add a CLI command that blocks until Asterisk has
	  fully booted. Review: https://reviewboard.asterisk.org/r/684/

2010-06-02 18:13 +0000 [r267097]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Prevent use of uninitialized values. Two
	  struct sockaddr_ins are created when applying directmedia host
	  access rules. The addresses of these are passed to the RTP engine
	  to be filled in. However, the RTP engine inspects the fields of
	  the structs before actually taking action. This inspection caused
	  valgrind to be a bit unhappy.

2010-06-02 18:10 +0000 [r267096]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_dial.c, configs/chan_dahdi.conf.sample,
	  include/asterisk/aoc.h (added), channels/chan_sip.c,
	  configs/manager.conf.sample, main/aoc.c (added),
	  apps/app_queue.c, channels/sig_pri.c, doc/advice_of_charge.txt
	  (added), main/channel.c, channels/sig_pri.h,
	  channels/chan_dahdi.c, main/manager.c, main/features.c,
	  tests/test_aoc.c (added), configs/sip.conf.sample,
	  include/asterisk/frame.h, main/asterisk.c,
	  channels/sip/include/sip.h: Generic Advice of Charge. Asterisk
	  Generic AOC Representation - Generic AOC encode/decode routines.
	  (Generic AOC must be encoded to be passed on the wire in the
	  AST_CONTROL_AOC frame) - AST_CONTROL_AOC frame type to represent
	  generic encoded AOC data - Manager events for AOC-S, AOC-D, and
	  AOC-E messages Asterisk App Support - app_dial AOC-S pass-through
	  support on call setup - app_queue AOC-S pass-through support on
	  call setup AOC Unit Tests - AOC Unit Tests for encode/decode
	  routines - AOC Unit Test for manager event representation. SIP
	  AOC Support - Pass-through of generic AOC-D and AOC-E messages to
	  snom phones via the snom AOC specification. - Creation of
	  chan_sip page3 flags for the addition of the new
	  'snom_aoc_enabled' sip.conf option. IAX AOC Support - Natively
	  supports AOC pass-through through the use of the new
	  AST_CONTROL_AOC frame type DAHDI AOC Support - ETSI PRI full AOC
	  Pass-through support - 'aoc_enable' chan_dahdi.conf option for
	  independently enabling pass-through of AOC-S, AOC-D, AOC-E. -
	  'aoce_delayhangup' option for retrieving AOC-E on disconnect. -
	  DAHDI A() dial string option for requesting AOC services. example
	  usage: ;requests AOC-S, AOC-D, and AOC-E on call setup
	  exten=>1111,1,Dial(DAHDI/g1/1112/A(s,d,e)) Review:
	  https://reviewboard.asterisk.org/r/552/

2010-06-02 17:57 +0000 [r267093]  Russell Bryant <russell@digium.com>

	* apps/app_voicemail.c: Silence a compiler warning.

2010-06-02 17:29 +0000 [r267065]  Jeff Peeler <jpeeler@digium.com>

	* include/asterisk/slin.h: Fix infinite loop when loading codec
	  speex This changes the sample slinear frame data to contain
	  non-zero data so that translation calculations for speex works
	  when preprocessing and VAD is turned on. The encoder expects
	  samples to be returned, but when attempted with the mentioned two
	  options and silent sample frames everything was discarded.
	  (closes issue #17240) Reported by: seandarcy Review:
	  https://reviewboard.asterisk.org/r/682/

2010-06-02 17:25 +0000 [r267041]  Paul Belanger <paul.belanger@polybeacon.com>

	* /, main/ast_expr2.y: Merged revisions 267009 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r267009 | pabelanger | 2010-06-02 13:14:37 -0400 (Wed, 02 Jun
	  2010) | 7 lines Cleanup error/warning messages in AEL2 parser
	  (closes issue #16684) Reported by: Silmaril Patches:
	  patch_ael2_logmsg.diff uploaded by Silmaril (license 979)
	  ........

2010-06-02 17:13 +0000 [r266926-267008]  Richard Mudgett <rmudgett@digium.com>

	* main/manager.c, configure, include/asterisk/autoconfig.h.in,
	  configure.ac, configs/manager.conf.sample, CHANGES,
	  channels/sig_pri.c, include/asterisk/manager.h: Add ETSI Advice
	  Of Charge (AOC) event reporting. This feature generates AMI
	  events in the new aoc event class from the events passed up by
	  libpri. Review: https://reviewboard.asterisk.org/r/537/

	* channels/sig_pri.h, channels/chan_dahdi.c,
	  configs/chan_dahdi.conf.sample, configure,
	  include/asterisk/autoconfig.h.in, configure.ac, CHANGES,
	  channels/sig_pri.c: Add ETSI Explicit Call Transfer (ECT)
	  support. Added ability to send and receive ETSI Explicit Call
	  Transfer (ECT) messages to eliminate tromboned calls. Note:
	  Asterisk already supported initiating the transfer of calls to
	  eliminate tromboned calls to libpri so there was nothing to do
	  for the asterisk portion. Review:
	  https://reviewboard.asterisk.org/r/520/

2010-06-02 13:32 +0000 [r266877]  Paul Belanger <paul.belanger@polybeacon.com>

	* main/bridging.c: pthread_join to assure the thread is really gone
	  (closes issue #15465) Reported by: fnordian Patches:
	  bridging.patch uploaded by fnordian (license 110) Tested by:
	  lmadsen, fnordian, peterh Review:
	  https://reviewboard.asterisk.org/r/679/

2010-06-01 22:14 +0000 [r266832]  Terry Wilson <twilson@digium.com>

	* res/res_calendar_exchange.c: Use the correct ical.h file

2010-06-01 21:28 +0000 [r266828]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, tests/test_locale.c
	  (added), configure.ac, configs/voicemail.conf.sample,
	  include/asterisk/localtime.h, main/stdtime/localtime.c, CHANGES,
	  apps/app_voicemail.c: Support setting locale per-mailbox (changes
	  date/time languages for email, pager messages). (closes issue
	  #14333) Reported by: klaus3000 Patches:
	  20090515__issue14333.diff.txt uploaded by tilghman (license 14)
	  app_voicemail.c-svn-trunk-rev211675-patch.txt uploaded by
	  klaus3000 (license 65) Tested by: klaus3000

2010-06-01 21:12 +0000 [r266786]  Terry Wilson <twilson@digium.com>

	* apps/app_dial.c, UPGRADE.txt: Set app and appdata fields when a
	  Dial is redirected (closes issue #17204) Reported by: one47
	  Tested by: twilson, one47

2010-06-01 18:02 +0000 [r266592-266735]  Tilghman Lesher <tlesher@digium.com>

	* res/res_smdi.c: Don't register functions until the last possible
	  point, so they're not unloaded unnecessarily. (closes issue
	  #15996) Reported by: junky Patches: sdmi_wait.diff uploaded by
	  junky (license 177)

	* main/manager.c: Eliminate stale manager events after a set
	  interval, even if AMI clients don't query for them. Actions (or
	  failures to act) by external clients should not cause memory
	  leaks in Asterisk, especially when those continued leaks could
	  cause Asterisk to misbehave later. (closes issue #17234) Reported
	  by: mav3rick Patches: 20100510__issue17234.diff.txt uploaded by
	  tilghman (license 14) 20100517__issue17234__trunk.diff.txt
	  uploaded by tilghman (license 14) Tested by: mav3rick, davidw
	  (closes issue #17365) Reported by: davidw

	* /, main/asterisk.c: Merged revisions 266585 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r266585 | tilghman | 2010-06-01 10:17:46 -0500 (Tue, 01 Jun 2010)
	  | 11 lines Prevent CLI prompt from distorting output of lines
	  shorter than the prompt. Uses the VT100 method of clearing the
	  line from the cursor position to the end of the line: Esc-0K
	  (closes issue #17160) Reported by: coolmig Patches:
	  20100531__issue17160.diff.txt uploaded by tilghman (license 14)
	  Tested by: coolmig ........

2010-05-30 20:18 +0000 [r266438-266522]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_env.c: Needs to be wrapped in <para>

	* contrib/init.d/rc.debian.asterisk, /: Merged revisions 266437 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r266437 | tilghman | 2010-05-29 23:43:28 -0500 (Sat, 29 May 2010)
	  | 2 lines Reverting patch and reopening issue #16784, as patch
	  breaks color display. ........

2010-05-28 22:54 +0000 [r266386]  Terry Wilson <twilson@digium.com>

	* res/res_calendar_icalendar.c, configure, configure.ac,
	  res/res_calendar_caldav.c: Fix ical library handling (again)
	  Newer versions of libical (which we require) store the header
	  file in a libical/ subfolder and include an ical.h file that does
	  a #warning for deprecation and then #includes <libical/ical.h>.
	  Since we now test for libical/ical.h, we can change the #includes
	  back to <libical/ical.h> and remove the test which specifically
	  adds /usr/include/libical as an include directory.

2010-05-28 22:50 +0000 [r266337-266385]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_env.c, UPGRADE.txt, main/asterisk.c: Setup environment
	  variables for the benefit of child processes and disallow
	  changing them. (closes issue #14899) Reported by: jmls Patches:
	  20090916__issue14899.diff.txt uploaded by tilghman (license 14)
	  Tested by: jmls

	* main/asterisk.c: Only report swap on platforms which can examine
	  those statistics

2010-05-28 17:55 +0000 [r266292]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes crash when creation of UDPTL fails
	  (closes issue #17264) Reported by: falves11 Patches:
	  issue_17264_reviewboard_fix.diff uploaded by dvossel (license
	  671) issue_17264_1.6.2_reviewboard_fix.diff uploaded by dvossel
	  (license 671) Tested by: falves11

2010-05-28 17:34 +0000 [r266289]  Terry Wilson <twilson@digium.com>

	* configure, configure.ac, makeopts.in: More build fixes for
	  ical/neon and res_calendar_ews

2010-05-27 20:08 +0000 [r266240]  Jeff Peeler <jpeeler@digium.com>

	* pbx/pbx_realtime.c: fix compile error

2010-05-27 19:25 +0000 [r266146-266238]  Tilghman Lesher <tlesher@digium.com>

	* pbx/pbx_realtime.c, CHANGES: Cache query results for one second.
	  Queries from the PBX core come in 3's. Caching avoids the
	  additional performance penalty from those two additional queries
	  hitting the database. (closes issue #16521) Reported by: tilghman
	  Patches: 20091229__issue16521.diff.txt uploaded by tilghman
	  (license 14) Tested by: Hubguru, tilghman

	* /, main/logger.c, utils/extconf.c, main/asterisk.c: Merged
	  revisions 266142 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r266142 | tilghman | 2010-05-26 16:11:44 -0500 (Wed, 26 May 2010)
	  | 14 lines Use sigaction for signals which should persist past
	  the initial trigger, not signal. If you call signal() in a
	  Solaris signal handler, instead of just resetting the signal
	  handler, it causes the signal to refire, because the signal is
	  not marked as handled prior to the signal handler being called.
	  This effectively causes Solaris to immediately exceed the
	  threadstack in recursive signal handlers and crash. (closes issue
	  #17000) Reported by: rmcgilvr Patches:
	  20100526__issue17000.diff.txt uploaded by tilghman (license 14)
	  Tested by: rmcgilvr ........

2010-05-26 20:17 +0000 [r266092-266098]  Mark Michelson <mmichelson@digium.com>

	* apps/app_dial.c: Remove redundant ast_conntected_line_free call.
	  This wouldn't cause any problems, but it's certainly not needed
	  either.

	* res/res_musiconhold.c: Remove unrelated MOH change from previous
	  commit. Thanks Kevin!

	* main/channel.c, res/res_musiconhold.c: Fix misspelling of macro
	  args.

2010-05-26 19:46 +0000 [r266006-266090]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, main/app.c, channels/sip/config_parser.c,
	  channels/sip/include/sip.h: do all sip registry parsing before
	  transmit_register This patch breaks up every part of the sip
	  registry string during config parsing and removes all parsing
	  from transmit_register(). Thanks to Nick_Lewis for contributing
	  this patch! (closes issue #14331) Reported by: Nick_Lewis
	  Patches: chan_sip.c-domparse.patch uploaded by Nick Lewis
	  (license 657) chan_sip.c.patch uploaded by Nick Lewis (license
	  657) chan_sip.c.domainparse3.patch uploaded by Nick Lewis
	  (license 657) chan_sip.c-domparse4.patch uploaded by Nick Lewis
	  (license 657) chan_sip.c-domparse5.patch uploaded by Nick Lewis
	  (license 657) nicklewispatch.diff uploaded by dvossel (license
	  671) Tested by: Nick_Lewis, dvossel Review:
	  https://reviewboard.asterisk.org/r/628/

	* channels/chan_sip.c: fixes failed SIP Directed pickup resulting
	  in dead channel (closes issue #17339) Reported by: one47 Patches:
	  sip_magic_pickup2 uploaded by one47 (license 23) Tested by:
	  one47, dvossel

2010-05-26 16:23 +0000 [r265894-265923]  Tilghman Lesher <tlesher@digium.com>

	* res/res_config_pgsql.c, /: Merged revisions 265910 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r265910 | tilghman | 2010-05-26 11:21:00 -0500 (Wed, 26
	  May 2010) | 7 lines Not finding rows in the DB does not rise to
	  the level of a warning. (closes issue #17062) Reported by:
	  drookie Patches: 20100525__issue17062.diff.txt uploaded by
	  tilghman (license 14) ........

	* res/res_config_pgsql.c, configs/res_pgsql.conf.sample: Construct
	  socket name, according to the Postgres docs, and document as
	  such. (closes issue #17392) Reported by: dps Patches:
	  20100525__issue17392.diff.txt uploaded by tilghman (license 14)
	  Tested by: dps

2010-05-26 14:45 +0000 [r265842-265844]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: .......

	* channels/chan_sip.c: Re-enable "always" option for videosupport
	  option in sip.conf. (closes issue #17016) Reported by: twilson
	  Patches: 17016.patch uploaded by mmichelson (license 60) Tested
	  by: devmod

2010-05-26 05:33 +0000 [r265793]  Terry Wilson <twilson@digium.com>

	* build_tools/menuselect-deps.in, configure,
	  include/asterisk/autoconfig.h.in, configure.ac,
	  res/res_calendar_ews.c: Ensure that libneon > 0.29.0 is installed
	  for res_calendar_ews This uses a modified version of pabelanger's
	  patch that checks for NTLM support instead, which was added in
	  0.29.0 which is what is required for res_calendar_ews. (closes
	  issue #17391) Reported by: loloski Patches: issue17391.patch.v2
	  uploaded by pabelanger (license 224) Tested by: twilson

2010-05-26 00:29 +0000 [r265747]  Tilghman Lesher <tlesher@digium.com>

	* res/res_calendar_exchange.c, res/res_calendar_icalendar.c,
	  configure, include/asterisk/autoconfig.h.in, configure.ac,
	  pbx/pbx_lua.c, res/res_calendar_caldav.c, res/res_calendar_ews.c:
	  Use configure to determine the prefixes and include directories
	  properly. This ensures cross-platform compatibility, even among
	  Linux distributions, which don't always put headers in the same
	  place. (closes issue #17391) Reported by: loloski

2010-05-25 20:59 +0000 [r265698]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Properly use peer's outboundproxy for
	  outbound REGISTERs. The logic used in transmit_register to get
	  the outboundproxy for a peer was flawed since this value would be
	  overridden shortly afterwards when create_addr was called. In
	  addition, this also fixes some logic used when parsing users.conf
	  so that the peer name is placed in the internally-generated
	  register string so that an outboundproxy set in the Asterisk GUI
	  will be used for outbound REGISTERs.

2010-05-25 17:00 +0000 [r265611]  Matthew Nicholson <mnicholson@digium.com>

	* /, apps/app_queue.c: Merged revisions 265610 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r265610 | mnicholson | 2010-05-25 11:48:19 -0500 (Tue, 25 May
	  2010) | 8 lines Don't mark the cdr records of unanswered queue
	  calls with "NOANSWER". This restores the behavior prior to
	  r258670. (closes issue #17334) Reported by: jvandal Patches:
	  queue-cdr-fixes1.diff uploaded by mnicholson (license 96) Tested
	  by: aragon, jvandal ........

2010-05-25 16:23 +0000 [r265608]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c: Memory leak in connected line data when SIP blond
	  transfer done. The handling of the control subclass
	  AST_CONTROL_READ_ACTION frame leaked connected line string memory
	  in __ast_read(). Also in __ast_read() the frame type switch
	  should not have had a case for AST_CONTROL_READ_ACTION.
	  AST_CONTROL_READ_ACTION is not a frame type.

2010-05-25 08:31 +0000 [r265525]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* addons/ooh323c/src/oochannels.c: Typos: 'succesful' (lintian)

2010-05-24 22:21 +0000 [r265467]  Terry Wilson <twilson@digium.com>

	* doc/manager_1_1.txt, main/manager.c, main/asterisk.c: Merge the
	  rest of the FullyBooted patch

2010-05-24 22:16 +0000 [r265449-265453]  Mark Michelson <mmichelson@digium.com>

	* apps/app_senddtmf.c: Allow SendDTMF to play digits to a specified
	  channel. Patch supplied by reporter was modified to use
	  autoservice and prevent a potential channel ref leak but is
	  otherwise as the reporter uploaded it. (closes issue #17182)
	  Reported by: rcasas Patches: app_senddtmf.c.patch_trunk uploaded
	  by rcasas (license 641)

	* channels/h323/ast_h323.cxx: Print openh323 log to the Asterisk
	  console. (closes issue #17109) Reported by: under Patches:
	  logstream.diff uploaded by under (license 914)

	* channels/chan_sip.c: Allow type=user SIP endpoints to be loaded
	  properly from realtime. (closes issue #16021) Reported by:
	  Guggemand Patches: realtime-type-fix.patch uploaded by Guggemand
	  (license 897) (altered by me slightly to avoid ref leaks) Tested
	  by: Guggemand

2010-05-24 20:08 +0000 [r265367]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_rpt.c: Make app_rpt.c able to compile again.

2010-05-24 19:42 +0000 [r265366]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: reverses incorrect logic introduced by
	  r243200 The decoding of the replace_id did not need to be broken
	  up in this instance. This was brought to my attention again
	  because it caused a segfault when the from or to tags were not
	  present in the "Replaces" header.

2010-05-24 19:06 +0000 [r265317-265320]  Terry Wilson <twilson@digium.com>

	* doc/tex/manager.tex: Add the FullyBooted AMI event It is possible
	  to connect to the manager interface before all Asterisk modules
	  are loaded. To ensure that an application does not send AMI
	  actions that might require a module that has not yet loaded, the
	  application can listen for the FullyBooted manager event. It will
	  be sent upon connection if all modules have been loaded, or as
	  soon as loading is complete. The event: Event: FullyBooted
	  Privilege: system,all Status: Fully Booted Review:
	  https://reviewboard.asterisk.org/r/639/

	* CREDITS, configs/calendar.conf.sample, CHANGES,
	  res/res_calendar_ews.c (added), res/res_calendar.c: Calendaring
	  support for Exchange Server 2007+ via EWS This commit adds
	  support for calendaring with Exchange Server 2007+ via Exchange
	  Web Services. Full write support and for querying attendees. Many
	  thanks to Jan Kaláb for the feature. (closes issue #17022)
	  Reported by: pitel Patches: res_calendar_ews.c uploaded by pitel
	  (license 1008) Tested by: pitel, twilson Review:
	  https://reviewboard.asterisk.org/r/557/ Review:
	  https://reviewboard.asterisk.org/r/668/

2010-05-24 18:19 +0000 [r265316]  Tilghman Lesher <tlesher@digium.com>

	* main/asterisk.c: On systems with a LOT of RAM, a signed integer
	  sometimes printed negative. (closes issue #16837) Reported by:
	  jlpedrosa Patches: 20100504__issue16837.diff.txt uploaded by
	  tilghman (license 14)

2010-05-24 16:10 +0000 [r265273]  David Vossel <dvossel@digium.com>

	* main/channel.c: fixes segfault when using generic plc

2010-05-23 18:23 +0000 [r265227]  Alexandr Anikin <may@telecom-service.ru>

	* addons/chan_ooh323.c: small changes to avoiding 'freeing unused
	  memory...'

2010-05-21 22:46 +0000 [r265174]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c: Channel initialization failure causes crashes.
	  __ast_channel_alloc_ap() has several points in the initialization
	  of a new channel structure where it could fail. Since the channel
	  structure is now an ao2 object, the destructor callback needs to
	  be able to handle clean up when the structure setup is
	  incomplete. Problems corrected: 1) Failing to setup the alertpipe
	  would not unreference the structure but free it directly. Doing
	  this to an ao2_object is very bad. 2) File descriptors need to be
	  initialized to -1 before a construction failure could occur so
	  the destructor will not close unopened descriptors. 3) The
	  destructor needs to check that the string field has been
	  initialized before using any string field values. Crashes
	  expected. 4) The destructor should not notify devstate if the
	  device name is empty. It is a waste of cycles and a couple ERROR
	  log messages are generated. Review:
	  https://reviewboard.asterisk.org/r/675/

2010-05-21 21:08 +0000 [r264953-265090]  Mark Michelson <mmichelson@digium.com>

	* include/asterisk/file.h, /, apps/app_queue.c: Merged revisions
	  265089 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r265089 | mmichelson | 2010-05-21 15:59:14 -0500 (Fri, 21 May
	  2010) | 8 lines Don't hang up on a queue caller if the file we
	  attempt to play does not exist. This also fixes a documentation
	  mistake in file.h that made my original attempt to correct this
	  problem not work correctly. (closes issue #17061) Reported by:
	  RoadKill ........

	* channels/chan_sip.c: Be sure to set the sin_family on the proxy
	  when allocating. (closes issue #17157) Reported by: stuarth

	* /, include/asterisk/channel.h: Merged revisions 264999 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r264999 | mmichelson | 2010-05-21 11:53:53 -0500 (Fri, 21 May
	  2010) | 3 lines Fix grammatical error in comment. ........

	* main/channel.c, main/autoservice.c, /,
	  include/asterisk/channel.h: Merged revisions 264996 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r264996 | mmichelson | 2010-05-21 11:28:34 -0500 (Fri,
	  21 May 2010) | 32 lines Allow ast_safe_sleep to defer specific
	  frames until after the sleep has concluded. From reviewboard
	  Background: A Digium customer discovered a somewhat odd bug. The
	  setup is that parties A and B are bridged, and party A places
	  party B on hold. While party B is listening to hold music, he
	  mashes a bunch of DTMF. Party A takes party B off hold while this
	  is happening, but party B continues to hear hold music. I could
	  reproduce this about 1 in 5 times. The issue: When DTMF features
	  are enabled and a user presses keys, the channel that the DTMF is
	  streamed to is placed in an ast_safe_sleep for 100 ms, the
	  duration of the emulated tone. If an AST_CONTROL_UNHOLD frame is
	  read from the channel during the sleep, the frame is dropped.
	  Thus the unhold indication is never made to the channel that was
	  originally placed on hold. The fix: Originally, I discussed with
	  Kevin possible ways of fixing the specific problem reported.
	  However, we determined that the same type of problem could happen
	  in other situations where ast_safe_sleep() is used. Using
	  autoservice as a model, I modified ast_safe_sleep_conditional()
	  to defer specific frame types so they can be re-queued once the
	  sleep has finished. I made a common function for determining if a
	  frame should be deferred so that there are not two identical
	  switch blocks to maintain. Review:
	  https://reviewboard.asterisk.org/r/674/ ........

	* res/res_fax.c, include/asterisk/res_fax.h,
	  res/res_fax.exports.in, res/res_fax_spandsp.c: Log spandsp's fax
	  debug output to the FAX logger level. Review:
	  https://reviewboard.asterisk.org/r/658

2010-05-21 01:00 +0000 [r264905]  Terry Wilson <twilson@digium.com>

	* channels/chan_sip.c: Take dup'd code for directmedia ACLs and
	  make utility func The same code was repeated in lots of different
	  places, so I made a utility fuction for it. This should make the
	  merge in the v6-new branch easier.

2010-05-20 23:29 +0000 [r264828]  Richard Mudgett <rmudgett@digium.com>

	* /, main/callerid.c: Merged revisions 264820 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r264820 | rmudgett | 2010-05-20 18:23:21 -0500 (Thu, 20 May 2010)
	  | 6 lines ast_callerid_parse() had a path that left name
	  uninitialized. Several callers of ast_callerid_parse() do not
	  initialize the name parameter before calling thus there is the
	  potential to use an uninitialized pointer. ........

2010-05-20 22:23 +0000 [r264752-264779]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Let ExtensionState resolve dynamic hints. (closes
	  issue #16623) Reported by: tilghman Patches:
	  20100116__issue16623.diff.txt uploaded by tilghman (license 14)
	  Tested by: lmadsen

	* apps/app_stack.c: Error message fix. (closes issue #17356)
	  Reported by: kenner Patches: app_stack.c.diff uploaded by kenner
	  (license 1040)

2010-05-20 20:49 +0000 [r264669-264711]  Richard Mudgett <rmudgett@digium.com>

	* main/ccss.c: Avoid crash in generic CC agent init if caller name
	  or number is NULL.

	* apps/app_dial.c, apps/app_queue.c: Dial and queue connected line
	  update macro not always run when expected. The connected line
	  update macro would not get run if the connected line number
	  string was empty. The number could be empty if the connected line
	  update did not update a number but the name. It should be run if
	  there was an AST_CONTROL_CONNECTED_LINE frame received for
	  pending dials and queues. Renamed and added some more comments
	  for some confusing identifiers directly connected to the related
	  code. Also fixed a memory leak in app_queue. Review:
	  https://reviewboard.asterisk.org/r/669/

2010-05-20 17:54 +0000 [r264626]  Terry Wilson <twilson@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample, CHANGES,
	  channels/sip/include/sip.h: Add support for direct media ACLs
	  directmediapermit/directmediadeny support to restrict which peers
	  can do directmedia based on ip address. In some networks not all
	  phones are fully routed, i.e. not all phones can ping each other.
	  This patch adds a way to restrict directmedia for certain peers
	  between certain networks. (closes issue #16645) Reported by:
	  raarts Patches: directmediapermit.patch uploaded by raarts
	  (license 937) Tested by: raarts Review:
	  https://reviewboard.asterisk.org/r/467/

2010-05-20 15:30 +0000 [r264497-264540]  Kevin P. Fleming <kpfleming@digium.com>

	* addons/ooh323c/src/h323, addons/ooh323c/src: Ignore pre-processed
	  source files generated during DONT_OPTIMIZE dev-mode builds.

	* main/logger.c: Correct 'all logger levels' patch to work
	  properly. Nick Lewis pointed out that the patch as committed
	  wouldn't actually include dynamic logger levels, which was missed
	  by the other reviewers. Thanks!

2010-05-19 21:29 +0000 [r264452]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c, channels/chan_sip.c, include/asterisk/_private.h,
	  include/asterisk/options.h, main/asterisk.c, main/loader.c: Fix
	  transcode_via_sln option with SIP calls and improve PLC usage.
	  From reviewboard: The problem here is a bit complex, so try to
	  bear with me... It was noticed by a Digium customer that generic
	  PLC (as configured in codecs.conf) did not appear to actually be
	  having any sort of benefit when packet loss was introduced on an
	  RTP stream. I reproduced this issue myself by streaming a file
	  across an RTP stream and dropping approx. 5% of the RTP packets.
	  I saw no real difference between when PLC was enabled or disabled
	  when using wireshark to analyze the RTP streams. After analyzing
	  what was going on, it became clear that one of the problems faced
	  was that when running my tests, the translation paths were being
	  set up in such a way that PLC could not possibly work as
	  expected. To illustrate, if packets are lost on channel A's read
	  stream, then we expect that PLC will be applied to channel B's
	  write stream. The problem is that generic PLC can only be done
	  when there is a translation path that moves from some codec to
	  SLINEAR. When I would run my tests, I found that every single
	  time, read and write translation paths would be set up on channel
	  A instead of channel B. There appeared to be no real way to
	  predict which channel the translation paths would be set up on.
	  This is where Kevin swooped in to let me know about the
	  transcode_via_sln option in asterisk.conf. It is supposed to work
	  by placing a read translation path on both channels from the
	  channel's rawreadformat to SLINEAR. It also will place a write
	  translation path on both channels from SLINEAR to the channel's
	  rawwriteformat. Using this option allows one to predictably set
	  up translation paths on all channels. There are two problems with
	  this, though. First and foremost, the transcode_via_sln option
	  did not appear to be working properly when I was placing a SIP
	  call between two endpoints which did not share any common
	  formats. Second, even if this option were to work, for PLC to be
	  applied, there had to be a write translation path that would go
	  from some format to SLINEAR. It would not work properly if the
	  starting format of translation was SLINEAR. The one-line change
	  presented in this review request in chan_sip.c fixed the first
	  issue for me. The problem was that in sip_request_call, the
	  jointcapability of the outbound channel was being set to the
	  format passed to sip_request_call. This is nativeformats of the
	  inbound channel. Because of this, when
	  ast_channel_make_compatible was called by app_dial, both channels
	  already had compatibly read and write formats. Thus, no
	  translation path was set up at the time. My change is to set the
	  jointcapability of the sip_pvt created during sip_request_call to
	  the intersection of the inbound channel's nativeformats and the
	  configured peer capability that we determined during the earlier
	  call to create_addr. Doing this got the translation paths set up
	  as expected when using transcode_via_sln. The changes presented
	  in channel.c fixed the second issue for me. First and foremost,
	  when Asterisk is started, we'll read codecs.conf to see the value
	  of the genericplc option. If this option is set, and ast_write is
	  called for a frame with no data, then we will attempt to fill in
	  the missing samples for the frame. The implementation uses a
	  channel datastore for maintaining the PLC state and for creating
	  a buffer to store PLC samples in. Even when we receive a frame
	  with data, we'll call plc_rx so that the PLC state will have
	  knowledge of the previous voice frame, which it can use as a
	  basis for when it comes time to actually do a PLC fill-in. So,
	  reviewers, now I ask for your help. First off, there's the one
	  line change in chan_sip that I have put in. Is it right? By my
	  logic it seems correct, but I'm sure someone can tell me why it
	  is not going to work. This is probably the change I'm least
	  concerned about, though. What concerns me much more is the set of
	  changes in channel.c. First off, am I even doing it right? When I
	  run tests, I can clearly see that when PLC is activated, I see a
	  significant increase in RTP traffic where I would expect it to
	  be. However, in my humble opinion, the audio sounds kind of
	  crappy whenever the PLC fill-in is done. It sounds worse to me
	  than when no PLC is used at all. I need someone to review the
	  logic I have used to be sure that I'm not misusing anything. As
	  far as I can see my pointer arithmetic is correct, and my use of
	  AST_FRIENDLY_OFFSET should be correct as well, but I'm sure
	  someone can point out somewhere where I've done something
	  incorrectly. As I was writing this review request up, I decided
	  to give the code a test run under valgrind, and I find that for
	  some reason, calls to plc_rx are causing some invalid reads.
	  Apparently I'm reading past the end of a buffer somehow. I'll
	  have to dig around a bit to see why that is the case. If it's
	  obvious to someone reviewing, speak up! Finally, I have one other
	  proposal that is not reflected in my code review. Since without
	  transcode_via_sln set, one cannot predict or control where a
	  translation path will be up, it seems to me that the current
	  practice of using PLC only when transcoding to SLINEAR is not
	  useful. I recommend that once it has been determined that the
	  method used in this code review is correct and works as expected,
	  then the code in translate.c that invokes PLC should be removed.
	  Review: https://reviewboard.asterisk.org/r/622/

2010-05-19 20:30 +0000 [r264400]  David Vossel <dvossel@digium.com>

	* main/udptl.c: fixes infinite loop during udptl.c's
	  decode_open_type When decode_length returns the length there is a
	  check to see if that length is negative, if so the decode loop
	  breaks as this means the limit has been reached. The problem here
	  is that length is an unsigned int, so length can never be
	  negative. This resulted in an infinite loop. (issue #17352)

2010-05-19 20:26 +0000 [r264335-264379]  Matthew Nicholson <mnicholson@digium.com>

	* main/udptl.c: Cast an unsigned int to a signed int when comparing
	  it with 0. (AST-377)

	* /, apps/app_speech_utils.c: Merged revisions 264334 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r264334 | mnicholson | 2010-05-19 15:01:38 -0500 (Wed,
	  19 May 2010) | 5 lines Set quieted flag when receiving a dtmf
	  tone during playback in speechbackground. (closes issue #16966)
	  Reported by: asackheim ........

2010-05-19 19:21 +0000 [r264331]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes crash in check_rtp_timeout During
	  deadlock avoidance the sip dialog pvt is locked and unlocked.
	  When this occurs we have no guarantee the pvt's owner is still
	  valid. We were trying to access the pvt's owner after this
	  without checking to see if it still existed first. (closes issue
	  #17271) Reported by: under Patches: check_rtp_timeout.diff
	  uploaded by under (license 914) Tested by: dvossel

2010-05-19 17:48 +0000 [r264204-264249]  Tilghman Lesher <tlesher@digium.com>

	* /, configure, include/asterisk/autoconfig.h.in, configure.ac,
	  include/asterisk/options.h: Merged revisions 264248 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r264248 | tilghman | 2010-05-19 12:41:29 -0500 (Wed, 19
	  May 2010) | 17 lines Internal timing is now on by default, if
	  you're using DAHDI 2.3 or above. The reason for ensuring DAHDI
	  2.3 or above is that this version ensures that a timer is always
	  available, whereas in previous versions, it was possible for
	  DAHDI to be loaded, but have no drivers to actually generate
	  timing. If internal_timing was turned on in this circumstance, a
	  complete lack of audio would result. This is the reason why
	  internal_timing was not on by default. However, now that DAHDI
	  ensures the availability of a timer, there is no reason for this
	  setting to be off (and in fact, it solves a great many initial
	  user problems). (closes issue #15932) Reported by: dimas Patches:
	  20100519__issue15932.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman ........

	* main/dsp.c: Keep track of digit duration, when we're decoding
	  inband to pass DTMF frames. (closes issue #17235) Reported by:
	  frawd Patches: new_dtmf_dsp_len.patch uploaded by frawd (license
	  610) 20100518__issue17235.diff.txt uploaded by tilghman (license
	  14) Tested by: frawd

2010-05-19 15:39 +0000 [r264161]  Leif Madsen <lmadsen@digium.com>

	* main/cli.c: Fix compilation problem with previous commit. (issue
	  #16009)

2010-05-19 15:29 +0000 [r264160]  Kevin P. Fleming <kpfleming@digium.com>

	* main/logger.c, configs/logger.conf.sample: Add ability for logger
	  channels to include *all* levels. Now that Asterisk modules can
	  dynamically create and destroy logger levels on demand, it's
	  useful to be able to configure a logger channel (console, file,
	  whatever) to be able to accept log messages from *all* levels,
	  even levels created dynamically. This patch adds support for
	  this, by allowing the '*' level name to be used in logger.conf.
	  Review: https://reviewboard.asterisk.org/r/663/

2010-05-19 15:12 +0000 [r264117]  Leif Madsen <lmadsen@digium.com>

	* CHANGES, main/cli.c: Add ability to hangup all channels from the
	  CLI. Added the keyword 'all' to the 'channel hangup request' CLI
	  command so that you can request all channels to be hungup without
	  having to restart Asterisk. (closes issue #16009) Reported by:
	  moy Patches: hangup-all-rev-221688.patch uploaded by moy (license
	  222) Tested by: moy, russell

2010-05-19 14:38 +0000 [r264114]  David Vossel <dvossel@digium.com>

	* res/res_rtp_asterisk.c: fixes crash during dtmf During the
	  processing of Cisco dtmf the dtmf samples were not being
	  calculated correctly. In an attempt to determine what sample rate
	  was being used, a NULL frame was processed which caused a crash.
	  This patch resolves this. (closes issue #17248) Reported by:
	  falves11 Patches: issue_17248.diff uploaded by dvossel (license
	  671)

2010-05-19 08:09 +0000 [r264031]  Alec L Davis <sivad.a@paradise.net.nz>

	* configs/indications.conf.sample: fix incorrectly typed
	  indications for [nz] stutter and dialrecall (closes issue #17359)
	  Reported by: alecdavis Patches: bug17359.diff.txt uploaded by
	  alecdavis (license 585)

2010-05-19 06:41 +0000 [r263905-263950]  Tilghman Lesher <tlesher@digium.com>

	* /, main/dsp.c: Merged revisions 263949 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r263949 | tilghman | 2010-05-19 01:32:27 -0500 (Wed, 19 May 2010)
	  | 8 lines Because progress is called multiple times, across
	  several frames, we must persist states when detecting multitone
	  sequences. (closes issue #16749) Reported by: dant Patches:
	  dsp.c-bug16749-1.patch uploaded by dant (license 670) Tested by:
	  dant ........

	* configure, configure.ac, build_tools/sha1sum-sh (added),
	  makeopts.in, sounds/Makefile: Add an sha1sum-workalike for
	  platforms which don't have it (like Mac OS X)

2010-05-18 22:48 +0000 [r263904]  David Vossel <dvossel@digium.com>

	* main/strings.c: fixes segfault on logging (closes issue #17331)
	  Reported by: under Patches: utils.diff uploaded by under (license
	  914) segfault_on_logging.diff uploaded by dvossel (license 671)
	  Tested by: under, dvossel

2010-05-18 21:09 +0000 [r263860]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Be sure to heap-allocate the redirecting to
	  tag so as not to cause crashiness.

2010-05-18 20:49 +0000 [r263858]  Tilghman Lesher <tlesher@digium.com>

	* res/res_timing_kqueue.c: Make happy green color come back

2010-05-18 20:09 +0000 [r263810]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix memory leaks in redirecting structures
	  in chan_sip.c Thanks to Richard for pointing this out.

2010-05-18 19:30 +0000 [r263807-263808]  Jeff Peeler <jpeeler@digium.com>

	* CHANGES: put changes with the correct version

	* /, CHANGES, apps/app_directory.c: Merged revisions 263769 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r263769 | jpeeler | 2010-05-18 13:54:58 -0500 (Tue, 18 May 2010)
	  | 10 lines Modify directory name reading to be interrupted with
	  operator or pound escape. In the case of accidentally entering
	  the wrong first three letters for the reading, users could be
	  very frustrated if the name listing is very long. This allows
	  interrupting the reading by pressing 0 or #. 0 will attempt to
	  execute a configured operator (o) extension and # will exit and
	  proceed in the dialplan. ABE-2200 ........

2010-05-17 23:49 +0000 [r263724]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  makeopts.in, sounds/Makefile, autoconf/ast_ext_lib.m4: Cache
	  sound tarfiles in a common directory, such that a clean reinstall
	  does not force a re-download of the tarballs. (closes issue
	  #15370) Reported by: pprindeville Patches:
	  asterisk-trunk-bugid15370.patch uploaded by pprindeville (license
	  347) Tested by: pprindeville, tilghman, seanbright

2010-05-17 22:08 +0000 [r263640]  Mark Michelson <mmichelson@digium.com>

	* /, main/devicestate.c: Merged revisions 263639 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r263639 | mmichelson | 2010-05-17 17:00:28 -0500 (Mon, 17 May
	  2010) | 10 lines Fix logic error when checking for a devstate
	  provider. When using strsep, if one of the list of specified
	  separators is not found, it is the first parameter to strsep
	  which is now NULL, not the pointer returned by strsep. This issue
	  isn't especially severe in that the worst it is likely to do is
	  waste some cycles when a device with no '/' and no ':' is passed
	  to ast_device_state. ........

2010-05-17 19:31 +0000 [r263589]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: With IMAP backend, messages in INBOX were
	  counted twice for MWI. (closes issue #17135) Reported by:
	  edhorton Patches: 20100513__issue17135.diff.txt uploaded by
	  tilghman (license 14) 17135_2.diff uploaded by ebroad (license
	  878) Tested by: edhorton, ebroad

2010-05-17 15:36 +0000 [r263541]  Mark Michelson <mmichelson@digium.com>

	* apps/app_dial.c, channels/chan_local.c, main/rtp_engine.c,
	  channels/chan_sip.c, include/asterisk/channel.h,
	  configs/misdn.conf.sample, apps/app_queue.c,
	  funcs/func_redirecting.c, channels/misdn_config.c,
	  main/channel.c, main/dial.c, channels/chan_dahdi.c,
	  channels/misdn/isdn_lib.h, channels/chan_misdn.c,
	  channels/misdn/chan_misdn_config.h, main/features.c,
	  funcs/func_connectedline.c, include/asterisk/frame.h,
	  funcs/func_callerid.c, channels/sip/include/sip.h: Enhancements
	  to connected line and redirecting work. From reviewboard: Digium
	  has a commercial customer who has made extensive use of the
	  connected party and redirecting information present in later
	  versions of Asterisk Business Edition and which is to be in the
	  upcoming 1.8 release. Through their use of the feature, new
	  problems and solutions have come about. This patch adds several
	  enhancements to maximize usage of the connected party and
	  redirecting information functionality. First, Asterisk trunk
	  already had connected line interception macros. These macros
	  allow you to manipulate connected line information before it was
	  sent out to its target. This patch adds the same feature except
	  for redirecting information instead. Second, the ast_callerid and
	  ast_party_id structures have been enhanced to provide a "tag."
	  This tag can be set with func_callerid, func_connectedline,
	  func_redirecting, and in the case of DAHDI, mISDN, and SIP
	  channels, can be set in a configuration file. The idea behind the
	  callerid tag is that it can be set to whatever value the
	  administrator likes. Later, when running connected line and
	  redirecting macros, the admin can read the tag off the
	  appropriate structure to determine what action to take. You can
	  think of this sort of like a channel variable, except that
	  instead of having the variable associated with a channel, the
	  variable is associated with a specific identity within Asterisk.
	  Third, app_dial has two new options, s and u. The s option lets a
	  dialplan writer force a specific caller ID tag to be placed on
	  the outgoing channel. The u option allows the dialplan writer to
	  force a specific calling presentation value on the outgoing
	  channel. Fourth, there is a new control frame subclass called
	  AST_CONTROL_READ_ACTION added. This was added to correct a very
	  specific situation. In the case of SIP semi-attended (blond)
	  transfers, the party being transferred would not have the
	  opportunity to run a connected line interception macro to
	  possibly alter the transfer target's connected line information.
	  The issue here was that during a blond transfer, the SIP transfer
	  code has no bridged channel on which to queue the connected line
	  update. The way this was corrected was to add this new control
	  frame subclass. Now, we queue an AST_CONTROL_READ_ACTION frame on
	  the channel on which the connected line interception macro should
	  be run. When ast_read is called to read the frame, ast_read
	  responds by calling a callback function associated with the
	  specific read action the control frame describes. In this case,
	  the action taken is to run the connected line interception macro
	  on the transferee's channel. Review:
	  https://reviewboard.asterisk.org/r/652/

2010-05-17 15:14 +0000 [r263375-263460]  Leif Madsen <lmadsen@digium.com>

	* main/manager.c: Missing newlines added to Set-Cookie line in
	  manager.c Sean Bright pointed out that we lost a set of newline
	  characters in commit 190349 on a line I had recently changed. Yay
	  for code review on commits. (issue #17231, #10961)

	* main/manager.c, /: Recorded merge of revisions 263456 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r263456 | lmadsen | 2010-05-17 09:35:18 -0500 (Mon, 17 May 2010)
	  | 11 lines Manager cookies are not compatible with RFC2109. The
	  Version field in the cookies we're setting contain quotes around
	  the version number which is not compatible with RFC2109 and
	  breaks some implementations. (closes issue #17231) Reported by:
	  ecarruda Patches: manager_rfc2109-trunk-v1.patch uploaded by
	  ecarruda (license 559) manager_rfc2109-1.6.2-v1.patch uploaded by
	  ecarruda (license 559) Tested by: ecarruda, russell ........

	* /, sounds/Makefile: Merged revisions 263374 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r263374 | lmadsen | 2010-05-17 09:04:57 -0500 (Mon, 17 May 2010)
	  | 8 lines Update link to new version of core sounds. The latest
	  version of the core sounds files 1.4.19 now includes the missing
	  queue-minute sound file which is called by app_queue but which
	  has been missing. (closes issue #17123) Reported by: n8ideas
	  ........

2010-05-17 13:05 +0000 [r263294]  David Vossel <dvossel@digium.com>

	* CHANGES: Update CHANGES to reflect DAHDI buffer dialstring option
	  backport to 1.6.2

2010-05-16 16:31 +0000 [r263250]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* contrib/scripts/live_ast: live_ast: add commands 'rsync' and
	  'gen-live-asterisk' This adds the following two commands to
	  live_ast: * rsync [user]@host directory Copy over all generated
	  files to <directory> at remote host. Would allow running live_ast
	  there. Hence allows separating a build machine from a test
	  machine. * gen-live-asteris: regenerate live/asterisk . Useful if
	  copying over files to a different directory.

2010-05-16 11:14 +0000 [r263208]  Kevin P. Fleming <kpfleming@digium.com>

	* main/astobj2.c: Improve some very confusing structure names in
	  astobj2.c As pointed out by 'akshayb' on #asterisk-dev, the code
	  here called a list of bucket entries a 'bucket', and the entries
	  within the bucket were called 'bucket_list'. This made the code
	  very hard to understand without reading all of it... so I've
	  renamed 'bucket_list' to 'bucket_entry' to clarify the purpose of
	  the structure.

2010-05-14 18:53 +0000 [r263151]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: fix iax_frame double free Very unfortunate
	  things happen if we add an iax_frame to the frame queue and let
	  go of the lock before scheduling the frame's transmit... There is
	  a race condition that exists where the frame can be removed from
	  the frame_queue and freed before the transmit is scheduled if we
	  do not hold on to that lock. This results in a freed frame being
	  scheduled for transmit later.

2010-05-13 22:01 +0000 [r263069]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Fix inverted logic in cli command: ss7 set
	  debug on/off

2010-05-13 20:25 +0000 [r263028]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* configure, configure.ac: Remove "untested" feature PRI_VERSION
	  Nobody seems to actually test PRI_VERSION. It is only useful for
	  failing PRI support in chan_dahdi.

2010-05-13 17:49 +0000 [r262940-262987]  Tilghman Lesher <tlesher@digium.com>

	* res/res_timing_kqueue.c: For FreeBSD

	* res/res_timing_kqueue.c: Hmmm, probably should have read the
	  manpage more thoroughly.

2010-05-13 15:36 +0000 [r262895-262897]  Russell Bryant <russell@digium.com>

	* channels/chan_console.c: Fix an off by one error that causes a
	  crash. Thanks to Raymond Burke for pointing it out.

	* main/stdtime/localtime.c: Fix build on linux.

	* pbx/pbx_spool.c: Fix build on linux.

2010-05-13 05:37 +0000 [r262852]  Tilghman Lesher <tlesher@digium.com>

	* Makefile, pbx/pbx_spool.c, tests/test_time.c,
	  build_tools/menuselect-deps.in, configure,
	  include/asterisk/autoconfig.h.in, configure.ac,
	  main/stdtime/localtime.c, res/res_timing_kqueue.c (added): Add
	  kqueue(2) implementation to Asterisk in various places. This will
	  save a considerable amount of CPU on the BSDs, including Mac OS
	  X, as it eliminates several places in the code that we previously
	  used a busy loop. Additionally, this adds a res_timing interface,
	  using kqueue timers. Review:
	  https://reviewboard.asterisk.org/r/543/

2010-05-12 19:59 +0000 [r262800]  Paul Belanger <paul.belanger@polybeacon.com>

	* main/loader.c, main/cli.c: Notify CLI when modules is loaded /
	  unloaded (closes issue #17308) Reported by: pabelanger Patches:
	  cli.modules.patch uploaded by pabelanger (license 224) Tested by:
	  pabelanger, russell

2010-05-12 19:53 +0000 [r262796-262798]  Leif Madsen <lmadsen@digium.com>

	* res/ael/pval.c: Revert previous WARNING message removal.
	  Marquis42 suggested a better method of doing what I wanted
	  because I ended up removing the WARNING message for all instances
	  when really I just wanted to remove it for the 'return' keyword,
	  not everything. (issue #17145)

	* res/ael/pval.c: Remove unnecessary WARNING message in ael/pval.c
	  (closes issue #17145) Reported by: okrief

2010-05-12 18:01 +0000 [r262744]  David Vossel <dvossel@digium.com>

	* /, apps/app_meetme.c: Merged revisions 262662 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r262662 | dvossel | 2010-05-12 12:00:04 -0500 (Wed, 12 May 2010)
	  | 11 lines fixes app_meetme dsp error We attempted to detect
	  silence after translating a frame from signed linear. This caused
	  a flooding of errors. To resolve this the code to detect silence
	  was moved before the translation. (closes issue #17133) Reported
	  by: jsdyer ........

2010-05-12 17:57 +0000 [r262661-262743]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Don't crash when destroying chan_dahdi
	  pseudo channels. Must do a deep copy of the cc_params in
	  duplicate_pseudo(). Otherwise, when the duplicate pseudo channel
	  is destroyed, it frees the original pseudo channel cc_params. The
	  original pseudo channel is then left with a dangling pointer for
	  when the next duplicated pseudo channel is created.

	* channels/chan_misdn.c: Merged revisions 262657,262660 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.3-bier
	  .......... r262660 | rmudgett | 2010-05-12 11:46:47 -0500 (Wed,
	  12 May 2010) | 4 lines Forgot some conditionals around the
	  callrerouting facility help text. JIRA ABE-2223 ..........
	  r262657 | rmudgett | 2010-05-12 11:26:49 -0500 (Wed, 12 May 2010)
	  | 22 lines Add mISDN Call rerouting facility for point-to-point
	  ISDN lines (exchange line) In the case of ISDN
	  point-to-multipoint (multidevice) you can use the mISDN "facility
	  calldeflect" application for call diversions from external (PSTN)
	  to external (PSTN). In that case this is the only way to get rid
	  of the two call legs to the PBX and let the calling number at the
	  C party become the number of the A party. In the case of ISDN
	  point-to-point (exchange line) the call deflection facility may
	  not be used. Instead a call rerouting facility has to be used.
	  This patch for chan_misdn.c is an extension to realize this
	  service (facility rerouting application). It can accept either
	  spelling: "callrerouting" or "callrerouteing". The patch is
	  tested towards Deutsche Telekom and requires a modified version
	  of mISDN from Digium, Inc. Patches:
	  misdn_rerouteing_corrected.patch (Slightly modified.) JIRA
	  ABE-2223

2010-05-12 16:23 +0000 [r262656]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_privacy.c: Ensure the arguments are initialized. Also
	  miscellaneous CG cleanup. (closes issue #16576) Reported by:
	  uxbod Patches: 20100505__issue16576.diff.txt uploaded by tilghman
	  (license 14) Tested by: uxbod

2010-05-12 01:00 +0000 [r262613]  Paul Belanger <paul.belanger@polybeacon.com>

	* channels/chan_sip.c, include/asterisk/cli.h: Convert to
	  AST_CLI_YESNO and AST_CLI_ONOFF Clean up chan_sip.c to use new
	  AST_CLI functions (closes issue #17287) Reported by: pabelanger
	  Patches: issue17287.patch uploaded by pabelanger (license 224)
	  Tested by: russell

2010-05-11 23:18 +0000 [r262569]  Richard Mudgett <rmudgett@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  channels/sig_pri.c: Dialing an invalid extension causes
	  incomplete hangup sequence. Revision -r1489 of the libpri 1.4
	  branch corrected a deviation from Q.931 Section 5.3.2. However,
	  this resulted in an unexpected behaviour change to the upper
	  layer (Asterisk). This change uses pri_hangup_fix_enable() to
	  follow Q.931 Section 5.3.2 call hangup better if the version of
	  libpri supports it. (issue #17104) Reported by: shawkris Tested
	  by: rmudgett

2010-05-11 21:25 +0000 [r262513]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/causes.h: Move cause 200 to cause 26, as
	  specified in Q.850. Also cleanup the formatting and add a few
	  more that seem like good candidates. (closes issue #16157)
	  Reported by: wimpy

2010-05-11 19:57 +0000 [r262422]  Jason Parker <jparker@digium.com>

	* /, res/Makefile: Merged revisions 262421 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r262421 | qwell | 2010-05-11 14:55:42 -0500 (Tue, 11 May 2010) |
	  11 lines Use a less silly method for modifying a flex-generated
	  file. The sed syntax that was used wasn't actually valid, causing
	  some versions to choke. This is the method that is used in 1.6.x+
	  for similar changes. (closes issue #16696) Reported by: bklang
	  Patches: 16696-sedfix.diff uploaded by qwell (license 4) Tested
	  by: qwell ........

2010-05-11 19:40 +0000 [r262414-262419]  Paul Belanger <paul.belanger@polybeacon.com>

	* pbx/pbx_config.c: Improve logging by displaying line number
	  (closes issue #16303) Reported by: dant Patches:
	  issue16303.patch.v2 uploaded by pabelanger (license 224) Tested
	  by: dant, lmadsen, pabelanger

	* channels/chan_sip.c: Improve logging information for
	  misconfigured contexts (closes issue #17238) Reported by:
	  pprindeville Patches: chan_sip-bug17238.patch uploaded by
	  pprindeville (license 347) Tested by: pprindeville

2010-05-11 17:23 +0000 [r262330]  Tilghman Lesher <tlesher@digium.com>

	* /, Makefile.rules, apps/app_voicemail.c: Merged revisions 262321
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r262321 | tilghman | 2010-05-11 12:22:07 -0500 (Tue, 11 May 2010)
	  | 2 lines Fix issue #17302 a slightly different way (mad props to
	  Qwell) ........

2010-05-11 16:43 +0000 [r262299]  Jason Parker <jparker@digium.com>

	* bootstrap.sh: Allow bootstrap script to work on Solaris. As
	  usual, the way they do things is different, so we need to account
	  for that. automake is versioned ala BSD/Linux, but autoconf is
	  not. We don't actually need to specify a version there, since
	  AC_PREREQ will cover it for us. Things will fail pretty loudly if
	  AC_PREREQ isn't met. (closes issue #16341) Reported by: bklang
	  Patches: opensolaris_bootstrap.sh uploaded by bklang (license
	  919)

2010-05-10 19:06 +0000 [r262236-262240]  David Vossel <dvossel@digium.com>

	* apps/app_directed_pickup.c: fixes PickupChan application (closes
	  issue #16863) Reported by: schern Patches:
	  app_directed_pickup.c.patch uploaded by schern (license 995)
	  for_trunk.diff uploaded by cjacobsen (license 1029) Tested by:
	  Graber, cjacobsen, lathama, rickead2000, dvossel

	* channels/chan_console.c: fixes crash in chan_console There is a
	  race condition between console_hangup() and start_stream(). It is
	  possible for console_hangup() to be called and then the stream
	  thread to begin after the hangup. To avoid this a check in
	  start_stream() to make sure the pvt-owner still exists while the
	  pvt lock is held is made. If the owner is gone that means the
	  channel hung up and start_stream should be aborted.

2010-05-10 16:36 +0000 [r262152]  Tilghman Lesher <tlesher@digium.com>

	* /, Makefile.rules: Merged revisions 262151 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r262151 | tilghman | 2010-05-10 11:34:21 -0500 (Mon, 10 May 2010)
	  | 10 lines Allow compilation on Mac OS X 10.4 (Tiger) (closes
	  issue #17297) Reported by: jcovert Patches:
	  20100506__issue17297.diff.txt uploaded by tilghman (license 14)
	  (closes issue #17302) Reported by: jcovert ........

2010-05-09 02:14 +0000 [r262048-262102]  Tilghman Lesher <tlesher@digium.com>

	* autoconf/ast_c_define_check.m4, configure,
	  include/asterisk/autoconfig.h.in, autoconf/ast_ext_lib.m4,
	  autoconf/ast_c_compile_check.m4: Cleanup a bit more by getting
	  rid of useless version defines. Also make library detection use
	  passed CFLAGS. (closes issue #17309) Reported by: stuarth

	* configure, configure.ac: Use CPPFLAGS to pass PTHREAD_CFLAGS for
	  vpb only

2010-05-07 23:54 +0000 [r262005]  Alec L Davis <sivad.a@paradise.net.nz>

	* UPGRADE.txt, apps/app_voicemail.c: VoicemailMain and
	  VMauthenticate, allow escape to the 'a' extension when a single
	  '*' is entered Where a site uses VoicemailMain(mailbox) the users
	  have to be at their own extension to clear their voicemail, they
	  have no way of escaping VoicemailMain to allow entry of new
	  boxnumber. This patch, allows a site to include to 'a' priority
	  in the VoicemailMain context, to allow an escape. If the 'a'
	  priority doesn't exist in the context that VoicemailMain was
	  called from then it acts as the old behaviour. Reported by:
	  alecdavis Tested by: alecdavis Patch vm_a_extension.diff2.txt
	  uploaded by alecdavis (license 585) Review:
	  https://reviewboard.asterisk.org/r/489/

2010-05-07 22:09 +0000 [r261913-261964]  Tilghman Lesher <tlesher@digium.com>

	* addons/ooh323c/src/ooh323.c: Fix build on Linux

	* funcs/func_odbc.c: Double free crash (closes issue #17245)
	  Reported by: thedavidfactor Patches:
	  20100426__issue17245.diff.txt uploaded by tilghman (license 14)
	  Tested by: murraytm

	* configure, include/asterisk/autoconfig.h.in, configure.ac: Use
	  the detected pthread building flags in every place, instead of
	  hardcoding -lpthread. We nicely detect the right flags on each
	  system for building Asterisk with pthreads, then ignore it for
	  every other build option that requires us to build with pthreads.
	  This caused some items to return a false negative. Also cleanup
	  some minor naming issues that caused "library library" redundancy
	  in the output. (closes issue #17303) Reported by: stuarth
	  Patches: 20100507__issue17303.diff.txt uploaded by tilghman
	  (license 14) Tested by: stuarth

2010-05-07 16:05 +0000 [r261867]  Leif Madsen <lmadsen@digium.com>

	* UPGRADE-1.6.txt: Update UPGRADE-1.6.txt stating insecure=very has
	  been removed. (closes issue #17282) Reported by: stuarth Tested
	  by: stuarth

2010-05-07 15:33 +0000 [r261866]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_pri.c: Fix deadlock in sig_pri when hanging up. The
	  pri_dchannel thread currently violates locking order by locking
	  the private and then attempting to queue a frame, which needs to
	  lock the channel. Queueing a frame is unneccesary though and is
	  actually a regression since sig_pri. All the places that
	  currently use ast_softhangup_nolock now will just set the
	  softhangup value directly as before. (closes issue #17216)
	  Reported by: lmsteffan Patches: bug17216.patch uploaded by
	  jpeeler (license 325)

2010-05-06 23:41 +0000 [r261822]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Some code optimizations. * Made more places
	  use pri_queue_control() instead of pri_queue_frame() and a local
	  frame variable. * Made pri_queue_frame() use
	  sig_pri_lock_owner(). pri_queue_frame() no longer releases the
	  libpri access lock unless it is required. * Made the
	  pri_queue_frame() and pri_queue_control() parameter list similar
	  to sig_pri_lock_owner().

2010-05-06 20:11 +0000 [r261736]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 261735 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r261735 | jpeeler | 2010-05-06 15:10:59 -0500 (Thu, 06
	  May 2010) | 8 lines Only allow the operator key to be accepted
	  after leaving a voicemail. Or rather disallow the operator key
	  from being accepted when not offered, such as after finishing a
	  recording from within the mailbox options menu. ABE-2121 SWP-1267
	  ........

2010-05-06 17:06 +0000 [r261609]  Jason Parker <jparker@digium.com>

	* /, sounds/Makefile: Merged revisions 261608 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r261608 | qwell | 2010-05-06 11:56:02 -0500 (Thu, 06 May 2010) |
	  4 lines Use the versioned MOH tarballs, now that we have them.
	  This makes for more reproducibility. Prompted by a discussion in
	  #asterisk-dev ........

2010-05-06 15:39 +0000 [r261560]  Tilghman Lesher <tlesher@digium.com>

	* channels/sip/include/sip.h: Permit more lines within a SIP body
	  to be parsed. The example given within the related issue showed
	  120 lines, which was mostly a result of the body being XML.
	  (closes issue #17179) Reported by: khw

2010-05-06 14:15 +0000 [r261496-261500]  Russell Bryant <russell@digium.com>

	* tests/test_heap.c: Add test case for removing random elements
	  from a heap. I modified the original patch for trunk to use the
	  unit test API. (issue #17277) Reported by: cappucinoking Patches:
	  test_heap.diff uploaded by cappucinoking (license 1036) Tested
	  by: cappucinoking, russell

	* main/heap.c: Fix handling of removing nodes from the middle of a
	  heap. This bug surfaced in 1.6.2 and does not affect code in any
	  other released version of Asterisk. It manifested itself as SIP
	  qualify not happening when it should, causing peers to go
	  unreachable. This was debugged down to scheduler entries
	  sometimes not getting executed when they were supposed to, which
	  was in turn caused by an error in the heap code. The problem only
	  sometimes occurs, and it is due to the logic for removing an
	  entry in the heap from an arbitrary location (not just popping
	  off the top). The scheduler performs this operation frequently
	  when entries are removed before they run (when ast_sched_del() is
	  used). In a normal pop off of the top of the heap, a node is
	  taken off the bottom, placed at the top, and then bubbled down
	  until the max heap property is restored (see max_heapify()). This
	  same logic was used for removing an arbitrary node from the
	  middle of the heap. Unfortunately, that logic is full of fail.
	  This patch fixes that by fully restoring the max heap property
	  when a node is thrown into the middle of the heap. Instead of
	  just pushing it down as appropriate, it first pushes it up as
	  high as it will go, and _then_ pushes it down. Lastly, fix a
	  minor problem in ast_heap_verify(), which is only used for
	  debugging. If a parent and child node have the same value, that
	  is not an error. The only error is if a parent's value is less
	  than its children. A huge thanks goes out to cappucinoking for
	  debugging this down to the scheduler, and then producing an
	  ast_heap test case that demonstrated the breakage. That made it
	  very easy for me to focus on the heap logic and produce a fix.
	  Open source projects are awesome. (closes issue #16936) Reported
	  by: ib2 Tested by: cappucinoking, crjw (closes issue #17277)
	  Reported by: cappucinoking Patches: heap-fix.rev2.diff uploaded
	  by russell (license 2) Tested by: cappucinoking, russell

2010-05-06 07:27 +0000 [r261451]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_dahdi.c: When failing to configure, don't destroy
	  'cfg' twice Fixes a crash when some config section had an
	  incorrect channel config.

2010-05-05 22:22 +0000 [r261405]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Avoid a crash on SS7 channels.

2010-05-05 20:48 +0000 [r261364]  Russell Bryant <russell@digium.com>

	* Makefile, configs/asterisk.conf.sample: Restore previous
	  asterisk.conf syntax, where the directories aren't commented out.
	  This fixes some breakage in the test suite, that uses the
	  contents of asterisk.conf to discover the install layout on the
	  system.

2010-05-05 19:13 +0000 [r261316]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes sip native transfer The Refer-To
	  header field containing the Replaces header in the URI was not
	  being decoded properly. This caused invalid parsing between the
	  caller id field and the domain resulting in a failed transfer.
	  (closes issue #17284) Reported by: dvossel

2010-05-05 18:43 +0000 [r261314]  Paul Belanger <paul.belanger@polybeacon.com>

	* /, channels/chan_sip.c: Merged revisions 261274 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r261274 | pabelanger | 2010-05-05 12:42:22 -0400 (Wed, 05 May
	  2010) | 12 lines Registration fix for SIP realtime. Make sure
	  realtime fields are not empty. (closes issue #17266) Reported by:
	  Nick_Lewis Patches: chan_sip.c-realtime.patch uploaded by Nick
	  Lewis (license 657) Tested by: Nick_Lewis, sberney Review:
	  https://reviewboard.asterisk.org/r/643/ ........

2010-05-05 18:28 +0000 [r261313]  Mark Michelson <mmichelson@digium.com>

	* channels/sip/dialplan_functions.c: Prevent unnecessary warnings
	  when getting rtpsource or rtpdest. If a recognized media type was
	  present, but the media type was not enabled for the channel, then
	  a warning would be emitted. For instance, attempting to get
	  CHANNEL(rtpsource,video) on a call with no video would cause a
	  warning message to appear. With this change, the warning will
	  only appear if the stream argument is not recognized as being a
	  media type that can be specified.

2010-05-05 15:42 +0000 [r261124-261232]  Paul Belanger <paul.belanger@polybeacon.com>

	* apps/app_queue.c: 'queue reset stats' erroneously clears
	  wrapuptime configuration. Resets each member's lastcall to 0 now.
	  (closes issue #17262) Reported by: rain Patches:
	  wrapuptime_reset_fix.diff uploaded by rain (license 327) Tested
	  by: rain

	* main/manager.c, include/asterisk/cli.h, CHANGES,
	  include/asterisk/manager.h: New 'manager show settings' CLI
	  command. See the CHANGES file for more details. (closes issue
	  #16343) Reported by: pabelanger Patches: issue16343.patch.v5
	  uploaded by pabelanger (license 224) Tested by: pabelanger,
	  tilghman, lmadsen Review: https://reviewboard.asterisk.org/r/630/

	* Makefile, configs/asterisk.conf.sample (added): New static
	  asterisk.conf.sample file. This simply moves the functionality
	  from the Makefile (cleaning it up) into an external
	  asterisk.conf.samples file. Also updates formatting (easier to
	  read) and grammar changes to asterisk.conf.samples. (closes issue
	  #17027) Reported by: pabelanger Patches:
	  0017027.asterisk.conf.v6.patch uploaded by pabelanger (license
	  224) Tested by: qwell, lmadsen, pabelanger, chappell Review:
	  https://reviewboard.asterisk.org/r/616/

2010-05-04 23:51 +0000 [r261095]  Tilghman Lesher <tlesher@digium.com>

	* main/channel.c, /: Merged revisions 261093-261094 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r261093 | tilghman | 2010-05-04 18:36:53 -0500 (Tue, 04
	  May 2010) | 7 lines Protect against overflow, when calculating
	  how long to wait for a frame. (closes issue #17128) Reported by:
	  under Patches: d.diff uploaded by under (license 914) ........
	  r261094 | tilghman | 2010-05-04 18:47:08 -0500 (Tue, 04 May 2010)
	  | 2 lines Add a tiny corner case to the previous commit ........

2010-05-04 22:46 +0000 [r261051]  Mark Michelson <mmichelson@digium.com>

	* configs/queues.conf.sample, CHANGES, apps/app_queue.c: Add new
	  possible value to autopause option to allow members to be
	  autopaused in all queues. See the CHANGES file and
	  queues.conf.sample for more details. (closes issue #17008)
	  Reported by: jlpedrosa Patches: queues.autopause_en_review.diff
	  uploaded by jlpedrosa (license 1002) Review:
	  https://reviewboard.asterisk.org/r/581/

2010-05-04 21:10 +0000 [r261007]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h, channels/sig_pri.c: The inalarm flag is
	  not passed up from the sig_analog and sig_pri submodules. The CLI
	  "dahdi show channel" command was not correctly reporting the
	  InAlarm status. The inalarm flag is now consistently passed
	  between chan_dahdi and submodules.

2010-05-04 18:51 +0000 [r260924]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 260923 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r260923 | jpeeler | 2010-05-04 13:46:46 -0500 (Tue, 04
	  May 2010) | 12 lines Voicemail transfer to operator should occur
	  immediately, not after main menu. There were two scenarios in the
	  advanced options that while using the operator=yes and review=yes
	  options, the transfer occurred only after exiting the main menu
	  (after sending a reply or leaving a message for an extension).
	  Now after the audio is processed for the reply or message the
	  transfer occurs immediately as expected. ABE-2107 ABE-2108
	  ........

2010-05-04 15:49 +0000 [r260802]  Jason Parker <jparker@digium.com>

	* /, build_tools/make_build_h: Merged revisions 260801 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r260801 | qwell | 2010-05-04 10:49:27 -0500 (Tue, 04 May
	  2010) | 1 line Fix fallout from removing from configure script.
	  Pointed out by philipp64 on #asterisk-dev ........

2010-05-03 22:13 +0000 [r260757]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_meetme.c, CHANGES: Add new admin features to meetme:
	  Roll call, eject all, mute all, record in-conf This patch adds
	  the following in-conference admin DTMF features: *81 - Roll call
	  (or simply user count if INTROUSER isn't enabled) *82 - Eject all
	  non-admins *83 - Mute/unmute all non-admins *84 - Start recording
	  the conference on the fly FWIW, this code uses newly recorded
	  prompts. (closes issue #16379) Reported by: rfinnie Patches:
	  meetme-enhancements-232771-v1.patch uploaded by rfinnie (license
	  940) modified slightly by me

2010-05-03 17:06 +0000 [r260663]  Paul Belanger <paul.belanger@polybeacon.com>

	* Makefile, /: Merged revisions 260661-260662 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r260661 | pabelanger | 2010-05-03 12:41:30 -0400 (Mon, 03 May
	  2010) | 10 lines non-root make install PREFIX=/tmp fails. Prepend
	  libdir when executing mkpkgconfig allowing non-root installs to
	  work. (closes issue #17268) Reported by: pabelanger Patches:
	  issue17268.patch uploaded by pabelanger (license 224) Tested by:
	  pabelanger ........ r260662 | pabelanger | 2010-05-03 12:54:41
	  -0400 (Mon, 03 May 2010) | 3 lines Should have removed /usr/lib/
	  part. Thanks Qwell. ........

2010-05-03 14:58 +0000 [r260570]  Leif Madsen <lmadsen@digium.com>

	* doc/HOWTO_collect_debug_information.txt: Merged revisions 260569
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r260569 | lmadsen | 2010-05-03 09:57:39 -0500 (Mon, 03 May 2010)
	  | 1 line Minor typo pointed out by pabelanger on IRC. ........

2010-05-02 02:52 +0000 [r260521]  Eliel C. Sardanons <eliels@gmail.com>

	* main/data.c, include/asterisk/data.h: Avoid making AstData depend
	  on libxml2 to compile. We have some functions inside the AstData
	  API to get the tree in XML form, but it is not required at the
	  moment to compile asterisk and we can disable that part of the
	  API if we don't have libxml2 support.

2010-04-30 22:36 +0000 [r260437]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /,
	  channels/sig_analog.h: Merged revisions 260434 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r260434 | jpeeler | 2010-04-30 17:22:46 -0500 (Fri, 30 Apr 2010)
	  | 11 lines Ensure channel state is not incorrectly set in the
	  case of a very early answer. The needringing bit was being read
	  in dahdi_read after answering thereby setting the state to
	  ringing from up. This clears needringing upon answering so that
	  is no longer possible. (closes issue #17067) Reported by: tzafrir
	  Patches: needringing.diff uploaded by tzafrir (license 46)
	  ........

2010-04-30 22:24 +0000 [r260435]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  Separate the uses of NUM_DCHANS and MAX_CHANNELS into PRI, SS7,
	  and MFCR2 users. Created SIG_PRI_MAX_CHANNELS, SIG_PRI_NUM_DCHANS
	  SIG_SS7_MAX_CHANNELS, SIG_SS7_NUM_DCHANS SIG_MFCR2_MAX_CHANNELS
	  Also fixed the declaration of pollers[] in mfcr2_monitor(). It
	  was dimensioned to the number of bytes in struct
	  dahdi_mfcr2.pvts[] and not to the same dimension of the struct
	  dahdi_mfcr2.pvts[].

2010-04-30 20:11 +0000 [r260344-260346]  Mark Michelson <mmichelson@digium.com>

	* /, res/res_musiconhold.c: Merged revisions 260345 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r260345 | mmichelson | 2010-04-30 15:08:15 -0500 (Fri,
	  30 Apr 2010) | 18 lines Fix potential crash from race condition
	  due to accessing channel data without the channel locked. In
	  res_musiconhold.c, there are several places where a channel's
	  stream's existence is checked prior to calling ast_closestream on
	  it. The issue here is that in several cases, the channel was not
	  locked while checking the stream. The result was that if two
	  threads checked the state of the channel's stream at
	  approximately the same time, then there could be a situation
	  where both threads attempt to call ast_closestream on the
	  channel's stream. The result here is that the refcount for the
	  stream would go below 0, resulting in a crash. I have added
	  proper channel locking to res_musiconhold.c to ensure that we do
	  not try to check chan->stream without the channel locked. A
	  Digium customer has been using this patch for several weeks and
	  has not had any crashes since applying the patch. ABE-2147
	  ........

	* apps/app_queue.c: Fix logic reversal error when queue callers
	  join the queue. When a specific position is specified for the
	  queue, the idea was that the caller cannot be placed ahead of
	  higher-priority callers. Unfortunately, the logic was reversed so
	  that the caller could ONLY be placed ahead of higher priority
	  callers. Discovered while writing a unit test.

2010-04-30 06:19 +0000 [r260280-260292]  Tilghman Lesher <tlesher@digium.com>

	* main/strcompat.c: Don't allow file descriptors to go above 64k,
	  when we're closing them in a fork(2). This saves time, when, even
	  though the system allows the process limit to be that high, the
	  practical limit is much lower. Also introduce an additional
	  optimization, in the form of using the CLOEXEC flag to close
	  descriptors at the right time. (closes issue #17223) Reported by:
	  dbackeberg Patches: 20100423__issue17223.diff.txt uploaded by
	  tilghman (license 14) Tested by: dbackeberg

	* configs/extensions.conf.sample: Logic fixups for a sample FREENUM
	  dialplan context. (closes issue #17263) Reported by: pprindeville
	  Patches: freenum-dialplan.patch#3 uploaded by pprindeville
	  (license 347)

2010-04-29 22:44 +0000 [r260231]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /: Merged revisions
	  260195 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r260195 | rmudgett | 2010-04-29 17:11:47 -0500 (Thu, 29 Apr 2010)
	  | 26 lines DTMF CallerID detection problems. The code handling
	  DTMF CallerID drops digits on long CallerID numbers and may
	  timeout waiting for the first ring with shorter numbers. The DTMF
	  emulation mode was not turned off when processing DTMF CallerID.
	  When the emulation code gets behind in processing the DTMF digits
	  it can skip a digit. For shorter numbers, the timeout may have
	  been too short. I increased it from 2 seconds to 4 seconds. Four
	  seconds is a typical time between rings for many countries.
	  (closes issue #16460) Reported by: sum Patches: issue16460.patch
	  uploaded by rmudgett (license 664) issue16460_v1.6.2.patch
	  uploaded by rmudgett (license 664) Tested by: sum, rmudgett
	  Review: https://reviewboard.asterisk.org/r/634/ JIRA SWP-562 JIRA
	  AST-334 JIRA SWP-901 ........

2010-04-29 18:15 +0000 [r260148]  Tilghman Lesher <tlesher@digium.com>

	* configs/extensions.conf.sample: Pattern match fail.

2010-04-29 15:33 +0000 [r260050]  David Vossel <dvossel@digium.com>

	* /, include/asterisk/audiohook.h, main/audiohook.c: Merged
	  revisions 260049 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r260049 | dvossel | 2010-04-29 10:31:02 -0500 (Thu, 29 Apr 2010)
	  | 14 lines Fixes crash in audiohook_write_list The middle_frame
	  in the audiohook_write_list function was being freed if a
	  audiohook manipulator returned a failure. This is incorrect
	  logic. This patch resolves this and adds detailed descriptions of
	  how this function should work and why manipulator failures must
	  be ignored. (closes issue #17052) Reported by: dvossel Tested by:
	  dvossel (closes issue #16196) Reported by: atis Review:
	  https://reviewboard.asterisk.org/r/623/ ........

2010-04-29 00:35 +0000 [r260007]  Richard Mudgett <rmudgett@digium.com>

	* include/asterisk/extconf.h: Fix comment.

2010-04-28 22:34 +0000 [r259957]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c, channels/sip/include/sip.h: Don't override
	  peer context with domain context. (closes issue #17040) Reported
	  by: pprindeville Patches: asterisk-1.6-bugid17040.patch uploaded
	  by pprindeville (license 347) Tested by: pprindeville Review:
	  https://reviewboard.asterisk.org/r/565/

2010-04-28 21:20 +0000 [r259870]  David Vossel <dvossel@digium.com>

	* main/channel.c, channels/chan_local.c, /: Merged revisions 259858
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259858 | dvossel | 2010-04-28 16:16:03 -0500 (Wed, 28 Apr 2010)
	  | 33 lines resolves deadlocks in chan_local Issue_1. In the
	  local_hangup() 3 locks must be held at the same time... pvt,
	  pvt->chan, and pvt->owner. Proper deadlock avoidance is done when
	  the channel to hangup is the outbound chan_local channel, but
	  when it is not the outbound channel we have an issue... We
	  attempt to do deadlock avoidance only on the tech pvt, when both
	  the tech pvt and the pvt->owner are locked coming into that loop.
	  By never giving up the pvt->owner channel deadlock avoidance is
	  not entirely possible. This patch resolves that by doing deadlock
	  avoidance on both the pvt->owner and the pvt when trying to get
	  the pvt->chan lock. Issue_2. ast_prod() is used in
	  ast_activate_generator() to queue a frame on the channel and make
	  the channel's read function get called. This function is used in
	  ast_activate_generator() while the channel is locked, which
	  mean's the channel will have a lock both from the generator code
	  and the frame_queue code by the time it gets to chan_local.c's
	  local_queue_frame code... local_queue_frame contains some of the
	  same crazy deadlock avoidance that local_hangup requires, and
	  this recursive lock prevents that deadlock avoidance from
	  happening correctly. This patch removes ast_prod() from the
	  channel lock so only one lock is held during the
	  local_queue_frame function. (closes issue #17185) Reported by:
	  schmoozecom Patches: issue_17185_v1.diff uploaded by dvossel
	  (license 671) issue_17185_v2.diff uploaded by dvossel (license
	  671) Tested by: schmoozecom, GameGamer43 Review:
	  https://reviewboard.asterisk.org/r/631/ ........

2010-04-28 21:08 +0000 [r259853]  Leif Madsen <lmadsen@digium.com>

	* /, config.guess: Merged revisions 259852 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259852 | lmadsen | 2010-04-28 16:07:48 -0500 (Wed, 28 Apr 2010)
	  | 6 lines Update config.guess. Updating config.guess because
	  after installing Ubuntu Server 9.10 and running all the update
	  scripts, running ./configure would not continue because it was
	  unable to determine what kind of system I had. After updating
	  config.guess things started working again. ........

2010-04-28 20:32 +0000 [r259760-259848]  Jason Parker <jparker@digium.com>

	* /, configure, configure.ac: Merged revisions 259847 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r259847 | qwell | 2010-04-28 15:30:21 -0500 (Wed, 28 Apr
	  2010) | 1 line Add AC_CONFIG_AUX_DIR to configure script, so
	  systems without install can use install-sh from our source dir.
	  ........

	* /, makeopts.in: Merged revisions 259833 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259833 | qwell | 2010-04-28 15:25:36 -0500 (Wed, 28 Apr 2010) |
	  1 line Missed this when removing $ID ........

	* Makefile, /, configure, configure.ac: Merged revisions 259748 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259748 | qwell | 2010-04-28 14:17:38 -0500 (Wed, 28 Apr 2010) |
	  7 lines Remove usage of `id` since it isn't useful and was
	  causing breakge. Solaris `id` doesn't support the -u argument.
	  Instead of figuring out how to fix this to work on Solaris, I
	  decided to check why it was necessary and where else it was used.
	  It was only used in one place, and it hasn't been needed for a
	  very long time (I question whether it was ever needed). ........

2010-04-28 17:18 +0000 [r259672]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 259664 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r259664 | jpeeler | 2010-04-28 12:13:29 -0500 (Wed, 28
	  Apr 2010) | 4 lines Do not play goodbye prompt after timeout of
	  message review. ABE-2124 ........

2010-04-27 22:47 +0000 [r259587-259617]  Jason Parker <jparker@digium.com>

	* res/res_agi.c: Fix compile on systems without
	  HAVE_NULLSAFE_PRINTF defined.

	* channels/sip/dialplan_functions.c: Be more explicit about field
	  naming in a test.

2010-04-27 22:18 +0000 [r259538]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 259531 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r259531 | rmudgett | 2010-04-27 16:53:07 -0500 (Tue, 27
	  Apr 2010) | 11 lines DAHDI "WARNING" message is confusing and
	  vague "WARNING[28406]: chan_dahdi.c:6873 ss_thread: CallerID feed
	  failed: Success" Changed the warning to "Failed to decode
	  CallerID on channel 'name'". The message before it is likely more
	  specific about why the CallerID decode failed. SWP-501 AST-283
	  ........

2010-04-27 22:11 +0000 [r259533]  Mark Michelson <mmichelson@digium.com>

	* main/ccss.c: Shuffle some casts to make builds on bamboo happier.

2010-04-27 21:49 +0000 [r259527]  Leif Madsen <lmadsen@digium.com>

	* /, sounds/Makefile: Merged revisions 259526 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259526 | lmadsen | 2010-04-27 16:48:47 -0500 (Tue, 27 Apr 2010)
	  | 15 lines Update sounds files. * Add additional sounds prompts
	  for say_enumeration * Update the English conference sounds
	  prompts so they are better quality and all sound more consistent
	  * Clean up the core-sounds-XX.txt and extra-sounds-XX.txt files
	  to include all present sound files Both core (en, fr, es) and
	  extra (en, fr) sounds files have been updated. (closes issue
	  #16200) Reported by: murf (closes issue #17137) Reported by:
	  lmadsen ........

2010-04-27 21:18 +0000 [r259439-259451]  Jason Parker <jparker@digium.com>

	* /: Block 259441 instead of recording it as merged.

	* /: Recorded merge of revisions 259441 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259441 | qwell | 2010-04-27 16:15:46 -0500 (Tue, 27 Apr 2010) |
	  1 line Add gar to the check for AR for those silly OSes (Solaris)
	  that don't have ar. ........

	* main/editline/configure, main/editline/Makefile.in,
	  main/editline/configure.in: Add gar to the check for AR for those
	  silly OSes (Solaris) that don't have ar. autoconf2.13 couldn't
	  handle AC_PROG_GREP, so I removed it. This is fine, since we
	  don't need to use anything that the configure script doesn't.

2010-04-27 21:10 +0000 [r259438]  Leif Madsen <lmadsen@digium.com>

	* include/asterisk/doxygen/mantisworkflow.h: Update the Mantis
	  Workflow document in doxygen. (closes issue #17175) Reported by:
	  lmadsen Patches: Bug_Tracker_Workflow.v2.txt uploaded by
	  pabelanger (license 224) Tested by: pabelanger, lmadsen

2010-04-27 19:52 +0000 [r259357]  Mark Michelson <mmichelson@digium.com>

	* main/ccss.c: Change cc_ref and cc_unref from macros to inline
	  functions. The hope is that Solaris won't be as whiny after this
	  change.

2010-04-27 19:31 +0000 [r259353]  Jason Parker <jparker@digium.com>

	* /, configure, configure.ac: Merged revisions 259352 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r259352 | qwell | 2010-04-27 14:29:26 -0500 (Tue, 27 Apr
	  2010) | 5 lines Support the silly OSes that don't have ar and
	  strip. Since AC_PATH_TOOL is equiv to AC_CHECK_TOOL when path
	  isn't specified, and AC_PATH_TOOLS doesn't exist, we'll just
	  switch to AC_CHECK_TOOLS. ........

2010-04-27 18:29 +0000 [r259229-259307]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample, /: Merged
	  revisions 259270 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259270 | rmudgett | 2010-04-27 13:14:54 -0500 (Tue, 27 Apr 2010)
	  | 14 lines hidecalleridname parameter in chan_dahdi.conf Issue
	  #7321 implements a new chan_dahdi configuration option. However,
	  a change mentioned in the issue was never implemented. This is
	  the change that will allow the feature to work. I added a note to
	  chan_dahdi.conf.sample about the feature. (closes issue #17143)
	  Reported by: djensen99 Patches: diff.txt uploaded by djensen99
	  (license NA) (One line change) Tested by: djensen99 ........

	* channels/chan_dahdi.c: Re-fix dahdi_request() iflist locking
	  since CCSS merged.

2010-04-27 15:25 +0000 [r259189]  Tilghman Lesher <tlesher@digium.com>

	* contrib/init.d/etc_default_asterisk (added): Add missing file
	  (pointed out by TheDavidFactor on #asterisk-dev) referenced by
	  revision 239231.

2010-04-26 21:45 +0000 [r259023-259105]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c, /: Merged revisions 259104 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259104 | mmichelson | 2010-04-26 16:44:43 -0500 (Mon, 26 Apr
	  2010) | 3 lines Let compilation succeed warning-free when
	  DONT_OPTIMIZE is turned off. ........

	* main/channel.c, /: Merged revisions 259018 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r259018 | mmichelson | 2010-04-26 16:03:08 -0500 (Mon, 26 Apr
	  2010) | 13 lines Prevent Newchannel manager events for dummy
	  channels. No Newchannel manager event will be fired for channels
	  that are allocated to not match a registered technology type.
	  Thus bogus channels allocated solely for variable substitution or
	  CDR operations do not result in a Newchannel event. (closes issue
	  #16957) Reported by: atis Review:
	  https://reviewboard.asterisk.org/r/601 ........

2010-04-26 19:05 +0000 [r258974]  David Ruggles <thedavidfactor@gmail.com>

	* contrib/valgrind.supp: Line 24 missed in compatibility fix in
	  revision 233577 added a "fun:" prefix line 24

2010-04-26 15:59 +0000 [r258934]  Leif Madsen <lmadsen@digium.com>

	* channels/chan_sip.c: Small error in the T.140 RTP port verbose
	  log. (closes issue #16988) Reported by: frawd Patches:
	  chan_sip_sdp_verbose_fix.diff uploaded by frawd (license 610)
	  Tested by: russell

2010-04-26 14:18 +0000 [r258896]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c, include/asterisk/res_fax.h, res/res_fax_spandsp.c:
	  Update res_fax and res_fax_spandsp to be compatible with Fax For
	  Asterisk 1.2. The fax session initilization code for T.38 faxes
	  has been rewritten. T.38 session initialization was removed from
	  generic_fax_exec, and split into two different code paths for
	  receive and send. Also the 'z' option (to send a T.38 reinvite if
	  we do not receive one) was added to sendfax. In the output of
	  'fax show sessions', the 'Type' column has been renamed to 'Tech'
	  and replaced with a new 'Tech' column that will report 'G.711' or
	  'T.38'. Control of ECM defaults has been added to res_fax A 'fax
	  show settings' CLI command has been added. Support of the new
	  AST_T38_REQUEST_PARMS control method request to handle channels
	  that have already received a T.38 reinvite before the FAX
	  application is start has been added. Support for the 'fax show
	  settings' command has been added to res_fax_spandsp and handling
	  of the ECM flag has been slightly altered.

2010-04-25 18:51 +0000 [r258838-258855]  Alexandr Anikin <may@telecom-service.ru>

	* addons/chan_ooh323.c: additional checking related to issue 17186

	* addons/chan_ooh323.c: Don't pass zero length callerid to ooh323
	  stack Don't pass zero callerid string to ooh323 stack because it
	  can't encode this properly and can't generate setup message.
	  (closes issue #17186) Reported by: vmikhelson Patches:
	  zero_callerid_num.patch uploaded by may213 (license 454) Tested
	  by: may213

2010-04-25 18:12 +0000 [r258776]  Tilghman Lesher <tlesher@digium.com>

	* /, res/res_monitor.c: Merged revisions 258775 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r258775 | tilghman | 2010-04-25 13:09:05 -0500 (Sun, 25 Apr 2010)
	  | 6 lines When StopMonitor is called, ensure that it will not be
	  restarted by a channel event. (closes issue #16590) Reported by:
	  kkm Patches: resmonitor-16590-trunk.239289.diff uploaded by kkm
	  (license 888) ........

2010-04-22 22:19 +0000 [r258685]  Jason Parker <jparker@digium.com>

	* utils/extconf.c: Add another random function that does nothing to
	  make the utils/ dir happy.

2010-04-22 22:11 +0000 [r258675]  Matthew Nicholson <mnicholson@digium.com>

	* main/channel.c: Fix previous commit.

2010-04-22 22:10 +0000 [r258673-258674]  Jason Parker <jparker@digium.com>

	* utils/Makefile, utils/extconf.c: Make utils/ stuff *actually*
	  compile this time.

	* utils/Makefile, utils/extconf.c: Let utils/ dir compile when
	  DEBUG_THREADS is not enabled.

2010-04-22 21:57 +0000 [r258671]  Matthew Nicholson <mnicholson@digium.com>

	* main/cdr.c, main/channel.c, /, main/features.c: Merged revisions
	  193391,258670 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r193391 | mnicholson | 2009-05-08 16:01:25 -0500 (Fri, 08 May
	  2009) | 8 lines Set the proper disposition on originated calls.
	  (closes issue #14167) Reported by: jpt Patches:
	  call-file-missing-cdr2.diff uploaded by mnicholson (license 96)
	  Tested by: dlotina, rmartinez, mnicholson ........ r258670 |
	  mnicholson | 2010-04-22 16:49:07 -0500 (Thu, 22 Apr 2010) | 11
	  lines Fix broken CDR behavior. This change allows a CDR record
	  previously marked with disposition ANSWERED to be set as BUSY or
	  NO ANSWER. Additionally this change partially reverts r235635 and
	  does not set the AST_CDR_FLAG_ORIGINATED flag on CDRs generated
	  from ast_call(). To preserve proper CDR behavior, the
	  AST_CDR_FLAG_DIALED flag is now cleared from all brige CDRs in
	  ast_bridge_call(). (closes issue #16797) Reported by:
	  VarnishedOtter Tested by: mnicholson ........ (closes issue
	  #16222) Reported by: telles Tested by: mnicholson

2010-04-22 21:06 +0000 [r258632]  Russell Bryant <russell@digium.com>

	* tests/test_event.c, main/event.c: Add ast_event subscription unit
	  test and fix some ast_event API bugs. This patch introduces
	  another test in test_event.c that exercises most of the
	  subscription related ast_event API calls. I made some minor
	  additions to the existing event allocation test to increase API
	  coverage by the test code. Finally, I made a list in a comment of
	  API calls not yet touched by the test module as a to-do list for
	  future test development. During the development of this test
	  code, I discovered a number of bugs in the event API. 1)
	  subscriptions to AST_EVENT_ALL were not handled appropriately in
	  a couple of different places. The API allows a subscription to
	  all event types, but with IE parameters, just as if it was a
	  subscription to a specific event type. However, the parameters
	  were being ignored. This affected ast_event_check_subscriber()
	  and event distribution to subscribers. 2) Some of the logic in
	  ast_event_check_subscriber() for checking subscriptions against
	  query parameters was wrong. Review:
	  https://reviewboard.asterisk.org/r/617/

2010-04-22 20:04 +0000 [r258595]  Eliel C. Sardanons <eliels@gmail.com>

	* apps/app_voicemail.c: Pass interactive = 0 and fix a compile
	  error.

2010-04-22 19:08 +0000 [r258557]  Jason Parker <jparker@digium.com>

	* main/lock.c (added), include/asterisk/res_odbc.h,
	  include/asterisk/astobj2.h, main/heap.c, include/asterisk/lock.h,
	  main/astobj2.c, res/res_odbc.c, include/asterisk/heap.h: Remove
	  ABI differences that occured when compiling with DEBUG_THREADS.
	  "Bad Things" would happen if Asterisk was compiled with
	  DEBUG_THREADS, but a loaded module was not (or vice versa). This
	  also immensely simplifies the lock code, since there are no
	  longer 2 separate versions of them. Review:
	  https://reviewboard.asterisk.org/r/508/

2010-04-22 18:07 +0000 [r258517]  Eliel C. Sardanons <eliels@gmail.com>

	* doc/manager_1_1.txt, main/channel.c, include/asterisk/doxyref.h,
	  include/asterisk/xml.h, main/data.c (added), main/xml.c,
	  include/asterisk/channel.h, include/asterisk/_private.h,
	  include/asterisk/data.h (added), CHANGES, apps/app_queue.c,
	  main/asterisk.c, apps/app_voicemail.c: Asterisk data retrieval
	  API. This module implements an abstraction for retrieving and
	  exporting asterisk data. Developed by: Brett Bryant
	  <brettbryant@gmail.com> Eliel C. Sardanons (LU1ALY)
	  <eliels@gmail.com> For the Google Summer of code 2009 Project.
	  Documentation can be found in doxygen format and inside the
	  header include/asterisk/data.h Review:
	  https://reviewboard.asterisk.org/r/275/

2010-04-22 17:36 +0000 [r258515]  Russell Bryant <russell@digium.com>

	* doc/tex/channelvariables.tex: Add MEETMEBOOKID from r256019.

2010-04-21 21:56 +0000 [r258433]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 258432 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r258432 | jpeeler | 2010-04-21 16:45:36 -0500 (Wed, 21
	  Apr 2010) | 8 lines Fix looping forever when no input received in
	  certain voicemail menu scenarios. Specifically, prompting for an
	  extension (when leaving or forwarding a message) or when
	  prompting for a digit (when saving a message or changing
	  folders). ABE-2122 SWP-1268 ........

2010-04-21 19:45 +0000 [r258351-258387]  Leif Madsen <lmadsen@digium.com>

	* doc/tex/asterisk.tex: Missed this when reverting the bad version
	  change in asterisk.tex.

	* doc/tex/asterisk.tex: Fix change in asterisk.tex that got merged
	  in after testing. (issue #17220)

	* Makefile, doc/tex/security-events.tex, configure,
	  include/asterisk/autoconfig.h.in, doc/tex/Makefile, configure.ac,
	  doc/tex/phoneprov.tex, doc/tex, doc/tex/ael.tex,
	  build_tools/prep_tarball, doc/tex/localchannel.tex,
	  doc/tex/enum.tex, makeopts.in, doc/tex/asterisk.tex,
	  doc/tex/cel-doc.tex: Add ability to generate ASCII documentation
	  from the TeX files. These changes add the ability to run 'make
	  asterisk.txt' just like the existing 'make asterisk.pdf' commands
	  to generate a text document from the TeX files we have in the
	  doc/tex/ directory. I've also updated a few of the .tex files
	  because they weren't properly escaping certain characters so they
	  would show up as Unicode characters (like [U+021C]). Made changes
	  to the configure scripts so it would detect the catdvi program
	  which is required to convert the .dvi file generated by latex.
	  I've also added a few lines to the build_tools/prep_tarball
	  script so that the text documentation gets generated and added to
	  future tarballs of Asterisk releases. (closes issue #17220)
	  Reported by: lmadsen Patches: asterisk.txt.patch uploaded by
	  lmadsen (license 10) asterisk.txt.patch-v4 uploaded by pabelanger
	  (license 224) Tested by: lmadsen, pabelanger

2010-04-21 19:07 +0000 [r258345]  Mark Michelson <mmichelson@digium.com>

	* funcs/func_callcompletion.c: Add small documentation update to
	  func_callcompletion.c. This directs users to documents which can
	  help explain the concepts and configuration options settable with
	  the function.

2010-04-21 19:02 +0000 [r258344]  Leif Madsen <lmadsen@digium.com>

	* UPGRADE.txt, CHANGES, channels/chan_iax2.c: IAXpeers output now
	  matches SIPpeers format for manager (AMI). (closes issue #17100)
	  Reported by: secesh Tested by: pabelanger Review:
	  https://reviewboard.asterisk.org/r/594/

2010-04-21 18:13 +0000 [r258305]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes issue with double "sip:" in header
	  field This is a clear mistake in logic. Future discussions about
	  how to avoid having to handle uri's like this should take place
	  in the future, but this fix needs to go in for now. (closes issue
	  #15847) Reported by: ebroad Patches: doublesip.patch uploaded by
	  ebroad (license 878)

2010-04-21 13:26 +0000 [r258265]  Leif Madsen <lmadsen@digium.com>

	* res/res_calendar_exchange.c, res/res_calendar_icalendar.c,
	  res/res_calendar_caldav.c: Fix the \brief description in the
	  res_calendar_*.c files.

2010-04-21 13:24 +0000 [r258190-258256]  Julian Lyndon-Smith <julian@dotr.com>

	* doc/manager_1_1.txt: fix whitespace issue

	* doc/manager_1_1.txt, doc/tex/manager.tex: Added NEW ACTIONS entry
	  for new MixMonitorMute AMI command. Added State and Direction
	  variables for new MixMonitorMute AMI command.

	* CHANGES: Added CHANGES entry for new MixMonitorMute AMI command.

	* main/frame.c, include/asterisk/audiohook.h, main/audiohook.c,
	  include/asterisk/frame.h, apps/app_mixmonitor.c,
	  res/res_mutestream.c: Added MixMonitorMute manager command Added
	  a new manager command to mute/unmute MixMonitor audio on a
	  channel. Added a new feature to audiohooks so that you can mute
	  either read / write (or both) types of frames - this allows for
	  MixMonitor to mute either side of the conversation without
	  affecting the conversation itself. (closes issue #16740) Reported
	  by: jmls Review: https://reviewboard.asterisk.org/r/487/

2010-04-20 19:02 +0000 [r258106-258149]  Leif Madsen <lmadsen@digium.com>

	* configs/cli_aliases.conf.sample: Add 'soft hangup' alias per
	  Steve Johnson on asterisk-users.

	* configs/extensions.conf.sample: Add example dialplan for dialing
	  ISN numbers (http://www.freenum.org). Minor tweaks and
	  documentation added by me. (closes issue #17058) Reported by:
	  pprindeville Patches: freenum.patch#5 uploaded by pprindeville
	  (license 347) Tested by: lmadsen

	* contrib/scripts/sip-friends.sql: Add missing 'useragent' field to
	  sip-friends.sql file. (closes issue #17171) Reported by: thehar
	  Patches: sip-friends.patch uploaded by thehar (license 831)
	  Tested by: pabelanger, thehar

2010-04-20 17:06 +0000 [r258065]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 258029 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r258029 | jpeeler | 2010-04-20 11:16:33 -0500 (Tue, 20
	  Apr 2010) | 11 lines Play correct prompt when voicemail store
	  failure occurs after attempted forward. If a user's mailbox was
	  full and a message was attempted to be forwarded to said box,
	  warnings on the console would indicate failure. However, the
	  played prompt was that of success (vm-msgsaved). Now storage
	  failure is taken into account and the correct prompt
	  (vm-mailboxfull) is played when appropriate. ABE-2123 SWP-1262
	  ........

2010-04-20 12:38 +0000 [r257988]  Leif Madsen <lmadsen@digium.com>

	* formats/format_pcm.c: Update supported file extensions in
	  doxygen. Updated the doxygen \arg line after looking at the file
	  for some other Asterisk documentation and noticing they weren't
	  up to date. Thanks to seanbright for looking at the code for me
	  :)

2010-04-19 21:57 +0000 [r257947-257949]  Jason Parker <jparker@digium.com>

	* main/indications.c: Change log message to match severity.

	* main/indications.c: Don't consider a missing indications.conf to
	  be a critical error. There were many changes in revision 176627
	  which would avoid the error that a missing config would have
	  caused. Other than this, there are no other config files
	  (including asterisk.conf, surprisingly) that are required.

2010-04-19 19:23 +0000 [r257883]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Bad merge fix

2010-04-19 18:42 +0000 [r257851]  Mark Michelson <mmichelson@digium.com>

	* funcs/func_srv.c: Commit compromise I suggested on review 608.
	  This allows for multiple SRV queries to be done from the dialplan
	  for the same service on a single call while still allowing one to
	  bypass the call to SRVQUERY if they so please. Taking action
	  since no comments had been left for a while. This can easily be
	  reverted if needed. External tests still pass.

2010-04-19 17:57 +0000 [r257810]  Terry Wilson <twilson@digium.com>

	* main/features.c: Fix incomplete CDR merge from r195881 Because
	  res/res_features.c was removed and main/cdr.c added, these
	  changes didn't make it to trunk and the 1.6.x branches

2010-04-18 17:25 +0000 [r257768]  Tilghman Lesher <tlesher@digium.com>

	* configs/cdr_odbc.conf.sample: Removing unused configuration
	  parameters

2010-04-16 21:22 +0000 [r257713]  Dwayne M. Hubbard <dwayne.hubbard@gmail.com>

	* /, apps/app_mixmonitor.c: Merged revisions 257686 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r257686 | dhubbard | 2010-04-16 16:15:43 -0500 (Fri, 16
	  Apr 2010) | 21 lines Make the mixmonitor thread process audio
	  frames faster Mantis issue 17078 reports MixMonitor recordings
	  have shorter durations than the call duration. This was because
	  the mixmonitor thread was not processing frames from the
	  audiohook fast enough. The mixmonitor thread would slowly fall
	  behind the most recent audio frame and when the channel hangs up,
	  the mixmonitor thread would exit without processing the same
	  number of frames as the channel; leaving the mixmonitor recording
	  shorter than actual call duration. This revision fixes this issue
	  by moving the ast_audiohook_trigger_wait() and the subsequent
	  audiohook.status check into the block where the
	  ast_audiohook_read_frame() function returns NULL. (closes issue
	  #17078) Reported by: geoff2010 Patches: dw-M17078.patch uploaded
	  by dhubbard (license 733) Tested by: dhubbard, geoff2010 Review:
	  https://reviewboard.asterisk.org/r/611/ ........

2010-04-16 19:50 +0000 [r257646]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Make sure to fail a monitor if we receive a
	  negative response for a CC SUBSCRIBE.

2010-04-16 19:25 +0000 [r257642]  Dwayne M. Hubbard <dwayne.hubbard@gmail.com>

	* channels/chan_dahdi.c: Enable PRI SERVICE message support in
	  chan_dahdi for the 'national' switchtype Revision 1072 of libpri
	  added SERVICE message support for the 'national' switchtype. The
	  attached patch enables the use of 'pri service' CLI commands on
	  dahdi channels that are configured for the 'national' switchtype.
	  (closes issue #17142) Reported by: dhubbard Patches: dw-ni2.patch
	  uploaded by dhubbard (license 733) Tested by: elguero, dhubbard
	  Review: https://reviewboard.asterisk.org/r/612/

2010-04-15 21:26 +0000 [r257493-257560]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/app.h, /, tests/test_app.c, main/app.c: Merged
	  revisions 257544 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r257544 | tilghman | 2010-04-15 16:23:24 -0500 (Thu, 15 Apr 2010)
	  | 6 lines Allow application options with arguments to contain
	  parentheses, through a variety of escaping techniques. Fixes
	  SWP-1194 (ABE-2143). Review:
	  https://reviewboard.asterisk.org/r/604/ ........

	* /, channels/chan_sip.c: Merged revisions 257467 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r257467 | tilghman | 2010-04-15 15:24:50 -0500 (Thu, 15 Apr 2010)
	  | 13 lines Don't recreate peer, when responding to a repeated
	  deregistration attempt. When a reply to a deregistration is lost
	  in transmit, the client retries the deregistration. Previously,
	  this would cause a realtime/autocreate peer to be loaded back
	  into memory, after it had already been correctly purged. Instead,
	  we just want to resend the reply without loading the peer.
	  (closes issue #16908) Reported by: kkm Patches:
	  20100412__issue16908.diff.txt uploaded by tilghman (license 14)
	  Tested by: kkm ........

2010-04-15 19:41 +0000 [r257343-257427]  Leif Madsen <lmadsen@digium.com>

	* /, doc/backtrace.txt: Merged revisions 257426 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r257426 | lmadsen | 2010-04-15 14:40:33 -0500 (Thu, 15 Apr 2010)
	  | 13 lines Update backtrace.txt documentation. Update the
	  backtrace.txt documentation so it conforms to the same layout as
	  other documents we've been working on recently. Additionally, add
	  a bunch of new information about gathering backtraces for crashes
	  and deadlocks, along with ways of verifying your file before
	  uploading it. Create a couple of one line commands for people to
	  generate the files we need. (closes issue #17190) Reported by:
	  lmadsen Patches: backtrace.txt.patch-2 uploaded by lmadsen
	  (license 10) Tested by: lmadsen, pabelanger ........

	* /, doc/backtrace.txt: Merged revisions 257342 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r257342 | lmadsen | 2010-04-15 08:41:45 -0500 (Thu, 15 Apr 2010)
	  | 1 line Update address of the bug tracker. ........

2010-04-14 22:57 +0000 [r257262]  Tilghman Lesher <tlesher@digium.com>

	* main/features.c, configs/features.conf.sample: Yet another issue
	  where the conversion of the application delimiter to comma caused
	  an issue. Application arguments within the feature map could
	  possibly contain a comma, which conflicts with the syntax of the
	  features.conf configuration file. This patch allows the argument
	  to be wrapped in parentheses or quoted, to allow the application
	  arguments to be interpreted as a single configuration parameter.
	  (closes issue #16646) Reported by: pinga-fogo Patches:
	  20100414__issue16646.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman Review:
	  https://reviewboard.asterisk.org/r/547/

2010-04-13 19:17 +0000 [r257191]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Also unref the pvt when we delete the
	  provisional keepalive job. (closes issue #16774) Reported by:
	  kowalma Patches: 20100315__issue16774.diff.txt uploaded by
	  tilghman (license 14) Tested by: falves11, jamicque Review:
	  https://reviewboard.asterisk.org/r/591/

2010-04-13 18:10 +0000 [r257146]  Matthew Nicholson <mnicholson@digium.com>

	* main/manager.c, /, configs/manager.conf.sample: Merged revisions
	  257070 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r257070 | mnicholson | 2010-04-13 11:46:30 -0500 (Tue, 13 Apr
	  2010) | 9 lines Add an option to restore past broken behavor of
	  the Events manager action Before r238915, certain values for the
	  EventMask parameter of the Events action would result in no
	  response being returned. This patch adds an option to restore
	  that broken behavior. Also while fixing this bug I discovered
	  that passing an empty EventMasks parameter would also result in
	  no response being returned, this has been fixed as well while
	  being preserved when the broken behavior is requested. (closes
	  issue #17023) Reported by: nblasgen Review:
	  https://reviewboard.asterisk.org/r/602/ ........

2010-04-13 16:33 +0000 [r257065]  Tilghman Lesher <tlesher@digium.com>

	* cdr/cdr_sqlite3_custom.c: Ensure that we can have commas within
	  cdr values. (closes issue #17001) Reported by: snuffy Patches:
	  20100412__issue17001.diff.txt uploaded by tilghman (license 14)
	  Tested by: snuffy

2010-04-13 16:18 +0000 [r256985-257032]  Mark Michelson <mmichelson@digium.com>

	* configs/sip.conf.sample: Update sample dialstrings in
	  sip.conf.sample file.

	* funcs/func_srv.c: Address Russell's comments on func_srv from
	  reviewboard. * Change copyright date * Place channel in
	  autoservice when doing SRV lookup * Get rid of trailing
	  whitespace * Change logic in load_module function

	* main/ccss.c: Fix issue where recall would not happen when it
	  should. Specifically, the situation would happen when multiple
	  callers would request CC for a single generically-monitored
	  device. If the monitored device became available but the caller
	  did not answer the recall, then there was nothing that would poke
	  the CC core to let it know that it should attempt to recall
	  someone else instead. After careful consideration, I came to the
	  conclusion that the only area of Asterisk that needed to be
	  touched was the generic CC monitor. All other types of CC would
	  require something outside of Asterisk to invoke a recall for a
	  separate device. This was accomplished by changing the generic
	  monitor destructor to poke other generic monitor instances if the
	  device is currently available and the specific instance was
	  currently not suspended. In order to not accidentally trigger
	  recalls at bad times, the fit_for_recall flag was also added to
	  the generic_monitor_instance_list struct. This gets set as soon
	  as a monitored device becomes available. It gets cleared if a
	  CCNR request triggers the creation of a new generic monitor
	  instance. By doing this, we don't accidentally try to recall a
	  device when the monitored device was being monitored for CCNR and
	  never actually became available for recall in the first place.
	  This error was discovered by Steve Pitts during in-house testing
	  at Digium.

2010-04-12 17:29 +0000 [r256860-256901]  Leif Madsen <lmadsen@digium.com>

	* /, doc/HOWTO_collect_debug_information.txt (added): Merged
	  revisions 256900 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r256900 | lmadsen | 2010-04-12 12:29:26 -0500 (Mon, 12 Apr 2010)
	  | 15 lines Add How-To document on collecting debugging info for
	  issues.asterisk.org Paul Belanger has been helping a lot with bug
	  tracking recently and created this document that we can now point
	  to when additional debugging information is required. This
	  document will help those filing issues to know how to get the
	  information required when filing their issues. This will make
	  things easier on the developers. Initial text and changes by
	  pabelanger. Tweaks and editing by myself. (closes issue #17159)
	  Reported by: pabelanger Patches:
	  HOWTO_collect_debug_information.txt.patch uploaded by lmadsen
	  (license 10) Tested by: tzafrir, pabelanger, lmadsen ........

	* apps/app_voicemail.c: Remove silly debug message that is not
	  useful. (issue #17159)

2010-04-12 14:47 +0000 [r256823]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: gives channel reference before unlocking it
	  and using setvar helper. To guarantee the channel is valid when
	  calling setvar on the MASTER_CHANNEL dialplan function, a channel
	  reference must be taken before unlocking. Thanks to russell for
	  pointing out the error.

2010-04-12 14:39 +0000 [r256821]  Leif Madsen <lmadsen@digium.com>

	* main/logger.c: CLI command logger set level auto complete. A
	  simple patch to enable auto tab complete. (closes issue #17152)
	  Reported by: pabelanger Patches: 0017152.patch uploaded by
	  pabelanger (license 224)

2010-04-12 02:19 +0000 [r256745-256783]  Russell Bryant <russell@digium.com>

	* tests/test_substitution.c: test_substitution expects func_curl to
	  be present to work.

	* tests/test_pbx.c: Add ASTERISK_FILE_VERSION() macro

2010-04-10 08:33 +0000 [r256704]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* contrib/scripts/safe_asterisk.8, doc/asterisk.8,
	  contrib/scripts/autosupport.8, contrib/scripts/astgenkey.8: fix
	  hyphen vs. minus in man pages In troff '-' is used for a hyphen.
	  A minus is denoted by '\-' . This is normally also used for a
	  dash. This patch converts all '-'-s that are minuses or dashes to
	  '\-'.

2010-04-09 22:20 +0000 [r256646-256661]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c, main/ccss.c: Remove status_response
	  callbacks where they are not needed.

	* channels/chan_local.c: Prevent crash when originating a call to a
	  local channel. Call completion code tries to grab the call
	  completion parameters from the requesting channel during
	  local_request. When originating a call to a local channel,
	  however, this channel is NULL. This was causing an issue for me
	  when trying to run a test script.

2010-04-09 19:46 +0000 [r256569-256608]  Richard Mudgett <rmudgett@digium.com>

	* doc/CCSS_architecture.pdf (added): Merge CCSS architecture
	  document from CCSS branch.

	* channels/sig_pri.h, configure, include/asterisk/autoconfig.h.in:
	  Remove PRI CCSS BUGBUG message and update configure script.

2010-04-09 16:04 +0000 [r256485-256530]  Mark Michelson <mmichelson@digium.com>

	* channels/sip/reqresp_parser.c, channels/sip/include/sip.h,
	  channels/sip/include/reqresp_parser.h: Add routines for parsing
	  SIP URIs consistently. From the original issue report opened by
	  Nick Lewis: Many sip headers in many sip methods contain the ABNF
	  structure name-andor-addr = name-addr / addr-spec Examples
	  include the to-header, from-header, contact-header,
	  replyto-header At the moment chan_sip.c makes various different
	  attempts to parse this name-andor-addr structure for each header
	  type and for each sip method with sometimes limited degrees of
	  success. I recommend that this name-andor-addr structure be
	  parsed by a dedicated function and that it be used irrespective
	  of the specific method or header that contains the
	  name-andor-addr structure Nick has also included unit tests for
	  verifying these routines as well, so...heck yeah. (closes issue
	  #16708) Reported by: Nick_Lewis Patches:
	  reqresp_parser-nameandoraddr2.patch uploaded by Nick Lewis
	  (license 657 Review: https://reviewboard.asterisk.org/r/549

	* channels/chan_sip.c, tests/test_gosub.c, funcs/func_srv.c: Fix
	  some compiler errors that popped up after the CCSS merge.

	* apps/app_dial.c, configs/chan_dahdi.conf.sample,
	  include/asterisk/devicestate.h, include/asterisk/xml.h,
	  channels/chan_local.c, doc/tex/ccss.tex (added), main/ccss.c
	  (added), channels/chan_sip.c, configure.ac, main/xml.c,
	  include/asterisk/channel.h, configs/manager.conf.sample,
	  include/asterisk/channelstate.h (added),
	  include/asterisk/manager.h, CHANGES, channels/sig_pri.c,
	  channels/sig_pri.h, main/channel.c, channels/chan_dahdi.c,
	  main/manager.c, funcs/func_callcompletion.c (added),
	  channels/sig_analog.c, channels/sig_analog.h,
	  configs/ccss.conf.sample (added), include/asterisk/rtp_engine.h,
	  include/asterisk/frame.h, include/asterisk/ccss.h (added),
	  doc/tex/asterisk.tex, main/asterisk.c,
	  channels/sip/include/sip.h: Merge Call completion support into
	  trunk. From Reviewboard: CCSS stands for Call Completion
	  Supplementary Services. An admittedly out-of-date overview of the
	  architecture can be found in the file doc/CCSS_architecture.pdf
	  in the CCSS branch. Off the top of my head, the big differences
	  between what is implemented and what is in the document are as
	  follows: 1. We did not end up modifying the Hangup application at
	  all. 2. The document states that a single call completion monitor
	  may be used across multiple calls to the same device. This proved
	  to not be such a good idea when implementing protocol-specific
	  monitors, and so we ended up using one monitor per-device
	  per-call. 3. There are some configuration options which were
	  conceived after the document was written. These are documented in
	  the ccss.conf.sample that is on this review request. For some
	  basic understanding of terminology used throughout this code, see
	  the ccss.tex document that is on this review. This implements
	  CCBS and CCNR in several flavors. First up is a "generic"
	  implementation, which can work over any channel technology
	  provided that the channel technology can accurately report device
	  state. Call completion is requested using the dialplan
	  application CallCompletionRequest and can be canceled using
	  CallCompletionCancel. Device state subscriptions are used in
	  order to monitor the state of called parties. Next, there is a
	  SIP-specific implementation of call completion. This method uses
	  the methods outlined in draft-ietf-bliss-call-completion-06 to
	  implement call completion using SIP signaling. There are a few
	  things to note here: * The agent/monitor terminology used
	  throughout Asterisk sometimes is the reverse of what is defined
	  in the referenced draft. * Implementation of the draft required
	  support for SIP PUBLISH. I attempted to write this in a
	  generic-enough fashion such that if someone were to want to write
	  PUBLISH support for other event packages, such as dialog-state or
	  presence, most of the effort would be in writing callbacks
	  specific to the event package. * A subportion of supporting
	  PUBLISH reception was that we had to implement a PIDF parser. The
	  PIDF support added is a bit minimal. I first wrote a validation
	  routine to ensure that the PIDF document is formatted properly.
	  The rest of the PIDF reading is done in-line in the
	  call-completion-specific PUBLISH-handling code. In other words,
	  while there is PIDF support here, it is not in any state where it
	  could easily be applied to other event packages as is. Finally,
	  there are a variety of ISDN-related call completion protocols
	  supported. These were written by Richard Mudgett, and as such I
	  can't really say much about their implementation. There are notes
	  in the CHANGES file that indicate the ISDN protocols over which
	  call completion is supported. Review:
	  https://reviewboard.asterisk.org/r/523

	* main/srv.c, channels/chan_sip.c, funcs/func_srv.c (added),
	  CHANGES, include/asterisk/srv.h: func_srv and explicit
	  specification of a remote IP for SIP. From Review Board: There
	  are two interrelated changes here. First, there is the
	  introduction of func_srv. This adds two new read-only dialplan
	  functions, SRVQUERY and SRVRESULT. They work very similarly to
	  the ENUMQUERY and ENUMRESULT functions, except that this allows
	  one to query SRV records instead. In order to facilitate this
	  work, I added a couple of new API calls to srv.h.
	  ast_srv_get_record_count tells the number of records returned by
	  an SRV lookup. This number is calculated at the time of the SRV
	  lookup. ast_srv_get_nth_record allows one to get a numbered SRV
	  record. Second, there is the modification to chan_sip that allows
	  one to specify a hostname or IP address (along with a port) to
	  send an outgoing INVITE to when dialing a SIP peer. This goes
	  hand-in-hand with func_srv. You can query SRV records and then
	  use the host and port from the results to dial via a specific
	  host instead of what is configured in sip.conf. Review:
	  https://reviewboard.asterisk.org/r/608 SWP-1200

2010-04-08 16:35 +0000 [r256428]  Kevin P. Fleming <kpfleming@digium.com>

	* /, Makefile.rules, build_tools/make_linker_version_script: Ensure
	  that linker version scripts (used for symbol export control)
	  always exist. Using wildcard matching in the Makefile is not
	  adequate to determine whether an export file should exist for a
	  module or not, so instead we'll just create one if the module
	  needs one, or copy the default one if it does not.

2010-04-06 19:28 +0000 [r256370]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  include/asterisk/lock.h: Mac OS X does not support comparing a
	  mutex to its initializer. Create a test for this.

2010-04-06 14:42 +0000 [r256319]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes deadlock in chan_sip caused by usage
	  of MASTER_CHANNEL dialplan function (closes issue #16767)
	  Reported by: lmsteffan Patches: deadlock_16767v3.diff uploaded by
	  dvossel (license 671) Review:
	  https://reviewboard.asterisk.org/r/606/

2010-04-06 00:39 +0000 [r256265]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 256225 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r256225 | rmudgett | 2010-04-05 19:10:16 -0500 (Mon, 05
	  Apr 2010) | 5 lines DAHDI/PRI call to pri_channel_bridge() not
	  protected by PRI lock. SWP-1231 ABE-2163 ........

2010-04-05 15:14 +0000 [r256161]  Leif Madsen <lmadsen@digium.com>

	* doc/tex/localchannel.tex: Fix for localchannel.tex to allow PDFs
	  to be generated again.

2010-04-03 02:12 +0000 [r256103-256104]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_dial.c, channels/chan_local.c, channels/chan_sip.c,
	  include/asterisk/channel.h, main/cel.c, channels/sig_pri.c,
	  channels/chan_iax2.c, apps/app_queue.c, channels/chan_oss.c,
	  funcs/func_redirecting.c, main/channel.c, main/dial.c,
	  channels/chan_dahdi.c, channels/chan_misdn.c,
	  apps/app_dumpchan.c, res/res_agi.c, channels/chan_h323.c,
	  res/snmp/agent.c, apps/app_amd.c, funcs/func_callerid.c:
	  Consolidate ast_channel.cid.cid_rdnis into
	  ast_channel.redirecting.from.number. SWP-1229 ABE-2161 * Ensure
	  chan_local.c:local_call() will not leak cid.cid_dnid when
	  copying.

	* apps/app_dial.c: Using the Dial application f option when the
	  call is forwarded will likely crash. Fix app_dial.c:do_forward()
	  OPT_FORCECLID setting cid.cid_num with a stack allocated string
	  instead of a heap allocated string.

2010-04-02 23:55 +0000 [r256010-256019]  Russell Bryant <russell@digium.com>

	* apps/app_meetme.c: Export MEETMEBOOKID and fix pin-less
	  conferences with realtime conferences (closes issue #16866)
	  Reported by: DEA Patches: rt-meetme-options.txt uploaded by DEA
	  (license 3) Tested by: DEA Review:
	  https://reviewboard.asterisk.org/r/582/

	* channels/chan_local.c, /: Merged revisions 256014 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r256014 | russell | 2010-04-02 18:45:56 -0500 (Fri, 02
	  Apr 2010) | 9 lines Resolve a deadlock that occurs due to a
	  pointless call to ast_bridged_channel() (closes issue #16840)
	  Reported by: bzing2 Patches: patch.txt uploaded by bzing2
	  (license 902) issue_16840.rev1.diff uploaded by russell (license
	  2) Tested by: bzing2, russell ........

	* main/channel.c, /: Merged revisions 256009 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r256009 | russell | 2010-04-02 18:30:15 -0500 (Fri, 02 Apr 2010)
	  | 2 lines Remove extremely verbose debug message. ........

2010-04-02 20:19 +0000 [r255952]  Tilghman Lesher <tlesher@digium.com>

	* main/asterisk.c: Pass the PID of the Asterisk process, not the
	  PID of the canary. (closes issue #17065) Reported by:
	  globalnetinc Patches: astcanary.patch uploaded by makoto (license
	  38) Tested by: frawd, globalnetinc

2010-04-02 18:57 +0000 [r255906]  Kevin P. Fleming <kpfleming@digium.com>

	* res/res_ael_share.exports.in (added), codecs,
	  res/res_pktccops.exports.in (added), utils,
	  res/res_monitor.exports.in (added), Makefile.moddir_rules,
	  res/res_smdi.exports.in (added), Makefile.rules, cdr,
	  res/res_agi.exports.in (added), formats, main/asterisk.exports
	  (removed), res/res_odbc.exports (removed),
	  res/res_calendar.exports (removed), apps/app_voicemail.exports
	  (removed), bridges, res/res_odbc.exports.in (added),
	  main/asterisk.exports.in (added), apps/app_voicemail.exports.in
	  (added), res/res_calendar.exports.in (added),
	  res/res_features.exports (removed), res/res_fax.exports.in
	  (added), pbx, res/res_adsi.exports.in (added),
	  res/res_jabber.exports (removed), res/res_pktccops.exports
	  (removed), channels, res/res_jabber.exports.in (added),
	  main/Makefile, res/res_smdi.exports (removed), tests, apps, cel,
	  res/res_agi.exports (removed), addons, res/res_speech.exports
	  (removed), Makefile, funcs, res/res_speech.exports.in (added),
	  res/res_fax.exports (removed), main, res/res_adsi.exports
	  (removed), res/res_features.exports.in (added),
	  res/res_ael_share.exports (removed),
	  build_tools/make_linker_version_script (added), res,
	  res/res_monitor.exports (removed): Allow symbol export filtering
	  to work properly on platforms that have symbol prefixes. Some
	  platforms prefix externally-visible symbols in object files
	  generated from C sources (most commonly, '_' is the prefix). On
	  these platforms, the existing symbol export filtering process
	  ends up suppressing all the symbols that are supposed to be left
	  visible. This patch allows the prefix string to be supplied to
	  the top-level Makefile in the LINKER_SYMBOL_PREFIX variable, and
	  then generates the linker scripts as required to include the
	  prefix supplied.

2010-04-02 06:45 +0000 [r255850-255851]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_skinny.c: Ignore Redial softkey when no previous
	  dialed number is known (closes issue #17126) Reported by: wedhorn
	  Patches: skinny79xx_redial1.diff uploaded by wedhorn (license 30)

	* channels/chan_skinny.c: Cleanup transmit_* functions Bulk lot of
	  generally trivial changes for cleaning up the transmit stuff.
	  Line state request has been modified for line only responses.
	  (closes issue #16994) Reported by: wedhorn Patches:
	  skinny-clean07.diff uploaded by wedhorn (license 30) Tested by:
	  wedhorn

2010-04-01 18:16 +0000 [r255796]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/lock.h: Fix DEBUG_THREADS build on Darwin.
	  (closes issue #16828) Reported by: oej Patches:
	  20100331__issue16828.diff.txt uploaded by tilghman (license 14)

2010-04-01 16:09 +0000 [r255751]  Matthew Nicholson <mnicholson@digium.com>

	* configs/sip.conf.sample: Removed documentation of the non
	  existent 'both' option to 'faxdetect' in sip.conf

2010-03-31 22:35 +0000 [r255701]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix improper comaparison of anonymous URI
	  when getting P-Asserted-Identity. There was a bug where we split
	  the URI on the @ sign and then attempted to compare to
	  "anonymous@anonymous.invalid" afterwards. This comparison could
	  never evaluate true. So now we keep a copy of the URI prior to
	  the split so that the comparison is valid.

2010-03-31 19:13 +0000 [r255592]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_voicemail.c: Recorded merge of revisions 255591 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r255591 | tilghman | 2010-03-31 14:09:46 -0500 (Wed, 31 Mar 2010)
	  | 15 lines Ensure line terminators in email are consistent. Fixes
	  an issue with certain Mail Transport Agents, where attachments
	  are not interpreted correctly. (closes issue #16557) Reported by:
	  jcovert Patches: 20100308__issue16557__1.4.diff.txt uploaded by
	  tilghman (license 14) 20100308__issue16557__1.6.0.diff.txt
	  uploaded by tilghman (license 14)
	  20100308__issue16557__trunk.diff.txt uploaded by tilghman
	  (license 14) Tested by: ebroad, zktech Reviewboard:
	  https://reviewboard.asterisk.org/r/544/ ........

2010-03-31 17:48 +0000 [r255504]  Leif Madsen <lmadsen@digium.com>

	* apps/app_dial.c, /, configs/sip.conf.sample: Add documentation
	  clarifying when 't' and 'T' can be used. (closes issue #17021)
	  Reported by: kovzol Tested by: lmadsen, kovzol, davidw, ebroad

2010-03-30 20:56 +0000 [r255323-255410]  Russell Bryant <russell@digium.com>

	* /, channels/chan_h323.c: Merged revisions 255409 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r255409 | russell | 2010-03-30 15:56:00 -0500 (Tue, 30
	  Mar 2010) | 2 lines Don't kill Asterisk if the H323 listener does
	  not start. ........

	* /, pbx/pbx_dundi.c: Merged revisions 255322 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r255322 | russell | 2010-03-30 11:06:06 -0500 (Tue, 30 Mar 2010)
	  | 2 lines Don't make Asterisk not start if pbx_dundi fails to
	  initialize. ........

2010-03-29 14:07 +0000 [r255281]  Jared Smith <jaredsmith@jaredsmith.net>

	* apps/app_confbridge.c, CHANGES: This patch adds custom device
	  state handling for ConfBridge conferences, matching the devstate
	  handling of the MeetMe conferences. Review:
	  https://reviewboard.asterisk.org/r/572/ Closes issue #16972

2010-03-29 05:10 +0000 [r255240]  Russell Bryant <russell@digium.com>

	* main/event.c: Remove a debugging log entry.

2010-03-27 23:51 +0000 [r255199]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooh323.c, addons/ooh323c/src/ooGkClient.c,
	  addons/chan_ooh323.c, addons/ooh323c/src/ooh323.h,
	  addons/ooh323c/src/ooq931.c, addons/ooh323c/src/ooCalls.c:
	  corrections in gk interface, small fixes in call clearing.

2010-03-27 14:44 +0000 [r255158]  Sean Bright <sean@malleable.com>

	* apps/app_voicemail.c: We need to inclde sys/wait.h on OpenBSD to
	  get WEXITSTATUS.

2010-03-27 06:09 +0000 [r255117]  Tilghman Lesher <tlesher@digium.com>

	* pbx/pbx_spool.c: inotify support for pbx_spool This should give a
	  good speed boost, in that one particular thread isn't waking up
	  once a second to read directory contents. Reviewboard:
	  https://reviewboard.asterisk.org/r/137/

2010-03-26 19:27 +0000 [r255021-255066]  Leif Madsen <lmadsen@digium.com>

	* configs/sip.conf.sample: Replace some documentation from 1.6.x
	  back into trunk. This documentation associated wth tlsbindaddr is
	  still useful so lets synchronize it between trunk and 1.6.x
	  branches. (issue #17054)

	* configs/sip.conf.sample: Update confusing documentation for
	  tlsbindaddr. Update some confusing documentation for the
	  tlsbindaddr option in sip.conf.sample. Point at a link instead
	  which has better documentation. (closes issue #17054) Reported
	  by: klaus3000

2010-03-26 16:27 +0000 [r254976]  Sean Bright <sean@malleable.com>

	* contrib/scripts/live_ast: Work around a bug in dash on Ubuntu by
	  checking the number of arguments before shift'ing. Reported and
	  tested by pabelanger.

2010-03-25 23:38 +0000 [r254931]  Kevin P. Fleming <kpfleming@digium.com>

	* addons/chan_ooh323.h, addons/ooh323c/src/ooasn1.h,
	  addons/ooh323c/src/ooLogChan.c, addons/ooh323c/src/ooStackCmds.c,
	  addons/ooh323c/src/errmgmt.c, addons/ooh323c/src/ooTimer.c,
	  addons/ooh323c/src/dlist.c, addons/ooh323c/src/eventHandler.c,
	  addons/ooh323c/src/ooCapability.c, addons/ooh323cDriver.c,
	  addons/mp3/interface.c, addons/ooh323cDriver.h,
	  addons/ooh323c/src/rtctype.c, addons/ooh323c/src/ooCalls.c,
	  addons/ooh323c/src/encode.c, addons/ooh323c/src/ooUtils.c,
	  addons/ooh323c/src/ooGkClient.c, addons/ooh323c/src/ooh323ep.c,
	  addons/ooh323c/src/ooports.c, addons/mp3/decode_ntom.c,
	  addons/ooh323c/src/memheap.c, addons/ooh323c/src/ooh323.c,
	  addons/ooh323c/src/ooh245.c, addons/mp3/common.c,
	  addons/ooh323c/src/decode.c, addons/ooh323c/src/context.c,
	  addons/ooh323c/src/perutil.c, addons/mp3/layer3.c,
	  addons/ooh323c/src/oochannels.c,
	  addons/ooh323c/src/ooCmdChannel.c,
	  addons/ooh323c/src/printHandler.c, addons/ooh323c/src/ooq931.c,
	  addons/ooh323c/src/ootrace.c: Use "local" instead of "system"
	  header file inclusion. Now that these files are in the tree, they
	  should prefer the tree's local copy of all Asterisk headers over
	  any that may be installed.

2010-03-25 21:39 +0000 [r254884]  Russell Bryant <russell@digium.com>

	* addons/ooh323c/src/ooSocket.c, addons/ooh323c/src/ooSocket.h: Fix
	  a number of other build problems on Mac OS X.

2010-03-25 20:41 +0000 [r254802]  Jason Parker <jparker@digium.com>

	* utils/Makefile, /: Merged revisions 254800 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r254800 | qwell | 2010-03-25 15:41:15 -0500 (Thu, 25 Mar 2010) |
	  1 line Don't remove local copies of utils in uninstall. ........

2010-03-25 20:41 +0000 [r254718-254801]  Russell Bryant <russell@digium.com>

	* addons/chan_ooh323.h: Resolve compiler warning on FreeBSD.

	* addons/ooh323c/src/ooh323.c, addons/Makefile,
	  addons/ooh323c/src/ooq931.c, addons/ooh323c/src/ootrace.c: Fix
	  chan_ooh323 so it works on Mac OS X, as well.

	* channels/chan_usbradio.c: chan_usbradio depends on alsa.

2010-03-25 18:38 +0000 [r254636-254638]  Kevin P. Fleming <kpfleming@digium.com>

	* .cleancount: Bump cleancount due to ast_channel change.

	* include/asterisk/channel.h: Remove no-longer-used (and unsafe)
	  field in ast_channel for linked lists. The ast_channel structure
	  had a field used for linking a channel into a linked list, but
	  now that ast_channel structures are ao2 objects, this is no
	  longer needed, and could be harmful as ao2 objects really
	  shouldn't ever be placed into linked lists (since those lists
	  don't assist with reference count management on the objects).

	* addons/Makefile: Get chan_ooh323 building again after recent
	  build system changes.

2010-03-25 17:52 +0000 [r254454-254557]  Mark Michelson <mmichelson@digium.com>

	* tests/test_acl.c (added): Add unit test for testing ACL
	  functionality. There are two unit tests contained here. 1.
	  "Invalid ACL" This attempts to read a bunch of badly formatted
	  ACL entries and add them to a host access rule. The goal of this
	  test is to be sure that all invalid entries are rejected as they
	  should be. 2. "ACL" This sets up four ACLs. One is a permit all,
	  one is a deny all, and the other two have specific rules about
	  which subnets are allowed and which are not. Then a set of test
	  addresses is used to determine whether we would allow those
	  addresses to access us when each ACL is applied. This test, by
	  the way, was what resulted in AST-2010-003's creation. Review:
	  https://reviewboard.asterisk.org/r/532

	* include/asterisk/acl.h, /: Merged revisions 254552 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r254552 | mmichelson | 2010-03-25 12:33:35 -0500 (Thu,
	  25 Mar 2010) | 5 lines Add doxygen for acl.h Review:
	  https://reviewboard.asterisk.org/r/528 ........

	* channels/sip/dialplan_functions.c: Add new rtpsource options to
	  the CHANNEL function. This adds rtpsource options analogous to
	  the rtpdest functions that already exist. In addition, this fixes
	  potential crashes which could result due to trying to read values
	  from nonexistent RTP streams.

	* res/res_rtp_asterisk.c, /: Recorded merge of revisions 254452 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r254452 | mmichelson | 2010-03-25 10:59:56 -0500 (Thu, 25 Mar
	  2010) | 44 lines Several fixes regarding RFC2833 DTMF detection.
	  Here is a copy and paste of the details from my request on
	  reviewboard that dealt with these changes: Fix 1. The first
	  change in place is to fix Mantis issue 15811, which deals with a
	  situation where Asterisk will incorrectly interpret out of order
	  RFC2833 frames as duplicate DTMF digits. For instance, we would
	  receive a sequence like: seqno 1: DTMF 1 seqno 2: DTMF 1 seqno 3:
	  DTMF 1 seqno 4: DTMF 1 seqno 6: DTMF 1 (end) seqno 5: DTMF 1
	  seqno 7: DTMF 1 (end) seqno 8: DTMF 1 (end) Prior to this patch
	  when we received the frame with seqno 5, we would interpret this
	  as a new DTMF 1. With this patch, we will check the seqno of the
	  incoming digit and not process the frame if the seqno is lower
	  than the last recorded seqno. Note that we do not record the
	  seqno of the dropped DTMF frame for future processing. While the
	  above situation is what was designed to be fixed, the patch is
	  written in such a way that the following would also be fixed too:
	  seqno 9: DTMF 1 seqno 10: DTMF 1 (end) seqno 11: DTMF 1 (end)
	  seqno 13: DTMF 2 seqno 12: DTMF 1 (end) seqno 14: DTMF 2 seqno
	  15: DTMF 2 (end) seqno 16: DTMF 2 (end) seqno 17: DTMF 2 (end) In
	  this second situation, the beginning of the DTMF 2 arrives before
	  the final end frame of the DTMF 1. With the patch, seqno 12 is no
	  processed and thus we properly interpret the DTMF. Fix 2. The
	  second change in place is to fix an issue like the following:
	  seqno 1: DTMF 1 seqno 2: DTMF 1 seqno 3: DTMF 1 (end) *packet
	  lost* seqno 4: DTMF 1 (end) *packet lost* seqno 5: DTMF 1 (end)
	  *packet lost* seqno 6: DTMF 2 When we receive seqno 6, we had
	  code in place that was supposed to properly end the previously
	  unended DTMF 1. The problem was that the code was essentially a
	  no-op. The code would set up an end frame for the DTMF 1 but
	  would immediately overwrite the frame with the begin for DTMF 2.
	  I changed process_dtmf_rfc2833() so that instead of returning a
	  single frame, it is given as an output parameter a list of
	  frames. Each frame that needs to be returned is appended to this
	  list. Fix 3. The final change is a minor one where an
	  AST_CONTROL_SRCCHANGE frame could get lost. If we process a cisco
	  DTMF or an RFC 3389 frame and no frame was returned, then we
	  would return &ast_null_frame. The problem is that earlier in the
	  function, we may have generated an AST_CONTROL_SRCCHANGE frame
	  and put it in the list of frames we wish to return. This frame
	  would be lost in such a case. The patch fixes this problem
	  ........

2010-03-25 16:03 +0000 [r254453]  Terry Wilson <twilson@digium.com>

	* /, main/file.c: Merged revisions 254451 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r254451 | twilson | 2010-03-25 10:57:29 -0500 (Thu, 25 Mar 2010)
	  | 2 lines Handle new SRCCHANGE control message here too ........

2010-03-25 15:27 +0000 [r254450]  Kevin P. Fleming <kpfleming@digium.com>

	* main/channel.c, channels/chan_sip.c, res/res_fax.c,
	  configs/sip.conf.sample, include/asterisk/frame.h,
	  channels/sip/include/sip.h: Improve handling of T.38 re-INVITEs
	  that arrive before a T.38-capable application is executing on a
	  channel. This patch addresses an issue found during working with
	  end-users using res_fax. If an incoming call is answered in the
	  dialplan, or jumps to the 'fax' extension due to reception of a
	  CNG tone (with faxdetect enabled), and then the remote endpoint
	  sends a T.38 re-INVITE, it is possible for the channel's T.38
	  state to be 'T38_STATE_NEGOTIATING' when the application starts
	  up. Unfortunately, even if the application wants to use T.38, it
	  can't respond to the peer's negotiation request, because the
	  AST_CONTROL_T38_PARAMETERS control frame that chan_sip sent
	  originally has been lost, and the application needs the content
	  of that frame to be able to formulate a reply. This patch adds a
	  new 'request' type to AST_CONTROL_T38_PARAMETERS,
	  AST_T38_REQUEST_PARMS. If the application sends this request,
	  chan_sip will re-send the original control frame (with
	  AST_T38_REQUEST_NEGOTIATE as the request type), and the
	  application can respond as normal. If this occurs within the five
	  second timeout in chan_sip, the automatic cancellation of the
	  peer reinvite will be stopped, and the application will 'own' the
	  negotiation process from that point onwards. This also improves
	  the code path in chan_sip to allow sip_indicate(), when called
	  for AST_CONTROL_T38_PARAMETERS, to be able to return a non-zero
	  response, which should have been in place before since the
	  control frame *can* fail to be processed properly. It also
	  modifies ast_indicate() to return whatever result the channel
	  driver returned for this control frame, rather than converting
	  all non-zero results into '-1'. Finally, the new request type
	  intentionally returns a positive value, so that an application
	  that sends AST_T38_REQUEST_PARMS can know for certain whether the
	  channel driver accepted it and will be replying with a control
	  frame of its own, or whether it was ignored (if the
	  sip_indicate()/ast_indicate() path had properly supported failure
	  responses before, this would not be necessary). This patch also
	  modifies res_fax to take advantage of the new request. In
	  addition, this patch makes sip_t38_abort() actually lock the
	  private structure before doing its work... bad programmer, no
	  donut. This patch also enhances chan_sip's 'faxdetect' support to
	  allow triggering on T.38 re-INVITEs received as well as CNG tone
	  detection. Review: https://reviewboard.asterisk.org/r/556/

2010-03-25 15:21 +0000 [r254446]  Leif Madsen <lmadsen@digium.com>

	* res/res_agi.c: handle_speechset has 4 arguments. Update code to
	  reflect that handle_speechset has 4 arguments. (closes issue
	  #17093) Reported by: gpatri Patches: res_agi.patch uploaded by
	  gpatri (license 1014) Tested by: pabelanger, mmichelson

2010-03-25 10:09 +0000 [r254406]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_dahdi.c: remove unneeded explicit channel in dahdi
	  ioctls This patch removes some cases where the channel number for
	  an ioctl was passed as a member in a struct rather then through
	  the file descriptor. The gain setting functions passed around a
	  channel which is always 0, and thus this parameter is simply
	  dropped. Review: https://reviewboard.asterisk.org/r/584/

2010-03-24 21:10 +0000 [r254362]  Mark Michelson <mmichelson@digium.com>

	* main/pbx.c: Fix potential invalid reads that could occur in pbx.c
	  Here is a cut and paste of my review request for this change:
	  This past weekend, Russell ran our current suite of unit tests
	  for Asterisk under valgrind. The PBX pattern match test caused
	  valgrind to spew forth two invalid read errors. This patch
	  contains two changes that shut valgrind up and do not cause any
	  new memory leaks. Change 1: In
	  ast_context_remove_extension_callerid2, valgrind reported an
	  invalid read in the for loop close to the function's end.
	  Specifically, one of the the strcmp calls in the loop control was
	  reading invalid memory. This was because the caller of
	  ast_context_remove_extension_callerid2 (__ast_context destroy in
	  this case) passed as a parameter a shallow copy of an ast_exten's
	  exten field. This same ast_exten was what was destroyed inside
	  the for loop, thus any iterations of the for loop beyond the
	  destruction of the ast_exten would result in invalid reads. My
	  fix for this is to make a copy of the ast_exten's exten field and
	  pass the copy to ast_context_remove_extension_callerid2. In
	  addition, I have also acted similarly with the ast_exten's
	  matchcid field. Since in this case a NULL is handled quite
	  differently than an empty string, I needed to be a bit more
	  careful with its handling. Change 2: In __ast_context_destroy, we
	  iterated over a hashtab and called
	  ast_context_remove_extension_callerid2 on each item.
	  Specifically, the hashtab over which we were iterating was an
	  ast_exten's peer_table. Inside of
	  ast_context_remove_extension_callerid2, we could possibly destroy
	  this ast_exten, which also caused the hashtab to be freed.
	  Attempting to call ast_hashtab_end_traversal on the hashtab
	  iterator caused an invalid read to occur when trying to read the
	  iterator->tab->do_locking field since iterator->tab had already
	  been freed. My handling of this problem is a bit less
	  straightforward. With each iteration over the hashtab's contents,
	  we set a variable called "end_traversal" based on the return of
	  ast_context_remove_extension_callerid2. If 0 is ever returned,
	  then we know that the extension was found and destroyed. Because
	  of this, we cannot call ast_hashtab_end_traversal because we will
	  be guaranteeing a read of invalid memory. In such a case, we
	  forego calling ast_hashtab_end_traversal and instead call
	  ast_free on the hashtab iterator. Review:
	  https://reviewboard.asterisk.org/r/585

2010-03-24 18:13 +0000 [r254277-254321]  Jeff Peeler <jpeeler@digium.com>

	* configs/voicemail.conf.sample, CHANGES, apps/app_voicemail.c:
	  Allow configuration of minsecs and nextaftercmd per mailbox.
	  Previously only configurable globally. A unit test has also been
	  written to provide protection against parse failures for
	  supported mailbox options. (closes issue #16864) Reported by:
	  kobaz Patches: voicemail2.patch uploaded by kobaz (license 834)
	  Review: https://reviewboard.asterisk.org/r/555/

	* /, res/res_monitor.c: Merged revisions 254235 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r254235 | jpeeler | 2010-03-23 19:37:23 -0500 (Tue, 23 Mar 2010)
	  | 72 lines Ensure that monitor recordings are written to the
	  correct location (again) This is an extension to 248860. As such
	  the dialplan test has been extended: ; non absolute path, not
	  combined exten => 5040, 1, monitor(wav,tmp/jeff/monitor_test)
	  exten => 5040, n, dial(sip/5001) ; absolute path, not combined
	  exten => 5041, 1, monitor(wav,/tmp/jeff/monitor_test2) exten =>
	  5041, n, dial(sip/5001) ; no path, not combined exten => 5042, 1,
	  monitor(wav,monitor_test3) exten => 5042, n, dial(sip/5001) ;
	  combined: changemonitor from non absolute to no path (leaves
	  tmp/jeff) exten => 5043, 1, monitor(wav,tmp/jeff/monitor_test4,m)
	  exten => 5043, n, changemonitor(monitor_test5) exten => 5043, n,
	  dial(sip/5001) ; combined: changemonitor from no path to non
	  absolute path exten => 5044, 1, monitor(wav,monitor_test6,m)
	  exten => 5044, n, changemonitor(tmp/jeff/monitor_test7) ; this
	  wasn't possible before exten => 5044, n, dial(sip/5001) ; non
	  absolute path, combined exten => 5045, 1,
	  monitor(wav,tmp/jeff/monitor_test8,m) exten => 5045, n,
	  dial(sip/5001) ; absolute path, combined exten => 5046, 1,
	  monitor(wav,/tmp/jeff/monitor_test9,m) exten => 5046, n,
	  dial(sip/5001) ; no path, combined exten => 5047, 1,
	  monitor(wav,monitor_test10,m) exten => 5047, n, dial(sip/5001) ;
	  combined: changemonitor from non absolute to absolute (leaves
	  tmp/jeff) exten => 5048, 1,
	  monitor(wav,tmp/jeff/monitor_test11,m) exten => 5048, n,
	  changemonitor(/tmp/jeff/monitor_test12) exten => 5048, n,
	  dial(sip/5001) ; combined: changemonitor from absolute to non
	  absolute (leaves /tmp/jeff) exten => 5049, 1,
	  monitor(wav,/tmp/jeff/monitor_test13,m) exten => 5049, n,
	  changemonitor(tmp/jeff/monitor_test14) exten => 5049, n,
	  dial(sip/5001) ; combined: changemonitor from no path to absolute
	  exten => 5050, 1, monitor(wav,monitor_test15,m) exten => 5050, n,
	  changemonitor(/tmp/jeff/monitor_test16) exten => 5050, n,
	  dial(sip/5001) ; combined: changemonitor from absolute to no path
	  (leaves /tmp/jeff) exten => 5051, 1,
	  monitor(wav,/tmp/jeff/monitor_test17,m) exten => 5051, n,
	  changemonitor(monitor_test18) exten => 5051, n, dial(sip/5001) ;
	  not combined: changemonitor from non absolute to no path (leaves
	  tmp/jeff) exten => 5052, 1, monitor(wav,tmp/jeff/monitor_test19)
	  exten => 5052, n, changemonitor(monitor_test20) exten => 5052, n,
	  dial(sip/5001) ; not combined: changemonitor from no path to non
	  absolute exten => 5053, 1, monitor(wav,monitor_test21) exten =>
	  5053, n, changemonitor(tmp/jeff/monitor_test22) exten => 5053, n,
	  dial(sip/5001) ; not combined: changemonitor from non absolute to
	  absolute (leaves tmp/jeff) exten => 5054, 1,
	  monitor(wav,tmp/jeff/monitor_test23) exten => 5054, n,
	  changemonitor(/tmp/jeff/monitor_test24) exten => 5054, n,
	  dial(sip/5001) ; not combined: changemonitor from absolute to non
	  absolute (leaves /tmp/jeff) exten => 5055, 1,
	  monitor(wav,/tmp/jeff/monitor_test24) exten => 5055, n,
	  changemonitor(tmp/jeff/monitor_test25) exten => 5055, n,
	  dial(sip/5001) ; not combined: changemonitor from no path to
	  absolute exten => 5056, 1, monitor(wav,monitor_test26) exten =>
	  5056, n, changemonitor(/tmp/jeff/monitor_test27) exten => 5056,
	  n, dial(sip/5001) ; not combined: changemonitor from absolute to
	  no path (leaves /tmp/jeff) exten => 5057, 1,
	  monitor(wav,/tmp/jeff/monitor_test28) exten => 5057, n,
	  changemonitor(monitor_test29) exten => 5057, n, dial(sip/5001)
	  ........

2010-03-23 22:48 +0000 [r254162]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* main/asterisk.c: make 'core show settings' should show all
	  settable directories (closes issue #17086) Reported by: tzafrir
	  Patches: asterisk_extra_settings_dirs.diff uploaded by tzafrir
	  (license 46)

2010-03-23 22:35 +0000 [r254159]  Russell Bryant <russell@digium.com>

	* main/test.c: Put test output for a failure in a CDATA section in
	  the XML results.

2010-03-23 21:17 +0000 [r254050]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c: Exit native bridging early for greater timing
	  accuracy with warnings This changes native bridging to break one
	  millisecond early so that the more accurate timeval calculations
	  done in the generic bridge can be performed using the bridge
	  config. Currently the time between exiting native bridging
	  slightly late can sometimes cause a large enough discrepancy for
	  warnings to be missed. For the record, 1.4 does not attempt to
	  native bridge at all when warnings are enabled. (closes issue
	  #15815) Reported by: adomjan Review:
	  https://reviewboard.asterisk.org/r/577/

2010-03-23 20:52 +0000 [r254045]  Sean Bright <sean@malleable.com>

	* apps/app_queue.c: Remove unused structure member in app_queue.
	  (closes issue #15494) Reported by: makoto

2010-03-23 19:19 +0000 [r254001]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* tests/Makefile: Change the name of the category 'TEST' to match
	  the name of the subdir

2010-03-23 16:52 +0000 [r253958]  Terry Wilson <twilson@digium.com>

	* main/http.c: Don't act like an http write failed when it didn't
	  fwrite returns the number of items written, not the number of
	  bytes

2010-03-23 14:22 +0000 [r253917]  Kevin P. Fleming <kpfleming@digium.com>

	* codecs/Makefile, include/asterisk/logger.h, main/Makefile,
	  Makefile.moddir_rules, pbx/Makefile, res/Makefile, CHANGES,
	  channels/Makefile, include/asterisk/options.h, main/cli.c: Change
	  per-file debug and verbose levels to be per-module, the way users
	  expect them to work. 'core set debug' and 'core set verbose' can
	  optionally change the level for a specific filename; however,
	  this is actually for a specific source file name, not the module
	  that source file is included in. With examples like chan_sip,
	  chan_iax2, chan_misdn and others consisting of multiple source
	  files, this will not lead to the behavior that users expect. If
	  they want to set the debug level for chan_sip, they want it set
	  for all of chan_sip, and not to have to also set it for
	  reqresp_parser and other files that comprise the chan_sip module.
	  This patch changes this functionality to be module-name based
	  instead of file-name based. To make this work, some Makefile
	  modifications were required to ensure that the AST_MODULE
	  definition is present in each object file produced for each
	  module as well. Review: https://reviewboard.asterisk.org/r/574/

2010-03-22 20:32 +0000 [r253872]  Mark Michelson <mmichelson@digium.com>

	* main/asterisk.c: Initialize channels prior to loading "preload"
	  modules. We can have bad results when a module, upon being
	  loaded, attempts to reference the channels container if the
	  container hasn't yet been initialized. I saw this happen by
	  trying to preload pbx_config.so and having a hint defined which
	  referenced a non-existent SIP peer.

2010-03-22 19:52 +0000 [r253800]  Matthew Nicholson <mnicholson@digium.com>

	* /, main/features.c: Merged revisions 253799 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r253799 | mnicholson | 2010-03-22 14:50:00 -0500 (Mon, 22 Mar
	  2010) | 4 lines Unconditionally copy the caller's account code to
	  the called party. (related to issue #16331) ........

2010-03-22 19:05 +0000 [r253712-253758]  Tilghman Lesher <tlesher@digium.com>

	* contrib/scripts/dbsep.cgi: Update query should be an UPDATE, not
	  a SELECT.

	* contrib/scripts/dbsep.cgi: Return the list for later
	  manipulation. This fixes an issue with the update procedure.
	  Debugging with mmichelson.

	* contrib/scripts/dbsep.cgi, configs/dbsep.conf.sample: Accomodate
	  equal signs in DSNs and add documentation, based upon
	  mmichelson's feedback.

2010-03-20 16:50 +0000 [r253536-253579]  Russell Bryant <russell@digium.com>

	* funcs/func_strings.c: Fix memory corruption found by unit tests.
	  ast_str_reset() was being called on a potentially uninitialized
	  pointer. Valgrind is my hero, once again.

	* cel/cel_pgsql.c, main/tcptls.c, main/manager.c, main/features.c,
	  main/test.c, cdr/cdr_pgsql.c, main/stdtime/localtime.c,
	  main/cel.c: Resolve more compiler warnings on FreeBSD.

	* apps/app_voicemail.c: Include sys/wait.h on FreeBSD to get the
	  WEXITSTATUS() macro.

	* apps/app_dial.c, apps/app_followme.c: Resolve compiler warnings
	  on FreeBSD.

	* pbx/pbx_dundi.c: Resolve a compiler warning on FreeBSD.

	* channels/chan_dahdi.c: Use SHRT_MAX instead of MAXSHORT. These
	  changes fix build issues I had with this module on FreeBSD.

2010-03-19 07:37 +0000 [r253490]  Alec L Davis <sivad.a@paradise.net.nz>

	* main/astobj2.c: prevent segfault if bad magic number is
	  encountered. internal_ao2_ref uses INTERNAL_OBJ which mzy report
	  'bad magic number', but internal_ao2_ref continues on, causing
	  segfault. Although AO2_MAGIC number is checked by INTERNAL_OBJ
	  before internal_ao2_ref is called, A02_MAGIC is being destroyed
	  (or a wrong pointer) by the time internal_ao2_ref uses
	  INTERNAL_OBJ. internal_ao2_ref now returns -1 if INTERNAL_OBJ
	  encouters a bad magic number. (issue #17037) Reported by:
	  alecdavis Patches: bug17037.diff.txt uploaded by alecdavis
	  (license 585) Tested by: alecdavis

2010-03-18 18:23 +0000 [r253357-253378]  Russell Bryant <russell@digium.com>

	* main/asterisk.c: Update comment to reflect new timeout value.

	* main/asterisk.c: Increase CLI command output timeout for asterisk
	  -rx to 60 seconds. (closes issue #17049) Reported by: russell
	  Tested by: russell Review:
	  https://reviewboard.asterisk.org/r/573/

2010-03-18 17:52 +0000 [r253345]  Leif Madsen <lmadsen@digium.com>

	* apps/app_userevent.c: Change usage of pipe to comma in UserEvent
	  docs. Change the example usage of pipe as a separator to comma in
	  the UserEvent documentation. (closes issue #16961) Reported by:
	  jlpedrosa

2010-03-18 15:59 +0000 [r253261]  Philippe Sultan <philippe.sultan@gmail.com>

	* res/res_jabber.c: Prevent a crash when a buddy gets offline.
	  (closes issue #16760) Reported by: fiddur Patches: 248394.diff
	  uploaded by fiddur (license 678)i with modifications by me Tested
	  by: fiddur, phsultan

2010-03-18 15:46 +0000 [r253256]  Leif Madsen <lmadsen@digium.com>

	* /, doc/tex/localchannel.tex: Update to new Local channel
	  documentation. Add same changes as commit to 1.4, but convert to
	  TeX. (issue #16963) Reported by: kobaz Patches:
	  localchannel-2.txt uploaded by kobaz (license 834)

2010-03-18 15:45 +0000 [r253255]  Tilghman Lesher <tlesher@digium.com>

	* main/stdtime/localtime.c: Just in case of a race, send the signal
	  on interrupt.

2010-03-17 19:06 +0000 [r253205]  Leif Madsen <lmadsen@digium.com>

	* main/test.c: main/test.c reports erroneous CLI message. (closes
	  issue #17051) Reported by: Nick_Lewis

2010-03-17 14:16 +0000 [r253113]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_gosub.c: Switch to using intptr_t, as suggested by
	  Kevin Fleming on the -dev list

2010-03-17 00:40 +0000 [r253028-253032]  Leif Madsen <lmadsen@digium.com>

	* main/xmldoc.c: Fix a typo.

	* configs/say.conf.sample: Merged revisions 253018 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r253018 | lmadsen | 2010-03-16 19:26:19 -0500 (Tue, 16
	  Mar 2010) | 6 lines Add french snipset to say.conf. Add the
	  french snipset to say.conf. (Closes issue #15799) ........

2010-03-17 00:23 +0000 [r252976-253004]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_gosub.c: Argh.

	* configure, include/asterisk/autoconfig.h.in, tests/test_gosub.c,
	  configure.ac: Fix bamboo compile error by calculating an integer
	  with the same size as a pointer.

	* tests/test_gosub.c (added), apps/app_stack.c: Mask out previous
	  arguments on each nested invocation of Gosub. (closes issue
	  #16758) Reported by: wdoekes Patches:
	  20100316__issue16758.diff.txt uploaded by tilghman (license 14)
	  Review: https://reviewboard.asterisk.org/r/561/

2010-03-16 19:36 +0000 [r252849]  Russell Bryant <russell@digium.com>

	* tests/test_time.c: Re-enable test_time on non-Linux.

2010-03-16 19:36 +0000 [r252848]  Sean Bright <sean@malleable.com>

	* res/res_clialiases.c: Include an extra newline after "Aliased CLI
	  command" to get back the prompt. The other issue mentioned in
	  this bug will be more difficult to resolve since we have no idea
	  (right now) of knowing if the command that is aliased has been
	  installed yet. (issue #16978) Reported by: jw-asterisk Tested by:
	  seanbright

2010-03-16 19:34 +0000 [r252846]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_time.c, include/asterisk/localtime.h,
	  main/stdtime/localtime.c: Fix test_time on Mac OS X (and other
	  platforms without inotify) Reviewboard:
	  https://reviewboard.asterisk.org/r/554/

2010-03-16 19:01 +0000 [r252767]  Russell Bryant <russell@digium.com>

	* utils/Makefile, /: Merged revisions 252766 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r252766 | russell | 2010-03-16 14:00:43 -0500 (Tue, 16 Mar 2010)
	  | 6 lines Don't treat warnings as errors for muted. muted
	  supports OS X, but uses functions marked as deprecated in 10.6.
	  However, the functions are still supported, so just ignore the
	  warnings for now and allow the build to proceed. ........

2010-03-16 18:48 +0000 [r252762]  Leif Madsen <lmadsen@digium.com>

	* configs/extensions.ael.sample: Merged revisions 252761 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r252761 | lmadsen | 2010-03-16 13:46:20 -0500 (Tue, 16 Mar 2010)
	  | 7 lines Additional extensions.ael global variable fixes. Fixing
	  up a couple more overlapping global variable namespaces shared
	  with extensions.conf.sample. Also noticed a few of the lines that
	  were commented out didn't have the closing semi-colon so I added
	  that as well. (issue #17035) ........

2010-03-16 18:40 +0000 [r252760]  Tilghman Lesher <tlesher@digium.com>

	* codecs/gsm/Makefile: OSARCH is not inherited to this directory

2010-03-16 18:36 +0000 [r252759]  Russell Bryant <russell@digium.com>

	* tests/test_time.c: Disable this test on non-Linux for now.

2010-03-15 22:48 +0000 [r252709]  Kevin P. Fleming <kpfleming@digium.com>

	* res/res_fax.c: Improve handling of values supplied to
	  FAXOPT(ecm). Previously, values that began with whitespace were
	  silently treated as 'no', and all non-'yes' values were also
	  treated as 'no'. Now the supplied value is specifically checked
	  for a 'yes' or 'no' (or equivalent) value, after skipping leading
	  whitespace. If the value is not valid, then a warning message is
	  generated.

2010-03-15 22:14 +0000 [r252627]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Tell the RTP engine API about the initial
	  read and write format. Peer reviewed out-of-band by file.

2010-03-15 21:55 +0000 [r252623]  Sean Bright <sean@malleable.com>

	* apps/app_meetme.c: Resolve a crash in SLATrunk when the specified
	  trunk doesn't exist. Reported by philipp64 in #asterisk-dev.

2010-03-15 21:51 +0000 [r252619]  Tilghman Lesher <tlesher@digium.com>

	* contrib/init.d/org.asterisk.asterisk.plist, /: Merged revisions
	  252617 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r252617 | tilghman | 2010-03-15 16:43:14 -0500 (Mon, 15 Mar 2010)
	  | 2 lines Uh, yeah. Umask. I'm stupid. ........

2010-03-15 20:52 +0000 [r252534]  Leif Madsen <lmadsen@digium.com>

	* /, configs/extensions.ael.sample: Merged revisions 252533 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r252533 | lmadsen | 2010-03-15 15:48:56 -0500 (Mon, 15 Mar 2010)
	  | 7 lines Update extensions.ael file to not overlap
	  extensions.conf. Updated the extensions.ael file so the global
	  variables don't overlap those that we have in extensions.conf
	  (sample files). This way unexpected things won't happed hopefully
	  if both pbx_ael and res_config are loaded. (closes issue #17035)
	  Reported by: pprindeville ........

2010-03-15 16:27 +0000 [r252362-252488]  Tilghman Lesher <tlesher@digium.com>

	* codecs/gsm/Makefile: Make the Makefile logic more explicit and
	  move the Snow Leopard logic down to where it's not executed on
	  non-Darwin systems. (closes issue #17028) Reported by: pabelanger
	  Patches: issue17028_20100315.patch uploaded by seanbright
	  (license 71) 20100315__issue17028.diff.txt uploaded by tilghman
	  (license 14) Tested by: tilghman, pabelanger

	* channels/chan_sip.c: THIS IS NOT PYTHON. Indentation doesn't
	  matter, only braces do. (closes issue #17025) Reported by:
	  smurfix Patches: sip.patch uploaded by smurfix (license 547)

	* /: Recorded merge of revisions 252366 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r252366 | tilghman | 2010-03-14 20:39:00 -0500 (Sun, 14 Mar 2010)
	  | 2 lines Typo ........

	* Makefile, contrib/init.d/org.asterisk.asterisk.plist (added), /,
	  main/asterisk.c: Merged revisions 252361 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r252361 | tilghman | 2010-03-14 20:33:50 -0500 (Sun, 14 Mar 2010)
	  | 4 lines Launch Asterisk on Mac OS X with launchd. Reviewboard:
	  https://reviewboard.asterisk.org/r/551/ ........

2010-03-14 17:43 +0000 [r252314]  Sean Bright <sean@malleable.com>

	* cdr/cdr_sqlite3_custom.c, cel/cel_sqlite3_custom.c: Fix building
	  CDR and CEL SQLite3 modules. They added a sqlite3_log() function
	  which was conflicting with our function names. (closes issue
	  #17017) Reported by: alephlg

2010-03-14 14:42 +0000 [r252277]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooh323.c, addons/chan_ooh323.c,
	  addons/ooh323c/src/ooh245.c, addons/ooh323c/src/ooCalls.h,
	  configs/chan_ooh323.conf.sample, addons/ooh323c/src/ooh245.h,
	  addons/ooh323c/src/ooSocket.c, addons/ooh323c/src/ootypes.h,
	  addons/ooh323c/src/ooq931.c: generate roundtrip delay requests
	  and responses added response to roundtrip delay requests from
	  opposite side added roundtrip delay request sending to opposite
	  side after answer, added options for sending request (interval
	  between request and count of unreplied requests before forced
	  call hangup) (closes issue #16976) Reported by: vmikhelson
	  Patches: rtdr-1.6.0-2.patch uploaded by may213 (license 454)
	  Tested by: vmikhelson, may213

2010-03-13 22:21 +0000 [r252229-252241]  Russell Bryant <russell@digium.com>

	* main/app.c: Resolve unit test failure that occurred on Mac OSX.
	  On Linux (glibc), regcomp() does not return an error for an empty
	  string. However, the version on OSX will return an error. The
	  test for channel group matching by regex now passes on the mac,
	  as well.

	* tests/test_time.c: Resolve compiler warning by paying attention
	  to system() return value. This resolves the last compile failure
	  on bamboo.

2010-03-12 23:18 +0000 [r252133]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_time.c (added): Test script to verify that timezone
	  cache is properly removed on zonefile alteration.

2010-03-12 22:04 +0000 [r252089]  Terry Wilson <twilson@digium.com>

	* main/channel.c, res/res_rtp_asterisk.c, addons/chan_ooh323.c,
	  main/rtp_engine.c, channels/chan_sip.c, channels/chan_skinny.c,
	  channels/chan_h323.c, configs/sip.conf.sample,
	  include/asterisk/frame.h, include/asterisk/rtp_engine.h,
	  channels/sip/include/sip.h, channels/chan_mgcp.c: Only change the
	  RTP ssrc when we see that it has changed This change basically
	  reverts the change reviewed in
	  https://reviewboard.asterisk.org/r/374/ and instead limits the
	  updating of the RTP synchronization source to only those times
	  when we detect that the other side of the conversation has
	  changed the ssrc. The problem is that SRCUPDATE control frames
	  are sent many times where we don't want a new ssrc, including
	  whenever Asterisk has to send DTMF in a normal bridge. This is
	  also not the first time that this mistake has been made. The
	  initial implementation of the ast_rtp_new_source function also
	  changed the ssrc--and then it was removed because of this same
	  issue. Then, we put it back in again to fix a different issue.
	  This patch attempts to only change the ssrc when we see that the
	  other side of the conversation has changed the ssrc. It also
	  renames some functions to make their purpose more clear. Review:
	  https://reviewboard.asterisk.org/r/540/

2010-03-12 21:57 +0000 [r252088]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c: add missing mfcr2_skip_category setting

2010-03-12 19:43 +0000 [r251989]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Don't override a user option with the
	  global option. (closes issue #16849) Reported by: ip-rob Patches:
	  20100311__issue16849.diff.txt uploaded by tilghman (license 14)
	  Tested by: ip-rob

2010-03-12 19:40 +0000 [r251946-251987]  Richard Mudgett <rmudgett@digium.com>

	* /: Merged revisions 251986 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r251986 | rmudgett | 2010-03-12 13:33:22 -0600 (Fri, 12 Mar 2010)
	  | 1 line Make chan_dahdi wakeup_sub() prototype not conditional.
	  ........

	* channels/chan_dahdi.c: Doxegen this chan_dahdi lock.

2010-03-11 21:07 +0000 [r251877-251884]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_exec.c: Because ExecIf needs to reprocess arguments,
	  it's best if we don't remove quotes during parsing. (closes issue
	  #16905) Reported by: ip-rob Patches:
	  20100303__issue16905.diff.txt uploaded by tilghman (license 14)
	  Tested by: ip-rob

	* tests/test_stringfields.c: Fix tests on 32-bit systems.

	* apps/app_system.c: If the argument to the system application is
	  quoted, ensure we remove the quotes before trying to execute.
	  (closes issue #16842) Reported by: ip-rob Patches:
	  20100310__issue16842.diff.txt uploaded by tilghman (license 14)
	  Tested by: ip-rob

2010-03-11 18:07 +0000 [r251821]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c: Minor tweaks and
	  comment updates to chan_dahdi.

2010-03-11 07:03 +0000 [r251779]  Alec L Davis <sivad.a@paradise.net.nz>

	* apps/app_directory.c: Add supporting code for app-directory pause
	  option. Since 1.6.1 CLI help reports that option p(n) 'initial
	  pause' is available. Supporting code was never implemented.
	  (closes issue #16751) Reported by: alecdavis Patches:
	  directory_pause.trunk.diff.txt uploaded by alecdavis (license
	  585) Tested by: alecdavis Review:
	  https://reviewboard.asterisk.org/r/481/

2010-03-10 23:15 +0000 [r251736]  Jeff Peeler <jpeeler@digium.com>

	* tests/test_stringfields.c (added), main/utils.c: Add new unit
	  test for stringfields. (Copied from reviewboard) Tests the
	  following: 1. Basic allocation and setting of string fields. 2.
	  Shrinking a string field and re-expanding it. 3. Growing the last
	  allocation in a string field pool. 4. Setting a string to a large
	  value such that a new string field pool must be allocated. In
	  each part, we make sure that the string field is accurate (has
	  the correct value in it), make sure that the 2 bytes before the
	  string field has the correct capacity for the field, and for
	  tests 2-4, we make sure that the string field is where we expect
	  it to be in memory. Also tested: 5. Shrinking a string field and
	  partially re-expanding it. 6. Setting strings in such a way as to
	  create three separate string field pools and then removing the
	  middle pool. There is a bug fix in the init function, which
	  ensures the embedded_pool is set to NULL which is important for
	  stack allocated structures. Review:
	  https://reviewboard.asterisk.org/r/185/

2010-03-10 20:54 +0000 [r251682]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_strings.c: Hmmm, apparently needed to be fixed in
	  trunk, too. (closes issue #16900) Reported by: bluecrow76
	  Patches: asterisk-1.6.2.4-func_strings.diff uploaded by
	  bluecrow76 (license 270)

2010-03-10 20:53 +0000 [r251680]  Leif Madsen <lmadsen@digium.com>

	* apps/app_record.c: Be less ambiguous in Record() app docs. For
	  some reason the documentation for the 'k' application in trunk
	  and 1.6.2 is different than 1.6.0 and 1.6.1, so I'm setting them
	  all to match. The wording in 1.6.2 and trunk was ambiguous, so
	  you could interpret the wording the mean that recording would
	  continue upon hangup indefinitely, or you could interpret it to
	  mean that the recorded data would not be discarded upon hangup.
	  This change makes it clear we mean the latter, and not the
	  former. Came from a discussion in #asterisk on IRC.

2010-03-10 20:51 +0000 [r251679]  Jeff Peeler <jpeeler@digium.com>

	* main/features.c: Fix ParkAndAnnounce not respecting parking
	  options. The patch ensures that if a peer does not exist, parking
	  settings are read from the channel. A unit test has been written
	  to ensure proper operation for both standard parking and parking
	  using masquerades. (closes issue #16592) Reported by: mwyres
	  Patches: bug_16592.diff uploaded by snuffy (license 35) Review:
	  https://reviewboard.asterisk.org/r/539/

2010-03-10 20:30 +0000 [r251677]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_substitution.c, funcs/func_strings.c: It's amazing
	  what writing a test will find. (issue #16900) Reported by:
	  bluecrow76

2010-03-10 18:25 +0000 [r251631]  Jeff Peeler <jpeeler@digium.com>

	* main/abstract_jb.c: Fix jitterbuffer logging not creating
	  logfiles. Three changes made here: 1) Do not fail if a previous
	  log does not exist (in fact, this is probably expected). 2)
	  Ensure that the file descriptor to write to gets assigned
	  properly. I am at a loss as to why assigning safe_fd outside the
	  if fixes this, but it makes the if statement slightly less
	  complicated anyway. 3) Move up the failure message so that the
	  errno of the failure is not overwritten by fclose. (closes issue
	  #16917) Reported by: Artem

2010-03-10 16:55 +0000 [r251538-251585]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h, channels/sig_pri.c: Simplified
	  dahdi_request() channel selection failed reason/cause code. Also
	  avoid potential crash because cause could be NULL.

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  Reduce the amount of database access for
	  HAVE_PRI_SERVICE_MESSAGES. Rework HAVE_PRI_SERVICE_MESSAGES to
	  not use the active values directly from the database. Database
	  access is likely expensive. Database access now only happens on
	  initialization, destruction, and when the B channel is taken in
	  or out of service. This change is not related to call waiting but
	  it would cause the search for a call waiting interface to be very
	  expensive and slow down D channel message servicing.

2010-03-09 20:30 +0000 [r251475]  Tilghman Lesher <tlesher@digium.com>

	* codecs/gsm/Makefile, Makefile.rules: Build system modifications
	  to ensure that Asterisk properly builds on Mac OS X 10.6. (closes
	  issue #16997) Reported by: jquinn Patches:
	  20100309__issue16997__2.diff.txt uploaded by tilghman (license
	  14) Tested by: tilghman, russell

2010-03-08 18:08 +0000 [r251310]  Leif Madsen <lmadsen@digium.com>

	* contrib/init.d/rc.debian.asterisk, /: Merged revisions 251309 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r251309 | lmadsen | 2010-03-08 12:07:44 -0600 (Mon, 08 Mar 2010)
	  | 13 lines Fix Debian init script to not use -c. When using the
	  init script as-is currently, it could cause issues on Debian such
	  as high CPU usage. This fix has worked for several people so I'm
	  implementing the change. (closes issue #16784) Reported by:
	  pabelanger Tested by: pabelanger, mnick, davidw, mutineer612
	  (closes issue #16887) Reported by: jlpedrosa Tested by:
	  jlpedrosa, mutineer612 ........

2010-03-08 05:15 +0000 [r251262-251263]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  main/stdtime/localtime.c: Remove portions that weren't meant to
	  be committed for the OS X compat fix

	* funcs/func_pitchshift.c, configure,
	  include/asterisk/autoconfig.h.in, main/Makefile, configure.ac,
	  main/stdtime/localtime.c: Change needed to make Mac OS X 10.6
	  happy

2010-03-07 14:53 +0000 [r251221-251222]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_skinny.c: Clean transmit_* for start/stop media
	  transmission Small patch changing skinny_set_rtp_peer to use
	  transmit_stopmediatransmission and to use new
	  transmit_startmediatransmission. Basic testing on 30VIP's by
	  wedhorn Basic testing on 7960 by me (closes issue #16956)
	  Reported by: wedhorn Patches: skinny-clean05b.diff uploaded by
	  wedhorn (license 30) Tested by: wedhorn,mvanbaak

	* channels/chan_skinny.c: Cleanup transmit_callstate handling Broke
	  the various functions included in transmit_callstate to their own
	  functions. Transmit_callstate now just transmits callstate.
	  Generally left the functionality as it was, which highlight some
	  minor code issues (eg multiple transmit_callstate's). I did
	  however revise the hint code usage of the old transmit_callstate
	  as it it not appropriate to put a device on hook based on the
	  change of a hinted device. (closes issue #16939) Reported by:
	  wedhorn Patches: skinny-clean04.diff uploaded by wedhorn (license
	  30) Tested by: mvanbaak,wedhorn

2010-03-07 00:45 +0000 [r251181]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooq931.c: small log issue from bug 0016664

2010-03-06 14:16 +0000 [r251137]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Fix a crash in SIP blind transfer handling
	  found by an automated external test. The first real test added to
	  the external test suite found a pretty nasty crash that occurred
	  in Asterisk trunk. The crash was due to a race condition between
	  the REFER handling and channel destruction in the channel thread.
	  After the transfer has been completed, we go back to the
	  transferrer channel and try to lock it so we can fire off a CEL
	  event. However, there was no guarantee that the channel was still
	  around at that point since it's racing against the channel
	  thread. Since ast_channel is a reference counted object, the fix
	  is simple. The code unlocks the transferrer channel before
	  finally completing the transfer with an async goto. At this point
	  the channel thread is going to start call tear down and the
	  channel will eventually be destroyed. To ensure that the channel
	  is valid when we want to fire off the CEL event, increase the
	  channel's reference count.

2010-03-05 21:51 +0000 [r251038-251087]  David Vossel <dvossel@digium.com>

	* funcs/func_pitchshift.c: fixes xml error in func_pitchshift

	* funcs/func_pitchshift.c (added), CHANGES: PITCH_SHIFT dialplan
	  function The PITCH_SHIFT function can be used on a channel to
	  independently modify the pitch of both rx and tx audio streams.
	  Now you can improve your conference calls by assigning a random
	  pitch effect to everyone entering a meetme room, or just make
	  your day more interesting by making your co-workers sound funny.
	  These are just some of the numerious practical uses for this
	  function. Enjoy! https://reviewboard.asterisk.org/r/526/

2010-03-05 19:32 +0000 [r251022]  Russell Bryant <russell@digium.com>

	* build_tools/menuselect-deps.in, configure,
	  include/asterisk/autoconfig.h.in, configure.ac, makeopts.in,
	  pbx/pbx_gtkconsole.c (removed): Remove pbx_gtkconsole and related
	  gtk1 checks. Review: https://reviewboard.asterisk.org/r/541/

2010-03-05 19:10 +0000 [r250979]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_followme.c: Fix app_followme playing wrong sound files.
	  Fixes regression introduced in 140167 that uses the wrong
	  variable names. (closes issue #16930) Reported by: ianc Patches:
	  fix_reload_followme.diff uploaded by ianc (license 998)

2010-03-05 05:03 +0000 [r250917]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Fix up some of chan_sip's usage of the RTP
	  engine API. The get_local_address() function for an RTP instance
	  was used when building an SDP, but the results were not honored.
	  The RTP engine activate() function was not being used once we
	  have determined that media will now flow.

2010-03-05 04:37 +0000 [r250913]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Missing quote in ODBC query. (closes issue
	  #16953) Reported by: elguero Patches:
	  app_voicemail-odbc-syntax-fix.diff uploaded by elguero (license
	  37)

2010-03-05 02:07 +0000 [r250871]  Russell Bryant <russell@digium.com>

	* include/asterisk/rtp_engine.h: Fix up the ast_rtp_property enum.
	  The mis-placement of the latest entry meant that when it was set,
	  it was writing one index past the end of the properties array in
	  the ast_rtp_instance (which happened to be the local_address
	  field).

2010-03-05 01:05 +0000 [r250787]  Jeff Peeler <jpeeler@digium.com>

	* /, res/res_musiconhold.c: Merged revisions 250786 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r250786 | jpeeler | 2010-03-04 19:02:58 -0600 (Thu, 04
	  Mar 2010) | 9 lines Fix not being able to specify a URL in MOH
	  class directory. Don't attempt to chdir on a URL! (closes issue
	  #16875) Reported by: raarts Patches: moh-http.patch uploaded by
	  raarts (license 937) ........

2010-03-04 20:12 +0000 [r250730]  Mark Michelson <mmichelson@digium.com>

	* funcs/func_channel.c: Adjust XML for func_channel to indicate
	  that rtpdest can take a "text" argument.

2010-03-03 21:28 +0000 [r250609-250614]  Leif Madsen <lmadsen@digium.com>

	* /: Recorded merge of revisions 250613 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r250613 | lmadsen | 2010-03-03 16:28:02 -0500 (Wed, 03 Mar 2010)
	  | 11 lines Update existing Local channel documentation. A
	  complete re-write of the Local channel documentation has been
	  performed, with the existing information from localchannel.txt
	  and localchannel.tex merged in. (issue #16637) Reported by: kobaz
	  Patches: localchannel.tex uploaded by lmadsen (license 10)
	  localchannel.txt uploaded by lmadsen (license 10) Tested by:
	  lmadsen, jsmith, mmichelson ........

	* doc/tex/localchannel.tex: Update existing Local channel
	  documentation. A complete re-write of the Local channel
	  documentation has been performed, with the existing information
	  from localchannel.txt and localchannel.tex merged in. (closes
	  issue #16637) Reported by: kobaz Patches: localchannel.tex
	  uploaded by lmadsen (license 10) localchannel.txt uploaded by
	  lmadsen (license 10) Tested by: lmadsen, jsmith, mmichelson

2010-03-03 19:38 +0000 [r250565]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_dial.c, channels/chan_dahdi.c, main/dial.c,
	  channels/chan_local.c, include/asterisk/channel.h,
	  apps/app_queue.c: Removed cdrflags from ast_channel structure.
	  Only chan_dahdi set a value in cdrflags. Everyone else just
	  copied it around the system. Noone cared about any value it may
	  have contained.

2010-03-03 19:06 +0000 [r250481]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /: Merged revisions
	  250480 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r250480 | jpeeler | 2010-03-03 13:04:11 -0600 (Wed, 03 Mar 2010)
	  | 15 lines Make sure to clear red alarm after polarity reversal.
	  From the issue: The automatic overnight line tests (or manual
	  ones) used on UK (BT) lines causes a red alarm on a dahdi /
	  TDM400P connected channel. This is because the line uses voltage
	  tests (battery loss) and polarity reversal. The polarity reversal
	  causes chan_dahdi to initiate v23 CallerID processing but during
	  this the event DAHDI_EVENT_NOALARM is ignored so that the alarm
	  is never cleared. (closes issue #14163) Reported by: jedi98
	  Patches: chan_dahdi-1.4-inalarm.diff uploaded by jedi98 (license
	  653) Tested by: mattbrown, Chainsaw, mikeeccleston ........

2010-03-03 19:02 +0000 [r250395-250478]  David Vossel <dvossel@digium.com>

	* main/test.c: Changes 0ms to <1ms in cli END results during 'test
	  execute'

	* /, channels/chan_iax2.c: Merged revisions 250394 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r250394 | dvossel | 2010-03-03 12:02:27 -0600 (Wed, 03
	  Mar 2010) | 16 lines fixes problem with duplicate TXREQ packets
	  When Asterisk receives an IAX2 TXREQ packet, try_transfer() will
	  call store_by_transfercallno() to link the chan_iax2_pvt struct
	  into iax_transfercallno_pvts. If a duplicate TXREQ packet is
	  received for the same call, the pvt struct will be linked into
	  iax_transfercallno_pvts multiple times. This patch fixes this.
	  Thanks rain for debugging this and providing a patch! (closes
	  issue #16904) Reported by: rain Patches:
	  iax2-double-txreq-fix.diff uploaded by rain (license 327) Tested
	  by: rain, dvossel ........

2010-03-03 17:37 +0000 [r250392]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample, CHANGES:
	  Add new config option to control AMI alarm event reporting in
	  chan_dahdi. New config parameter "reportalarms" added in
	  chan_dahdi.conf which supports the following possible values:
	  "channels": report each channel alarms (current behavior, default
	  for backward compatibility) "spans": report an "SpanAlarm" event
	  when the span of any configured channel is alarmed "all": report
	  channel and span alarms (aggregated behavior) "none": do not
	  report any alarms (closes issue #16709) Reported by: nahuelgreco
	  Patches: chan_dahdi.c.reportalarms.patch uploaded by nahuelgreco
	  (license 162)

2010-03-03 16:43 +0000 [r250303-250346]  Tilghman Lesher <tlesher@digium.com>

	* main/editline/configure: One more fix to editline

	* main/editline/configure, main/editline/Makefile.in,
	  main/editline/sys.h, main/editline/configure.in: Eliminate
	  remaining libedit warnings (shown in bamboo)

2010-03-03 15:39 +0000 [r250302]  Matthew Nicholson <mnicholson@digium.com>

	* res/res_fax.c, apps/app_fax.c, CHANGES, res/res_fax_spandsp.c:
	  Updated CHANGES file to mention res_fax and res_fax_spandsp. Also
	  fixed MODULEINFO depends and conflicts for app_fax, res_fax, and
	  res_fax_spandsp.

2010-03-03 00:18 +0000 [r250235-250246]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes signed to unsigned int comparision
	  issue for FaxMaxDatagram value.

	* main/test.c: fixes assumption that test failed if it did not pass
	  when generating results

	* tests/test_utils.c: base64 unit test

2010-03-02 23:22 +0000 [r250190-250213]  Matthew Nicholson <mnicholson@digium.com>

	* configs/res_fax.conf.sample (added), include/asterisk/res_fax.h
	  (added): Merge missed files from res_fax/res_fax_spandsp merge.

	* res/res_fax.c (added), res/res_fax.exports (added),
	  include/asterisk/frame.h, res/res_fax_spandsp.c (added): Merge
	  res_fax and res_fax_spandsp.

2010-03-02 21:58 +0000 [r250141]  David Vossel <dvossel@digium.com>

	* apps/app_directed_pickup.c, CHANGES: adds 'p' option to
	  PickupChan The 'p' option allows the PickupChan app to pickup a
	  ringing phone by looking for the first match to a partial channel
	  name rather than requiring a full match. (closes issue #16613)
	  Reported by: syspert Patches: pickipbycallid.patch uploaded by
	  syspert (license 938) pickupbycallerid_v2.patch uploaded by
	  dvossel (license 671) Tested by: dvossel, syspert

2010-03-02 21:09 +0000 [r249950-250051]  Leif Madsen <lmadsen@digium.com>

	* doc/tex/imapstorage.tex: Update IMAP documentation. Update the
	  IMAP documentation to make it clear that storing voicemails in
	  the same folder as a large number of emails could potentially
	  cause significant slow downs when writing or retrieving
	  voicemails. (issue #16704) Reported by: TimeHider Tested by:
	  lmadsen, TimeHider

	* /, configs/cdr.conf.sample: Merged revisions 250043 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r250043 | lmadsen | 2010-03-02 15:51:35 -0500 (Tue, 02
	  Mar 2010) | 7 lines Update documentation to clarify purpose of
	  unanswered option. (closes issue #16267) Reported by: elsto
	  Patches: cdr.conf.sample.patch.txt uploaded by lmadsen (license
	  10) Tested by: davidw, elsto ........

	* /: Recorded merge of revisions 250041 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r250041 | lmadsen | 2010-03-02 15:45:37 -0500 (Tue, 02 Mar 2010)
	  | 4 lines Update documentation to not imply we support overriding
	  options. (issue #16855) Reported by: davidw ........

	* doc/tex/configuration.tex: Update documentation to not imply we
	  support overriding options. (closes issue #16855) Reported by:
	  davidw

	* apps/app_directory.c: Fix literal values wrapped in
	  documentation. (closes issue #16145) Reported by: tilghman

2010-03-02 19:39 +0000 [r249947]  Alec L Davis <sivad.a@paradise.net.nz>

	* apps/app_echo.c: revert ability to exit echo app caused a
	  regression, as only supported VOICE, not VIDEO etc. (issue
	  #16880)

2010-03-02 19:24 +0000 [r249912-249925]  Leif Madsen <lmadsen@digium.com>

	* main/features.c: Add missing description of the PARKINGLOT
	  variable in XML documentation. (closes issue #16743) Reported by:
	  snuffy Patches: parkingdoc.diff uploaded by snuffy (license 35)

	* pbx/pbx_dundi.c: Convert some DUNDI functions to XML
	  documentation. (closes issue #16798) Reported by: snuffy Patches:
	  xml_dundi.diff uploaded by snuffy (license 35)

2010-03-02 19:08 +0000 [r249893]  David Vossel <dvossel@digium.com>

	* channels/chan_unistim.c, configs/chan_dahdi.conf.sample,
	  configs/console.conf.sample, channels/chan_local.c,
	  channels/chan_sip.c, configs/oss.conf.sample,
	  configs/usbradio.conf.sample, configs/misdn.conf.sample,
	  channels/chan_console.c, channels/chan_gtalk.c,
	  channels/chan_oss.c, channels/misdn_config.c,
	  include/asterisk/abstract_jb.h, configs/alsa.conf.sample,
	  channels/chan_jingle.c, channels/chan_usbradio.c,
	  channels/chan_dahdi.c, channels/chan_skinny.c,
	  configs/mgcp.conf.sample, main/abstract_jb.c,
	  channels/chan_h323.c, channels/chan_alsa.c,
	  configs/sip.conf.sample, channels/chan_mgcp.c: fixes adaptive
	  jitterbuffer configuration When configuring the adaptive
	  jitterbuffer, the target_extra value not only could not be set
	  from the configuration, but was not even being set to its proper
	  default. This value is required in order for the adaptive
	  jitterbuffer to work correctly. To resolve this a config option
	  has been added to expose this value to the conf files, and a
	  default value is provided when no config specific value is
	  present.

2010-03-02 19:02 +0000 [r249892]  Leif Madsen <lmadsen@digium.com>

	* apps/app_osplookup.c, apps/app_confbridge.c, res/res_jabber.c:
	  Fix several XML documentation validate errors.

2010-03-02 18:31 +0000 [r249889-249891]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c: fix build by checking result of symlink in
	  test_voicemail_vmsayname

	* CHANGES, apps/app_voicemail.c: Add new application VMSayName for
	  use with voicemail. VMSayName that will play the recorded name of
	  the voicemail user if it exists, otherwise will play the mailbox
	  number. A unit test has been written to verify correct
	  functionality called test_voicemail_vmsayname. (closes issue
	  #14973) Reported by: ghjm Review:
	  https://reviewboard.asterisk.org/r/530/

2010-03-02 07:38 +0000 [r249759-249801]  Alec L Davis <sivad.a@paradise.net.nz>

	* apps/app_echo.c: fixes ability to exit echo app when called from
	  a ISDN channel, null frames prevent '#' exit. Now only echo back
	  VOICE and DTMF frames (issue #16880) Reported by: alecdavis
	  Patches: echo_exit.diff.txt uploaded by alecdavis (license 585)
	  Tested by: alecdavis

	* channels/chan_dahdi.c: fix asterisk setting of pritimers from
	  chan_dahdi.conf regression since sig_pri split. (issue #16909)
	  Reported by: alecdavis Patches: pritimer.asterisk.diff.txt
	  uploaded by alecdavis (license 585) Tested by: alecdavis

2010-03-01 19:36 +0000 [r249672]  Sean Bright <sean@malleable.com>

	* /, apps/app_voicemail.c: Merged revisions 249671 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r249671 | seanbright | 2010-03-01 14:35:01 -0500 (Mon,
	  01 Mar 2010) | 11 lines Fix crash in app_voicemail related to
	  message counting. We were passing a 'struct inprocess **' and
	  treating it like a 'struct inprocess *' causing a segfault.
	  (closes issue #16921) Reported by: whardier Patches:
	  20100301_issue16921.patch uploaded by seanbright (license 71)
	  Tested by: whardier ........

2010-03-01 19:33 +0000 [r249669-249670]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_skinny.c: Cleanup display_*message functions. This
	  patch splits transmit_displaymessage into
	  transmit_clear_display_message and transmit_display_message which
	  better aligns with the skinny protocol. The new
	  transmit_display_message is not used in the current code, but
	  will be and so it is commented. Moved handle_datetime from this
	  function to onhook and offhook functions (display now properly
	  cleared at the end of a call on 30VIP). Removed skinny debug
	  messages from inline code as there's an ast_verb in
	  transmit_clear_display_message. Also, removed commentary that it
	  was a clear display as it is now apparent from the function name.
	  Split transmit_displaypromptmessage into display and clear.
	  (closes issue #16878) Reported by: wedhorn Patches:
	  skinny-clean02.diff uploaded by wedhorn (license 30)
	  skinny-clean03.diff uploaded by wedhorn (license 30)

	* channels/chan_skinny.c: fix endianes issues in chan_skinny
	  (closes issue #16826) Reported by: PipoCanaja Patches:
	  chan_skinny.c_bigendianPatch_20100218.diff uploaded by PipoCanaja
	  (license 994) Tested by: wedhorn

2010-03-01 18:36 +0000 [r249623]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Constify a bit of app_voicemail, to make
	  ODBC and IMAP compile once again.

2010-03-01 17:11 +0000 [r249538]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_local.c, /: Merged revisions 249536 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r249536 | jpeeler | 2010-03-01 11:02:03 -0600 (Mon, 01
	  Mar 2010) | 11 lines Modify queued frames from local channels to
	  not set the other side to up In this case, attended transfers
	  were broken due to ast_feature_request_and_dial detecting the
	  channel being set to up before the answer frame could be read and
	  therefore failing to mark the channel as ready. This fix is a
	  regression fix for 244785, which should continue to work properly
	  as well. (closes issue #16816) Reported by: jamhed Tested by:
	  jamhed, corruptor ........

2010-02-28 20:50 +0000 [r249491]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Fix unit test that Alec Davis broke.
	  (closes issue #16927) Reported by: alecdavis

2010-02-28 16:36 +0000 [r249449]  Alec L Davis <sivad.a@paradise.net.nz>

	* apps/app_voicemail.c: make unit test check for NULL folder, which
	  then defaults to INBOX previous test, gave false level of
	  assurance that code was healthy. (issue #16927) Reported by:
	  alecdavis Patches: based on app_voicemail_test.diff.txt uploaded
	  by alecdavis (license 585) Tested by: alecdavis

2010-02-28 07:10 +0000 [r249405]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/app.h, apps/app_voicemail.c: Properly document
	  voicemail API documents. Also fix a crash reported via the -dev
	  list.

2010-02-27 22:49 +0000 [r249320]  Alec L Davis <sivad.a@paradise.net.nz>

	* channels/sig_pri.c: overlap receiving: automatically send CALL
	  PROCEEDING when dialplan starts Following Q.931 5.2.4 When the
	  user has determined that sufficient call information has been
	  received the user shall stop T302 and send CALL PROCEEDING to the
	  network. Previously timeouts were possible if the dialplan took a
	  long time to issue any response back to the network. Verified
	  that our local TELCO also does the same. (issue #16789) Reported
	  by: alecdavis Patches: overlap_receiving_trunk.diff.txt uploaded
	  by alecdavis (license 585) Tested by: alecdavis

2010-02-27 14:08 +0000 [r249235]  Kevin P. Fleming <kpfleming@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 249234 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r249234 | kpfleming | 2010-02-27 09:07:59 -0500 (Sat, 27
	  Feb 2010) | 1 line add a reference to the now-published IAX2 RFC
	  ........

2010-02-26 18:41 +0000 [r249187]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Cleanups to fix bugs in the VM count API
	  functions. - Urgent voicemails were not attached, because the
	  attachment code looked in the wrong folder. - Urgent voicemails
	  were sometimes counted twice when displaying the count of new
	  messages. - Backends were inconsistent as to which voicemails
	  each API counted. - Unit tests added to verify behavior in the
	  future. (closes issue #15654) Reported by: tomo1657 Patches:
	  20100225__issue15654.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman (closes issue #16448) Reported by: hevad
	  Review: https://reviewboard.asterisk.org/r/525/

2010-02-26 18:41 +0000 [r249186]  David Vossel <dvossel@digium.com>

	* main/test.c: adds Time field to "test show results" cli command

2010-02-26 17:13 +0000 [r249101-249105]  Mark Michelson <mmichelson@digium.com>

	* main/features.c: Send a manager event when the manager
	  BridgeAction command is used. (closes issue #16769) Reported by:
	  syspert Patches: bridgeaction.patch uploaded by syspert (license
	  938)

	* /, channels/chan_sip.c: Merged revisions 249100 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r249100 | mmichelson | 2010-02-26 11:04:29 -0600 (Fri, 26 Feb
	  2010) | 8 lines For T.38 reINVITEs treat a 606 the same as a 488.
	  (closes issue #16792) Reported by: vrban Patches: t38_606.patch
	  uploaded by vrban (license 756) ........

2010-02-26 08:45 +0000 [r249009-249058]  Russell Bryant <russell@digium.com>

	* cdr/cdr_sqlite3_custom.c, cdr/cdr_syslog.c, cdr/cdr_sqlite.c,
	  cdr/cdr_adaptive_odbc.c, cdr/cdr_pgsql.c, cdr/cdr_odbc.c,
	  cdr/cdr_radius.c, cdr/cdr_custom.c, cdr/cdr_manager.c,
	  cdr/cdr_tds.c, cdr/cdr_csv.c: formatting tweaks and
	  constification

	* main/cdr.c: Trim trailing whitespace (to help reduce diff against
	  cdr-q branch)

	* include/asterisk/cdr.h: Trim trailing whitespace, convert lists
	  of defines to enums

	* cdr/cdr_sqlite.c: trivial formatting tweak (working on reducing
	  diff against trunk for cdr-q)

	* cdr/cdr_sqlite3_custom.c: remove include

	* cdr/cdr_csv.c: constification, remove include

	* cdr/cdr_tds.c: Remove unnecessary includes, formatting tweak

	* cdr/cdr_pgsql.c: constification and remove unnecessary include

2010-02-25 23:09 +0000 [r248952]  Jeff Peeler <jpeeler@digium.com>

	* /, res/res_monitor.c: Merged revisions 248860 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r248860 | jpeeler | 2010-02-25 15:22:06 -0600 (Thu, 25 Feb 2010)
	  | 18 lines Ensure that monitor recordings are written to the
	  correct location (again) This is an extension to 248757. As such
	  the dialplan test has been extended: exten => 5040, 1,
	  monitor(wav,tmp/jeff/monitor_test,b) exten => 5040, n,
	  dial(sip/5001) exten => 5041, 1,
	  monitor(wav,/tmp/jeff/monitor_test2,b) exten => 5041, n,
	  dial(sip/5001) exten => 5042, 1, monitor(wav,monitor_test3,b)
	  exten => 5042, n, dial(sip/5001) exten => 5043, 1,
	  monitor(wav,tmp/jeff/monitor_test3,m) exten => 5043, n,
	  changemonitor(monitor_test4) exten => 5043, n, dial(sip/5001)
	  exten => 5044, 1, monitor(wav,monitor_test4,m) exten => 5044, n,
	  changemonitor(tmp/jeff/monitor_test5) ; this looks to fail by
	  design and emits a warning exten => 5044, n, dial(sip/5001)
	  ........

2010-02-25 22:41 +0000 [r248946]  Mark Michelson <mmichelson@digium.com>

	* main/acl.c: Fix incorrect ACL behavior when CIDR notation of "/0"
	  is used. AST-2010-003

2010-02-25 21:22 +0000 [r248861]  Tilghman Lesher <tlesher@digium.com>

	* /, main/asterisk.c: Merged revisions 248859 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r248859 | tilghman | 2010-02-25 15:21:05 -0600 (Thu, 25 Feb 2010)
	  | 15 lines Some platforms clear /var/run at boot, which makes
	  connecting a remote console... difficult. Previously, we only
	  created the default /var/run/asterisk directory at install time.
	  While we could create it in the init script, that would not work
	  for those who start asterisk manually from the command line. So
	  the safest thing to do is to create it as part of the Asterisk
	  boot process. This also changes the ownership of the directory,
	  because the pid and ctl files are created after we setuid/setgid.
	  (closes issue #16802) Reported by: Brian Patches:
	  20100224__issue16802.diff.txt uploaded by tilghman (license 14)
	  Tested by: tzafrir ........

2010-02-25 18:37 +0000 [r248793]  Jeff Peeler <jpeeler@digium.com>

	* /, res/res_monitor.c: Merged revisions 248757 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r248757 | jpeeler | 2010-02-25 12:06:54 -0600 (Thu, 25 Feb 2010)
	  | 15 lines Ensure that monitor recordings are written to the
	  correct location. Recordings should be placed in the monitor
	  directory when a non-absolute path is used. Exact dialplan used
	  for testing: exten => 5040, 1,
	  monitor(wav,tmp/jeff/monitor_test,b) exten => 5040, n,
	  dial(sip/5001) exten => 5041, 1,
	  monitor(wav,/tmp/jeff/monitor_test2,b) exten => 5041, n,
	  dial(sip/5001) exten => 5042, 1, monitor(wav,monitor_test3,b)
	  exten => 5042, n, dial(sip/5001) ABE-2101 ........

2010-02-24 22:44 +0000 [r248584-248667]  Tilghman Lesher <tlesher@digium.com>

	* channels/Makefile: Also kill the .i files, or else the build
	  process will not recreate them, when we change flags. Fixes a
	  weird symbol problem mmichelson was having in a group branch, but
	  also applies to trunk.

	* /, main/logger.c, include/asterisk/term.h, main/term.c: Merged
	  revisions 248582 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r248582 | tilghman | 2010-02-24 15:02:18 -0600 (Wed, 24 Feb 2010)
	  | 7 lines Remove color code sequences from verbose messages that
	  go to logfiles. (closes issue #16786) Reported by: dodo Patches:
	  logger2.patch uploaded by dodo (license 989) Tested by: tilghman
	  ........

2010-02-24 06:39 +0000 [r248533-248534]  Russell Bryant <russell@digium.com>

	* funcs/func_strings.c: Remove unnecessary warning message, make a
	  couple of formatting tweaks

	* tests/test_strings.c: Add ASTERISK_FILE_VERSION macro.

2010-02-23 22:29 +0000 [r248489]  Mark Michelson <mmichelson@digium.com>

	* tests/test_strings.c (added): Unit test for ast_str API. Review:
	  https://reviewboard.asterisk.org/r/517

2010-02-23 16:34 +0000 [r248397]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 248396 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r248396 | dvossel | 2010-02-23 10:26:05 -0600 (Tue, 23 Feb 2010)
	  | 9 lines fixes invite with replaces deadlock (closes issue
	  #16862) Reported by: pwalker Patches: replaces_deadlock_1.4
	  uploaded by dvossel (license 671) Tested by: pwalker, dvossel
	  ........

2010-02-22 20:19 +0000 [r248347]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Move the REF_DEBUG comment higher in the
	  include list. Uncommenting the REF_DEBUG definition where it was
	  in the source resulted in only a small part of the astobj2
	  references being logged to a file. Moving this up higher in the
	  include list causes all references to be logged as they should
	  be.

2010-02-22 06:45 +0000 [r248225-248226]  Russell Bryant <russell@digium.com>

	* include/asterisk/taskprocessor.h, main/taskprocessor.c: Minor
	  tweaks to comment blocks and includes. Fix the copyright lines,
	  tweak doxygen formatting, and remove some unnecessary includes.

	* tests/test_devicestate.c: Tweak copyright and author lines.

2010-02-21 12:09 +0000 [r248184]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_skinny.c: Cleanup transmit_* functions, part 1
	  Break transmit_tone into transmit_start_tone and
	  transmit_stop_tone as per the skinny protocol. (closes issue
	  #16874) Reported by: wedhorn Patches: skinny-clean01.diff
	  uploaded by wedhorn (license 30)

2010-02-20 22:37 +0000 [r248108]  Olle Johansson <oej@edvina.net>

	* res/res_rtp_asterisk.c: Improve support for RTCP reports without
	  report blocks

2010-02-19 18:38 +0000 [r248003]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c: mfcr2 issue 0016844 - Fix portability bit
	  fields and make mfcr2_immediate_accept work again, reported and
	  patched by korihor

2010-02-19 17:40 +0000 [r247915]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: handle_request_invite revise comment, fix
	  coding guideline issues I'm working with this code right now
	  trying to analyze a deadlock. This change is just to clean up a
	  few things before I make a more complex patch.

2010-02-19 17:33 +0000 [r247914]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, /: Merged revisions 247910 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r247910 | rmudgett | 2010-02-19 11:18:49 -0600
	  (Fri, 19 Feb 2010) | 55 lines Merged revision 247904 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.2-...
	  .......... r247904 | rmudgett | 2010-02-19 10:49:44 -0600 (Fri,
	  19 Feb 2010) | 49 lines Make chan_misdn DTMF processing
	  consistent with other channel technologies. The processing of
	  DTMF tones on the receiving side of an ISDN channel is
	  inconsistent with the way it is handled in other channels,
	  especially DAHDI analog. This causes DTMF tones sent from an ISDN
	  phone to be doubled at the connected party. We are using the
	  following 2 options of misdn.conf 1) astdtmf=yes 2) senddtmf=yes
	  Option one is necessary because the asterisk DSP DTMF detection
	  is better than mISDN's internal DSP. Not as many false positives.
	  Option two is necessary to transmit DTMF tones end to end when
	  mISDN channels are connected to SIP channels with out of band
	  DTMF for example. The symptom is that DTMF tones sent by an ISDN
	  phone are doubled on the way through asterisk when two mISDN
	  channels are connected with a Local channel in between or if it
	  is bridged to an analog channel. The doubling of DTMF tones is
	  because DTMF is passed inband to asterisk by the mISDN channel
	  and passed out of band once again after the release of the DTMF
	  tone. Passing it inband is wrong. Neither an analog channel nor
	  SIP channel passes DTMF inband if configured to inband DTMF.
	  Analog and SIP channels filter out the DTMF tones because they
	  use the voice frames returned by ast_dsp_process. But chan_misdn
	  passes the unfiltered input voice frames instead. To overcome one
	  aspect of the problem, the doubling of DTMF tones when two mISDN
	  channels are directly bridged, someone made an 'optimization',
	  where in that case the DTMF tone passed out-of-band to the peer
	  channel is not translated to an inband tone at the transmit side.
	  This optimization is bad because it does not work in general. For
	  example, analog channels or mISDN channels when bridged through
	  an intermediary local channel will generate DTMF tones from
	  out-of-band information. Also, of course, it must not be done
	  when there is no inband DTMF available. This patch fixes the
	  issue. Now chan_misdn will filter the received inband DTMF signal
	  the same as other channel types. Another change included: No need
	  to build an extra translation path because ast_process_dsp does
	  it if required. Patches: misdn-dtmf.patch JIRA ABE-2080
	  ................

2010-02-18 23:13 +0000 [r247787-247841]  Tilghman Lesher <tlesher@digium.com>

	* res/res_speech.c: Revert an errant part of a previous cleanup, to
	  fix a memory corruption issue. (closes issue #16368) Reported by:
	  thirionjwf Patches: res_speech.c.patch uploaded by thirionjwf
	  (license 955)

	* channels/chan_sip.c: If the peer record is from realtime, it
	  could be set to 0, due to MySQL not representing NULL well in
	  integer columns. NULL means the value is not specified for the
	  column, which normally means the driver uses whatever is the
	  default value. However, on MySQL, placing a NULL in either a
	  float or integer column results in a retrieval of the 0 value.
	  Hence, users get an errant error on load. This patch suppresses
	  that error and makes the value as if it was not there. Note that
	  this cannot be done in the realtime driver, because the lack of
	  difference between NULL and 0 can only be intepreted correctly by
	  the driver itself. If we did it in the realtime driver, then it
	  would be effectively impossible to set any realtime field to 0,
	  because it would act as if the field were unspecified and
	  possibly take on a different value. (closes issue #16683)
	  Reported by: wdoekes

2010-02-18 21:23 +0000 [r247736-247770]  David Vossel <dvossel@digium.com>

	* bridges/bridge_softmix.c: fixes confbridge crash when no timing
	  module is loaded. (closes issue #16471) Reported by: kjotte
	  Patches: M16471.diff uploaded by junky (license 177) Tested by:
	  kjotte, junky

	* apps/app_queue.c: fixes Queue with C option crash (closes issue
	  #16475) Reported by: okrief Patches: queue_crash.diff uploaded by
	  dvossel (license 671)

2010-02-18 19:39 +0000 [r247652]  Matthew Nicholson <mnicholson@digium.com>

	* /, main/features.c: Merged revisions 247651 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r247651 | mnicholson | 2010-02-18 13:38:09 -0600 (Thu, 18 Feb
	  2010) | 6 lines Copy the calling party's account code to the
	  called party if they don't already have one. (closes issue
	  #16331) Reported by: bluefox Tested by: mnicholson ........

2010-02-18 18:31 +0000 [r247609]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c: Fix placing ISDN calls on hold preventing native
	  bridging from being reexamined after a transfer. Consider the
	  following scenario: /-- B A == * == Network \-- C Party B calls
	  party A (EuroISDN BRI phone) Party A puts B on hold using the
	  HOLD/RETRIEVE messages. Party A calls party C. Party A puts C on
	  hold to talk with party B again. Party A transfers B to C by
	  hanging up. The call does not get the opportunity to get
	  re-transferred into the ISDN network by the native bridge because
	  native bridging is not being reexamined after the initial
	  transfer.

2010-02-18 16:54 +0000 [r247503-247509]  Leif Madsen <lmadsen@digium.com>

	* /, README-SERIOUSLY.bestpractices.txt: Merged revisions 247508
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r247508 | lmadsen | 2010-02-18 11:53:44 -0500 (Thu, 18 Feb 2010)
	  | 1 line Add additional link to best practices document per
	  jsmith. ........

	* /, README-SERIOUSLY.bestpractices.txt (added): Merged revisions
	  247502 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r247502 | lmadsen | 2010-02-18 11:38:17 -0500 (Thu, 18 Feb 2010)
	  | 10 lines Add best practices documentation. (issue #16808)
	  Reported by: lmadsen (issue #16810) Reported by: Nick_Lewis
	  Tested by: lmadsen Review:
	  https://reviewboard.asterisk.org/r/507/ ........

2010-02-18 16:34 +0000 [r247500]  Philippe Sultan <philippe.sultan@gmail.com>

	* CHANGES, res/res_jabber.c: Add a new manager event for our
	  buddies status. The new JabberStatus event gives a concise view
	  of the status change to the AMI clients. Thanks fiddur! (closes
	  issue #16760) Reported by: fiddur Patches: 244498.2.diff uploaded
	  by fiddur (license 678) Tested by: fiddur, phsultan

2010-02-18 04:20 +0000 [r247423]  Russell Bryant <russell@digium.com>

	* Makefile, /, sounds/Makefile: Merged revisions 247422 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r247422 | russell | 2010-02-17 22:19:01 -0600 (Wed, 17 Feb 2010)
	  | 10 lines Tweak argument handling for wget in the sounds
	  Makefile. 1) Fix the check to see if we are using wget to not be
	  full of fail. The configure script populates this variable with
	  the absolute path to wget if it is found, so it didn't work. 2)
	  Allow some extra arguments to be passed in for wget. This is just
	  a simple change to allow our Bamboo build script to tell wget to
	  be quiet and not fill up our logs with download status output.
	  ........

2010-02-17 22:44 +0000 [r247335-247381]  Mark Michelson <mmichelson@digium.com>

	* main/test.c: Fix a couple of bugs in test tab completion. 1. Add
	  missing unlock of lists. 2. Swap order of arguments to
	  test_cat_cmp in complete_test_name.

	* main/test.c: Tab completion for test categories and names for
	  "test show registered" and "test execute" CLI commands.

	* main/strings.c, include/asterisk/strings.h: Fix two problems in
	  ast_str functions found while writing a unit test. 1. The
	  documentation for ast_str_set and ast_str_append state that the
	  max_len parameter may be -1 in order to limit the size of the
	  ast_str to its current allocated size. The problem was that the
	  max_len parameter in all cases was a size_t, which is unsigned.
	  Thus a -1 was interpreted as UINT_MAX instead of -1. Changing the
	  max_len parameter to be ssize_t fixed this issue. 2. Once issue 1
	  was fixed, there was an off-by-one error in the case where we
	  attempted to write a string larger than the current allotted size
	  to a string when -1 was passed as the max_len parameter. When
	  trying to write more than the allotted size, the ast_str's
	  __AST_STR_USED was set to 1 higher than it should have been.
	  Thanks to Tilghman for quickly spotting the offending line of
	  code. Oh, and the unit test that I referenced in the top line of
	  this commit will be added to reviewboard shortly. Sit tight...

2010-02-17 19:51 +0000 [r247295]  Jeff Peeler <jpeeler@digium.com>

	* funcs/func_groupcount.c, tests/test_app.c (added), main/app.c,
	  CHANGES: Add support for GROUP_MATCH_COUNT regex matching on
	  category Current support for regex matching was previously only
	  available on the group. Also, error reporting for regex failures
	  has been added. In addition to this feature enhancement a unit
	  test has been written to check the regular expression logic to
	  ensure the count operation is working as expected. (closes issue
	  #16642) Reported by: kobaz Patches: groupmatch2.patch uploaded by
	  kobaz (license 834) Review:
	  https://reviewboard.asterisk.org/r/503/

2010-02-17 19:23 +0000 [r247248-247282]  David Vossel <dvossel@digium.com>

	* tests/test_devicestate.c: modified device2extension_test's
	  category

	* tests/test_devicestate.c (added): unit test for combined device
	  state mapping and device to exten state mapping Review:
	  https://reviewboard.asterisk.org/r/516/

	* main/features.c, CHANGES, configs/features.conf.sample: addition
	  of dynamic parkinglots feature This feature allows for
	  parkinglots to be created dynamically within the dialplan. Thanks
	  to all who were involved with getting this patch written and
	  tested! (closes issue #15135) Reported by: IgorG Patches:
	  features.dynamic_park.v3.diff uploaded by IgorG (license 20)
	  2009090400_dynamicpark.diff.txt uploaded by mvanbaak (license 7)
	  dynamic_parkinglot.diff uploaded by dvossel (license 671) Tested
	  by: eliel, IgorG, acunningham, mvanbaak, zktech Review:
	  https://reviewboard.asterisk.org/r/352/

2010-02-17 16:24 +0000 [r247169]  Mark Michelson <mmichelson@digium.com>

	* /, apps/app_queue.c: Merged revisions 247168 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r247168 | mmichelson | 2010-02-17 10:24:17 -0600 (Wed, 17 Feb
	  2010) | 3 lines Make sure that when autofill is disabled that
	  callers not in the front of the queue cannot place calls.
	  ........

2010-02-17 07:01 +0000 [r247124-247125]  Tilghman Lesher <tlesher@digium.com>

	* main/loader.c: RTP documentation states that you can pass NULL as
	  the module, so make sure that's really the case.

	* channels/sip/include/dialog.h (added), channels/chan_sip.c,
	  channels/sip/include/config_parser.h,
	  channels/sip/include/globals.h (added),
	  channels/sip/dialplan_functions.c (added), channels/Makefile,
	  channels/sip/include/sip_utils.h,
	  channels/sip/include/dialplan_functions.h (added): Make all of
	  the various rtpqos parameters in this branch available from the
	  CHANNEL function. Also includes a test for retrieving rtpqos
	  parameters, including a NULL RTP driver. Additionally, some
	  further separation of the SIP internal API into headers was
	  necessary. (closes issue #16652) Reported by: kkm Patches:
	  20100204__issue16652.diff.txt uploaded by tilghman (license 14)
	  Review: https://reviewboard.asterisk.org/r/501/

2010-02-16 23:44 +0000 [r247076]  Mark Michelson <mmichelson@digium.com>

	* main/strings.c: Add va_end calls to __ast_str_helper. According
	  to the man page for stdarg(3), "Each invocation of va_copy() must
	  be matched by a corresponding invocation of va_end() in the same
	  function." There were several cases in __ast_str_helper where
	  va_copy was not matched with a corresponding call to va_end.

2010-02-16 22:58 +0000 [r247035]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooh323.c, addons/chan_ooh323.c: generate
	  connected line info update from info in h.323 packets Tested by:
	  benngard

2010-02-16 21:15 +0000 [r246985]  Mark Michelson <mmichelson@digium.com>

	* include/asterisk/strings.h: Add some clarifying documentation to
	  the ast_str_set and ast_str_append functions.

2010-02-16 21:03 +0000 [r246980-246981]  David Vossel <dvossel@digium.com>

	* main/tcptls.c: swap openssl with OpenSSL in warning message.
	  (issue #16673)

	* main/tcptls.c: warning message if openssl support is missing
	  while attempting tls connection (closes issue #16673) Reported
	  by: michaesc Patches: tls_error_msg.diff uploaded by dvossel
	  (license 671)

2010-02-16 18:29 +0000 [r246942]  Mark Michelson <mmichelson@digium.com>

	* tests/test_pbx.c (added): Add unit test for dialplan pattern
	  matching. This test works by reading input from arrays to build a
	  sample dialplan. From there, patterns are attempted to be matched
	  against said dialplan, with the expected match given. We then
	  search in our example dialplan to see if we find a match and if
	  what we find matches what we expected it to match. (closes issue
	  #16809) Reported by: lmadsen Tested by: mmichelson Review:
	  https://reviewboard.asterisk.org/r/504/

2010-02-16 17:07 +0000 [r246899]  David Vossel <dvossel@digium.com>

	* main/channel.c: fixes sample rate conversion issue with Monitor
	  application When using ast_seekstream with the read/write streams
	  of a monitor, the number of samples we are seeking must be of the
	  same rate as the stream or the jump calculation will be
	  incorrect. This patch adds logic to correctly convert the number
	  of samples to jump to the sample rate the read/write stream is
	  using. For example, if the call is G722 (16khz) and the
	  read/write stream is recording a 8khz wav, seeking 320 samples of
	  16khz audio is not the same as seeking 320 samples of 8khz audio
	  when performing the ast_seekstream on the stream. ABE-2044

2010-02-16 15:36 +0000 [r246710-246863]  Tilghman Lesher <tlesher@digium.com>

	* build_tools/cflags.xml, build_tools/cflags-devmode.xml: Revert
	  changes for now, pending discussion

	* build_tools/cflags-devmode.xml: Add a few more targets for
	  DEBUG_THREADLOCALS

	* build_tools/cflags.xml, channels/chan_usbradio.c,
	  build_tools/cflags-devmode.xml, main/strings.c,
	  apps/app_voicemail.c: Change the blanket rules to delete
	  .lastclean on all CFLAGS menuselect targets to be more
	  particular. This change builds upon the recent change to
	  menuselect to add 'touch_on_change' as an attribute of both
	  categories and members. This should allow only the most invasive
	  defines to cause a complete rebuild, while defines which only
	  affect a subset of modules will only cause a rebuild of that
	  smaller set.

	* channels/chan_sip.c: Allow Timer B to be set on the peer, and
	  ensure SIP rules are followed (or warn) in comparison to Timer
	  T1. (closes issue #16643) Reported by: nahuelgreco Patches:
	  20100204__issue16643.diff.txt uploaded by tilghman (license 14)
	  Tested by: oej

	* Makefile, /: Merged revisions 246709 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r246709 | tilghman | 2010-02-15 17:42:33 -0600 (Mon, 15 Feb 2010)
	  | 5 lines Make the menuselect instructions correct by allowing
	  'make menuselect' to actually solve dependency problems.
	  (Previously, it would fail out again with the same message about
	  running 'make menuselect', which was NOT at all helpful.)
	  ........

2010-02-15 22:08 +0000 [r246669]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Restore triedtopribridge flag code removed
	  in -r211197. Ooops. Failed to note that we were inside a for loop
	  and pri_channel_bridge() needs to be executed only once.

2010-02-15 21:37 +0000 [r246667]  Tilghman Lesher <tlesher@digium.com>

	* utils/utils.xml: Instead of just automatically filtering out in
	  the Makefile, give an indication of dependencies in menuselect.

2010-02-15 15:45 +0000 [r246627]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, channels/sip/reqresp_parser.c,
	  channels/sip/include/sip_utils.h,
	  channels/sip/include/reqresp_parser.h: chan_sip parse code
	  refactoring plus two new unit tests Code Refactoring Changes -
	  read_to_parts() moved to reqresp_parser.c and has been renamed as
	  get_name_and_number() - get_in_brackets() moved to
	  reqresp_parser.c - find_closing_quotes() added to sip_utils.h
	  Logic Changes - get_name_and_number() now uses parse_uri() and
	  get_calleridname() for parsing. Before this change only names
	  within quotes were found, when names not within quotes are
	  possible. New Unit Tests -sip_get_name_and_number_test
	  -sip_get_in_brackets_test (closes issue #16707) Reported by:
	  Nick_Lewis Patches: issue16706.diff uploaded by dvossel (license
	  671) Review: https://reviewboard.asterisk.org/r/499/

2010-02-12 23:32 +0000 [r246420-246546]  David Vossel <dvossel@digium.com>

	* main/channel.c, /: Merged revisions 246545 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r246545 | dvossel | 2010-02-12 17:30:17 -0600 (Fri, 12 Feb 2010)
	  | 16 lines lock channel during datastore removal On channel
	  destruction the channel's datastores are removed and destroyed.
	  Since there are public API calls to find and remove datastores on
	  a channel, a lock should be held whenever datastores are removed
	  and destroyed. This resolves a crash caused by a race condition
	  in app_chanspy.c. (closes issue #16678) Reported by:
	  tim_ringenbach Patches: datastore_destroy_race.diff uploaded by
	  tim ringenbach (license 540) Tested by: dvossel ........

	* channels/chan_sip.c: fixes areas where port should be removed
	  from domain during parsing A patch was committed recently that
	  converted duplicate uri parsing code to use the parse_uri
	  function. There were two instances where this conversion did not
	  mimic previous behavior exactly because the port was not being
	  parsed off the end of the domain. In order to do this, a dummy
	  pointer argument needs to be passed into parse_uri so it will
	  know it must parse out the port from the domain. If a port output
	  paramenter is not present, the domain is returned with the port
	  still attached.

2010-02-12 08:30 +0000 [r246382]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c, UPGRADE.txt, CHANGES: Updated doc for OSP
	  lookup application.

2010-02-11 21:57 +0000 [r246299-246338]  David Vossel <dvossel@digium.com>

	* tests/test_heap.c, tests/test_event.c,
	  channels/sip/reqresp_parser.c, channels/sip/config_parser.c:
	  fixes some test description formatting inconsistencies so log
	  file looks nice

	* tests/test_astobj2.c (added), main/astobj2.c: astobj2 unit test
	  and bug fix A bug was discovered during the creation of the
	  astobj2 unit test. When OBJ_MULTIPLE | OBJ_UNLINK is used, the
	  objects being returned had a ref count issue. This patch resolves
	  that. Review: https://reviewboard.asterisk.org/r/496/

2010-02-10 23:19 +0000 [r246260]  Russell Bryant <russell@digium.com>

	* include/asterisk/event.h, tests/test_event.c (added),
	  main/event.c: Add a test module for the event API, test_event.c.
	  This module includes a single test so far that creates events
	  using two different methods and does some verification on the
	  result to make sure the correct data can be retrieved from the
	  event that was created. One bug was found in the event API while
	  developing this test, which makes me happy. :-) Review:
	  https://reviewboard.asterisk.org/r/495/

2010-02-10 23:13 +0000 [r246249]  David Vossel <dvossel@digium.com>

	* channels/sip/reqresp_parser.c,
	  channels/sip/include/reqresp_parser.h: additional parse_uri test
	  and documentation

2010-02-10 21:55 +0000 [r246200-246208]  Tilghman Lesher <tlesher@digium.com>

	* res/res_pktccops.exports (added): res_pktccops needs to be able
	  to export a symbol for chan_mgcp (closes issue #16782) Reported
	  by: nahuelgreco Patches: res_pktccops.exports uploaded by
	  nahuelgreco (license 162)

	* funcs/func_strings.c: Fussy compiler on another machine...

	* funcs/func_strings.c: Fix weird issue with unit tests on
	  optimized build - turned out to be a signing issue.

2010-02-10 17:49 +0000 [r246116]  David Vossel <dvossel@digium.com>

	* /, apps/app_queue.c: Merged revisions 246115 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r246115 | dvossel | 2010-02-10 11:44:20 -0600 (Wed, 10 Feb 2010)
	  | 8 lines fixes random deadlock in app_queue with use_weight
	  during reload (closes issue #16677) Reported by: tim_ringenbach
	  Patches: app_queue_use_weight_deadlock.diff uploaded by tim
	  ringenbach (license 540) ........

2010-02-10 16:47 +0000 [r246070]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_local.c: Change channel state on local channels for
	  busy,answer,ring. Previously local channels channel state never
	  changed. This became problematic when the state of the other side
	  of the local channel was lost, for example during a masquerade.
	  Changing the state of the local channel allows for the scenario
	  to be detected when the channel state is set to ringing, but the
	  peer isn't ringing. The specific problem scenario is described in
	  164201. Although this was noted on one of the issues, here is the
	  tested dialplan verified to work: exten =>
	  9700,1,Dial(Local/*9700@default&Local/0009700@default) exten =>
	  *9700,1,Set(GLOBAL(TESTCHAN)=${CHANNEL:0:${MATH(${LEN(${CHANNEL})}-1):0:2}}1)
	  exten => *9700,n,wait(3) ;3 works, 1 did not exten =>
	  *9700,n,Dial(SIP/5001) exten => 0009700,1,Wait(1) ;1 works, 3 did
	  not exten =>
	  0009700,n,ChannelRedirect(${TESTCHAN},parkedcalls,701,1) (closes
	  issue #14992) Reported by: davidw

2010-02-10 16:01 +0000 [r245945-246030]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  res/res_agi.c: Solaris doesn't like outputting a NULL to a %s in
	  format strings. Detect all platforms that don't like that,
	  either, and ensure that when documentation is missing, we pass a
	  non-NULL pointer when outputting the corresponding documentation.
	  (closes issue #16689) Reported by: bklang Patches:
	  20100209__issue16689__with_tests.diff.txt uploaded by tilghman
	  (license 14) Review: https://reviewboard.asterisk.org/r/497/

	* funcs/func_strings.c: Enable warnings on atypical conditions for
	  the FILTER function (suggested by mmichelson on the -dev list).

	* /, funcs/func_strings.c, configs/extensions.conf.sample: Merged
	  revisions 245944 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r245944 | tilghman | 2010-02-10 07:37:13 -0600 (Wed, 10 Feb 2010)
	  | 2 lines Include examples of FILTER usage in extension patterns
	  where a "." may be a risk. ........

2010-02-09 23:32 +0000 [r245864]  Russell Bryant <russell@digium.com>

	* include/asterisk/test.h, tests/test_sha1.c (removed),
	  include/asterisk/utils.h, tests/test_substitution.c,
	  tests/test_heap.c, tests/test_ast_format_str_reduce.c,
	  tests/test_skel.c, tests/test_utils.c, funcs/func_math.c,
	  channels/sip/reqresp_parser.c, main/test.c, tests/test_md5.c
	  (removed), channels/sip/config_parser.c, tests/test_sched.c:
	  Various updates to the unit test API. 1) It occurred to me that
	  the difference in usage between the error ast_str and the
	  ast_test_update_status() usage has turned out to be a bit
	  ambiguous in practice. In a lot of cases, the same message was
	  being sent to both. In other cases, it was only sent to one or
	  the other. My opinion now is that in every case, I think it makes
	  sense to do both; we should output it to the CLI as well as save
	  it off for logging purposes. This change results in most of the
	  changes in this diff, since it required changes to all existing
	  unit tests. It also allowed for some simplifications of unit test
	  API implementation code. 2) Update ast_test_status_update() to
	  include the file, function, and line number for the code
	  providing the update. 3) There are some formatting tweaks here
	  and there. Hopefully they aren't too distracting for code review
	  purposes. Reviewboard's diff viewer seems to do a pretty good job
	  of pointing out when something is a whitespace change. 4) I moved
	  the md5_test and sha1_test into the test_utils module. It seemed
	  like a better approach since these tests are so tiny. 5) I
	  changed the number of nodes used in heap_test_2 from 1 million to
	  100 thousand. The only reason for this was to reduce the time it
	  took for this test to run. 6) Remove an unused function prototype
	  that was at the bottom of utils.h. 7) Simplify test_insert()
	  using the LIST_INSERT_SORTALPHA() macro. The one minor difference
	  in behavior is that it no longer checks for a test registered
	  with the same name. 8) Expand the code in test_alloc() to provide
	  specific error messages for each failure case, to clearly inform
	  developers if they forget to set the name, summary, description,
	  etc. 9) Tweak the output of the "test show registered" CLI
	  command. I swapped the name and category to have the category
	  first. It seemed more natural since that is the sort key. 10)
	  Don't output the status ast_str in the "test show results" CLI
	  command. This is going to tend to be pretty verbose, so just
	  leave that for the detailed test logs (test generate results).
	  Review: https://reviewboard.asterisk.org/r/493/

2010-02-09 23:18 +0000 [r245793-245804]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: fixes a merging error for the iaxs and
	  iaxsl off by one fix

	* /, channels/chan_iax2.c: Merged revisions 245792 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r245792 | dvossel | 2010-02-09 16:55:38 -0600 (Tue, 09
	  Feb 2010) | 12 lines Fixes iaxs and iaxsl size off by one issue.
	  2^15 = 32768 which is the maximum allowed iax2 callnumber.
	  Creating the iaxs and iaxsl array of size 32768 means the maximum
	  callnumber is actually out of bounds. This causes a nasty crash.
	  (closes issue #15997) Reported by: exarv Patches: iax_fix.diff
	  uploaded by dvossel (license 671) ........

2010-02-09 18:06 +0000 [r245729]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_fax.c: Ensure frames are only freed once. (closes issue
	  #16361) Reported by: vlad Patches: 20100208__issue16361.diff.txt
	  uploaded by tilghman (license 14) Tested by: kenny, bloodoff,
	  misaksen

2010-02-09 17:40 +0000 [r245727]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: This commit removes an extra newline in T.38
	  generated SDP packets. This bug was caused by the fix introduced
	  in r243860. (closes issue #16766) Reported by: raivisr Patches:
	  t38-sdp-newline-fix1.diff uploaded by mnicholson (license 96)
	  Tested by: raivisr

2010-02-09 16:24 +0000 [r245680]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_fax.c: Don't offer MMR or JBIG transcoding during T.38
	  negotiation. After further discussion with Steve Underwood, we
	  should not (yet) be offering to receive MMR or JBIG transcoded
	  streams from T.38 endpoints. A future spandsp release will
	  support those features, and then they can be enabled during
	  negotiation

2010-02-08 23:43 +0000 [r245597-245624]  Russell Bryant <russell@digium.com>

	* main/event.c: Fix return value of get_ie_str() and
	  get_ie_str_hash() for non-existent IE. I found this bug while
	  developing a unit test for event allocation. Testing is awesome.

	* tests/test_utils.c: UNREGISTER instead of REGISTER in
	  unload_module().

	* main/pbx.c: Use memmove() instead of memcpy() for a case where
	  the buffers overlap. Once again, valgrind is freaking awesome.
	  That is all.

	* channels/Makefile: Remove object files from the channels/sip/
	  directory on make clean.

2010-02-08 22:31 +0000 [r245578]  Tilghman Lesher <tlesher@digium.com>

	* main/Makefile, channels/Makefile: Actually use _ASTLDFLAGS in the
	  main/ and channels/ Makefiles. They were previously passed
	  correctly, but they simply weren't used. This caused issues with
	  various platforms whose builds needed to pass special linker
	  flags via the configure script. (closes issue #16596) Reported
	  by: pprindeville Patches: asterisk-1.6-astldflags.patch uploaded
	  by pprindeville (license 347) Tested by: tilghman

2010-02-08 20:41 +0000 [r245497]  Jason Parker <jparker@digium.com>

	* /, main/ast_expr2f.c, main/ast_expr2.fl: Merged revisions 245496
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r245496 | qwell | 2010-02-08 14:39:50 -0600 (Mon, 08 Feb 2010) |
	  4 lines Remove reference of documentation in source directory.
	  People don't always build Asterisk from source (distro packages,
	  anybody?). ........

2010-02-08 04:51 +0000 [r245268-245385]  Russell Bryant <russell@digium.com>

	* contrib/scripts/install_prereq: Add the libvpb-dev package as a
	  dependency.

	* pbx/pbx_gtkconsole.c: Add a todo for pbx_gtkconsole for updating
	  to gtk2. This module needs to be converted to gtk2, or we will
	  eventually have to just remove it from the tree. gtk1 isn't even
	  packaged anymore in the distro I'm using. I suspect nobody uses
	  this and that nobody would notice if we removed it.

	* contrib/scripts/install_prereq: Add more packages required for
	  building Asterisk modules.

	* channels/chan_usbradio.c: Make chan_usbradio compile.

	* tests/test_sha1.c (added): Add a SHA1 test module. Review:
	  https://reviewboard.asterisk.org/r/492/

	* tests/test_md5.c: Remove unnecessary include, ast_md5_hash()
	  comes from utils.h.

	* tests/test_md5.c (added): Add an MD5 test module. Review:
	  https://reviewboard.asterisk.org/r/491/

	* tests/test_ast_format_str_reduce.c: Fix a couple of spelling
	  errors, and add format module dependencies.

	* channels/sip/include/config_parser.h, channels/sip/include/sip.h,
	  channels/sip/include/sip_utils.h,
	  channels/sip/include/reqresp_parser.h: Tweak formatting and add
	  minor updates to some comments.

	* main/test.c: Remove an extra space.

2010-02-07 19:51 +0000 [r245230]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Remove parsing of constantssrc from
	  reload_config. This config option is already handled by the
	  function handle_common_options and it is unnecessary to parse the
	  value again.

2010-02-06 14:43 +0000 [r245192]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample: Remove useless sip
	  options related to hash table size. First off, these options
	  weren't actually doing anything. By the time the options were
	  parsed, the peer and dialog containers had already been allocated
	  with their default values. Second, hash table size is something
	  that doesn't really make sense to change in a config file. If a
	  user is that interested in changing the hashtable size, he can
	  modify the source itself. I have removed the parsing of the
	  hash_peer, hash_user, and hash_dialog options. I have removed the
	  hash_user_size variable altogether since it is not used at all. I
	  also changed hash_peer_size and hash_dialog_size to be constant,
	  and have changed the symbols to be in all caps as constants
	  typically are. I have also removed the entire section in
	  sip.conf.sample regarding configurable hashtable sizes.

2010-02-05 21:21 +0000 [r245147]  David Vossel <dvossel@digium.com>

	* include/asterisk/astobj2.h, main/astobj2.c: fixes astobj2
	  unlinking of multiple objects when OBJ_MULTIPLE was disabled When
	  OBJ_MULTIPLE was off but OBJ_UNLINK was on, all the items in a
	  bucket were being unlinked instead of just the first match. This
	  fixes that. Review: https://reviewboard.asterisk.org/r/490/

2010-02-05 19:26 +0000 [r245090]  Jeff Peeler <jpeeler@digium.com>

	* /, LICENSE, contrib/firmware (removed): Merged revisions 245044
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r245044 | kpfleming | 2010-02-05 12:32:29 -0600 (Fri, 05 Feb
	  2010) | 5 lines Remove contrib/firmware directory as it is empty
	  Remove explicit license for IAXy firmware as it is no longer
	  included in the tree ........

2010-02-05 19:07 +0000 [r245046]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_ast_format_str_reduce.c, main/file.c: Merge tests that
	  verify the same thing. (Oops.)

2010-02-05 18:12 +0000 [r245006]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: adds total call numbers available to 'iax2
	  show callnumber usage' cli output

2010-02-05 17:20 +0000 [r244945]  Terry Wilson <twilson@digium.com>

	* res/res_calendar_exchange.c, res/res_calendar_icalendar.c,
	  res/res_calendar_caldav.c: Fix crash on 32-bit for users not
	  using https (closes issue #16778) Reported by: pitel Patches:
	  diff.txt uploaded by twilson (license 396) Tested by: twilson,
	  pitel

2010-02-05 17:05 +0000 [r244927]  Sean Bright <sean@malleable.com>

	* /, main/asterisk.c: Merged revisions 244926 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r244926 | seanbright | 2010-02-05 12:03:35 -0500 (Fri, 05 Feb
	  2010) | 1 line Update main copyright date. ........

2010-02-05 16:59 +0000 [r244769-244924]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, channels/sip/include/config_parser.h,
	  channels/sip/config_parser.c: fixes issue with sip registry not
	  having correct default expiry default expiry was not being set
	  correctly for a registry object. Thanks to ebroad for reporting
	  the issue and testing the patch.

	* main/astobj2.c: fixes memory leak in astobj2 test
	  ao2_iterator_destroy was not being used on the iterator during
	  the test. This resulted in the container never actually being
	  destroyed.

	* channels/chan_sip.c: parse_moved_contact tries to parse
	  contact_name twice parse_moved_contact attempts to remove a
	  quoted string twice, and the first try wasn't even being done
	  correctly.

2010-02-04 22:43 +0000 [r244728-244768]  Tilghman Lesher <tlesher@digium.com>

	* main/file.c: Try to make ast_format_str_reduce fail...

	* include/asterisk/manager.h: Oops

	* include/asterisk/manager.h: Define a small set of constant return
	  values

2010-02-04 15:36 +0000 [r244688]  David Vossel <dvossel@digium.com>

	* main/test.c: fix truncated format string in 'test show
	  registered' When using the 'test show registered' cli command the
	  'Test Results' category was truncating the last few characters
	  making it look like 'Test Resul'. I also expanded other parts of
	  the format to better represent how long function names and
	  categories will likely be.

2010-02-04 00:12 +0000 [r244647]  Richard Mudgett <rmudgett@digium.com>

	* channels/sip: Add ignore *.i files property to the new
	  channels/sip directory.

2010-02-03 20:48 +0000 [r244598]  Jeff Peeler <jpeeler@digium.com>

	* main/features.c, CHANGES: Add some additional option support for
	  non-default parking lots. The options are: parkedcallparking,
	  parkedcallhangup, parkedcallrecording, and parkedcalltransfers.
	  Previously these options were only available for the default
	  parking lot. (closes issue #16641) Reported by: bluecrow76
	  Patches: asterisk-1.6.2.1-features.c.diff uploaded by bluecrow76
	  (license 270)

2010-02-03 20:33 +0000 [r244597]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, channels/sip/include/config_parser.h
	  (added), channels/sip/reqresp_parser.c (added), channels/sip
	  (added), channels/Makefile, channels/sip/config_parser.c (added),
	  channels/sip/include (added), channels/sip/include/sip.h (added),
	  channels/sip/include/sip_utils.h (added),
	  channels/sip/include/reqresp_parser.h (added): -----Changes -----
	  New files - channels/sip/sip.h – A new header for shared #define,
	  enum, and struct definitions. - channels/sip/include/sip_utils.h
	  – sip util functions shared among the all the sip APIs -
	  channels/sip/include/config_parser.h – sip config-parser API -
	  channels/sip/config_parser.c – Contains sip.conf parsing helper
	  functions with unit tests. -
	  channels/sip/include/reqresp_parser.h – sip request response
	  parser API - channels/sip/reqresp_parser.c – Contains sip request
	  and response parsing helper functions with unit tests. New Unit
	  Tests - sip_parse_uri_test - sip_parse_host_test -
	  sip_parse_register_line_test Code Refactoring - All reusable
	  #define, enum, and struct definitions were moved out of
	  chan_sip.c into sip.h. During this process formatting changes
	  were made to comments in both sip.h and chan_sip.c in order to
	  better adhere to the coding guidelines. - The beginnings of three
	  new sip APIs, sip-utils.h, config-parser.h, reqresp-parser.h
	  using existing chan_sip.c functions. - parse_uri() and
	  get_calleridname() were moved from chan_sip.c to request-parser.c
	  along with unit tests for both functions. - sip_parse_host() and
	  sip_parse_register_line() were moved from chan_sip.c to
	  config-parser.c along with unit tests for both functions. Changes
	  to parse_uri() -removal of the options parameter. It was never
	  used and did not behave correctly. -additional check for
	  [?header] field. When this field was present, the transport type
	  was not being set correctly. ----- Overview ----- This patch is
	  introduced with the hope that unit tests for all our sip parsing
	  functions will be written soon. chan_sip is a huge file, and with
	  the addition of each unit test chan_sip is going to grow larger
	  and harder to maintain. I'm proposing we begin refactoring
	  chan_sip, starting with the parsing functions. With each parsing
	  function we move into a separate helper file, a unit test should
	  accompany it. I've attempted to lay down the ground work for this
	  change by creating two new parser helper files (config-parser.c
	  and reqresp-parser.c) and moving all shared structs, enums, and
	  defines from chan_sip.c into a shared sip.h file. We can't verify
	  everything in Asterisk using unit tests, but string parsing is
	  one area where unit tests make the most sense. By beginning to
	  restructure the code in this way, chan_sip not only becomes less
	  bloated, but Asterisk as a whole will become more stable. Review:
	  https://reviewboard.asterisk.org/r/477/

2010-02-03 19:26 +0000 [r244547]  Mark Michelson <mmichelson@digium.com>

	* main/sched.c: Initialize counters in ast_sched_report so that
	  resulting data is not bogus.

2010-02-03 18:34 +0000 [r244505]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_dahdi.c: The chanvar= setting should inherit the
	  entire list of variables, not just the first one. (closes issue
	  #16359) Reported by: raarts Patches: dahdi-setvars.diff uploaded
	  by raarts (license 937) Tested by: raarts

2010-02-02 22:27 +0000 [r244443]  David Vossel <dvossel@digium.com>

	* main/udptl.c, channels/chan_sip.c, include/asterisk/udptl.h:
	  fixes crash during T.38 negotiation caused by invalid or missing
	  FaxMaxDatagram field AST-2010-001 (closes issue #16634) Reported
	  by: krn (closes issue #16724) Reported by: barthpbx (closes issue
	  #16517) Reported by: bklang (closes issue #16485) Reported by:
	  elsto

2010-02-02 20:32 +0000 [r244071-244393]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_dial.c, CHANGES: Properly respect GOSUB_RESULT as to
	  what to do with the master channel. Previously, we would parse
	  GOSUB_RESULT, but not actually do anything with it. Also, allow
	  GOSUB_RETVAL to be inherited back across a peer/master channel.
	  (closes issue #16687) Reported by: bklang Patches:
	  app_dial-preserve-gosub_retval.patch uploaded by bklang (license
	  919) (with modifications) (closes issue #16686) Reported by:
	  bklang Patches: app_dial-respect-gosub_result.patch uploaded by
	  bklang (license 919) (with modifications)

	* funcs/func_math.c: Correct some off-by-one errors, especially
	  when expressions don't contain expected spaces. Also include the
	  tests provided by the reporter, as regression tests. (closes
	  issue #16667) Reported by: wdoekes Patches:
	  astsvn-func_match-off-by-one.diff uploaded by wdoekes (license
	  717)

	* /, apps/app_voicemail.c: Merged revisions 244242 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r244242 | tilghman | 2010-02-01 17:13:44 -0600 (Mon, 01
	  Feb 2010) | 11 lines Backup and restore original textfile, for
	  prosthesis (gerund of prepend). Also, fix menuselect such that
	  changing voicemail build options correctly causes rebuild.
	  (closes issue #16415) Reported by: tomo1657 Patches:
	  prepention.patch uploaded by tomo1657 (license 484) (with
	  modifications by me to backport to 1.4) ........

	* main/channel.c, channels/chan_local.c, /: Merged revisions 244070
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r244070 | tilghman | 2010-02-01 11:46:31 -0600 (Mon, 01 Feb 2010)
	  | 16 lines Revert previous chan_local fix (r236981) and fix
	  instead by destroying expired frames in the queue. (closes issue
	  #16525) Reported by: kobaz Patches: 20100126__issue16525.diff.txt
	  uploaded by tilghman (license 14)
	  20100129__issue16525__1.6.0.diff.txt uploaded by tilghman
	  (license 14) Tested by: kobaz, atis (closes issue #16581)
	  Reported by: ZX81 (closes issue #16681) Reported by: alexr1
	  ........

2010-01-28 22:37 +0000 [r243986]  Jeff Peeler <jpeeler@digium.com>

	* main/manager.c: Optimization to manager events. When potentially
	  sending manager events, return immediately if there are no
	  sessions or hooks. Also, avoid locking the hooks list if it is
	  empty. (issue #16455) Reported by: atis Patches:
	  manager_hooks_trunk.patch uploaded by atis (license 242)

2010-01-28 20:00 +0000 [r243943]  Tilghman Lesher <tlesher@digium.com>

	* channels/iax2-parser.c: Informational message, not an error.

2010-01-28 18:35 +0000 [r243780-243860]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Add a missing line terminator for T.38 SDP.

	* /, channels/chan_sip.c: Merged revisions 243779 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r243779 | russell | 2010-01-28 09:03:17 -0600 (Thu, 28 Jan 2010)
	  | 2 lines Fix a bogus third argument to ast_copy_string().
	  ........

2010-01-27 20:37 +0000 [r243551-243693]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_queue.c: Merged revisions 243691 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r243691 | jpeeler | 2010-01-27 14:35:56 -0600 (Wed, 27 Jan 2010)
	  | 5 lines Revert 243570, I should have looked at this closer.
	  Will reopen the issue, but am leaving the review closed as the
	  change was pointless. (issue #16488) ........

	* CHANGES: expand code based appreviation of AST_CONFIG_DIR to
	  configuration directory

	* /, apps/app_queue.c: Merged revisions 243570 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r243570 | jpeeler | 2010-01-27 12:47:34 -0600 (Wed, 27 Jan 2010)
	  | 9 lines Extend announcement URL used with Queue from 80 chars
	  to PATH_MAX. (closes issue #16488) Reported by: syspert Patches:
	  soundfilelen.pacth-2 uploaded by syspert (license 938) Review:
	  https://reviewboard.asterisk.org/r/475/ ........

	* Makefile, CHANGES, include/asterisk/options.h, main/asterisk.c,
	  main/loader.c: Add new option to asterisk.conf (lockconfdir) to
	  protect conf dir during reloads (closes issue #16358) Reported
	  by: raarts Patches: lockconfdir.diff uploaded by raarts (license
	  937) modified by me

2010-01-27 18:08 +0000 [r243487]  Mark Michelson <mmichelson@digium.com>

	* main/pbx.c, /: Merged revisions 243486 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r243486 | mmichelson | 2010-01-27 12:06:43 -0600 (Wed, 27 Jan
	  2010) | 3 lines Use a safe list traversal while checking for
	  duplicate vars in pbx_builtin_setvar_helper. ........

2010-01-27 17:32 +0000 [r243482]  Russell Bryant <russell@digium.com>

	* funcs/func_channel.c, channels/chan_iax2.c: Fix the ability to
	  specify an OSP token for an outbound IAX2 call. When this patch
	  was originally submitted, the code allowed for the token to be
	  set via a channel variable. I decided that a cleaner approach
	  would be to integrate it into the CHANNEL() function.
	  Unfortunately, that is not a suitable approach. It's not possible
	  to get the value set on the channel soon enough using that
	  method. So, go back to the simple channel variable method.
	  (closes issue #16711) Reported by: homesick Patches: iax-svn.diff
	  uploaded by homesick (license 91)

2010-01-26 23:56 +0000 [r243391]  David Vossel <dvossel@digium.com>

	* /, main/features.c: Merged revisions 243390 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r243390 | dvossel | 2010-01-26 17:55:49 -0600 (Tue, 26 Jan 2010)
	  | 9 lines fixes bug with channel receiving wrong privileges after
	  call parking (closes issue #16429) Reported by: Yasuhiro Konishi
	  Patches: features.c.diff uploaded by Yasuhiro Konishi (license
	  947) Tested by: dvossel ........

2010-01-26 20:49 +0000 [r243346]  David Ruggles <thedavidfactor@gmail.com>

	* apps/app_senddtmf.c: Code clean up in app_senddtmf Pushes code
	  clean up done in app_externalivr back into app_senddtmf Review:
	  https://reviewboard.asterisk.org/r/473/

2010-01-26 18:20 +0000 [r243244-243266]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /: Merged revisions 243258 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r243258 | jpeeler | 2010-01-26 12:19:10 -0600 (Tue, 26 Jan 2010)
	  | 2 lines Remove unnecessary code in ast_read as issue 16058 has
	  been fully solved now. ........

	* main/frame.c: Fix crash resulting from frames with invalid data
	  pointers. In ast_frdup the frame data union does not get set to
	  point to malloced memory if the datalen is zero, so make sure to
	  handle the same case in ast_frisolate appropriately. (closes
	  issue #16058) Reported by: atis Patches: bug16058-fix.patch
	  uploaded by jpeeler (license 325) Tested by: atis

2010-01-26 17:40 +0000 [r243200-243242]  David Vossel <dvossel@digium.com>

	* main/test.c: modify 'test show registered' cli output format In
	  order to improve readability, the output from 'test show
	  registered' has been modified to truncate fields to fit within
	  the format output if they are over a certain length.

	* include/asterisk/utils.h, channels/chan_sip.c, tests/test_utils.c
	  (added), main/test.c, main/utils.c: RFC compliant uri and
	  display-name encode/decode 1. URI Encoding This patch changes
	  ast_uri_encode()'s behavior when doreserved is enabled.
	  Previously when doreserved was enabled only a small set of
	  reserved characters were encoded. This set was comprised
	  primarily of the reserved characters defined in RFC3261 section
	  25.1, but contained other characters as well. Rather than only
	  escaping the reserved set, doreserved now escapes all characters
	  not within the unreserved set as defined by RFC 3261 and RFC
	  2396. Also, the 'doreserved' variable has been renamed to
	  'do_special_char' in attempts to avoid confusion. When doreserve
	  is not enabled, the previous logic of only encoding the
	  characters <= 0X1F and > 0X7f remains, except for the '%'
	  character, which must always be encoded as it signifies a HEX
	  escaped character during the decode process. 2. URI Decoding:
	  Break up URI before decode. In chan_sip.c ast_uri_decode is
	  called on the entire URI instead of it's individual parts after
	  it is parsed. This is not good as ast_uri_decode can introduce
	  special characters back into the URI which can mess up parsing.
	  This patch resolves this by not decoding a URI until parsing is
	  completely done. There are many instances where we check to see
	  if pedantic checking is enabled before we decode a URI. In these
	  cases a new macro, SIP_PEDANTIC_DECODE, is used on the individual
	  parsed segments of the URI rather than constantly putting if
	  (pedantic) { decode() } checks everywhere in the code. In the
	  areas where ast_uri_decode is not dependent upon pedantic
	  checking this macro is not used, but decoding is still moved to
	  each individual part of the URI. The only behavior that should
	  change from this patch is the time at which decoding occurs.
	  Since I had to look over every place URI parsing occurs to create
	  this patch, I found several places where we use duplicate code
	  for parsing. To consolidate the code, those areas have updated to
	  use the parse_uri() function where possible. 3. SIP display-name
	  decoding according to RFC3261 section 25. To properly decode the
	  display-name portion of a FROM header, chan_sip's
	  get_calleridname() function required a complete re-write. More
	  information about this change can be found in the comments at the
	  beginning of this function. 4. Unit Tests. Unit tests for
	  ast_uri_encode, ast_uri_decode, and get_calleridname() have been
	  written. This involved the addition of the test_utils.c file for
	  testing the utils api. (closes issue #16299) Reported by: wdoekes
	  Patches: astsvn-16299-get_calleridname.diff uploaded by wdoekes
	  (license 717) get_calleridname_rewrite.diff uploaded by dvossel
	  (license 671) Tested by: wdoekes, dvossel, Nick_Lewis Review:
	  https://reviewboard.asterisk.org/r/469/

2010-01-26 15:46 +0000 [r243118-243158]  Russell Bryant <russell@digium.com>

	* tests/test_substitution.c: Log the variable name being tested.

	* tests/test_substitution.c: Update test_substitution to show
	  failures in the test log.

	* funcs/func_aes.c: Update func_aes to its pre-ast_str_substitution
	  state. This change makes the AES tests in test_substitution.c
	  pass. We still need to work through what's going wrong in the
	  ast_str version.

2010-01-26 01:56 +0000 [r242967-243077]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_substitution.c: Fixing last errors in the conversion,
	  though it appears that the AES_* functions are still broken.

	* tests/test_substitution.c: Using a dummy channel causes CDR()
	  testing to fail.

	* tests/test_substitution.c: Wish I had gotten to the review before
	  this got submitted, because there's failures we need to address.

	* /, main/Makefile, res/Makefile: Merged revisions 242969 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242969 | tilghman | 2010-01-25 15:50:22 -0600 (Mon, 25 Jan 2010)
	  | 2 lines Err, and use the new menuselect define, too. ........

	* build_tools/cflags.xml, /, build_tools/menuselect-deps.in,
	  configure, configure.ac: Merged revisions 242966 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r242966 | tilghman | 2010-01-25 15:36:33 -0600 (Mon, 25
	  Jan 2010) | 2 lines Only rebuild parsers by an option in
	  menuselect ........

2010-01-25 21:32 +0000 [r242954-242965]  Russell Bryant <russell@digium.com>

	* tests/test_substitution.c, tests/test_heap.c,
	  tests/test_ast_format_str_reduce.c, tests/test_skel.c,
	  tests/test_sched.c: Make unit test modules depend on
	  TEST_FRAMEWORK instead of off by default.

	* tests/test_substitution.c: Convert test_substitution module to
	  the unit test API. Review:
	  https://reviewboard.asterisk.org/r/474/

2010-01-25 21:20 +0000 [r242933]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooh323.c, addons/ooh323c/src/oochannels.c,
	  addons/ooh323c/src/ooCalls.c: small corrections in call clearing

2010-01-25 21:13 +0000 [r242904-242919]  Olle Johansson <oej@edvina.net>

	* main/pbx.c, main/manager.c, include/asterisk/pbx.h: Change api
	  for pbx_builtin_setvar to actually return error code if a
	  function can't be written to. This patch removes code that was
	  duplicated from pbx.c to manager.c in order to prevent API change
	  in released versions of Asterisk. There are propably also other
	  places that would benefit from reading the return code and react
	  if a function returns error codes on writing a value into it.

	* main/manager.c, /: Merged revisions 242850 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242850 | oej | 2010-01-25 21:03:38 +0100 (Mån, 25 Jan 2010) | 2
	  lines Report error when writing to functions returns error in AMI
	  setvar action ........

2010-01-25 20:18 +0000 [r242857]  Tilghman Lesher <tlesher@digium.com>

	* /, configure, main/Makefile, configure.ac, res/Makefile: Merged
	  revisions 242852 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242852 | tilghman | 2010-01-25 14:15:45 -0600 (Mon, 25 Jan 2010)
	  | 2 lines Restore FreeBSD to able-to-compile-ish-mode ........

2010-01-25 18:01 +0000 [r242812]  Terry Wilson <twilson@digium.com>

	* res/res_calendar.c: Fix INTERNAL_OBJ error on stop when
	  calendars.conf missing Initialize the calendars container before
	  calling load_config and return FAILURE on allocation failure.
	  Also, use the AST_MODULE_LOAD_* values for return values. Thanks
	  to rmudgett for pointing out the error and the need to use the
	  defined values for return

2010-01-25 05:45 +0000 [r242719-242729]  Tilghman Lesher <tlesher@digium.com>

	* /, main/Makefile, res/Makefile: Merged revisions 242728 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242728 | tilghman | 2010-01-24 23:42:22 -0600 (Sun, 24 Jan 2010)
	  | 2 lines Buildbot pointed out an error (thanks, buildbot!)
	  ........

	* /, res/Makefile: Merged revisions 242723 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242723 | tilghman | 2010-01-24 23:33:37 -0600 (Sun, 24 Jan 2010)
	  | 2 lines Oops, should have used CMD_PREFIX, not ECHO_PREFIX, for
	  the commands. ........

	* /, main/Makefile: Merged revisions 242683 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242683 | tilghman | 2010-01-24 23:13:28 -0600 (Sun, 24 Jan 2010)
	  | 2 lines Make the build of the Asterisk expression parser match
	  that of the AEL parser. ........

2010-01-24 22:42 +0000 [r242645]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooh323.c, addons/chan_ooh323.c,
	  addons/ooh323c/src/ooStackCmds.h,
	  addons/ooh323c/src/oochannels.c,
	  addons/ooh323c/src/ooCmdChannel.c,
	  addons/ooh323c/src/ooStackCmds.c: AST_CONTROL_CONNECTED_LINE
	  frame type processing added to setup DisplayIE field incorrect
	  q.931 message order filtered on incoming calls (first msg must be
	  setup, next must be not setup)

2010-01-24 21:49 +0000 [r242607]  Sean Bright <sean@malleable.com>

	* res/res_phoneprov.c: Instead of crashing, allocate our header
	  ast_str before we try to use it. (closes issue #16680) Reported
	  by: lmadsen Patches: issue16680_20100122.patch uploaded by
	  seanbright (license 71) Tested by: lmadsen

2010-01-24 06:40 +0000 [r242521]  Tilghman Lesher <tlesher@digium.com>

	* /, configure, include/asterisk/autoconfig.h.in, configure.ac,
	  pbx/Makefile, res/Makefile, makeopts.in: Merged revisions 242520
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242520 | tilghman | 2010-01-24 00:33:01 -0600 (Sun, 24 Jan 2010)
	  | 8 lines Only rebuild bison and flex source files on demand, if
	  bison and flex are detected by the configure script. Changed
	  after discussion on the -dev list about possible unnecessary
	  build failures, due to checkouts/untars causing these special
	  source files to possibly be newer than their resulting C files.
	  This should additionally ensure that nobody need learn about
	  extra Makefile arguments to ensure the proper files get rebuilt
	  when changes are made to these special source files. ........

2010-01-22 21:45 +0000 [r242424]  Tilghman Lesher <tlesher@digium.com>

	* /, res/Makefile: Merged revisions 242423 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242423 | tilghman | 2010-01-22 15:44:18 -0600 (Fri, 22 Jan 2010)
	  | 7 lines Rebuild from flex, bison sources when necessary. (issue
	  #14629) Reported by: Marquis Patches:
	  20100121__issue14629.diff.txt uploaded by tilghman (license 14)
	  ........

2010-01-22 16:20 +0000 [r242357]  David Ruggles <thedavidfactor@gmail.com>

	* apps/app_externalivr.c: Add send DTMF feature to ExternalIVR app
	  Implemented a new command 'D' that allows client IVRs to send
	  DTMF digits to the channel. (closes issue #16615) Reported by:
	  thedavidfactor Review: https://reviewboard.asterisk.org/r/465/

2010-01-22 15:09 +0000 [r242317]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_sched.c: The irony of not compile-testing a test
	  program before committing is killing me.

2010-01-22 09:28 +0000 [r242227]  Olle Johansson <oej@edvina.net>

	* /, channels/chan_sip.c: Merged revisions 242226 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r242226 | oej | 2010-01-22 10:19:30 +0100 (Fre, 22 Jan 2010) | 3
	  lines Initialize notify_types to NULL ........

2010-01-22 04:57 +0000 [r242184-242186]  Russell Bryant <russell@digium.com>

	* main/test.c: Update the doxygenification of some comments.

	* tests/test_sched.c: Convert scheduler API entry order test to the
	  test API. Review: https://reviewboard.asterisk.org/r/470/

	* tests/test_skel.c: Add test API usage example to test_skel.c.
	  Review: https://reviewboard.asterisk.org/r/471/

2010-01-21 22:37 +0000 [r242092]  Mark Michelson <mmichelson@digium.com>

	* main/acl.c: Add missing argument to ast_calloc calls.

2010-01-21 21:05 +0000 [r242043]  Olle Johansson <oej@edvina.net>

	* main/acl.c: Make sure we initialize the ast_ha structure with
	  ast_calloc

2010-01-21 15:27 +0000 [r241938]  Sean Bright <sean@malleable.com>

	* /, configure, configure.ac: Merged revisions 241932 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r241932 | seanbright | 2010-01-21 10:25:46 -0500 (Thu,
	  21 Jan 2010) | 5 lines Fix configure check for PTHREAD_ONCE_INIT
	  when manually adding -Wall to CFLAGS. (closes issue #16666)
	  Reported by: romain_proformatique ........

2010-01-21 15:14 +0000 [r241896]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_vpb.cc: Formats are inconsistent between even
	  32-bit and 64-bit Linux. Use casts to ensure both compile.

2010-01-21 14:10 +0000 [r241855-241856]  Russell Bryant <russell@digium.com>

	* main/test.c: Point to a useful reference on the XML output
	  format.

	* main/test.c: Modify test results XML format to match the JUnit
	  format. When this code was developed, we came up with our own XML
	  format for the test output. I have since started looking at
	  integration with other tools, namely continuous integration
	  frameworks, and this format seems to be supported across a number
	  of applications. With these changes in place, I was able to get
	  Atlassian Bamboo to interpret the test results.

2010-01-21 05:54 +0000 [r241766]  Tilghman Lesher <tlesher@digium.com>

	* /, funcs/func_math.c: Merged revisions 241765 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r241765 | tilghman | 2010-01-20 23:53:17 -0600 (Wed, 20 Jan 2010)
	  | 2 lines Guard against division by zero. ........

2010-01-20 21:14 +0000 [r241627-241714]  David Vossel <dvossel@digium.com>

	* res/res_rtp_asterisk.c: rtp timestamp to timeval calculation fix
	  The rtp timestamp to timeval calculation was only accurate for
	  8kHz audio. This patch corrects this. Review:
	  https://reviewboard.asterisk.org/r/468/ SWP-648

	* Makefile, /: Merged revisions 241626 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r241626 | dvossel | 2010-01-20 14:00:04 -0600 (Wed, 20 Jan 2010)
	  | 6 lines fixes parsing error in Makefile. Some echo lines were
	  missing "; . Thanks to jparker for pointing out the problem.
	  ........

2010-01-20 17:49 +0000 [r241581]  Alec L Davis <sivad.a@paradise.net.nz>

	* main/cdr.c: Add Calling and Called Subaddress to CDR record
	  Requires 'callingsubaddr' and 'calledsubaddr' fields in backend
	  cdr. (closes issue #16600) Reported by: alecdavis Patches:
	  cdr_subaddr.diff.txt uploaded by alecdavis (license 585) Tested
	  by: alecdavis Review: https://reviewboard.asterisk.org/r/460/

2010-01-20 13:01 +0000 [r241503]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_vpb.cc: Fix up compile breakage from
	  ast_tvdiff_ms() API change.

2010-01-20 08:18 +0000 [r241416]  Alec L Davis <sivad.a@paradise.net.nz>

	* main/pbx.c, channels/sig_pri.c: Update CDR variables as pbx
	  starts Allows CDR variables added in cdr.c:set_one_cid to become
	  visable during the call, by executing ast_cdr_update() early in
	  __ast_pbx run. Reverts sig_pri changes in trunk that are specific
	  to isdn technology only. (closes issue #16638) Reported by:
	  alecdavis Patches: cdr_update.diff3.txt uploaded by alecdavis
	  (license 585) Tested by: alecdavis

2010-01-19 22:59 +0000 [r241366]  Jeff Peeler <jpeeler@digium.com>

	* main/pbx.c: Initialize data on the stack so that Park doesn't
	  interpret random arguments. passdata was only being set in
	  pbx_substitue_variables when arguments were passed. (closes issue
	  #16406) (closes issue #16586) Reported by: DLNoah Patches:
	  bug16586v2.patch uploaded by jpeeler (license 325) Tested by:
	  DLNoah

2010-01-19 22:41 +0000 [r241364]  Tilghman Lesher <tlesher@digium.com>

	* doc/janitor-projects.txt, apps/app_sendtext.c: Enable SendText to
	  send strings in encoded format. See
	  http://lists.digium.com/pipermail/asterisk-users/2010-January/243462.html

2010-01-19 18:51 +0000 [r241314-241315]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_agent.c: small correction from 241314

	* /, channels/chan_agent.c: Merged revisions 241227 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r241227 | jpeeler | 2010-01-19 11:22:18 -0600 (Tue, 19
	  Jan 2010) | 13 lines Fix deadlock in agent_read by removing call
	  to agent_logoff. One must always lock the agents list lock before
	  the agent private. agent_read locks the private immediately, so
	  locking the agents list lock is not an option (which is what
	  agent_logoff requires). Because agent_read already has access to
	  the agent private all that is necessary is to do the required
	  hanging up that agent_logoff performed. (closes issue #16321)
	  Reported by: valon24 Patches: bug16321.patch uploaded by jpeeler
	  (license 325) ........

2010-01-19 17:42 +0000 [r241230]  Jason Parker <jparker@digium.com>

	* Makefile: Allow parallel make (-j) to work properly. After some
	  back and forth with the reporter, we came up with the necessary
	  changes. (closes issue #16489) Reported by: Chainsaw Patches:
	  asterisk-1.6.2.1-parallel-make-minimal.patch uploaded by Chainsaw
	  (license 723) Tested by: Chainsaw, qwell

2010-01-19 00:28 +0000 [r241188]  Tilghman Lesher <tlesher@digium.com>

	* main/srv.c, res/res_agi.c, CHANGES, include/asterisk/srv.h:
	  Create iterative method for querying SRV results, and use that
	  for finding AGI servers. (closes issue #14775) Reported by:
	  _brent_ Patches: 20091215__issue14775.diff.txt uploaded by
	  tilghman (license 14) hagi-5.patch uploaded by brent (license
	  388) Tested by: _brent_ Reviewboard:
	  https://reviewboard.asterisk.org/r/378/

2010-01-19 00:24 +0000 [r241187]  Alec L Davis <sivad.a@paradise.net.nz>

	* channels/sig_pri.c: Update CDR variables before pbx starts
	  (overlap dial) Allows CDR variables added in cdr.c:set_one_cid to
	  become visable during the call. (issue #16638) Reported by:
	  alecdavis Patches: cdr_update.diff2.txt uploaded by alecdavis
	  (license 585) Tested by: alecdavis

2010-01-18 22:31 +0000 [r241143]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, channels/chan_dahdi.c, channels/sig_analog.c,
	  main/features.c, pbx/pbx_dundi.c, main/enum.c,
	  include/asterisk/time.h, main/timing.c: Extend max call limit
	  duration from 24.8 days to 292+ million years. If the limit was
	  set past MAX_INT upon answering, the call was immediately hung up
	  due to overflow from the return of ast_tvdiff_ms (in
	  ast_check_hangup). The time calculation functions ast_tvdiff_sec
	  and ast_tvdiff_ms have been changed to return an int64_t to
	  prevent overflow. Also the reporter suggested adding a message
	  indicating the reason for the call hanging up. Given that the new
	  limit is so much higher, the message (which would only really be
	  useful in the overflow scenario) has been made a debug message
	  only. (closes issue #16006) Reported by: viraptor

2010-01-18 22:03 +0000 [r241098]  Jason Parker <jparker@digium.com>

	* main/rtp_engine.c: Fix an RTP instance allocation failure on
	  Solaris. (closes issue #16543) Reported by: crjw Patches:
	  rtp_sin_family.patch uploaded by crjw (license 963) Tested by:
	  crjw, qwell

2010-01-18 22:00 +0000 [r241097]  Alec L Davis <sivad.a@paradise.net.nz>

	* channels/sig_pri.c: Update CDR variables before pbx starts Allows
	  CDR variables added in cdr.c:set_one_cid to become visable during
	  the call. (closes issue #16638) Reported by: alecdavis Patches:
	  cdr_update.diff.txt uploaded by alecdavis (license 585)

2010-01-18 19:57 +0000 [r241016]  Sean Bright <sean@malleable.com>

	* /, main/config.c: Merged revisions 241015 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r241015 | seanbright | 2010-01-18 14:54:19 -0500 (Mon, 18 Jan
	  2010) | 12 lines Plug a memory leak when reading configs with
	  their comments. While reading through configuration files with
	  the intent of returning their full contents (comments
	  specifically) we allocated some memory and then forgot to free
	  it. This doesn't fix 16554 but clears up a leak I had in the lab.
	  (issue #16554) Reported by: mav3rick Patches:
	  issue16554_20100118.patch uploaded by seanbright (license 71)
	  Tested by: seanbright ........

2010-01-18 19:26 +0000 [r241012]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_strings.c, CHANGES: Make HASHes inheritable across
	  channel creation.

2010-01-18 18:00 +0000 [r240973-240974]  David Ruggles <thedavidfactor@gmail.com>

	* UPGRADE.txt: ExternalIVR information for UPGRADE.txt added a
	  paragraph about the fixes and changes to the ExternalIVR
	  application.

	* doc/externalivr.txt: Updated ExternalIVR documentation Rewrote a
	  large portion of the existing documentation and added information
	  about the TCP/IP socket interface

2010-01-18 17:45 +0000 [r240971]  David Vossel <dvossel@digium.com>

	* Makefile, CHANGES: transmit_silence_during_record replaced by
	  transmit_silence In asterisk.conf, transmit_silence_during_record
	  has been removed in favor of using only the transmit_silence
	  option. The transmit_silence_during_record option remains a valid
	  option in asterisk.conf, but has been removed from the sample
	  config and noted in CHANGES.

2010-01-18 17:41 +0000 [r240969]  David Ruggles <thedavidfactor@gmail.com>

	* apps/app_externalivr.c: Add notification of interrupted file Add
	  file information to data element of T event so the file
	  information is sent to the client when it is interrupted.
	  Previously only notification of pending files that were dropped
	  was sent (closes issue #16147) Reported by: thedavidfactor Tested
	  by: thedavidfactor Review:
	  https://reviewboard.asterisk.org/r/449/

2010-01-18 16:45 +0000 [r240842-240887]  David Vossel <dvossel@digium.com>

	* Makefile: updated transmit_silence option documentation in
	  asterisk.conf This patch updates the transmit_silence option to
	  better document why the option exists, and what it affects.
	  Thanks to russell for providing the verbage for this update.

	* apps/app_queue.c: fixes spelling error. s/memeber/member

2010-01-17 19:45 +0000 [r240717]  Sean Bright <sean@malleable.com>

	* main/pbx.c: Avoid a crash on Solaris when running 'core show
	  functions.' (closes issue #16309) Reported by: asgaroth

2010-01-16 00:54 +0000 [r240667]  Sean Bright <sean@malleable.com>

	* res/res_musiconhold.c: Get MoH building on OpenSolaris.

2010-01-15 23:50 +0000 [r240629]  Tilghman Lesher <tlesher@digium.com>

	* Makefile, main/asterisk.c: Err, oops, it was already the way I
	  intended.

2010-01-15 23:09 +0000 [r240548-240552]  Russell Bryant <russell@digium.com>

	* include/asterisk/doxygen/commits.h: Note where empty lines should
	  reside in commit messages.

	* Makefile, /: Merged revisions 240547 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r240547 | russell | 2010-01-15 17:06:11 -0600 (Fri, 15 Jan 2010)
	  | 2 lines Fix a spelling error in the asterisk.conf sample.
	  ........

2010-01-15 22:07 +0000 [r240505]  Sean Bright <sean@malleable.com>

	* res/res_timing_timerfd.c: Clarify error message in
	  res_timing_timerfd.

2010-01-15 21:42 +0000 [r240421-240500]  Tilghman Lesher <tlesher@digium.com>

	* utils/astcanary.c: Oops, missed an include

	* utils/astcanary.c, main/asterisk.c: The previous attempt at using
	  a pipe to guarantee astcanary shutdown did not work. We're
	  revisiting the previous patch, albeit with a method that
	  overcomes the prior criticism that it was not POSIX-compliant.
	  (closes issue #16602) Reported by: frawd Patches:
	  20100114__issue16602.diff.txt uploaded by tilghman (license 14)
	  Tested by: frawd

	* apps/app_directed_pickup.c, main/features.c,
	  include/asterisk/manager.h: Add pickup event to AMI. Also, fix
	  AMI documentation. (closes issue #16431) Reported by: syspert
	  Patches: 20100112__issue16431.diff.txt uploaded by tilghman
	  (license 14)

2010-01-15 20:58 +0000 [r240420]  Mark Michelson <mmichelson@digium.com>

	* main/utils.c: Make sure to set owner_line, ownder_func, and
	  owner_file in ast_calloc_with_stringfields. Asterisk would crash
	  on startup if MALLOC_DEBUG were set in menuselect. This is
	  because the manager action UpdateConfig had to resize its string
	  field allocation to set the description. When the resize
	  occurred, ast_copy_string would crash because we were attempting
	  to copy a string from a NULL pointer. Setting the strings
	  initially makes the code much less crashy.

2010-01-15 20:58 +0000 [r240415-240419]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Make sure that the limit is N, not N - 1.

	* /, apps/app_voicemail.c: Merged revisions 240414 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r240414 | tilghman | 2010-01-15 14:52:27 -0600 (Fri, 15
	  Jan 2010) | 15 lines Disallow leaving more than maxmsg
	  voicemails. This is a possibility because our previous method
	  assumed that no messages are left in parallel, which is not a
	  safe assumption. Due to the vmu structure duplication, it was
	  necessary to track in-process messages via a separate structure.
	  If at some point, we switch vmu to an ao2-reference-counted
	  structure, which would eliminate the prior noted duplication of
	  structures, then we could incorporate this new in-process
	  structure directly into vmu. (closes issue #16271) Reported by:
	  sohosys Patches: 20100108__issue16271.diff.txt uploaded by
	  tilghman (license 14) 20100108__issue16271__trunk.diff.txt
	  uploaded by tilghman (license 14)
	  20100108__issue16271__1.6.0.diff.txt uploaded by tilghman
	  (license 14) Tested by: jsutton ........

2010-01-15 20:41 +0000 [r240411]  Russell Bryant <russell@digium.com>

	* main/event.c: Ensure payload type is properly checked when
	  comparing against cached events. (closes issue #16607) Reported
	  by: ddv2005 Patches: event.patch uploaded by ddv2005 (license
	  769)

2010-01-15 18:21 +0000 [r240368]  Sean Bright <sean@malleable.com>

	* main/pbx.c, main/manager.c, res/res_smdi.c, apps/app_meetme.c,
	  channels/chan_sip.c, cel/cel_tds.c, main/features.c,
	  res/res_phoneprov.c, cdr/cdr_tds.c, apps/app_jack.c: Convert a
	  few places to use ast_calloc_with_stringfields where applicable.

2010-01-15 16:51 +0000 [r240329]  Russell Bryant <russell@digium.com>

	* configure: Update configure script for an OSP toolkit related
	  change.

2010-01-15 16:28 +0000 [r240328]  Kevin P. Fleming <kpfleming@digium.com>

	* configs/sip.conf.sample: Clarify RTP NAT handling a bit.

2010-01-14 23:13 +0000 [r240226-240271]  Sean Bright <sean@malleable.com>

	* res/res_config_ldap.c: Plug a memory leak in res_config_ldap.
	  (closes issue #16257) Reported by: nito Patches:
	  issue16257_20100111.diff uploaded by seanbright (license 71)

	* res/res_timing_timerfd.c: If we aren't running on a machine that
	  support CLOCK_MONOTONIC, don't load. Group developed and tested
	  by seanbright, Corydon76, Kobaz, and Amorsen.

2010-01-14 18:03 +0000 [r240179]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c: Fix broken call pickup The problem was the
	  OUTGOING flag was not getting set properly on the channel,
	  resulting in pickup failing as ast_read thought the call was
	  inbound. Refer to 170393 for a more verbose description as this
	  is the same exact change. (closes issue #16539) Reported by:
	  syspert Patches: bug16539.patch uploaded by jpeeler (license 325)
	  Tested by: syspert

2010-01-14 17:34 +0000 [r240129-240175]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Similarly, ensure that matchcid is duplicated
	  correctly when merging contexts.

	* main/pbx.c: Ensure that the callerid is NULL when the parent is
	  effectively NULL. This applies only to pattern-match hints, which
	  create exact-match hints on the fly.

2010-01-14 16:14 +0000 [r240078]  Matthew Nicholson <mnicholson@digium.com>

	* main/udptl.c: This change fixes a few bugs in the way the far max
	  IFP was calculated that were introduced in r231692. (closes issue
	  #16497) Reported by: globalnetinc Patches:
	  udptl-max-ifp-fix1.diff uploaded by mnicholson (license 96)
	  Tested by: globalnetinc

2010-01-14 14:38 +0000 [r240039]  Leif Madsen <lmadsen@digium.com>

	* doc/building_queues.txt (added): Add documentation about how to
	  build queues. Add a how-to set of documentation about building
	  queues with Asterisk. This documentation is based on Asterisk
	  1.6.2 but should work on most versions with minor modifications.
	  (closes issue #16237) Reported by: lmadsen Patches: Building
	  Queues (FINAL).txt uploaded by lmadsen (license 10) Tested by:
	  pdhales, lmadsen, cmdrwalrus

2010-01-13 23:22 +0000 [r239920-239997]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Oops, another tag error

	* main/pbx.c: Oops, missed a closing tag

	* main/pbx.c, include/asterisk/pbx.h: Add the TESTTIME() dialplan
	  function, which permits testing GotoIfTime. Specifically, by
	  setting TESTTIME() to a particular date and time, you can test
	  whether a dialplan correctly branches as was intended. This was
	  developed after recent questions on the -users list on how to
	  test their holiday dialplan logic. (closes issue #16464) Reported
	  by: tilghman Patches: 20100112__issue16464.diff.txt uploaded by
	  tilghman (license 14) Review:
	  https://reviewboard.asterisk.org/r/458/

	* main/ast_expr2f.c, main/ast_expr2.fl: Flex uses fwrite
	  incorrectly, which breaks the build. Providing a workaround.

2010-01-13 19:48 +0000 [r239839]  Jeff Peeler <jpeeler@digium.com>

	* /, main/features.c: Merged revisions 239838 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r239838 | jpeeler | 2010-01-13 13:43:33 -0600 (Wed, 13 Jan 2010)
	  | 11 lines Fix regression for timed out parked call returning to
	  caller This issue seems to have been exposed by the fix in 160390
	  whereby using a masquerade prevented a crash. The new channel
	  used in the masquerade was not copying the macro information from
	  the old channel. (closes issue #15459) Reported by: djrodman
	  Patches: patch_15459.txt uploaded by mnick (license ) ........

2010-01-13 19:31 +0000 [r239834]  Leif Madsen <lmadsen@digium.com>

	* configs/extensions.conf.sample: Add more examples to
	  extensions.conf showing how to use various functionality and
	  provide commonly useful features. (closes issue #16090) Reported
	  by: pprindeville Patches: extensions.conf-bugid16090.patch#3
	  uploaded by pprindeville (license 347) Tested by: tzafrir,
	  pprindeville, lmadsen

2010-01-13 18:16 +0000 [r239797]  Tilghman Lesher <tlesher@digium.com>

	* main/Makefile, main/ast_expr2f.c, main/ast_expr2.fl: Code
	  previously added to ast_expr2f.c warranted a change in the source
	  file ast_expr2.fl. Also, made a Makefile change to ensure that
	  the expression parser C source files get regenerated correctly,
	  when we need that to happen.

2010-01-13 16:31 +0000 [r239712]  David Vossel <dvossel@digium.com>

	* Makefile, main/channel.c, apps/app_waitforring.c,
	  apps/app_waitforsilence.c: add silence gen to wait apps
	  asterisk.conf's 'transmit_silence' option existed before this
	  patch, but was limited to only generating silence while recording
	  and sending DTMF. Now enabling the transmit_silence option
	  generates silence during wait times as well. To achieve this,
	  ast_safe_sleep has been modified to generate silence anytime no
	  other generators are present and transmit_silence is enabled.
	  Wait apps not using ast_safe_sleep now generate silence when
	  transmit_silence is enabled as well. (closes issue #16524)
	  Reported by: kobaz (closes issue #16523) Reported by: kobaz
	  Tested by: dvossel Review:
	  https://reviewboard.asterisk.org/r/456/

2010-01-13 10:45 +0000 [r239663-239665]  Olle Johansson <oej@edvina.net>

	* main/poll.c: MAX() moved to utils.h

	* channels/chan_sip.c: SIP Show channelstats fix - use float
	  division to show proper stats (closes issue #15819) Reported by:
	  klaus3000 Patches: asterisk-sip-show-channelstats-trunk.txt
	  uploaded by klaus3000 (license 65) Tested by: klaus3000, oej This
	  patch is for trunk only and will be blocked in 1.6.2

2010-01-13 07:02 +0000 [r239624-239625]  TransNexus OSP Development <support@transnexus.com>

	* doc/tex/channelvariables.tex: Updated channel variable list of
	  osplookup application.

	* apps/app_osplookup.c: Updated XML doc for OSP.

2010-01-12 19:58 +0000 [r239571]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Blank callerid and NULL callerid should not compare
	  equal. The second is the default state for matching CID in the
	  dialplan (no matching) while the first matches one particular
	  CallerID. This is a regression. (fixes AST-314, SWP-611)

2010-01-12 18:55 +0000 [r239525]  Alec L Davis <sivad.a@paradise.net.nz>

	* main/cdr.c: add Dialed Number Identifier (DNID) field to cdr
	  records. reviewboard link:
	  https://reviewboard.asterisk.org/r/455/ Reported by: alecdavis
	  Tested by: alecdavis Patch cdr_dnid.diff2.txt uploaded by
	  alecdavis (license 585)

2010-01-12 18:22 +0000 [r239520]  Leif Madsen <lmadsen@digium.com>

	* configs/sip.conf.sample: Note that direct T.38 is not supported.
	  (closes issue #16411) Reported by: stanusr Patches:
	  __20091210-sip.conf.sample-documentation.txt uploaded by lmadsen
	  (license 10)

2010-01-12 17:09 +0000 [r239473]  Sean Bright <sean@malleable.com>

	* res/res_config_ldap.c: Fix crash in res_config_ldap. We need to
	  allocate enough room for 2 pointers, not 2 characters. (closes
	  issue #16397) Reported by: bklang Patches: res_config_ldap.patch
	  uploaded by applsplatz (license 949) Tested by: applsplatz

2010-01-12 16:14 +0000 [r239427]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes text support in sdp answer The code
	  that handled setting 'm=text' in the sdp was not executing in the
	  correct order. The check to see if text was needed came after the
	  check to add 'm=text' to the sdp, this resulted in 'm=text'
	  always being set to 0 because it looked like text was never
	  required. (closes issue #16457) Reported by: peterj Patches:
	  textportinsdp.diff uploaded by peterj (license 951)
	  issue16457.diff uploaded by dvossel (license 671) Tested by:
	  peterj

2010-01-12 07:48 +0000 [r239389]  Olle Johansson <oej@edvina.net>

	* include/asterisk/astmm.h: Adding Tilghman's documentation from
	  asterisk-dev to the actual file.

2010-01-12 03:21 +0000 [r239152-239308]  Tilghman Lesher <tlesher@digium.com>

	* /, contrib/scripts/safe_asterisk: Merged revisions 239307 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r239307 | tilghman | 2010-01-11 21:18:36 -0600 (Mon, 11 Jan 2010)
	  | 8 lines Portability and other fixes for the safe_asterisk
	  script (closes issue #16416) Reported by: bklang Patches:
	  safe_asterisk-compat-1.patch uploaded by bklang (license 919)
	  20100106__issue16416__trunk.diff.txt uploaded by tilghman
	  (license 14) Tested by: bklang ........

	* contrib/init.d/rc.mandriva.asterisk,
	  contrib/init.d/rc.debian.asterisk,
	  contrib/init.d/rc.redhat.asterisk,
	  contrib/init.d/rc.gentoo.asterisk,
	  contrib/init.d/rc.slackware.asterisk,
	  contrib/init.d/rc.archlinux.asterisk,
	  contrib/init.d/rc.suse.asterisk: Add LSB headers to init scripts.
	  (closes issue #14864) Reported by: lathama Patches:
	  lsb-init-info-debian.diff uploaded by pkempgen (license 169)

	* res/res_pktccops.c: Socket level option is SOL_SOCKET, not
	  SO_SOCKET. (issue #16580)

	* Makefile, contrib/init.d/rc.mandriva.asterisk,
	  contrib/init.d/rc.debian.asterisk,
	  contrib/init.d/rc.redhat.asterisk,
	  contrib/init.d/rc.suse.asterisk: Permit more options in the
	  Makefile as to startup options (closes issue #16454) Reported by:
	  syspert Patches: 20091228__issue16454__3.diff.txt uploaded by
	  tilghman (license 14) Tested by: syspert

	* Makefile: Including bundle1.o breaks Tiger and Leopard (issue
	  #16449)

	* addons/cdr_mysql.c, configs/cdr_mysql.conf.sample: Permit dates
	  and times to be stored in timezones other than the default
	  (typically, UTC) (closes issue #16401) Reported by: lordmortis

2010-01-11 16:41 +0000 [r239111-239114]  Sean Bright <sean@malleable.com>

	* res/res_calendar_exchange.c, res/res_calendar_icalendar.c,
	  res/res_calendar_caldav.c, res/res_clialiases.c: Pass NULL for
	  the ao2_callback function pointer instead of duplicating cb_true.

	* main/astobj2.c: Fix ao2_callback when both OBJ_MULTIPLE and
	  OBJ_NODATA are passed. There is an issue which only affects trunk
	  and the new ao2_callback OBJ_MULTIPLE implementation. When both
	  OBJ_MULTIPLE and OBJ_NODATA are passed, only the first object is
	  visited, regardless of what is returned by the specified
	  callback. This causes a problem when we are clearing a container,
	  i.e.: ao2_callback(container, OBJ_UNLINK | OBJ_NODATA |
	  OBJ_MULTIPLE, NULL, NULL); Only unlinks the first object. This
	  patch resolves this. (closes issue #16564) Reported by: pj
	  Patches: issue16564_20100111.diff uploaded by seanbright (license
	  71) Tested by: pj, seanbright Review:
	  https://reviewboard.asterisk.org/r/457/

	* main/test.c: Fix spelling of 'category.'

2010-01-10 19:37 +0000 [r239074]  Tilghman Lesher <tlesher@digium.com>

	* addons/chan_ooh323.c, main/frame.c, channels/chan_iax2.c:
	  According to POSIX, the capital L modifier applies only to
	  floating point types. Fixes a crash on Solaris. (closes issue
	  #16572) Reported by: crjw Patches: frame_changes.patch uploaded
	  by crjw (license 963) Plus several others found and fixed by me

2010-01-10 17:53 +0000 [r239037]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooq931.h, addons/ooh323c/src/oochannels.c,
	  addons/ooh323c/src/ooq931.c: add docallbacks flag in q931decode
	  function because when we decode received q931 packet we must do
	  callbacks and when we print sended q931 packet we must not.

2010-01-10 06:56 +0000 [r239000]  Tilghman Lesher <tlesher@digium.com>

	* Makefile, main/asterisk.c: It's been long enough -- make the
	  behavior introduced in 1.6 the default.

2010-01-09 01:08 +0000 [r238916]  Tilghman Lesher <tlesher@digium.com>

	* main/manager.c, /: Merged revisions 238915 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r238915 | tilghman | 2010-01-08 18:57:58 -0600 (Fri, 08 Jan 2010)
	  | 6 lines -1 is interpreted as an error, intead of the maximum
	  mask. (closes issue #16241) Reported by: vnovy Patches:
	  manager.c.patch uploaded by vnovy (license 922) ........

2010-01-08 23:30 +0000 [r238835]  Jeff Peeler <jpeeler@digium.com>

	* /, main/features.c: Merged revisions 238834 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r238834 | jpeeler | 2010-01-08 17:28:37 -0600 (Fri, 08 Jan 2010)
	  | 4 lines Stop a crash when no peer is passed to masq_park_call.
	  (distantly related to issue #16406) ........

2010-01-08 22:54 +0000 [r238754-238795]  Tilghman Lesher <tlesher@digium.com>

	* res/res_musiconhold.c: Add the class actually used in the
	  MusicOnHold start event. (closes issue #16499) Reported by:
	  syspert Patches: mohclass.patch uploaded by syspert (license 938)

	* res/res_agi.c: Initialize variables that we attempt to free
	  later. (closes issue #16302) Reported by: yahsyn Patches:
	  20091124__issue16302.diff.txt uploaded by tilghman (license 14)
	  Tested by: yahsyn

2010-01-08 21:04 +0000 [r238716]  Matthew Nicholson <mnicholson@digium.com>

	* tests/test_ast_format_str_reduce.c (added): Added a test for
	  ast_format_reduce_str(). (related to issue #16560)

2010-01-08 19:39 +0000 [r238635]  David Vossel <dvossel@digium.com>

	* include/asterisk/audiohook.h, main/audiohook.c: fixes
	  AUDIOHOOK_INHERIT regression During the process of removing an
	  audiohook from one channel and attaching it to another the
	  audiohook's status is updated to DONE and then back to whatever
	  it was previously. Typically updating the status after setting it
	  to DONE is not a good idea because DONE can trigger unrecoverable
	  audiohook destruction events... because of this a conditional
	  check was added to audiohook_update_status to explicitly prevent
	  the audiohook from ever changing after being set to DONE. It was
	  this check that prevented audiohook inherit from work properly
	  though. Now ast_audiohook_move_by_source is treated as a special
	  exception, as the audiohook must be returned to its previous
	  status after attaching it to the new channel. This is only a safe
	  operation because the audiohook's lock is held the entire time,
	  otherwise this could cause trouble. (closes issue #16522)
	  Reported by: corruptor

2010-01-08 19:32 +0000 [r238630]  Matthew Nicholson <mnicholson@digium.com>

	* /, main/file.c: Merged revisions 238629 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r238629 | mnicholson | 2010-01-08 13:20:44 -0600 (Fri, 08 Jan
	  2010) | 5 lines Properly calculate the remaining space in the
	  output string when reducing format strings. (closes issue #16560)
	  Reported by: goldwein ........

2010-01-08 17:18 +0000 [r238583]  Jeff Peeler <jpeeler@digium.com>

	* main/features.c: Stop trying to find a parking space after
	  traversing the parkinglot one time. (closes issue #16428)
	  Reported by: Yasuhiro Konishi

2010-01-07 21:24 +0000 [r238527]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Fix using the wrong pointer type in
	  do_idle_thread().

2010-01-07 20:42 +0000 [r238361-238492]  David Vossel <dvossel@digium.com>

	* main/channel.c: fixes ast_transfer stall until hangup if called
	  with a channel that doesn't support transfers ast_transfer sets
	  res to 0 if there is no technology transfer function, but then
	  tests for it to be negative before deciding to do an early exit.
	  As a result, it will will wait for an AST_CONTROL_TRANSFER
	  message that will never come. (closes issue #16424) Reported by:
	  davidw Patches: Issue_16424_trunk_234134.patch uploaded by davidw
	  (license 780)

	* /, channels/chan_iax2.c: Merged revisions 238411 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r238411 | dvossel | 2010-01-07 14:14:25 -0600 (Thu, 07
	  Jan 2010) | 10 lines fixes crash in "scheduled_destroy" in
	  chan_iax A signed short was used to represent a callnumber. This
	  is makes it possible to attempt to access the iaxs array with a
	  negative index. (closes issue #16565) Reported by: jensvb
	  ........

	* channels/chan_sip.c: Change in sip show channels display format
	  allowing more digits for CID (closes issue #16459) Reported by:
	  Rzadzins Patches: chan_sip_longer_cid.patch uploaded by Rzadzins
	  (license 953)

	* apps/app_queue.c: cli 'queue show' formatting fix. queue name was
	  truncated over 12 characters (closes issue #16078) Reported by:
	  RoadKill Patches: quequename_limit.patch uploaded by ppyy
	  (license 906) Tested by: dvossel

2010-01-07 09:14 +0000 [r238313]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* configs/sip.conf.sample: Document the usefulness of explicit
	  udp:// in the register string

2010-01-06 21:45 +0000 [r238231]  Tilghman Lesher <tlesher@digium.com>

	* /, funcs/func_cdr.c: Merged revisions 238230 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r238230 | tilghman | 2010-01-06 15:41:55 -0600 (Wed, 06 Jan 2010)
	  | 4 lines Revise documentation on disposition values to the
	  actual values used. (closes issue #16289) Reported by: wdoekes
	  ........

2010-01-06 20:37 +0000 [r238134-238181]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_meetme.c: Fix misreverting from 177158. (closes issue
	  #15725) Reported by: shanermn Patches: v1-15725.patch uploaded by
	  dimas (license 88) Tested by: shanermn

	* main/features.c: Fix channel name comparison for bridge
	  application. The channel name comparison was not comparing the
	  whole string and therefore if one channel name was a substring of
	  the other, the bridge would fail. (closes issue #16528) Reported
	  by: telecos82 Patches: res_features_r236843.diff uploaded by
	  telecos82 (license 687)

2010-01-06 16:36 +0000 [r238091]  David Vossel <dvossel@digium.com>

	* include/asterisk/test.h: fixes test.c compile issue when
	  TEST_FRAMEWORK is not enabled The ast_test_status_update()
	  function is defined in test.h. When TEST_FRAMEWORK is not enabled
	  a macro is defined as a no-op place holder for this function. The
	  macro did not contain the correct number of arguments. This
	  caused a compile error. Much thanks to wdoekes for reporting the
	  issue and supplying the patch!

2010-01-06 15:35 +0000 [r238014]  Sean Bright <sean@malleable.com>

	* addons/format_mp3.c: Fix reading samples from format_mp3 after
	  ast_seekstream/ast_tellstream. There is a bug when using
	  ast_seekstream/ast_tellstream with format_mp3 in that the file
	  read position is not reset before attempting to read samples. So
	  when we seek to determine the maximum size of the file (as in
	  res_agi's STREAM FILE) we weren't then resetting the file pointer
	  so that we could properly read samples. This patch addresses that
	  (in a similar manner to format_wav.c). (closes issue #15224)
	  Reported by: rbd Patches: 20091230_addons_1.4_issue15224.diff
	  uploaded by seanbright (license 71) Tested by: rbd, seanbright
	  Review: https://reviewboard.asterisk.org/r/453

2010-01-06 15:19 +0000 [r238010]  Russell Bryant <russell@digium.com>

	* /, apps/app_mp3.c: Merged revisions 238009 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r238009 | russell | 2010-01-06 09:18:22 -0600 (Wed, 06 Jan 2010)
	  | 7 lines Resolve a crash due to an ast_frame not being fully
	  initialized. (closes issue #16531) Reported by: john8675309
	  (closes SWP-615) ........

2010-01-06 06:53 +0000 [r237968]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Whoa, duplicate setting (dead code).

2010-01-05 23:08 +0000 [r237920]  David Vossel <dvossel@digium.com>

	* apps/app_queue.c: fixes holdtime playback issue in app_queue When
	  reporting hold time, the number of seconds should be mod 60.
	  Otherwise audio playback could be something like "2 minutes 123
	  seconds" rather than "2 minutes 3 seconds". Also, the "minute"
	  sound file is missing, so for the moment until that file can be
	  created the "minutes" file is used instead. (closes issue #16168)
	  Reported by: nickilo Patches: patch-unified-trunk-rev-222176
	  uploaded by nickilo (license ) Tested by: nickilo, wonderg

2010-01-05 20:56 +0000 [r237882]  Mark Michelson <mmichelson@digium.com>

	* apps/app_dial.c: Mismerged a bit.

2010-01-05 19:29 +0000 [r237839]  David Vossel <dvossel@digium.com>

	* main/pbx.c: fixes subscriptions being lost after 'module reload'
	  During a module reload if multiple extension configs are present,
	  such as both extensions.conf and extensions.ael, watchers for one
	  config's hints will be lost during the merging of the other
	  config. This happens because hint watchers are only preserved for
	  the current config being merged. The old context list is
	  destroyed after the merging takes place, meaning any watchers
	  that were not perserved will be removed. Now all hints are
	  preserved during merging regardless of what config file is being
	  merged. These hints are only restored if they are present within
	  the new context list. (closes issue #16093) Reported by: jlaroff

2010-01-05 18:57 +0000 [r237804]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h, channels/sig_pri.c: Removed unused
	  parameters from analog_available() and sig_pri_available().

2010-01-05 18:46 +0000 [r237802-237803]  Mark Michelson <mmichelson@digium.com>

	* apps/app_dial.c, CHANGES: Add a missing part of the connected
	  line work into trunk. Part of the work done for connected line
	  was to add an optional argument to the 'f' option to allow for
	  the connected party information of the outgoing channel to be set
	  to the argument provided. This was overlooked during the merge of
	  the work to trunk and is being added back now. The CHANGES file
	  has also been updated to note this change.

	* CHANGES: Spell "aficionado" like someone who isn't stupid.

2010-01-05 17:26 +0000 [r237699-237749]  Russell Bryant <russell@digium.com>

	* main/utils.c: Fix build of utility apps that include utils.c.

	* /, main/utils.c: Merged revisions 237697 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r237697 | russell | 2010-01-05 11:13:28 -0600 (Tue, 05 Jan 2010)
	  | 7 lines Change a NOTICE log message to DEBUG where it belongs.
	  (closes issue #16479) Reported by: alexrecarey (closes SWP-577)
	  ........

2010-01-05 16:08 +0000 [r237656]  Michiel van Baak <michiel@vanbaak.info>

	* apps/app_mixmonitor.c: Make CLI command 'mixmonitor start|stop
	  <channel> work again. (closes issue #16534) Reported by:
	  jlaguilar Fix as suggested by jlaguilar in the bugreport

2010-01-04 21:48 +0000 [r237406-237574]  Tilghman Lesher <tlesher@digium.com>

	* /, main/say.c: Merged revisions 237573 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r237573 | tilghman | 2010-01-04 15:45:46 -0600 (Mon, 04 Jan 2010)
	  | 6 lines Bounds checking for input string (closes issue #16407)
	  Reported by: qwell Patches: 20100104__issue16407.diff.txt
	  uploaded by tilghman (license 14) ........

	* main/pbx.c, /: Merged revisions 237493 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r237493 | tilghman | 2010-01-04 14:57:35 -0600 (Mon, 04 Jan 2010)
	  | 8 lines Regression in issue #15421 - Pattern matching (closes
	  issue #16482) Reported by: wdoekes Patches:
	  astsvn-16482-betterfix.diff uploaded by wdoekes (license 717)
	  20091223__issue16482.diff.txt uploaded by tilghman (license 14)
	  Tested by: wdoekes, tilghman ........

	* main/config.c: Oops, didn't compile (thanks, kpfleming)

	* main/config.c: Further reduce the encoded blank values back to
	  blank in the realtime API. (closes issue #16533) Reported by:
	  sergee Patches: 200100104__issue16533.diff.txt uploaded by
	  tilghman (license 14) Tested by: sergee

	* main/pbx.c, /, res/res_agi.c, include/asterisk/channel.h: Merged
	  revisions 237405 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r237405 | tilghman | 2010-01-04 12:19:00 -0600 (Mon, 04 Jan 2010)
	  | 16 lines Add a flag to disable the Background behavior, for AGI
	  users. This is in a section of code that relates to two other
	  issues, namely issue #14011 and issue #14940), one of which was
	  the behavior of Background when called with a context argument
	  that matched the current context. This fix broke FreePBX,
	  however, in a post-Dial situation. Needless to say, this is an
	  extremely difficult collision of several different issues. While
	  the use of an exception flag is ugly, fixing all of the issues
	  linked is rather difficult (although if someone would like to
	  propose a better solution, we're happy to entertain that
	  suggestion). (closes issue #16434) Reported by: rickead2000
	  Patches: 20091217__issue16434.diff.txt uploaded by tilghman
	  (license 14) 20091222__issue16434__1.6.1.diff.txt uploaded by
	  tilghman (license 14) Tested by: rickead2000 ........

2010-01-04 16:39 +0000 [r237327]  David Vossel <dvossel@digium.com>

	* apps/app_queue.c: app_queue segfaults if realtime field uniqueid
	  is NULL (closes issue #16385) Reported by: haakon Patches:
	  app_queue.c.patch uploaded by haakon (license 880)
	  app_queue.c.patch_v2 uploaded by dvossel (license 671) Tested by:
	  haakon

2010-01-04 16:24 +0000 [r237323]  Jeff Peeler <jpeeler@digium.com>

	* res/res_agi.c: Fix timeout for AGI command speech recognize.
	  (closes issue #16297) Reported by: semond

2010-01-04 16:20 +0000 [r237319]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_local.c, /: Merged revisions 237318 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r237318 | tilghman | 2010-01-04 10:18:59 -0600 (Mon, 04
	  Jan 2010) | 3 lines It's also possible for the Local channel to
	  directly execute an Application. Reviewboard:
	  https://reviewboard.asterisk.org/r/452/ ........

2010-01-04 07:55 +0000 [r237284]  Olle Johansson <oej@edvina.net>

	* res/res_pktccops.c, channels/chan_mgcp.c: - Disable res_pktccops
	  by default - Add dependency in chan_mgcp that was missing - Add a
	  small amount of doc to the source code

2010-01-04 03:38 +0000 [r237250]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c: 1. Added reporting operator names in
	  AuthReq. 2. Added retrieving operator names from AuthRsp and
	  exporting them.

2010-01-02 16:35 +0000 [r237213]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: global_contact_ha was renamed in trunk

2010-01-02 09:54 +0000 [r237136]  Olle Johansson <oej@edvina.net>

	* /, channels/chan_sip.c: Merged revisions 237135 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r237135 | oej | 2010-01-02 10:52:30 +0100 (Lör, 02 Jan 2010) | 2
	  lines Release memory of the contact acl before unloading module
	  ........

2009-12-30 23:51 +0000 [r237098]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooh323.c, addons/ooh323c/src/ooq931.c,
	  addons/ooh323c/src/ooCalls.c: small q931 processing and
	  signalling corrections don't decode UUIE from Q931StatusMessage
	  clean call without callIdentifier data don't start tcs/msd
	  exchange procedure after call proceeding received (closes issue
	  #16365) Reported by: benngard2 Tested by: may213, benngard2

2009-12-30 22:30 +0000 [r237050]  Jason Parker <jparker@digium.com>

	* main/say.c, doc/lang/vietnamese.ods (added),
	  apps/app_voicemail.c: Add app_voicemail and say.c support for
	  Vietnamese. Also add an XXX comment that I'm baffled nobody has
	  ever complained about. We say "first message", and then we go
	  into language-specific stuff where we proceed to say..."first
	  message". (closes issue #15053) Reported by: dinhtrung Patches:
	  vietnamese.ods uploaded by dinhtrung (license 776)
	  app_voicemail.c.diff uploaded by dinhtrung (license 776) (closes
	  issue #15626) Reported by: dinhtrung Patches: say.c.diff uploaded
	  by dinhtrung (license 776)

2009-12-30 21:59 +0000 [r236982]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_local.c, /: Merged revisions 236981 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r236981 | tilghman | 2009-12-30 15:57:10 -0600 (Wed, 30
	  Dec 2009) | 9 lines Don't queue frames to channels that have no
	  means to process them. (closes issue #15609) Reported by: aragon
	  Patches: 20091230__issue16521__1.4__chan_local_only.diff.txt
	  uploaded by tilghman (license 14) Tested by: aragon Review:
	  https://reviewboard.asterisk.org/r/452/ ........

2009-12-30 21:09 +0000 [r236893-236902]  Jeff Peeler <jpeeler@digium.com>

	* utils/ael_main.c: One more LOW_MEMORY compile fix.

	* channels/chan_sip.c, main/cli.c: Fix compiling with LOW_MEMORY.
	  Modified handle_verbose to be LOW_MEMORY aware, removed old RTP
	  related code in chan_sip. (closes issue #16381) Reported by:
	  michael_iedema Patches: ast_complete_source_filename.patch
	  uploaded by michael iedema (license 942) modified by me

2009-12-30 17:53 +0000 [r236802-236847]  Tilghman Lesher <tlesher@digium.com>

	* cdr/cdr_adaptive_odbc.c, cel/cel_adaptive_odbc.c: When the field
	  is blank, don't warn about the field being unable to be coerced,
	  just skip the column. (closes
	  http://lists.digium.com/pipermail/asterisk-dev/2009-December/041362.html)
	  Reported by Nic Colledge on the -dev list, fixed by me.

	* channels/chan_sip.c: Shut down the SIP session timers more
	  gracefully, in order to prevent a possible crash. (closes issue
	  #16452) Reported by: corruptor Patches:
	  20091221__issue16452.diff.txt uploaded by tilghman (license 14)
	  Tested by: corruptor

2009-12-29 10:59 +0000 [r236756]  TransNexus OSP Development <support@transnexus.com>

	* configs/osp.conf.sample, apps/app_osplookup.c, configure.ac: 1.
	  Updated for OSP Toolkit 3.6.0. 2. Added service type ported
	  number query. 3. Formated code.

2009-12-28 22:09 +0000 [r236713]  Jason Parker <jparker@digium.com>

	* main/ast_expr2.y, main/ast_expr2.c: Allow "REMAINDER" to function
	  properly in expressions. (closes issue #16427) Reported by:
	  wdoekes Patches: ast16-reminder-remainder.patch uploaded by
	  wdoekes (license 717) Tested by: wdoekes

2009-12-28 17:37 +0000 [r236667]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Use recommended option, not deprecated
	  option. (closes issue #16515) Reported by: ManChicken

2009-12-28 15:22 +0000 [r236510-236613]  Sean Bright <sean@malleable.com>

	* /, configure, include/asterisk/autoconfig.h.in, configure.ac,
	  include/asterisk/threadstorage.h: Merged revisions 236585 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r236585 | seanbright | 2009-12-28 10:12:08 -0500 (Mon, 28 Dec
	  2009) | 7 lines Try a test compile to see if PTHREAD_ONCE_INIT
	  requires extra braces. There was conditional code (based on build
	  platform) to optioinally wrap PTHREAD_ONCE_INIT in braces that
	  was removed since it is fixed in newer versions of
	  Solaris/OpenSolaris, but I am still running into it on Solaris 10
	  x86 so add a configure-time check for it. ........

	* /, apps/app_meetme.c: Merged revisions 236509 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r236509 | seanbright | 2009-12-28 07:43:36 -0500 (Mon, 28 Dec
	  2009) | 12 lines Avoid a crash with large numbers of MeetMe
	  conferences. Similar to changes made to Queue(), when we have
	  large numbers of conferences in meetme.conf (1000s) and we use
	  alloca()/strdupa(), we can blow out the stack and crash, so
	  instead just use a single fixed buffer. (closes issue #16509)
	  Reported by: Kashif Raza Patches: 20091223_16509.patch uploaded
	  by seanbright (license 71) Tested by: seanbright ........

2009-12-27 18:20 +0000 [r236434]  Tilghman Lesher <tlesher@digium.com>

	* contrib/init.d/rc.debian.asterisk, /: Merged revisions 236433 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r236433 | tilghman | 2009-12-27 12:19:38 -0600 (Sun, 27 Dec 2009)
	  | 2 lines Turn on colors in the daemon, since there's many
	  requests for it on Ubuntu. ........

2009-12-26 15:27 +0000 [r236358]  Kevin P. Fleming <kpfleming@digium.com>

	* /, sounds/Makefile: Merged revisions 236357 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r236357 | kpfleming | 2009-12-26 09:26:17 -0600 (Sat, 26 Dec
	  2009) | 1 line update to latest releases with zero uid/gid
	  ........

2009-12-23 19:17 +0000 [r236304-236312]  David Vossel <dvossel@digium.com>

	* CHANGES: Update CHANGES to reflect new QUEUE_MEMBER option,
	  "ready"

	* apps/app_queue.c: QUEUE_MEMBER(..., ready) counts only ready
	  agents, not free agents wrapping up The QUEUE_MEMBER dialplan
	  function can return total members, logged-in members and "free"
	  members count. A member is counted as "free" immediately after
	  his call ends, even though its wrap-up time, if specified in
	  queues.conf, has not yet expired, and the queue will not actually
	  route a call to it. This Patch introduces a new "ready" option
	  that only counts free agents no longer in the wrap up time
	  period. (closes issue #16240) Reported by: kkm Patches:
	  appqueue-memberfun-readyoption-trunk.diff uploaded by kkm
	  (license 888) Tested by: kkm, dvossel

	* CHANGES, apps/app_queue.c: update CHANGES to reflect new 'R'
	  app_queue option plus a minor optimization to the feature patch
	  (issue #16384)

	* apps/app_queue.c: new parameter 'R' to the Queue application The
	  'R' argument stops moh and indicates ringing once the agent is
	  ringing. This allows the person in the queue to know their call
	  is potentially about to be answered. (closes issue #16384)
	  Reported by: haakon Patches: new_app_queue.c.patch uploaded by
	  haakon (license 880) Tested by: haakon, loloski, dvossel

2009-12-23 18:25 +0000 [r236183-236300]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_stack.c: AGI may be invoked from outside the dialplan
	  (closes issue #16510) Reported by: atis Patches:
	  20091223__issue16510.diff.txt uploaded by tilghman (license 14)
	  Tested by: atis

	* /, res/res_agi.c: Merged revisions 236184 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r236184 | tilghman | 2009-12-22 20:55:24 -0600 (Tue, 22 Dec 2009)
	  | 4 lines If EXEC only gets a single argument, don't crash when
	  the second is used. (closes issue #16504) Reported by: bklang
	  ........

	* include/asterisk/test.h: Allow test_heap.c to compile when
	  AST_DEVMODE is true, but TEST_FRAMEWORK is false

	* apps/app_voicemail.c: Actually use tmp for something (brings
	  trunk back into sync with 1.6 branches).

2009-12-22 21:53 +0000 [r236027-236144]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: fixes iax "can't compress subclass
	  4294967295" error (closes issue #16456) Reported by: dvossel
	  Tested by: dvossel

	* /, channels/chan_sip.c: Merged revisions 236062 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r236062 | dvossel | 2009-12-22 10:58:19 -0600 (Tue, 22 Dec 2009)
	  | 11 lines fixes issue with p->method incorrectly set to ACK It
	  is possible for a second ACK to come in for a retransmitted
	  message. If an ack does not match an unacked message in our
	  queue, restore the previous p->method as this ACK is completely
	  ignored. (closes issue #16295) Reported by: omolenkamp Patches:
	  issue16295_v2.diff uploaded by dvossel (license 671) ........

	* CHANGES: update CHANGES to reflect the addition of the test
	  framework

	* include/asterisk/test.h (added), build_tools/cflags-devmode.xml,
	  tests/test_heap.c, main/test.c (added),
	  include/asterisk/_private.h, main/asterisk.c: Unit Test Framework
	  API The Unit Test Framework is a new API that manages
	  registration and execution of unit tests in Asterisk with the
	  purpose of verifying the operation of C functions. The Framework
	  consists of a single test manager accompanied by a list of
	  registered test functions defined within the code. A test is
	  defined, registered, and unregistered from the framework using a
	  set of macros which allow the test code to only be compiled
	  within asterisk when the TEST_FRAMEWORK flag is enabled in
	  menuselect. This allows the test code to exist in the same file
	  as the C functions it intends to verify. Registered tests may be
	  viewed and executed via a set of new CLI commands. CLI commands
	  are also present for generating and exporting test results into
	  xml and txt formats. For more information and use cases please
	  refer to the documentation provided at the beginning of the
	  test.h file. Review: https://reviewboard.asterisk.org/r/447/

2009-12-21 19:54 +0000 [r235941]  Jeff Peeler <jpeeler@digium.com>

	* /, res/res_monitor.c: Merged revisions 235940 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r235940 | jpeeler | 2009-12-21 13:43:41 -0600 (Mon, 21 Dec 2009)
	  | 13 lines Change Monitor to not assume file to write to does not
	  contain pathing. 227944 changed the fname_base argument to always
	  append the configured monitor path. This change was necessary to
	  properly compare files for uniqueness. If a full path is given
	  though, nothing needs to be appended and that is handled
	  correctly now. (closes issue #16377) (closes issue #16376)
	  Reported by: bcnit Patches: res_monitor.c-issue16376-1.patch
	  uploaded by dant (license 670) ........

2009-12-21 18:51 +0000 [r235904]  Kevin P. Fleming <kpfleming@digium.com>

	* contrib/upstart/asterisk.upstart-0.3.9, include/asterisk/cel.h,
	  main/say.c, include/asterisk/channel.h,
	  include/asterisk/manager.h, channels/sig_pri.c,
	  include/asterisk/logger.h, include/asterisk/http.h,
	  include/asterisk/callerid.h, include/asterisk/syslog.h,
	  channels/chan_dahdi.c, include/asterisk/app.h,
	  include/asterisk/doxyref.h, include/asterisk/event.h,
	  channels/sig_analog.c, channels/chan_misdn.c,
	  contrib/upstart/asterisk.user.conf,
	  include/asterisk/rtp_engine.h,
	  include/asterisk/security_events.h,
	  include/asterisk/stringfields.h: Change all refererences to 1.6.3
	  to be 1.8, since that will be the next feature release

2009-12-21 17:00 +0000 [r235822]  Tilghman Lesher <tlesher@digium.com>

	* /, main/features.c: Merged revisions 235821 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r235821 | tilghman | 2009-12-21 10:45:03 -0600 (Mon, 21 Dec 2009)
	  | 8 lines Send parking lot announcement to the channel which
	  parked the call, not the park-ee. (closes issue #16234) Reported
	  by: yeshuawatso Patches: 20091210__issue16234.diff.txt uploaded
	  by tilghman (license 14) 20091221__issue16234__1.4.diff.txt
	  uploaded by tilghman (license 14) Tested by: yeshuawatso ........

2009-12-20 08:22 +0000 [r235740-235774]  Alec L Davis <sivad.a@paradise.net.nz>

	* main/dsp.c: restarts busydetector (if enabled) when DTMF is
	  received after call is bridged. (closes issue 0016389) Reported
	  by: alecdavis Tested by: alecdavis Patch
	  dtmf_busydetector.diff2.txt uploaded by alecdavis (license 585)

	* apps/app_dial.c, CHANGES: app_dial optional parameter to option
	  'r' to allow play indication from indications.conf (closes issue
	  #14504) Reported by: alecdavis Tested by: alecdavis,jsmith Patch
	  app_dial.play_ring_indications.diff7.txt uploaded by alecdavis
	  (license 585)

2009-12-18 22:51 +0000 [r235660]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /, include/asterisk/cdr.h: Merged revisions
	  235635 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r235635 | jpeeler | 2009-12-18 16:29:51 -0600 (Fri, 18 Dec 2009)
	  | 48 lines Correct CDR dispositions for BUSY/FAILED This patch is
	  simple in that it reorders the disposition defines so that the
	  fix for issue 12946 works properly (the default CDR disposition
	  was changed to AST_CDR_NOANSWER). Also, the
	  AST_CDR_FLAG_ORIGINATED flag was set in ast_call to ensure all
	  CDR records are written. The side effects of CDR changes are
	  scary, so I'm documenting the test cases performed to attempt to
	  catch any regressions. The following tests were all performed
	  using 1.4 rev 195881 vs head (235571) + patch: A calls B C calls
	  B (busy) Hangup C Hangup A (Both SIP and features) A calls B A
	  blind transfers to C Hangup C (Both SIP and features) A calls B A
	  attended transfers to C Hangup C A calls B A attended transfers
	  to C (SIP) C blind transfers to A (features) Hangup A All of the
	  test scenario CDRs matched. The following tests were performed
	  just with the patch to ensure proper operation (with
	  unanswered=yes): exten =>s,1,Answer exten =>s,n,ResetCDR(w) exten
	  =>s,n,ResetCDR(w) exten =>s,1,ResetCDR(w) exten =>s,n,ResetCDR(w)
	  (closes issue #16180) Reported by: aatef Patches: bug16180.patch
	  uploaded by jpeeler (license 325) ........

2009-12-18 22:40 +0000 [r235573-235656]  Tilghman Lesher <tlesher@digium.com>

	* /, configure, configure.ac: Merged revisions 235652 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r235652 | tilghman | 2009-12-18 16:39:30 -0600 (Fri, 18
	  Dec 2009) | 2 lines Revise verbiage, per #asterisk-dev discussion
	  ........

	* /, configure, configure.ac: Merged revisions 235572 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r235572 | tilghman | 2009-12-18 15:18:16 -0600 (Fri, 18
	  Dec 2009) | 2 lines Point to the typical missing package, not the
	  cryptic "termcap support". ........

2009-12-17 23:21 +0000 [r235521]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Remove some old code for going to the 'fax'
	  extension when a T.38 switchover occurs. This would have already
	  happened when we detected the CNG tone so this was basically a
	  noop.

2009-12-17 17:19 +0000 [r235422]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c, /: Merged revisions 235421 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r235421 | tilghman | 2009-12-17 11:17:51 -0600 (Thu, 17 Dec 2009)
	  | 8 lines Use context from which Macro is executed, not macro
	  context, if applicable. Also, ensure that the extension COULD
	  match, not just that it won't match more. (closes issue #16113)
	  Reported by: OrNix Patches: 20091216__issue16113.diff.txt
	  uploaded by tilghman (license 14) Tested by: OrNix ........

2009-12-17 00:52 +0000 [r235342-235382]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c: Fix call forwarding
	  for analog phones. (closes issue #16440) Reported by: mmichelson

	* configs/jabber.conf.sample, include/asterisk/jabber.h, CHANGES,
	  res/res_jabber.c: Add auth_policy option to jabber.conf for auto
	  user registration. The option is global and currently the
	  acceptable values as noted in the sample config are accept or
	  deny. (closes issue #15228) Reported by: lp0

2009-12-16 05:24 +0000 [r235298]  Jared Smith <jaredsmith@jaredsmith.net>

	* /, configs/sip.conf.sample: Merged revisions 235181 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r235181 | jsmith | 2009-12-15 15:07:55 -0600 (Tue, 15
	  Dec 2009) | 4 lines Add a line showing that we can use CIDR
	  notation. patch by jsmith, after discussion with jtodd ........

2009-12-16 00:31 +0000 [r235265]  Jeff Peeler <jpeeler@digium.com>

	* main/manager.c, CHANGES: Enhance AMI redirect to allow channels
	  to be redirected to different places. New parameters
	  ExtraContext, ExtraExtension, and ExtraPriority have been added
	  to redirect the second channel to a different location.
	  Previously, it was only possible to redirect both channels to the
	  same place. (closes issue #15853) Reported by: haakon Patches:
	  trunk-manager.c.patch uploaded by haakon (license 880) Tested by:
	  jpeeler

2009-12-15 23:51 +0000 [r235229]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/strings.h: Is it Friday yet?

2009-12-15 23:41 +0000 [r235226]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c: Change match criteria existence in
	  ast_channel_cmp_cb to use ast_strlen_zero. (closes issue #16161)
	  Reported by: may213 Patches: core-show-channel.patch uploaded by
	  may213 (license 454)

2009-12-15 18:43 +0000 [r235132]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: reverse minor sip registration regression A
	  registration regression caused by a code tweak in (issue #14331)
	  and a bug fix in (issue #15539) caused some sip registration
	  config entries to be constructed incorrectly. Origially issue
	  #14331 contained the code tweak as well as a bug fix, but since
	  the issue was reported as a tweak the bug fix portion was moved
	  into issue #15539. Both the tweak and the bug fix contained minor
	  incorrect logic that resulted in some SIP registrations to fail.
	  (issue #14331) (issue #15539)

2009-12-15 15:33 +0000 [r235053]  Tilghman Lesher <tlesher@digium.com>

	* /, res/res_agi.c: Merged revisions 235052 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r235052 | tilghman | 2009-12-15 09:29:24 -0600 (Tue, 15 Dec 2009)
	  | 4 lines Mandatory argument checking (closes issue #16446)
	  Reported by: nicchap ........

2009-12-15 14:35 +0000 [r235010]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_fax.c: spandsp does in fact support V.17 modulation at
	  14.4 kilobits per second, so we should generate T38MaxBitRate of
	  14400 (even though that doesn't really affect the FAX
	  transmission much at all)

2009-12-15 07:18 +0000 [r234855-234976]  Alec L Davis <sivad.a@paradise.net.nz>

	* apps/app_directory.c: Support option 'n', as applications like
	  Playback, Background etc. Suggested on asterisk-dev as trivial
	  application change. Reported by: alecdavis Tested by: alecdavis

	* main/dsp.c: Whitespace.

	* main/dsp.c: restarts busydetector (if enabled) when DTMF is
	  received. (closes issue #16389) Reported by: alecdavis Tested by:
	  alecdavis Patch dtmf_busydetector.diff.txt uploaded by alecdavis
	  (license 585)

	* apps/app_directory.c: fixes escape to extensions 'o' and 'a', for
	  digits '0' and '*' (closes issue #16437) Reported by: alecdavis
	  Tested by: alecdavis Patch extension_o_a_fix.diff.txt uploaded by
	  alecdavis (license 585)

	* apps/app_directory.c: ast_stream_and_wait(chan,dir-usingkeypad)
	  didn't capture the dialled DTMF. (closes issue #16409) Reported
	  by: alecdavis Tested by: alecdavis Patch bug_16409.diff.txt
	  uploaded by alecdavis (license 585)

2009-12-14 23:16 +0000 [r234820]  Tilghman Lesher <tlesher@digium.com>

	* configs/voicemail.conf.sample, CHANGES, apps/app_voicemail.c:
	  Allow greetings-only mailboxes for Voicemail. (closes issue
	  #15132) Reported by: floletarmo Patches: voicemail_changes.patch
	  uploaded by floletarmo (license 784) (with some additional
	  changes by me)

2009-12-14 21:32 +0000 [r234776]  Jason Parker <jparker@digium.com>

	* apps/app_readexten.c: Allow tonelist as argument to ReadExten.
	  ReadExten already supported playing a tonezone from
	  indications.conf. It now has the ability to use a tonelist like
	  440+480/2000|0/4000 (closes issue #15185) Reported by: jcovert
	  Patches: app_readexten.c.patch uploaded by jcovert (license 551)
	  Tested by: qwell Patch modified by me, to maintain backwards
	  compatibility.

2009-12-14 21:13 +0000 [r234700]  Tilghman Lesher <tlesher@digium.com>

	* /, build_tools/make_version_c, build_tools/make_version_h: Merged
	  revisions 234699 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r234699 | tilghman | 2009-12-14 15:09:56 -0600 (Mon, 14 Dec 2009)
	  | 5 lines Deal with the situation where .flavor exists but
	  .version does not. Also make the script slightly more portable,
	  in keeping with autoconf syntax. (closes issue #14737) Reported
	  by: davidw ........

2009-12-14 17:19 +0000 [r234631]  Leif Madsen <lmadsen@digium.com>

	* doc/tex/imapstorage.tex, /: Update IMAP build documentation.
	  Update the IMAP build documentation to show how to build on
	  64-bit platforms. (issue #16433) Reported by: shrift Tested by:
	  lmadsen

2009-12-14 16:08 +0000 [r234572]  Sean Bright <sean@malleable.com>

	* main/timing.c: The default rate for 'timing test' is actually
	  50/sec, not 100/sec as advertised.

2009-12-14 10:46 +0000 [r234526]  Olle Johansson <oej@edvina.net>

	* /, channels/chan_sip.c: Merged revisions 234492 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r234492 | oej | 2009-12-14 11:16:00 +0100 (Mån, 14 Dec 2009) | 8
	  lines Stop sending 183's after call hangup. There where still
	  cases where the 183 keep-alive mechanism would not stop sending
	  183's even though the Asterisk server had sent a final reply to
	  the invite. EDVX-28 ........

2009-12-13 09:41 +0000 [r234458]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Trim leading/trailing spaces from the filename, to
	  deal with common user error.

2009-12-11 23:17 +0000 [r234380]  Jeff Peeler <jpeeler@digium.com>

	* /, apps/app_meetme.c: Merged revisions 234379 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r234379 | jpeeler | 2009-12-11 16:37:21 -0600 (Fri, 11 Dec 2009)
	  | 11 lines Fix talking detection status after conference user is
	  muted. This patch ensures that when a conference user is muted
	  that the accompanying AMI Meetme talking off event is sent. Also,
	  the meetme list output is updated to show the muted user as
	  unmonitored. (closes issue #16247) Reported by: dimas Patches:
	  v3-16247.patch uploaded by dimas (license 88) ........

2009-12-10 21:01 +0000 [r234256]  Jason Parker <jparker@digium.com>

	* Makefile, /: Merged revisions 234255 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r234255 | qwell | 2009-12-10 14:58:09 -0600 (Thu, 10 Dec 2009) |
	  9 lines Fix unselecting of menuselect options via GLOBAL_MAKEOPTS
	  and USER_MAKEOPTS. (closes issue #16296) Reported by: abelbeck
	  Patches: issue16296-20091210.diff uploaded by qwell (license 4)
	  (abelbeck described a fix, which I expanded upon) Tested by:
	  abelbeck, qwell, lmadsen ........

2009-12-10 18:56 +0000 [r234210]  Tilghman Lesher <tlesher@digium.com>

	* res/res_musiconhold.c: Missed a case that emits a WARNING where
	  none is warranted.

2009-12-10 17:31 +0000 [r234173]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_meetme.c, apps/app_page.c, main/app.c, CHANGES: Add
	  audio announcement option to app_page As described in the CHANGES
	  file: * MeetMe has a new option 'G' to play an announcement
	  before joining a conference. * Page has a new option 'A(x)' which
	  will playback an announcement simultaneously to all paged phones
	  (and optionally excluding the caller's one using the new option
	  'n') before the call is bridged. To add the new option to meetme,
	  the conference flag options had to be extended to 64 bits.
	  (closes issue #14365) Reported by: dferrer Patches:
	  page_announce.patch uploaded by dferrer (license 525) modified by
	  me Review: https://reviewboard.asterisk.org/r/188/

2009-12-10 16:24 +0000 [r234129]  Tilghman Lesher <tlesher@digium.com>

	* /, channels/chan_sip.c: Merged revisions 234095 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r234095 | tilghman | 2009-12-10 10:08:20 -0600 (Thu, 10 Dec 2009)
	  | 9 lines When we receive no response at all to our INVITE, allow
	  the channel to be destroyed. (closes issue #15627) Reported by:
	  falves11 Patches: 20091209__issue15627__1.6.0.diff.txt uploaded
	  by tilghman (license 14) 20091209__issue15627__1.4.diff.txt
	  uploaded by tilghman (license 14) Tested by: falves11 Review:
	  https://reviewboard.asterisk.org/r/446/ (closes issue #15716)
	  Reported by: dant (closes issue #16270) Reported by: corruptor
	  (closes issue #15356) Reported by: falves11 (issue #16382)
	  Reported by: lftsy ........

2009-12-09 23:35 +0000 [r233967-234055]  Russell Bryant <russell@digium.com>

	* UPGRADE.txt, CHANGES: Move an entry from CHANGES to UPGRADE.txt.

	* UPGRADE.txt, CHANGES: Move an entry from CHANGES that should be
	  in UPGRADE.txt.

	* CHANGES: Provide a real description of LOCAL_PEEK().

	* CHANGES: Remove a feature from CHANGES that was listed twice for
	  1.6.2.

	* CHANGES: Fix up the faxdetect entry in CHANGES. This feature was
	  listed as a 1.6.2 feature, even though it's in all 1.6.X
	  versions. The description of the feature was also no longer
	  accurate.

	* CHANGES: Remove an entry from CHANGES that is already in
	  UPGRADE.txt (where it should be).

2009-12-08 18:40 +0000 [r233718-233732]  Tilghman Lesher <tlesher@digium.com>

	* addons/res_config_mysql.c: Typo pointed out on #asterisk-dev (by
	  atis_work)

	* res/res_musiconhold.c: Find another ref leak and change how we
	  manage module references. (closes issue #16388, closes issue
	  #16279, closes issue #16390) Reported by: parisioa Patches:
	  20091208__issue16388.diff.txt uploaded by tilghman (license 14)
	  Tested by: parisioa, tilghman Review:
	  https://reviewboard.asterisk.org/r/442/

2009-12-08 18:00 +0000 [r233692]  Russell Bryant <russell@digium.com>

	* formats/format_sln.c, formats/format_wav.c,
	  formats/format_ogg_vorbis.c, formats/format_sln16.c,
	  formats/format_wav_gsm.c, formats/format_siren7.c,
	  formats/format_ilbc.c, formats/format_vox.c,
	  formats/format_pcm.c, formats/format_h263.c,
	  formats/format_g723.c, formats/format_h264.c,
	  formats/format_g726.c, formats/format_siren14.c,
	  formats/format_jpeg.c, formats/format_gsm.c,
	  formats/format_g729.c: Set a module load priority for format
	  modules. A recent change to app_voicemail made it such that the
	  module now assumes that all format modules are available while
	  processing voicemail configuration. However, when autoloading
	  modules, it was possible that app_voicemail was loaded before the
	  format modules. Since format modules don't depend on anything,
	  set a module load priority on them to ensure that they get loaded
	  first when autoloading. This fix applies to trunk, 1.6.1, and
	  1.6.2. The fix for 1.4 and 1.6.0 will require a different
	  approach since the module load priority functionality is not
	  present in the module API. (issue #16412) Reported by: jiddings

2009-12-07 23:28 +0000 [r233611]  David Vossel <dvossel@digium.com>

	* main/utils.c: fixes incorrect logic in ast_uri_encode issue
	  #16299

2009-12-07 23:10 +0000 [r233577]  Atis Lezdins <atis@iq-labs.net>

	* contrib/valgrind.supp: Fix compatibility with valgrind 3.3 and
	  older. (noticed in issue #16388) Reported by: parisioa Patches:
	  valgrind.supp uloaded by atis (license 242) Tested by: atis,
	  parisioa

2009-12-07 19:48 +0000 [r233545]  David Ruggles <thedavidfactor@gmail.com>

	* apps/app_externalivr.c: Fix TCP Client interface Fix a couple of
	  very minor bugs that prevent the socket client from working. The
	  wrong set of properties were used in one place and the size of
	  the address variable isn't set if the host name is an ip address.
	  Also includes a fix for a bug that was introduced previously.
	  (closes issue #16121) Reported by: thedavidfactor Tested by:
	  thedavidfactor Review: https://reviewboard.asterisk.org/r/439/

2009-12-07 18:08 +0000 [r233472]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 233471 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r233471 | dvossel | 2009-12-07 12:07:38 -0600 (Mon, 07 Dec 2009)
	  | 9 lines fixes missing Contact header angle brackets (closes
	  issue #16298) Reported by: mgernoth Patches:
	  reg_parse_issue_1.4.diff uploaded by dvossel (license 671) Tested
	  by: dvossel ........

2009-12-07 17:59 +0000 [r233468]  Jeff Peeler <jpeeler@digium.com>

	* include/asterisk/jabber.h, CHANGES, res/res_jabber.c: Add
	  applications JabberJoin, JabberLeave, JabberSendGroup for XMPP
	  groupchat (closes issue #14352) Reported by: fiddur Patches:
	  trunk-14352-2.diff uploaded by phsultan (license 73) Tested by:
	  fiddur

2009-12-07 16:14 +0000 [r233394]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Do not reject SDP packets describing only
	  non audio streams. (closes issue #16387) Reported by: zalex1953
	  Patches: media-level-c-fix1.diff uploaded by mnicholson (license
	  96) Tested by: mnicholson, zalex1953

2009-12-06 07:01 +0000 [r233358]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/compat.h, main/strcompat.c, main/app.c: Move
	  implementation of closefrom(3) from app.c to strcompat.c

2009-12-04 21:54 +0000 [r233280]  David Vossel <dvossel@digium.com>

	* configs/iax.conf.sample, /: Merged revisions 233279 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r233279 | dvossel | 2009-12-04 15:54:01 -0600 (Fri, 04
	  Dec 2009) | 7 lines clarify requirecalltoken option in
	  iax.sample.conf (closes issue #16223) Reported by: bklang
	  Patches: clarify-iax-requirecalltoken.patch uploaded by bklang
	  (license 919) ........

2009-12-04 21:06 +0000 [r233239]  Tilghman Lesher <tlesher@digium.com>

	* main/translate.c: Using the builtin function breaks OpenBSD 4.2
	  (closes issue #16395) Reported by: jtodd

2009-12-04 20:21 +0000 [r233121-233235]  David Vossel <dvossel@digium.com>

	* CHANGES: update CHANGES file for .m3u support in Mp3Player
	  application

	* apps/app_mp3.c: .m3u support for Mp3Player app (closes issue
	  #14823) Reported by: macli Patches: app_mp3.diff1 uploaded by
	  macli (license ) Tested by: macli, dvossel

	* CHANGES: update CHANGES for new queue option,
	  penaltymemberslimit.

	* apps/app_queue.c: changes penaltymemberslimit to use scanf for
	  config value parsing

	* configs/queues.conf.sample, apps/app_queue.c: new queue option,
	  penaltymemberslimit, disregards penalty on too few queue members
	  when enabled (closes issue #14559) Reported by: fiddur Patches:
	  trunk-199584-1.diff uploaded by fiddur (license 678) Tested by:
	  fiddur, dvossel

	* /, apps/app_voicemail.c: Merged revisions 233116 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r233116 | dvossel | 2009-12-04 11:21:34 -0600 (Fri, 04
	  Dec 2009) | 6 lines document and rename strip_control() in
	  app_voicemail (closes issue #16291) Reported by: wdoekes ........

2009-12-04 17:18 +0000 [r233100]  Russell Bryant <russell@digium.com>

	* main/channel.c, /: Merged revisions 233092 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r233092 | russell | 2009-12-04 11:12:47 -0600 (Fri, 04 Dec 2009)
	  | 7 lines Only do frame payload check for HOLD frames. This code
	  was added for helping to debug the source of invalid HOLD frames.
	  However, a side effect of this is that it will incorrectly report
	  errors for frames that have an integer payload. Make the check
	  for this block specific to the HOLD frame case. ........

2009-12-04 17:15 +0000 [r233093]  Matthias Nick <mnick@digium.com>

	* pbx/pbx_config.c: Parse global variables or expressions in hint
	  extensions Parse global variables or expressions in hint
	  extensions. Like: exten => 400,hint,DAHDI/i2/${GLOBAL(var)}
	  (closes issue #16166) Reported by: rmudgett Tested by: mnick,
	  rmudgett

2009-12-04 16:55 +0000 [r233059-233089]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_skinny.c: Let's unlock the lines list after the
	  AST_LIST_TRAVERSE instead of inside it.

	* channels/chan_skinny.c: Only assign line and device in
	  handle_transfer_button when we have a subchannel. (closes issue
	  #16040) Reported by: ebroad

2009-12-04 16:08 +0000 [r233050]  Tilghman Lesher <tlesher@digium.com>

	* addons/res_config_mysql.c: Update the mysql driver to always
	  return NULL columns, as this is needed for the realtime API to
	  work correctly. (closes issue #16138) Reported by: sohosys
	  Patches: 20091029__issue16138.diff.txt uploaded by tilghman
	  (license 14) Tested by: sohosys

2009-12-04 15:38 +0000 [r233046]  Matthias Nick <mnick@digium.com>

	* /, main/dsp.c: Merged revisions 233014 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r233014 | mnick | 2009-12-04 09:17:03 -0600 (Fri, 04 Dec 2009) |
	  11 lines Warning message gets displayed only once Added
	  additional field 'int display_inband_dtmf_warning', which when
	  set to '1' displays the warning ('Inband DTMF is not supported on
	  codec %s. Use RFC2833'), and when set to '0' doesn't display the
	  warning. Otherwise you would get hundreds of warnings every
	  second. (closes issue #15769) Reported by: falves11 Patches:
	  patch_15769_14.txt uploaded by mnick (license 874) Tested by:
	  mnick, falves11 ........

2009-12-04 05:26 +0000 [r232854-232982]  Tilghman Lesher <tlesher@digium.com>

	* res/res_pktccops.c: Buildbot complained

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  res/res_pktccops.c: OS X does not define MSG_NOSIGNAL, but it
	  does have a socket option SO_NOSIGPIPE. (closes issue #16178)
	  Reported by: oej

	* configs/voicemail.conf.sample, CHANGES, apps/app_voicemail.c: Add
	  pagerdateformat, to allow shorter dates for SMS messages. (closes
	  issue #16263) Reported by: andrew Patches: pagerdate.patch
	  uploaded by andrew (license 240) (with a slight modification by
	  me)

	* /, apps/app_voicemail.c: Merged revisions 232820 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r232820 | tilghman | 2009-12-03 14:10:19 -0600 (Thu, 03
	  Dec 2009) | 8 lines Deprecate "cz" in favor of "cs". Also, change
	  the use of language codes so that language registers as a prefix,
	  rather than an exact match. (closes issue #16272) Reported by:
	  patrol-cz Patches: 20091203__issue16272.diff.txt uploaded by
	  tilghman (license 14) ........

2009-12-03 20:26 +0000 [r232853]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/ooh323.c, addons/chan_ooh323.c,
	  addons/ooh323c/src/ooh245.c: jitterbuffer setup correction
	  correction of double pointer references from previous rev

2009-12-03 08:47 +0000 [r232738-232771]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c: Replaced two deprecated functions of OSP
	  Toolkit.

	* apps/app_osplookup.c: Added custom info support.

2009-12-03 00:38 +0000 [r232700]  Jeff Peeler <jpeeler@digium.com>

	* configs/voicemail.conf.sample, CHANGES, apps/app_voicemail.c:
	  Extend voicemail to allow IMAP folders to be specified per
	  mailbox. Previously only possible per context, new option called
	  imapfolder. (closes issue #14298) Reported by: jablko Patches:
	  patch-200906202 uploaded by jablko (license 675)

2009-12-03 00:09 +0000 [r232660-232661]  Tilghman Lesher <tlesher@digium.com>

	* res/res_musiconhold.c: Remove debugging line

	* include/asterisk/astobj2.h, res/res_musiconhold.c: Fix multiple
	  issues with musiconhold, which led to classes not getting
	  destroyed properly. * Classes are now tracked past removal from
	  the core container, and module removal is actively prevented
	  until all references are freed. * A hanging reference stored in
	  the channel has been removed. This could have caused a mismatch
	  and the music state not properly cleared, if two or more reloads
	  occurred between MOH being stopped and MOH being restarted. * In
	  certain circumstances, duplicate classes were possible. * A race
	  existed at reload time between a process being killed and the
	  thread responsible for reading from the related pipe respawning
	  that process. * Several reference counts have also been
	  corrected. At least one could have caused deleted classes to
	  stick around forever, consuming resources. This originally
	  manifested as MOH external processes that were not killed at
	  reload time. (closes issue #16279, closes issue #16207) Reported
	  by: parisioa, dcabot Patches: 20091202__issue16279__2.diff.txt
	  uploaded by tilghman (license 14) Tested by: parisioa, tilghman

2009-12-02 23:27 +0000 [r232657]  David Vossel <dvossel@digium.com>

	* UPGRADE.txt, CHANGES: update CHANGES and UPGRADE.txt for early
	  media behavior change between 1.6.1 and 1.6.2 (closes issue
	  #16212) Reported by: miki

2009-12-02 22:17 +0000 [r232587]  David Ruggles <thedavidfactor@gmail.com>

	* apps/app_externalivr.c: Prevent double closing of FDs by EIVR
	  This caused a problem when asterisk was under heavy load and
	  running both AGI and EIVR applications. EIVR would close an FD at
	  which point it would be considered freed and be used by a new AGI
	  instance the second close would then close the FD now in use by
	  AGI. (closes issue #16305) Reported by: diLLec Tested by:
	  thedavidfactor, diLLec Review:
	  https://reviewboard.asterisk.org/r/436/

2009-12-02 22:02 +0000 [r232582]  Jeff Peeler <jpeeler@digium.com>

	* main/manager.c, /: Merged revisions 232581 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r232581 | jpeeler | 2009-12-02 15:57:42 -0600 (Wed, 02 Dec 2009)
	  | 7 lines Send ack (response/message) after receiving manager
	  action userevent (closes issue #16264) Reported by: dimas
	  Patches: event-ack.patch uploaded by dimas (license 88) ........

2009-12-02 21:37 +0000 [r232580]  Matthew Nicholson <mnicholson@digium.com>

	* addons/chan_mobile.c: Fix support for multiline SMS messages in
	  chan_mobile. (closes issue #16278) Reported by: Artem Patches:
	  multiline-sms-fix2.diff uploaded by mnicholson (license 96)
	  Tested by: Artem

2009-12-02 21:32 +0000 [r232576]  Jeff Peeler <jpeeler@digium.com>

	* main/manager.c: Make manager response to "Action: events" finish
	  with empty line (closes issue #16275) Reported by: vnovy Patches:
	  manager.c.diff uploaded by vnovy (license 922)

2009-12-02 21:13 +0000 [r232544]  Matthew Nicholson <mnicholson@digium.com>

	* addons/chan_mobile.c: Do something with the service indicator so
	  that asterisk does not attempt to use a chan_mobile endpoint that
	  does not have service. (closes issue #16132) Reported by: nikkk
	  Patches: service-indicator2.diff uploaded by mnicholson (license
	  96) Tested by: nikkk

2009-12-02 20:10 +0000 [r232442-232510]  Joshua Colp <jcolp@digium.com>

	* CHANGES, main/asterisk.c, doc/asterisk.sgml: Add an 'X' option to
	  the asterisk application which enables #exec for configuration
	  files. This option can be used to enable #exec support in the
	  asterisk.conf configuration file. (closes issue #16260) Reported
	  by: atis Patches: exec_includes.patch uploaded by atis (license
	  242)

	* apps/app_record.c, CHANGES: Add an option to Record which enables
	  a mode where any DTMF digit will terminate recording. (closes
	  issue #15436) Reported by: Vince Patches: app_record.diff
	  uploaded by Vince (license 823) Tested by: dbrooks

2009-12-02 17:18 +0000 [r232365]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Do not change the exten string field or
	  rebuild the contact header on an inbound sip_pvt if the outbound
	  call is redirected.

2009-12-02 17:06 +0000 [r232356]  Joshua Colp <jcolp@digium.com>

	* /, apps/app_amd.c: Merged revisions 232355 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r232355 | file | 2009-12-02 13:04:52 -0400 (Wed, 02 Dec 2009) | 5
	  lines Fix a bug where if you hung up very quickly after calling
	  AMD it would overwrite the AMDSTATUS of HANGUP with TOOLONG.
	  (closes issue #16239) Reported by: CGMChris ........

2009-12-02 17:00 +0000 [r232351]  David Vossel <dvossel@digium.com>

	* /, main/acl.c: Merged revisions 232350 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r232350 | dvossel | 2009-12-02 10:59:18 -0600 (Wed, 02 Dec 2009)
	  | 6 lines ast_outaddrfor doesn't do htons() on port, looks odd in
	  strace. (closes issue #16290) Reported by: wdoekes ........

2009-12-02 16:40 +0000 [r232345]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Add support for handling the 415 Unsupported
	  media type response like we do for a 488 Not acceptable here
	  response. (closes issue #16186) Reported by: atis Patches:
	  sip_t38_response_415.patch uploaded by atis (license 242)

2009-12-02 15:42 +0000 [r232269]  David Vossel <dvossel@digium.com>

	* funcs/func_groupcount.c, /: Merged revisions 232268 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r232268 | dvossel | 2009-12-02 09:41:36 -0600 (Wed, 02
	  Dec 2009) | 9 lines fixes segfault in func_groupcount closes
	  issue #16337) Reported by: Parantido Patches: issue_16337.diff
	  uploaded by dvossel (license 671) Tested by: Parantido, dvossel
	  ........

2009-12-02 14:54 +0000 [r232230]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug where a scheduled item ID would
	  get retained on registrations in a certain scenario causing code
	  to execute during reload that should not. (issue AST-263)

2009-12-02 03:26 +0000 [r232164]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in,
	  include/asterisk/compat.h, main/strcompat.c, configure.ac: So
	  apparently, some platforms don't have ffsll(3). The manpage lies;
	  it says that the function is in POSIX, but that's only for
	  ffs(3), not ffsll(3).

2009-12-02 00:45 +0000 [r232091]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 232090 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r232090 | jpeeler | 2009-12-01 18:42:58 -0600 (Tue, 01
	  Dec 2009) | 10 lines Do not modify the gain settings on data
	  calls. (The digital flag actually represents a data call.)
	  (closes issue #15972) Reported by: udosw Patches:
	  transcap_digital_fix.diff.txt uploaded by alecdavis (license 585)
	  Tested by: alecdavis ........

2009-12-01 23:56 +0000 [r232008-232017]  Russell Bryant <russell@digium.com>

	* main/translate.c: Use __builtin_ffsll() from gcc instead of
	  ffssll() to fix a FreeBSD build error.

	* funcs/func_lock.c: Fix a build error on FreeBSD.

	* /, main/file.c: Merged revisions 232007 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r232007 | russell | 2009-12-01 17:25:36 -0600 (Tue, 01 Dec 2009)
	  | 2 lines Fix a warning pointed out by buildbot. ........

2009-12-01 21:54 +0000 [r231927]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /: Merged revisions 231911 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r231911 | jpeeler | 2009-12-01 15:29:31 -0600 (Tue, 01 Dec 2009)
	  | 12 lines Fix crash with invalid frame data The crash was
	  happening as a result of a frame containing an invalid data
	  pointer, but was set with data length of zero. The few times the
	  issue was reproduced it _seemed_ that the frame was queued
	  properly, that is the data pointer was set to NULL. I never could
	  reproduce the crash so as a last resort the crash has been fixed,
	  but a check in __ast_read has been added to give as much
	  information about the source of problematic frames in the future.
	  (closes issue #16058) Reported by: atis ........

2009-12-01 21:20 +0000 [r231867]  David Vossel <dvossel@digium.com>

	* main/pbx.c, /: Merged revisions 231853 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r231853 | dvossel | 2009-12-01 15:14:31 -0600 (Tue, 01 Dec 2009)
	  | 3 lines WaitExten m option with no parameters generates frame
	  with zero datalen but non-null data ptr ........

2009-12-01 20:27 +0000 [r231814-231850]  Tilghman Lesher <tlesher@digium.com>

	* res/res_rtp_asterisk.c, channels/chan_unistim.c,
	  main/rtp_engine.c, addons/chan_ooh323.c, channels/chan_sip.c,
	  res/res_adsi.c, addons/chan_ooh323.h,
	  include/asterisk/callerid.h, channels/chan_phone.c,
	  channels/chan_dahdi.c, channels/chan_skinny.c, main/callerid.c,
	  channels/chan_h323.c, addons/ooh323cDriver.c,
	  include/asterisk/rtp_engine.h, addons/ooh323cDriver.h: More
	  32->64 bit codec conversions. In the process of swapping ULAW to
	  a place in the extended codec space, we found several unhandled
	  cases, where a 32-bit integer was still being used to handle a
	  codec field. Most of these have been fixed with this commit,
	  although there is at least one case (codec_dahdi) which depends
	  upon outside headers to be altered before a conversion can be
	  made. (Fixes AST-278, SWP-459)

	* include/asterisk/mod_format.h: Formats need to be able to
	  represent all 64 codec bits.

2009-12-01 15:47 +0000 [r231741]  Matthew Nicholson <mnicholson@digium.com>

	* /, main/file.c: Merged revisions 231740 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r231740 | mnicholson | 2009-12-01 09:34:57 -0600 (Tue, 01 Dec
	  2009) | 2 lines Ignore unknown formats in ast_format_str_reduce()
	  and return an error if no know formats are found. ........

2009-11-30 21:47 +0000 [r231692]  Kevin P. Fleming <kpfleming@digium.com>

	* main/udptl.c, channels/chan_sip.c, include/asterisk/udptl.h:
	  Another round of UDPTL stack fixes/improvements: 1) Allow users
	  of UDPTL stack to associate a character-string tag with a UDPTL
	  session, so that log/error/debug messages generated by the UDPTL
	  stack can be 'connected' to the endpoint that caused them to be
	  generated. 2) Improve comments (and process) of calculating the
	  far end's maximum IFP size when redundancy mode is in use for
	  error correction. 3) When an IFP larger than the calculated 'far
	  max IFP' size is presented for writing, truncate it rather than
	  putting in the buffer and allowing the buffer to overflow; this
	  will cause the ends to retrain to a lower bit rate that produces
	  IFPs of an appropriate size if possible, and if not possible, the
	  FAX transfer will fail completely. In these cases, it is due to
	  the one endpoint supplying a T38FaxMaxDatagram value that is
	  improperly calculated and is too low to be of use; we have
	  configuration options available to override this behavior. 4)
	  Eliminate use of T38FaxMaxDatagram value in udptl.conf; it is no
	  longer needed.

2009-11-30 21:31 +0000 [r231616-231688]  Matthew Nicholson <mnicholson@digium.com>

	* include/asterisk/file.h, /, main/file.c, main/app.c,
	  apps/app_voicemail.c: Merged revisions 231614 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r231614 | mnicholson | 2009-11-30 15:11:44 -0600 (Mon, 30 Nov
	  2009) | 8 lines Remove duplicate entries from voicemail format
	  lists. This prevents app_voicemail from entering an infinite loop
	  when the same format is specified twice in the format list.
	  (closes issue #15625) Reported by: Shagg63 Tested by: mnicholson
	  Review: https://reviewboard.asterisk.org/r/429/ ........

	* include/asterisk/file.h, /, main/app.c, apps/app_voicemail.c:
	  Reverted 231616

	* include/asterisk/file.h, /, main/app.c, apps/app_voicemail.c:
	  Merged revisions 231614 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r231614 | mnicholson | 2009-11-30 15:11:44 -0600 (Mon, 30 Nov
	  2009) | 8 lines Remove duplicate entries from voicemail format
	  lists. This prevents app_voicemail from entering an infinite loop
	  when the same format is specified twice in the format list.
	  (closes issue #15625) Reported by: Shagg63 Tested by: mnicholson
	  Review: https://reviewboard.asterisk.org/r/429/ ........

2009-11-30 20:44 +0000 [r231602]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: When receiving SDP that matches the version
	  of the last one do not treat it as a fatal error. (closes issue
	  #16238) Reported by: seandarcy

2009-11-30 18:55 +0000 [r231491-231556]  David Vossel <dvossel@digium.com>

	* apps/app_queue.c: app_queue crashes randomly, often during
	  call-transfers This patch adds a ref to the queue_ent object's
	  parent call_queue in queue_exec() so the call_queue won't be
	  destroyed while the the queue_ent still holds a pointer to it.
	  (closes issue 0015686) Tested by: dvossel, aragon

	* res/res_rtp_asterisk.c, /: Merged revisions 231441 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r231441 | dvossel | 2009-11-30 11:14:08 -0600 (Mon, 30
	  Nov 2009) | 11 lines fixes crash caused by RTP comfort noise
	  payload greater than 24 bytes AST-2009-010 (closes issue #16242)
	  Reported by: amorsen Patches: issue16242.diff uploaded by oej
	  (license 306) Tested by: amorsen, oej, dvossel ........

2009-11-30 16:53 +0000 [r231439]  Tilghman Lesher <tlesher@digium.com>

	* main/asterisk.dynamics (added), Makefile.rules: Export dynamic
	  (weak-linked) symbols correctly. (closes issue #15193) Reported
	  by: eliel Patches: 20091111__issue15193.diff.txt uploaded by
	  tilghman (license 14)

2009-11-30 16:29 +0000 [r231436]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug where an immediate masquerade
	  would cause a queued unhold frame to get lost. Now we just
	  indicate unhold directly after the masquerade is complete. (issue
	  ABE-2011)

2009-11-27 08:47 +0000 [r231401]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c: 1. Modified exported variable names. 2.
	  Added destination port support. 3. Added new protocols. 4. Added
	  QoS.

2009-11-26 02:09 +0000 [r231299-231369]  Tilghman Lesher <tlesher@digium.com>

	* doc/CODING-GUIDELINES, main/asterisk.c: Reorder option flags.
	  Change guidelines so that example code is consistent with
	  guidelines

	* main/channel.c, /: Merged revisions 231298 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r231298 | tilghman | 2009-11-25 16:31:57 -0600 (Wed, 25 Nov 2009)
	  | 2 lines After a frame duplication failure, unlock the channel
	  before returning. ........

2009-11-25 15:42 +0000 [r231189]  Matthew Nicholson <mnicholson@digium.com>

	* pbx/pbx_lua.c: Load pbx_lua with global symbols to allow linking
	  with other lua libraries. Found by Maxim Litnitskiy.

2009-11-24 20:31 +0000 [r231134]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_queue.c: Found a few places where queue refcounts were
	  counted incorrectly. Also add debug statements. (closes issue
	  #15982, closes issue #15984) Reported by: atis Patches:
	  20091111__issue15982.diff.txt uploaded by tilghman (license 14)
	  Tested by: atis

2009-11-24 18:50 +0000 [r231058-231095]  Jeff Peeler <jpeeler@digium.com>

	* main/features.c: Fix erroneous hangup extension execution
	  ast_spawn_extension behaves differently from 1.4 in that hangups
	  and extensions that do not exist do not return an error, whereas
	  in 1.6 it does. This is now taken into account so that the
	  AST_FLAG_BRIDGE_HANGUP_RUN flag gets set properly. (closes issue
	  #16106) Reported by: ajohnson Tested by: ajohnson

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  Fix problem on digital channels due to digital flag not getting
	  set Changed areas in sig_pri to set the digital flag using a
	  callback that will also set the corresponding flag in chan_dahdi.
	  Modified dahdi_request slightly so that if a bearer is marked as
	  digital, that information is available when creating the new
	  channel. (closes issue #16151) Reported by: alecdavis Patch based
	  on bug_16151.diff.txt uploaded by alecdavis (license 585)

2009-11-24 13:52 +0000 [r231025]  Matthew Nicholson <mnicholson@digium.com>

	* CHANGES: Updated CHANGES file to describe the new 'd' option to
	  app_followme added in r230964 (related to issue #14155) Reported
	  by: junky

2009-11-24 04:58 +0000 [r230994]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/app.h, funcs/func_strings.c, CHANGES: Add
	  REPLACE & PASSTHRU functions, overhaul of func_strings, fix API
	  docs for the ast_get_encoded_* functions. * Add REPLACE function,
	  which searches a given variable for a set of characters and
	  replaces each with a given character. * Add PASSTHRU function,
	  which passes a literal string back, like a NoOp for functions.
	  Intent is to be able to specify a literal string to another
	  function that takes a variable name as an argument. * Let the
	  array manipulation functions work with dialplan functions, in
	  addition to variables. This allows the array manipulation
	  functions to modify ASTDB and ODBC backends, assuming the
	  func_odbc configuration has both read and write functions.
	  (closes issue #15223) Reported by: ajohnson Patches:
	  20091112__issue15223.diff.txt uploaded by tilghman (license 14)
	  Tested by: lmadsen, tilghman

2009-11-23 22:37 +0000 [r230964]  Matthew Nicholson <mnicholson@digium.com>

	* apps/app_followme.c: Add an option to app_followme to disable the
	  "please hold" announcement. (closes issue #14155) Reported by:
	  junky Patches: M14555-trunk.diff uploaded by junky (license 177)
	  (modified) Tested by: junky

2009-11-23 15:45 +0000 [r230881]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample: Change fax
	  detection in chan_sip so it behaves as one would expect.
	  Internally the way T.38 is negotiated has changed and the option
	  no longer reflects a behavior that is valid. It will now look for
	  a CNG tone on received calls and if present send the call to the
	  'fax' extension. It is then up to the application or channel to
	  request the switch over to T.38.

2009-11-23 15:34 +0000 [r230773-230877]  Kevin P. Fleming <kpfleming@digium.com>

	* /, channels/chan_sip.c: Merged revisions 230839 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r230839 | kpfleming | 2009-11-23 09:09:24 -0600 (Mon, 23 Nov
	  2009) | 1 line Correct fix for issue #16268... the reporter's
	  original patch was very close to correct. ........

	* /, channels/chan_sip.c: Merged revisions 230772 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r230772 | kpfleming | 2009-11-23 08:13:56 -0600 (Mon, 23 Nov
	  2009) | 5 lines Ensure that SDP parsing does not ignore the last
	  line of the SDP. (closes issue #16268) Reported by: sgimeno
	  ........

2009-11-20 22:35 +0000 [r230726]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: fixes iax2 show cache locking error, thanks
	  alecdavis! (closes issue #16094) Reported by: alecdavis Patches:
	  bug16094.diff.txt uploaded by alecdavis (license 585) Tested by:
	  alecdavis, dvossel

2009-11-20 21:47 +0000 [r230697]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/unaligned.h: Revert code in error and include
	  the gcc suggested workaround for the original problem, while gcc
	  investigates.

2009-11-20 21:01 +0000 [r230628]  Matthew Nicholson <mnicholson@digium.com>

	* /, main/features.c: Merged revisions 230627 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r230627 | mnicholson | 2009-11-20 14:53:06 -0600 (Fri, 20 Nov
	  2009) | 8 lines Copy the peer CDR's userfield to the bridge CDR
	  if it exists. This is necessary for the recordagentcalls option
	  in chan_agent to store the recorded file name in the bridge CDR.
	  (closes issue #14590) Reported by: msetim Patches:
	  queue_agent_userfield.patch uploaded by Laureano (license 265)
	  Tested by: Laureano, mnicholson ........

2009-11-20 17:28 +0000 [r230584]  David Ruggles <thedavidfactor@gmail.com>

	* doc/externalivr.txt, apps/app_externalivr.c: Fix/Implement error
	  events for non-existing files also include a better cmd define
	  for S command Review: https://reviewboard.asterisk.org/r/430/

2009-11-20 17:26 +0000 [r230509-230583]  David Vossel <dvossel@digium.com>

	* include/asterisk/audiohook.h, main/audiohook.c: audiohook signal
	  trigger on every status change (issue #14618) Review:
	  https://reviewboard.asterisk.org/r/434/

	* /, apps/app_mixmonitor.c: Merged revisions 230508 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r230508 | dvossel | 2009-11-19 15:22:46 -0600 (Thu, 19
	  Nov 2009) | 10 lines fixes MixMonitor thread not exiting when
	  StopMixMonitor is used (closes issue #16152) Reported by: AlexMS
	  Patches: stopmixmonitor_1.4.diff uploaded by dvossel (license
	  671) Tested by: dvossel, AlexMS Review:
	  https://reviewboard.asterisk.org/r/424/ ........

2009-11-19 14:53 +0000 [r230438]  David Ruggles <thedavidfactor@gmail.com>

	* apps/app_externalivr.c: Basic cleanup of ExternalIVR: cleaned up
	  argument parsing; implemented good coding practices where
	  applicable; replaced most notice level logging with verbose
	  logging; replaced warning messages that terminated with error
	  messages; fixed memory leak identified by russellb

2009-11-16 16:40 +0000 [r230343-230381]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_fax.c: Fix another buglet in T.38 session teardown at
	  the end of FAX sessions.

	* apps/app_fax.c: Ensure that only one end of a T.38 session
	  initiates teardown at completion.

2009-11-16 01:49 +0000 [r230314]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c: 1. Added SIP Diversion support. 2. Fixed
	  compile warning for UUID.

2009-11-15 17:23 +0000 [r230247]  Kevin P. Fleming <kpfleming@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 230246 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r230246 | kpfleming | 2009-11-15 11:19:06 -0600 (Sun, 15
	  Nov 2009) | 6 lines Correct mistaken option name in error
	  message. The configuration option for allowing hosts to make
	  non-token-based calls is 'calltokenoptional', not
	  'calltokenignore'. (reported on asterisk-users) ........

2009-11-15 07:53 +0000 [r230217]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/channel.h: Increase maximum length of language
	  buffers (closes issue #16217) Reported by: dsessions

2009-11-13 22:00 +0000 [r230145]  Joshua Colp <jcolp@digium.com>

	* /, channels/chan_sip.c: Merged revisions 230144 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r230144 | file | 2009-11-13 16:00:19 -0600 (Fri, 13 Nov 2009) | 8
	  lines Respect the maddr parameter in the Via header. (closes
	  issue #14446) Reported by: frawd Patches: via_maddr.patch
	  uploaded by frawd (license 610) Tested by: frawd ........

2009-11-13 20:42 +0000 [r230111]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_dial.c, channels/chan_sip.c, apps/app_meetme.c,
	  apps/app_fax.c, configs/manager.conf.sample,
	  res/res_musiconhold.c, include/asterisk/manager.h,
	  channels/chan_iax2.c, apps/app_queue.c, CHANGES,
	  res/res_monitor.c, main/cdr.c, main/channel.c, main/manager.c,
	  main/features.c, apps/app_minivm.c, apps/app_chanspy.c,
	  apps/app_voicemail.c: Display a list of channel variables in each
	  channel-oriented event. (Closes AST-33) Reviewboard:
	  https://reviewboard.asterisk.org/r/368/

2009-11-13 19:44 +0000 [r229912-230039]  Joshua Colp <jcolp@digium.com>

	* channels/chan_local.c, /: Merged revisions 230038 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r230038 | file | 2009-11-13 13:44:07 -0600 (Fri, 13 Nov
	  2009) | 9 lines Fix a crash caused by two threads thinking they
	  should both free the chan_local private structure when only one
	  should. (closes issue #15314) Reported by: sroberts Patches:
	  Issue15314_Move_Nulling_owner.patch uploaded by davidw (license
	  780) Tested by: davidw, lottc ........

	* UPGRADE.txt, apps/app_chanisavail.c, CHANGES: Store the cause
	  code that is returned when trying to create a channel in
	  ChanIsAvail in the AVAILCAUSECODE dialplan variable instead of
	  overwriting the device state in AVAILSTATUS. (closes issue
	  #14426) Reported by: macli

	* /: Merged revisions 229965 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r229965 | file | 2009-11-13 11:19:59 -0600 (Fri, 13 Nov 2009) | 6
	  lines Document a limitation in the AVAILSTATUS variable from
	  ChanIsAvail and provide a workaround for it that does not change
	  existing behavior. (closes issue #14426) Reported by: macli
	  ........

	* channels/chan_sip.c: Fix T.38 negotiation regression introduced
	  with the SDP parser changes.

2009-11-13 10:53 +0000 [r229819-229871]  Olle Johansson <oej@edvina.net>

	* main/loader.c: Fixing trunk in a way so that it compiles again.
	  Thanks, Philippe :-)

	* addons/cdr_mysql.c: If CDR logging is disabled, it's considered a
	  FAILURE

	* configs/modules.conf.sample, CHANGES, main/asterisk.c,
	  main/loader.c: Add the capability to require a module to be
	  loaded, or else Asterisk exits. Review:
	  https://reviewboard.asterisk.org/r/426/

2009-11-13 03:16 +0000 [r229788]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c: Added full number portability parameter
	  support.

2009-11-12 23:43 +0000 [r229750-229754]  Jason Parker <jparker@digium.com>

	* configs/alsa.conf.sample: Update sample config for ALSA mute and
	  noaudiocapture

	* channels/chan_alsa.c: Add mute functionality. Add config option
	  to not try to open capture device. Adds "console {mute|unmute}"
	  CLI command. Adds mute and noaudiocapture config options (will
	  update sample configs shortly). (closes issue #14673) Reported
	  by: Nick_Lewis Patches: chan_alsa.c-oneway3.patch uploaded by
	  Nick Lewis (license 657) Tested by: qwell

	* channels/chan_oss.c: Fix mute toggling on OSS channels.

2009-11-12 16:44 +0000 [r229670]  David Vossel <dvossel@digium.com>

	* funcs/func_audiohookinherit.c, /: Merged revisions 229669 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r229669 | dvossel | 2009-11-12 10:41:49 -0600 (Thu, 12 Nov 2009)
	  | 6 lines fixes merging error, datastore was being freed in the
	  wrong function. (closes issue #16219) Reported by: aragon
	  ........

2009-11-12 13:54 +0000 [r229639]  Leif Madsen <lmadsen@digium.com>

	* configs/sip.conf.sample: Update sip.conf.sample. Just updating a
	  spelling error and some capitalization in a documentation update
	  that Olle added. May the Swenglish be with you.

2009-11-12 10:24 +0000 [r229606-229607]  Olle Johansson <oej@edvina.net>

	* configs/sip.conf.sample: Clarification

	* configs/sip.conf.sample: Clarify some security issues early in
	  the sample configuration

2009-11-11 20:47 +0000 [r229568]  David Ruggles <thedavidfactor@gmail.com>

	* doc/externalivr.txt: Remove non-functional feature from
	  ExternalIVR documentation Remove non-functional socket
	  implementation of ExternalIVR from documentation (closes issue
	  #16225) Reported by: thedavidfactor Patches:
	  externalivr.txt.20091111.1542.patch uploaded by thedavidfactor
	  (license 903)

2009-11-11 19:48 +0000 [r229460-229499]  David Brooks <dbrooks@digium.com>

	* main/pbx.c, /: Merged revisions 229498 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r229498 | dbrooks | 2009-11-11 13:46:19 -0600 (Wed, 11 Nov 2009)
	  | 8 lines Solaris doesn't like NULL going to ast_log Solaris will
	  crash if NULL is passed to ast_log. This simple patch simply uses
	  S_OR to get around this. (closes issue #15392) Reported by:
	  yrashk ........

	* apps/app_softhangup.c: Flags not initialized in app_softhangup.c,
	  causing undefined behavior Trivial patch [kobaz] to initialize an
	  ast_flags = {0} (closes issue #16129) Reported by: kobaz

2009-11-11 14:30 +0000 [r229431]  Leif Madsen <lmadsen@digium.com>

	* CHANGES: Update CHANGES file. Updating the CHANGES file after
	  noticing an email on the asterisk-dev mailing list from Russell.
	  (issue #15874)

2009-11-10 22:14 +0000 [r229361]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c, /: Merged revisions 229360 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r229360 | tilghman | 2009-11-10 16:09:16 -0600 (Tue, 10 Nov 2009)
	  | 12 lines If two pattern classes start with the same digit and
	  have the same number of characters, they will compare equal. The
	  example given in the issue report is that of [234] and [246],
	  which have these characteristics, yet they are clearly not
	  equivalent. The code still uses these two characteristics, yet
	  when the two scores compare equal, an additional check will be
	  done to compare all characters within the class to verify
	  equality. (closes issue #15421) Reported by: jsmith Patches:
	  20091109__issue15421__2.diff.txt uploaded by tilghman (license
	  14) Tested by: jsmith, thedavidfactor ........

2009-11-10 22:01 +0000 [r229356]  David Ruggles <thedavidfactor@gmail.com>

	* doc/externalivr.txt: Merged revisions 229355 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r229355 | diruggles | 2009-11-10 16:45:15 -0500 (Tue, 10 Nov
	  2009) | 9 lines Fix ExternalIVR Documentation Remove
	  documentation for event that doesn't function (closes issue
	  #16220) Reported by: thedavidfactor Patches:
	  externalivr.txt.20091110.1622.patch uploaded by thedavidfactor
	  (license 903) ........

2009-11-10 21:22 +0000 [r229351]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_stack.c: When GOSUB is invoked within an AGI, it may not
	  exit correctly. (closes issue #16216) Reported by: atis Patches:
	  20091110__atis_work.diff.txt uploaded by tilghman (license 14)
	  Tested by: atis

2009-11-10 20:06 +0000 [r229282]  Joshua Colp <jcolp@digium.com>

	* /, codecs/codec_g726.c: Merged revisions 229281 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r229281 | file | 2009-11-10 16:03:14 -0400 (Tue, 10 Nov 2009) | 8
	  lines Remove broken support for direct transcoding between G.726
	  RFC3551 and G.726 AAL2. On some systems the translation core
	  would actually consider g726aal2 -> g726 -> signed linear to be a
	  quicker path then g726aal2 -> signed linear which exposed this
	  problem. (closes issue #15504) Reported by: globalnetinc ........

2009-11-10 17:33 +0000 [r229228]  David Ruggles <thedavidfactor@gmail.com>

	* /, doc/externalivr.txt: Merged revisions 229191 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r229191 | diruggles | 2009-11-10 12:23:59 -0500 (Tue, 10 Nov
	  2009) | 11 lines Document ExternalIVR event tag collision
	  ExternalIVR uses the D tag for two different event types. This
	  documents that behavior and how to differentiate between the two
	  cases. Also includes a minor spelling fix and clarification
	  (closes issue #16211) Reported by: thedavidfactor Patches:
	  externalivr.txt.20091109.1507.patch uploaded by thedavidfactor
	  (license 903) ........

2009-11-10 17:16 +0000 [r229168]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 229167 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r229167 | dvossel | 2009-11-10 11:15:57 -0600 (Tue, 10
	  Nov 2009) | 9 lines don't crash on log message in solaris
	  AST-2009-006 (closes issue #16206) Reported by: bklang Tested by:
	  bklang ........

2009-11-10 15:53 +0000 [r229102]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Reverted revision 201717. (closes issue
	  0016175) Reported by: paul-tg

2009-11-10 15:27 +0000 [r229093]  David Vossel <dvossel@digium.com>

	* res/res_config_pgsql.c: fixes pgsql double free of threadstorage
	  A thread storage variable was being freed incorrectly, which
	  resulted in a double free if two queries were made in the same
	  thread. (closes issue #16011) Reported by: cristiandimache
	  Patches: issue16011.diff uploaded by dvossel (license 671)

2009-11-10 11:16 +0000 [r229050]  Gavin Henry <ghenry@suretecsystems.com>

	* contrib/scripts/asterisk.ldap-schema: Schema file additions *
	  Added AsteriskDialplan, AsteriskAccount and AsteriskMailbox
	  objectClasses to allow standalone dialplan, account and mailbox
	  entries (STRUCTURAL) * Added new Fields: - AstAccountLanguage,
	  AstAccountTransport, AstAccountPromiscRedir, -
	  AstAccountAccountCode, AstAccountSetVar, AstAccountAllowOverlap,
	  - AstAccountVideoSupport, AstAccountIgnoreSDPVersion * Removed
	  redundant IPaddr (there's already IPAddress) - Gives more
	  configuration Flags for SIP-Users available (tested) - Allows to
	  create Asterisk Attributes in defined Asterisk ObjectClasses
	  without extensibleObject (which really should be the last
	  resort); gives also additional possibilities for LDAP-filter
	  (closes issue #15874) Reported by: Medozas Patches:
	  asterisk.ldap-schema.patch uploaded by Medozas (license 41)
	  Tested by: Medozas, suretec

2009-11-09 22:50 +0000 [r229015]  Terry Wilson <twilson@digium.com>

	* channels/chan_local.c: Don't crash when bridge->tech_pvt == NULL
	  This is a similar solution to what is in place for chan_agent
	  (closes issue #16003) Reported by: atis Tested by: twilson

2009-11-09 17:17 +0000 [r228979]  Tilghman Lesher <tlesher@digium.com>

	* channels/iax2-parser.c: Don't try to convert a 64-bit integer,
	  where only a 32-bit integer is stored. (closes issue #16194)
	  Reported by: habile

2009-11-09 16:28 +0000 [r228947]  Matthew Nicholson <mnicholson@digium.com>

	* configs/queues.conf.sample, CHANGES, apps/app_queue.c: Add the
	  'relative-periodic-announce' option to app_queue to allow for
	  calculating the time of announcments from the end of the previous
	  announcment rather than from the beginning. (closes issue #15260)
	  Reported by: tonils

2009-11-09 15:38 +0000 [r228897]  Leif Madsen <lmadsen@digium.com>

	* main/channel.c, /: Merged revisions 228896 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r228896 | lmadsen | 2009-11-09 09:37:43 -0600 (Mon, 09 Nov 2009)
	  | 6 lines Update WARNING message. Update a WARNING message to
	  give a suggested fix when encountered. (closes issue #16198)
	  Reported by: atis Tested by: atis ........

2009-11-09 14:37 +0000 [r228858]  Matthew Nicholson <mnicholson@digium.com>

	* /, include/asterisk/lock.h: Merged revisions 228827 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r228827 | mnicholson | 2009-11-09 08:16:03 -0600 (Mon,
	  09 Nov 2009) | 8 lines Perform limited bounds checking when
	  destroying ast_mutex_t structures to make sure we don't try to
	  use negative indices. (closes issue #15588) Reported by: zerohalo
	  Patches: 20090820__issue15588.diff.txt uploaded by tilghman
	  (license 14) Tested by: zerohalo ........

2009-11-09 07:37 +0000 [r228798]  Tilghman Lesher <tlesher@digium.com>

	* addons/cdr_mysql.c, main/event.c, channels/chan_console.c,
	  res/res_pktccops.c, main/loader.c: Fix various problems detected
	  with Valgrind. * chan_console accessed pvts after deallocation. *
	  cdr_mysql stored a pointer that was freed by realloc() * The
	  module loader did not check usecount on shutdown, which led to
	  chan_iax2 reading a timer that was already unloaded. * The event
	  subsystem sometimes creates an event with no IEs. Due to a corner
	  condition, the code would read beyond the memory boundary. *
	  res_pktccops did not correctly check whether its monitor thread
	  was started. (closes issue #16062) Reported by: alexanderheinz
	  Patches: 20091109__issue16062.diff.txt uploaded by tilghman
	  (license 14) Tested by: tilghman

2009-11-07 17:02 +0000 [r228766]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* contrib/init.d/rc.debian.asterisk: Add LSB headers to the Debian
	  init.d script See also issue #14864 .

2009-11-06 22:35 +0000 [r228693]  David Vossel <dvossel@digium.com>

	* main/channel.c, /: Merged revisions 228692 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r228692 | dvossel | 2009-11-06 16:33:27 -0600 (Fri, 06 Nov 2009)
	  | 9 lines fixes audiohook write crash occuring in chan_spy
	  whisper mode. After writing to the audiohook list in ast_write(),
	  frames were being freed incorrectly. Under certain conditions
	  this resulted in a double free crash. (closes issue #16133)
	  Reported by: wetwired (closes issue #16045) Reported by:
	  bluecrow76 Patches: issue16045.diff uploaded by dvossel (license
	  671) Tested by: bluecrow76, dvossel, habile ........

2009-11-06 22:32 +0000 [r228691]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, CHANGES, channels/sig_pri.c: Created
	  standard location to add options to chan_dahdi for ISDN dialing.
	  Dial(DAHDI/g1[/extension[/options]]) Current options:
	  K(<keypad_digits>) R Reverse charging indication (Collect calls)
	  The earlier Dial(DAHDI/g1[/K<keypad_digits>][/extension] format
	  was variable and did not allow for the easy addition of more
	  options. The earlier 'C' prefix character for reverse charge
	  indiation would conflict with the a-d DTMF digits if ISDN uses
	  them.

2009-11-06 22:07 +0000 [r228661]  David Brooks <dbrooks@digium.com>

	* tests/test_amihooks.c: ami_testhooks.c automatically registers
	  hook ami_testhooks.c was registering for AMI events upon module
	  load. Moved the registration to its own CLI command. Added CLI
	  command for unregistering the hook. Changed some of the wording,
	  removed unnecessary arguments/parameters. Reported by: rmudgett

2009-11-06 22:02 +0000 [r228658-228659]  Mark Michelson <mmichelson@digium.com>

	* addons/chan_ooh323.c: Make compilation of chan_ooh323 disabled by
	  default. All addons modules should be disabled by default,
	  requiring the user to turn them on if desired. After all, these
	  are addons we're talking about here.

	* addons/ooh323c/src/ooh323.c, addons/ooh323c/src/ooh245.c: Get
	  chan_ooh323 to compile with gcc 4.2. For some reason, the code
	  compiles just fine with later versions of GCC, but this one
	  requires some weird double casting in order to get rid of all
	  warnings. Whatever.

2009-11-06 19:53 +0000 [r228621]  Richard Mudgett <rmudgett@digium.com>

	* main/frame.c: Fix compiler warning gcc 4.2.4 found

2009-11-06 19:47 +0000 [r228620]  Matthew Nicholson <mnicholson@digium.com>

	* funcs/func_base64.c, /, main/utils.c: Merged revisions 228378 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r228378 | mnicholson | 2009-11-06 10:26:59 -0600 (Fri, 06 Nov
	  2009) | 8 lines Properly handle '=' while decoding base64
	  messages and null terminate strings returned from BASE64_DECODE.
	  (closes issue #15271) Reported by: chappell Patches:
	  base64_fix.patch uploaded by chappell (license 8) Tested by:
	  kobaz ........

2009-11-06 19:38 +0000 [r228616]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_nbs.c, addons/chan_mobile.c: Missed these two
	  channel drivers on the codec_bits merge

2009-11-06 18:37 +0000 [r228499-228548]  Joshua Colp <jcolp@digium.com>

	* /, channels/chan_sip.c: Merged revisions 228547 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r228547 | file | 2009-11-06 14:32:58 -0400 (Fri, 06 Nov 2009) | 4
	  lines Don't overwrite caller ID name on a trunk with the
	  configured fullname when using users.conf (issue ABE-1989)
	  ........

	* doc/tex/localchannel.tex: Fix the localchannel.tex file.

2009-11-06 17:22 +0000 [r228420-228441]  David Vossel <dvossel@digium.com>

	* codecs/codec_ilbc.c: Fixes merging issue from 1.4, frame data is
	  held in data.ptr in trunk

	* /, codecs/codec_ilbc.c: Merged revisions 228418 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r228418 | dvossel | 2009-11-06 11:07:13 -0600 (Fri, 06 Nov 2009)
	  | 13 lines fixes segfault in iLBC For reasons not yet known, it
	  appears possible for an ast_frame to have a datalen greater than
	  zero while the actual data is NULL during Packet Loss
	  Concealment. Most codecs don't support PLC so this doesn't affect
	  them. This patch catches the malformed frame and prevents the
	  crash from occuring. Additional efforts to determine why it is
	  possible for a frame to look like this are still being
	  investigated. (issue #16979) ........

2009-11-06 16:42 +0000 [r228410]  Joshua Colp <jcolp@digium.com>

	* /, main/abstract_jb.c: Merged revisions 228409 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r228409 | file | 2009-11-06 12:41:20 -0400 (Fri, 06 Nov 2009) | 7
	  lines Fix a bug caused by a partially invalid frame (from the
	  jitterbuffer) passing through the Asterisk core. (closes issue
	  #15560) Reported by: jvandal (closes issue #15709) Reported by:
	  covici ........

2009-11-06 15:42 +0000 [r228268-228339]  David Vossel <dvossel@digium.com>

	* /, main/astfd.c: Merged revisions 228338 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r228338 | dvossel | 2009-11-06 09:41:41 -0600 (Fri, 06 Nov 2009)
	  | 5 lines fixes crash in astfd.c (closes issue #15981) Reported
	  by: slavon ........

	* funcs/func_audiohookinherit.c: fixes memory leak in
	  func_audiohookinherit.c (closes issue #15394) Reported by: boroda
	  Patches: bug15394_memoryleak_diff2.txt uploaded by dbrooks
	  (license 790) Tested by: dbrooks, boroda

2009-11-05 22:59 +0000 [r228233]  Mark Michelson <mmichelson@digium.com>

	* funcs/func_cdr.c: Fix XML in func_cdr.c

2009-11-05 22:12 +0000 [r228191-228196]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c: Yet another error message in the dialplan
	  (thanks, rmudgett/russellb)

	* apps/app_meetme.c: MEETME_INFO should not return a literal error
	  message to the dialplan. (closes issue #15450) Reported by:
	  JimVanM Patches: meetmeinfopatch.diff.txt uploaded by dbrooks
	  (license 790) Tested by: JimVanM

2009-11-05 21:23 +0000 [r228189]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_chanspy.c: Fix the fix for chanspy option o In 224178, I
	  assumed the uploaded patch was correct as it had received
	  positive feedback. The flags were being checked in the incorrect
	  location. Upon testing the fix this time it was also found that
	  the flags from the dialplan weren't being copied to the
	  chanspy_translation_helper. (closes issue #16167) Reported by:
	  marhbere

2009-11-05 19:34 +0000 [r228145]  David Brooks <dbrooks@digium.com>

	* channels/chan_misdn.c, /: Merged revisions 228078 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r228078 | dbrooks | 2009-11-05 12:59:41 -0600 (Thu, 05
	  Nov 2009) | 9 lines chan_misdn Asterisk 1.4.27-rc2 crash Crash
	  related to chan_misdn connection. Patch submitted by
	  gknispel_proformatique, tested by francesco_r. "I have many crash
	  since i have upgraded to Asterisk 1.4.27-rc2. Attached a full
	  bt." This patch zeros out an ast_frame. (closes issue #16041)
	  Reported by: francesco_r ........

2009-11-05 19:16 +0000 [r228080]  Jason Parker <jparker@digium.com>

	* channels/chan_vpb.cc, /: Merged revisions 228079 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r228079 | qwell | 2009-11-05 13:14:25 -0600 (Thu, 05 Nov
	  2009) | 8 lines Fix crash on VPB exception when no hardware is
	  present. (closes issue #14970) Reported by: tzafrir Patches:
	  vpb_exception.diff uploaded by tzafrir (license 46) Tested by:
	  markwaters ........

2009-11-05 17:26 +0000 [r228015-228049]  Tilghman Lesher <tlesher@digium.com>

	* main/frame.c: Rework codecs command to comply with the 64-bit
	  scheme

	* apps/app_externalivr.c: Don't crash if no arguments are passed.
	  (closes issue #16119) Reported by: thedavidfactor

2009-11-04 23:50 +0000 [r227914-227945]  Jeff Peeler <jpeeler@digium.com>

	* /, res/res_monitor.c: Merged revisions 227944 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r227944 | jpeeler | 2009-11-04 17:47:08 -0600 (Wed, 04 Nov 2009)
	  | 14 lines Fix incorrect filename comparsion after monitor file
	  change The logic to detect if a requested file is indeed a
	  different file from the current file was incorrect. The main
	  issue being confusion of the use of filename_base which was
	  previously set without pathing information and then compared to
	  another full path. Robust file comparison logic has been added to
	  properly check if two files are the same even if symlinks are
	  used. (closes issue #15313) Reported by: caspy Patches:
	  20091103__issue15313__1.4.diff.txt uploaded by jpeeler (license
	  325) but mostly tilghman's work ........

	* addons/chan_ooh323.c: Update chan_ooh323 to support the expanded
	  codec bitfield from 227580.

2009-11-04 22:10 +0000 [r227898]  Alexandr Anikin <may@telecom-service.ru>

	* addons/ooh323c/src/oochannels.h,
	  addons/ooh323c/src/ooCmdChannel.h, addons/chan_ooh323.c,
	  addons/ooh323c/src/printHandler.h, addons/ooh323c/src/ooq931.h,
	  addons/ooh323c/src/ootrace.h, addons/chan_ooh323.h,
	  addons/ooh323c/src/ooasn1.h, addons/ooh323c/src/ootypes.h,
	  addons/ooh323c/src/ooLogChan.c, addons/ooh323c/src/ooStackCmds.c,
	  addons/ooh323c/src/errmgmt.c, addons/ooh323c/src/ooTimer.c,
	  addons/ooh323c/src/ooLogChan.h,
	  addons/ooh323c/src/ooCapability.c,
	  addons/ooh323c/src/ooStackCmds.h, addons/ooh323c/src/dlist.c,
	  addons/ooh323c/src/eventHandler.c,
	  addons/ooh323c/src/ooCapability.h,
	  addons/ooh323c/src/eventHandler.h, addons/Makefile,
	  addons/ooh323cDriver.c, addons/ooh323c/src/ooDateTime.c,
	  addons/ooh323c/src/rtctype.c, addons/ooh323cDriver.h,
	  addons/ooh323c/src/ooCalls.c, addons/ooh323c/src/encode.c,
	  addons/ooh323c/src/ooUtils.c, addons/ooh323c/src/ooGkClient.c,
	  addons/ooh323c/src/ooDateTime.h, addons/ooh323c/src/ooCalls.h,
	  addons/ooh323c/src/ooh323ep.c, addons/ooh323c/src/ooGkClient.h,
	  addons/ooh323c/src/ooports.c, addons/ooh323c/src/ooh323ep.h,
	  addons/ooh323c/src/memheap.c, addons/ooh323c/src/ooh323.c,
	  addons/ooh323c/src/h323/H323-MESSAGESDec.c,
	  addons/ooh323c/src/ooh245.c, addons/ooh323c/src/memheap.h,
	  addons/ooh323c/src/ooh323.h, addons/ooh323c/src/decode.c,
	  addons/ooh323c/src/context.c, addons/ooh323c/src/perutil.c,
	  addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLDec.c,
	  addons/ooh323c/src/ooh245.h, addons/ooh323c/src/ooSocket.c,
	  addons/ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c,
	  addons/ooh323c/src/oochannels.c,
	  addons/ooh323c/src/ooCmdChannel.c,
	  addons/ooh323c/src/printHandler.c, addons/ooh323c/src/ooSocket.h,
	  addons/ooh323c/src/ooCommon.h, addons/ooh323c/src/ooq931.c,
	  addons/ooh323c/src/ootrace.c: Reworked chan_ooh323 channel
	  module. Many architectural and functional changes. Main changes
	  are threading model chanes (many thread in ooh323 stack instead
	  of one), modifications and improvements in signalling part,
	  additional codecs support (726, speex), t38 mode support. This
	  module tested and used in production environment. (closes issue
	  #15285) Reported by: may213 Tested by: sles, c0w, OrNix Review:
	  https://reviewboard.asterisk.org/r/324/

2009-11-04 21:39 +0000 [r227829-227897]  Matthew Nicholson <mnicholson@digium.com>

	* apps/app_dial.c, CHANGES: Added the 'a' option to app dial and
	  modified app_dial to set the answertime when the called channel
	  answers. This change causes answertime to be correct even if the
	  called channel hangs up during an announcement triggered by the
	  A() option. (closes issue #15936) Reported by: falves11 Patches:
	  dial-macro-billsec-fix1.diff uploaded by mnicholson (license 96)
	  dial-caller-answer1.diff uploaded by mnicholson (license 96)
	  Tested by: falves11, mnicholson

	* apps/app_dial.c, /: Merged revisions 227827 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r227827 | mnicholson | 2009-11-04 14:52:27 -0600 (Wed, 04 Nov
	  2009) | 10 lines This patch modifies the Dial application to
	  monitor the calling channel for hangups while playing back
	  announcements. (closes issue #16005) Reported by: falves11
	  Patches: dial-announce-hangup-fix1.diff uploaded by mnicholson
	  (license 96) Tested by: mnicholson, falves11 Review:
	  https://reviewboard.asterisk.org/r/407/ ........

2009-11-04 20:35 +0000 [r227824]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/unaligned.h: Fixes for gcc 4.4

2009-11-04 20:13 +0000 [r227759]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Modify the SDP parsing code to parse session
	  and media level items separately. With the new code, media level
	  proprieties should no longer be confused with session level
	  proprieties. This change also reorganizes some of the SDP parsing
	  code which should make it easier to manage in the future. (closes
	  issue #14994) Reported by: frawd Tested by: frawd, mnicholson,
	  file Review: https://reviewboard.asterisk.org/r/414/

2009-11-04 19:26 +0000 [r227712-227739]  Joshua Colp <jcolp@digium.com>

	* /, static-http/prototype.js: Merged revisions 227735 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r227735 | file | 2009-11-04 15:25:37 -0400 (Wed, 04 Nov
	  2009) | 5 lines Fix a security issue where it may be possible for
	  someone to execute a cross-site AJAX request exploit.
	  (AST-2009-009) ........

	* /, channels/chan_sip.c: Merged revisions 227700 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r227700 | file | 2009-11-04 15:17:39 -0400 (Wed, 04 Nov 2009) | 5
	  lines Fix a security issue where sending a REGISTER with a
	  differing username in the From URI and Authorization header would
	  reveal whether it was valid or not. (AST-2009-008) ........

2009-11-04 16:41 +0000 [r227646]  Mark Michelson <mmichelson@digium.com>

	* main/frame.c: Add a couple more casts so that code compiles
	  correctly.

2009-11-04 16:35 +0000 [r227645]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/pbx.h: mmichelson reported a compilation error
	  related to codec bit expansion that should be resolved with a
	  simple include of frame_defs.h

2009-11-04 16:25 +0000 [r227643]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: fix trunk building

2009-11-04 16:17 +0000 [r227579-227615]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c, channels/chan_iax2.c: Two other trunk build
	  fixes (reported by seanbright on #asterisk-dev)

	* addons/format_mp3.c: Fix trunk building

	* main/udptl.c, main/autoservice.c, apps/app_dahdibarge.c,
	  main/frame.c, channels/chan_local.c, main/rtp_engine.c,
	  include/asterisk/autoconfig.h.in, apps/app_record.c,
	  apps/app_test.c, bridges/bridge_softmix.c,
	  apps/app_alarmreceiver.c, codecs/ex_alaw.h, codecs/ex_adpcm.h,
	  formats/format_wav_gsm.c, formats/format_sln16.c,
	  codecs/ex_gsm.h, channels/chan_iax2.c, main/indications.c,
	  res/res_rtp_multicast.c, channels/chan_dahdi.c,
	  include/asterisk/bridging_technology.h, pbx/pbx_spool.c,
	  channels/sig_analog.c, include/asterisk/audiohook.h,
	  channels/chan_skinny.c, configure, main/strcompat.c,
	  include/asterisk/compat.h, formats/format_pcm.c, main/features.c,
	  channels/chan_alsa.c, apps/app_amd.c, formats/format_h263.c,
	  apps/app_url.c, apps/app_externalivr.c, formats/format_jpeg.c,
	  main/bridging.c, codecs/ex_ulaw.h, apps/app_milliwatt.c,
	  formats/format_gsm.c, apps/app_dial.c, main/pbx.c,
	  formats/format_wav.c, channels/chan_bridge.c, apps/app_echo.c,
	  apps/app_fax.c, include/asterisk/slin.h, channels/chan_agent.c,
	  configure.ac, formats/format_ogg_vorbis.c, apps/app_disa.c,
	  include/asterisk/unaligned.h, codecs/ex_speex.h,
	  include/asterisk/channel.h, apps/app_talkdetect.c,
	  channels/iax2-parser.c, apps/app_speech_utils.c,
	  channels/iax2-parser.h, channels/chan_misdn.c,
	  apps/app_waitforring.c, channels/iax2.h, codecs/codec_dahdi.c,
	  main/audiohook.c, apps/app_chanspy.c, formats/format_g726.c,
	  include/asterisk/frame_defs.h (added),
	  include/asterisk/translate.h, include/asterisk/slinfactory.h,
	  channels/chan_unistim.c, channels/chan_vpb.cc,
	  channels/chan_multicast_rtp.c, formats/format_sln.c,
	  apps/app_meetme.c, apps/app_dictate.c, codecs/ex_g722.h,
	  codecs/ex_g726.h, channels/chan_gtalk.c, res/res_musiconhold.c,
	  apps/app_followme.c, formats/format_siren7.c,
	  include/asterisk/abstract_jb.h, main/asterisk.exports,
	  main/channel.c, formats/format_ilbc.c, channels/chan_phone.c,
	  main/dial.c, main/manager.c, funcs/func_volume.c, res/res_agi.c,
	  apps/app_mp3.c, main/app.c, doc/codec-64bit.txt (added),
	  formats/format_h264.c, include/asterisk/rtp_engine.h,
	  include/asterisk/frame.h, formats/format_siren14.c,
	  codecs/ex_ilbc.h, channels/chan_mgcp.c, apps/app_jack.c,
	  res/res_rtp_asterisk.c, apps/app_nbscat.c, channels/chan_sip.c,
	  codecs/ex_lpc10.h, apps/app_festival.c, main/slinfactory.c,
	  main/translate.c, res/res_adsi.c, channels/chan_console.c,
	  channels/h323/chan_h323.h, channels/sig_pri.c, apps/app_queue.c,
	  channels/chan_oss.c, channels/chan_jingle.c,
	  formats/format_vox.c, include/asterisk/bridging.h,
	  main/abstract_jb.c, main/file.c, channels/chan_h323.c,
	  formats/format_g723.c, codecs/codec_ulaw.c, apps/app_sms.c,
	  include/asterisk/pbx.h, main/dsp.c, formats/format_g729.c: Expand
	  codec bitfield from 32 bits to 64 bits. Reviewboard:
	  https://reviewboard.asterisk.org/r/416/

	* configure, include/asterisk/autoconfig.h.in, configure.ac:
	  chan_misdn will fail to compile if the redirect_dn member is
	  missing

2009-11-04 08:22 +0000 [r227545]  Olle Johansson <oej@edvina.net>

	* main/manager.c: Add destruction of iterators to avoid problems
	  with refcounters (per Russell's review of another patch)

2009-11-04 03:15 +0000 [r227509]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_queue.c: Don't crash when state_interface is NULL.

2009-11-03 22:13 +0000 [r227462-227464]  Russell Bryant <russell@digium.com>

	* res/res_pktccops.c: Resolve another warning.

	* main/manager.c, pbx/pbx_config.c: Resolve a warning from gcc
	  4.4.1.

	* channels/chan_mgcp.c: Resolve some dev-mode warnings.

2009-11-03 21:26 +0000 [r227448]  David Brooks <dbrooks@digium.com>

	* main/manager.c, include/asterisk/manager.h, tests/test_amihooks.c
	  (added): AMI hook interface This patch, originally submitted by
	  jozza, enables custom modules to send actions to AMI and receive
	  messages from AMI via a hook interface. Included is a simple test
	  module to illustrate the interface. (closes issue #14635)
	  Reported by: jozza Review:
	  https://reviewboard.asterisk.org/r/412/

2009-11-03 21:21 +0000 [r227435]  Matthew Nicholson <mnicholson@digium.com>

	* main/cdr.c, apps/app_forkcdr.c, configs/cdr_custom.conf.sample,
	  funcs/func_cdr.c, main/features.c, include/asterisk/cdr.h,
	  CHANGES: This patch adds a sequence field to CDRs that can be
	  combined with the linkedid or uniqueid field to uniquely identify
	  a CDR. (closes issue #15180) Reported by: Nick_Lewis Patches:
	  cdr-sequence10.diff uploaded by mnicholson (license 96) Tested
	  by: mnicholson

2009-11-03 21:16 +0000 [r227424]  Joshua Colp <jcolp@digium.com>

	* configs/queues.conf.sample, apps/app_queue.c: Add support for
	  using a hint when configuring a state interface using the format
	  hint:<extension>@<context>. (closes issue #15168) Reported by:
	  p_lindheimer Patches: queue_extenstate5_1.4.svn.patch uploaded by
	  GameGamer43 (license 894)

2009-11-03 19:59 +0000 [r227372]  Jason Parker <jparker@digium.com>

	* Makefile, main/Makefile: Fix some build issues on Solaris.
	  (closes issue #14517) (SWP-109) Reported by: asgaroth Patches:
	  bug_14517.diff uploaded by snuffy (license 35) Tested by:
	  asgaroth, snuffy, dougm, qwell

2009-11-03 19:48 +0000 [r227361-227368]  Leif Madsen <lmadsen@digium.com>

	* apps/app_controlplayback.c: Change warning message to debug
	  message. app_controlplayback outputs a warning, when in fact it
	  is normal. (closes issue #16071) Reported by: atis Patches:
	  controlplayback_warning.patch uploaded by atis (license 242)

	* configs/extensions.conf.sample: Additional fixes to the
	  extensions.conf.sample file. Update the extensions.conf.sample
	  [stdexten] context so that we use the variable instead of
	  requiring it to be passed explicitly. Also updated uses of the
	  [stdexten] context throughout. (closes issue #15858) Reported by:
	  pprindeville Patches: stdexten-context-update.txt uploaded by
	  lmadsen (license 10) Tested by: pprindeville

2009-11-03 18:22 +0000 [r227298]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Fixed a spelling error in the q850 reason
	  header option in the output of sip show settings.

2009-11-03 17:58 +0000 [r227277]  Richard Mudgett <rmudgett@digium.com>

	* /: Recorded merge of revisions 227275 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r227275 | rmudgett | 2009-11-03 11:55:47 -0600 (Tue, 03 Nov 2009)
	  | 4 lines Make sure the outgoing flag is cleared if a new channel
	  fails to get created for outgoing calls. This is the relevant
	  portion of asterisk/trunk -r226648 ........

2009-11-03 17:56 +0000 [r227276]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_mgcp.c: Code guidelines fixes only

2009-11-03 17:12 +0000 [r227238]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: user.conf entries in SIP were not having
	  their peer type set. (closes issue #16120) Reported by: jsmith

2009-11-03 16:56 +0000 [r227237]  Olle Johansson <oej@edvina.net>

	* funcs/func_speex.c: Adding some clarifications to func_speex
	  doxygen docs. The functions needed doesn't exist in Speex 1.05
	  which is what a lot of distros use. 1.2 seems to have been in
	  beta status for years, and does include the sexy functions needed
	  for func_speex to work.

2009-11-03 15:37 +0000 [r227167]  Joshua Colp <jcolp@digium.com>

	* /: Merged revisions 227166 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r227166 | file | 2009-11-03 11:36:16 -0400 (Tue, 03 Nov 2009) | 5
	  lines Fix a bug where an RPID header could be generated with a
	  blank username in the URI. (closes issue #15909) Reported by:
	  kobaz ........

2009-11-03 15:19 +0000 [r227162]  Leif Madsen <lmadsen@digium.com>

	* configs/extensions.conf.sample: Update extensions.conf.sample
	  file to fix incorrect extensions. (closes issue #15857) Reported
	  by: pprindeville Patches: stdexten.patch#2 uploaded by
	  pprindeville (license 347) Tested by: pprindeville

2009-11-03 11:11 +0000 [r227091]  Olle Johansson <oej@edvina.net>

	* Makefile, /, channels/chan_sip.c: Merged revisions 227088 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r227088 | oej | 2009-11-03 11:29:59 +0100 (Tis, 03 Nov 2009) | 7
	  lines Use proper response code when violating Contact ACL's.
	  https://reviewboard.asterisk.org/r/415/ Thanks kpfleming for a
	  quick review. (EDVX-003) ........

2009-11-02 22:29 +0000 [r227049]  Tilghman Lesher <tlesher@digium.com>

	* configs/mgcp.conf.sample, include/asterisk/pktccops.h (added),
	  CHANGES, res/res_pktccops.c (added), channels/chan_mgcp.c,
	  configs/res_pktccops.conf.sample (added): Add PacketCable NCS 1.0
	  support for Docsis/Eurodocsis networks (closes issue #12950)
	  Reported by: alea-soluciones Patches:
	  ncs-pktccops-12950-r206803.patch uploaded by alea-soluciones
	  (license 514) Tested by: alea-soluciones, adomjan, urtho,
	  nahuelgreco

2009-11-02 20:59 +0000 [r226973-226974]  David Brooks <dbrooks@digium.com>

	* channels/chan_sip.c: SIP channel name uniqueness SIP channel
	  names were supposed to be unique by way of a name suffix derived
	  from the pointer to the channel's private data. Uniqueness was
	  preserved on 32-bit systems, but not on 64-bit systems. This
	  patch, as suggested by kpfleming, replaces this suffix with a
	  simple incremented unsigned int. (closes issue #15152) Reported
	  by: palbrecht Review: https://reviewboard.asterisk.org/r/420/

	* /: SIP channel name uniqueness SIP channel names were supposed to
	  be unique by way of a name suffix derived from the pointer to the
	  channel's private data. Uniqueness was preserved on 32-bit
	  systems, but not on 64-bit systems. This patch, as suggested by
	  kpfleming, replaces this suffix with a simple incremented
	  unsigned int. (closes issue #15152) Reported by: palbrecht
	  Review: https://reviewboard.asterisk.org/r/420/

2009-11-02 20:43 +0000 [r226970]  Olle Johansson <oej@edvina.net>

	* main/http.c: Adding external reference for doxygen

2009-11-02 18:08 +0000 [r226890]  Joshua Colp <jcolp@digium.com>

	* apps/app_dial.c, /: Merged revisions 226889 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r226889 | file | 2009-11-02 14:08:11 -0400 (Mon, 02 Nov 2009) |
	  11 lines Fix a bug where the recorded privacy introduction file
	  would not get removed if the caller hung up while the called
	  party had not yet answered. This was fixed by introducing an
	  argument to the 'n' option which, when enabled, removes the
	  introduction file under all scenarios. This was done to preserve
	  the behavior that has existed for quite some time. (closes issue
	  #14674) Reported by: ulogic Patches: bug14674.patch uploaded by
	  jpeeler (license 325) ........

2009-11-02 17:34 +0000 [r226882]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, UPGRADE.txt,
	  channels/sig_pri.c: DAHDI ISDN channel names will not allow
	  device state to work. (Interim solution.) Since ISDN works like
	  SIP and not analog ports in regard to devices, the device state
	  based on the ISDN channel number could not work. This has not
	  been an issue until the advent of PTMP NT mode. Previously, ISDN
	  lines were used as trunks and did not have to keep track of
	  specific devices. As an interim solution until device states are
	  properly implemented, the channel name is being changed to the
	  following format to use the generic device state support:
	  DAHDI/i<span>/<number>[:<subaddress>]-<sequence-number> Dialplan
	  hints would thus be: exten => xxx,hint,DAHDI/i2/5551212 This will
	  work with the following restrictions: * The number of
	  devices/phones cannot exceed the number of B channels. (i.e., BRI
	  has 2) * Each device/phone can only have one number. No shared
	  MSN's. * The phones/devices probably should not use
	  subaddressing.

2009-11-02 17:15 +0000 [r226812]  Tilghman Lesher <tlesher@digium.com>

	* /, contrib/init.d/rc.redhat.asterisk: Merged revisions 226811 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r226811 | tilghman | 2009-11-02 11:14:20 -0600 (Mon, 02 Nov 2009)
	  | 8 lines Don't allow two separate instances of safe_asterisk
	  when restarting from the init script. (closes issue #14562)
	  Reported by: davidw Patches: Initially
	  20091022__issue14562.diff.txt uploaded by tilghman (license 14)
	  Modified to 20091030__Issue14562_diff.txt uploaded by davidw
	  (license 780) Tested by: davidw ........

2009-11-02 14:57 +0000 [r226687]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample, CHANGES: This patch
	  adds support for a draft proposal for adding Q.850 reason headers
	  to sip messages. (closes issue #13385) Reported by: adomjan
	  Patches: sip.conf.sample-trunk20090929-reason_q850.patch uploaded
	  by adomjan (license 487) CHANGES-trunk20090929-reason_q850.patch
	  uploaded by adomjan (license 487)
	  chan_sip.c-trunk20090929-reason_q850_atoi_fix.patch uploaded by
	  adomjan (license 487) sip-q850-hangupcause1.diff uploaded by
	  mnicholson (license 96) Tested by: adomjan

2009-10-30 23:26 +0000 [r226648]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_pri.c: Cleanup some flags on
	  DAHDI PRI channel hangup. * Cleanup some flags on DAHDI PRI
	  channel hangup. (sig_pri split) * Make sure the outgoing flag is
	  cleared if a new channel fails to get created for outgoing calls.
	  * Remove some unused flags since sig_pri was split.

2009-10-30 04:08 +0000 [r226606]  Russell Bryant <russell@digium.com>

	* include/asterisk/doxygen/architecture.h (added),
	  res/res_rtp_asterisk.c, res/res_rtp_multicast.c,
	  include/asterisk/doxyref.h, contrib/asterisk-ng-doxygen,
	  main/asterisk.c: Add an "Asterisk Architecture Overview" section
	  to the doxygen documentation. This is a side project I've been
	  poking at this week. The intent is to discuss Asterisk
	  architecture in a top down fashion to help new developers
	  understand how Asterisk is put together. There is a ton of stuff
	  to write about, so this will just continue to evolve over time.

2009-10-29 18:13 +0000 [r226532]  Joshua Colp <jcolp@digium.com>

	* channels/chan_local.c, /, doc/tex/localchannel.tex: Merged
	  revisions 226531 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r226531 | file | 2009-10-29 15:11:26 -0300 (Thu, 29 Oct 2009) | 6
	  lines Add an option to enabling passing music on hold start and
	  stop requests through instead of acting on them in chan_local.
	  (closes issue #14709) Reported by: dimas ........

2009-10-29 12:20 +0000 [r226490]  Olle Johansson <oej@edvina.net>

	* channels/chan_local.c: Doxygen documentation update

2009-10-28 20:50 +0000 [r226453]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* build_tools/get_documentation: remove empty awk pattern (//)
	  Solaris 10 nawk doesn't lthe empty pattern ike '//' for 'always'.
	  Just remove that. No pattern at all always matches.

2009-10-28 20:11 +0000 [r226378-226384]  Leif Madsen <lmadsen@digium.com>

	* /, configs/sip.conf.sample: Merged revisions 226382 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r226382 | lmadsen | 2009-10-28 15:06:13 -0500 (Wed, 28
	  Oct 2009) | 9 lines Update documentation in sip.conf.sample.
	  Update the documentation in sip.conf.sample in order to make it
	  more clear that directmedia/canreinvite do not cause Asterisk to
	  ignore reINVITEs. It is only used to stop Asterisk from
	  generating a reINVITE, but does not stop it from accepting them
	  if necessary. (closes issue #15644) Reported by: lmadsen ........

	* doc/tex/channelvariables.tex: Merged revisions 226377 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r226377 | lmadsen | 2009-10-28 14:48:29 -0500 (Wed, 28 Oct 2009)
	  | 7 lines Update CALLINGSUBADDR channel variable documentation.
	  (closes issue #15734) Reported by: alecdavis Patches:
	  channelvariables.tex.diff.txt uploaded by alecdavis (license 585)
	  Tested by: alecdavis ........

2009-10-28 18:04 +0000 [r226305]  Tilghman Lesher <tlesher@digium.com>

	* /, include/asterisk/linkedlists.h: Merged revisions 226304 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r226304 | tilghman | 2009-10-28 13:02:25 -0500 (Wed, 28 Oct 2009)
	  | 2 lines Fix documentation (pointed out by TheDavidFactor on
	  #-dev) ........

2009-10-28 08:47 +0000 [r226227-226270]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* contrib/upstart/asterisk.user.conf: Remove extra cleanup in case
	  we have more than one Asterisk. /var/run would be cleaned on
	  startup on most systems anyway.

	* contrib/upstart/asterisk.user.conf (added): another variation of
	  the upstart script

2009-10-27 21:03 +0000 [r226184]  Olle Johansson <oej@edvina.net>

	* Makefile: Adding compile time flags for Snow Leopard, Leopard and
	  some other animals

2009-10-27 20:22 +0000 [r226159]  Tilghman Lesher <tlesher@digium.com>

	* main/manager.c, /: Merged revisions 226138 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r226138 | tilghman | 2009-10-27 15:16:49 -0500 (Tue, 27 Oct 2009)
	  | 7 lines Manager output is not always NULL-terminated, so force
	  a NULL at the end of the filestream. (closes issue #15495)
	  Reported by: pdf Patches: 20090916__issue15495.diff.txt uploaded
	  by tilghman (license 14) Tested by: pdf ........

2009-10-27 16:48 +0000 [r226099]  Terry Wilson <twilson@digium.com>

	* res/res_http_post.c: Don't prepend the URI prefix to the post
	  directory

2009-10-27 13:30 +0000 [r226060]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample, CHANGES: Add
	  support for receiving unsolicited MWI NOTIFY messages. This
	  change adds a configuration option to SIP peers,
	  unsolicited_mailbox, which configures a virtual mailbox to use
	  for received new/old MWI information. This virtual mailbox can
	  then be used by any device supporting MWI. (closes issue #13028)
	  Reported by: AsteriskRocks Patches:
	  bug_13028_chan_sip_external_mwi_20090707.patch uploaded by cmaj
	  (license 830)

2009-10-26 22:46 +0000 [r226018]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* /, configure, configure.ac: detect ARM Linux EABI OSARCH as
	  linux-gnu instead of linux-gnueabi * Set OSARCH to linux-gnu even
	  if host_os is linux-gnueabi * When checking if we are Linux,
	  check OSARCH rather than host_os The newer ARM ABI ("EABI") shows
	  the OS name 'linux-gnueabi' rather than 'linux-gnu' . This patch
	  sets OSARCH to be 'linux-gnu' even in such a case. OSARCH is
	  tested for the value of 'linux-gnu' in one or two places in the
	  tree. This patch also fixes the check libcap to check for $OSARCH
	  rather than $host_os . See also:
	  http://wiki.debian.org/ArmEabiPort Merged revisions 225957 via
	  svnmerge from http://svn.digium.com/svn/asterisk/branches/1.4

2009-10-26 22:04 +0000 [r225955-225956]  Kevin P. Fleming <kpfleming@digium.com>

	* main/editline/makelist.in, channels/chan_sip.c, UPGRADE.txt,
	  UPGRADE-1.6.txt, doc/lang/language-criteria.txt: Fix building in
	  REF_DEBUG mode.

	* main/astobj2.c: Correct broken logic from revision 225405. The
	  code committed in revision 225405 was broken; instead of removing
	  the unreference code, the logic used to decide when to do it
	  should have been reversed. This patch corrects the situation, and
	  makes reference counting work properly again.

2009-10-26 19:40 +0000 [r225912]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_sip.c: ACL check not present for verifying SIP
	  INVITEs The ACL check in check_peer_ok was missing and has now
	  been restored. The missing check allowed for calls to be made on
	  prohibited networks where an ACL was defined in sip.conf and the
	  allowguest option was set to off. See the AST security advisory
	  below for more information. Merge code associated with
	  AST-2009-007. (closes issue #16091) Reported by: thom4fun

2009-10-26 16:07 +0000 [r225872]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Make conditionals create previous code
	  when libpri/ss7 are present.

2009-10-26 13:29 +0000 [r225767-225836]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_dahdi.c: span numbers in pri debug / error messages
	  Prefix PRI trace messages with the span number. This makes the
	  trace readable even when you have a multi-port device. (closes
	  issue #15054) Reported by: tzafrir Patches:
	  dahdi_pri_debug_spannum.diff uploaded by tzafrir (license 46)

	* channels/chan_dahdi.c: Re-arange code a bit to build in dev-mode
	  without ss7 No change of functionality here. Just localized a
	  variable and indented code into blocks.

	* channels/chan_dahdi.c: Make chan_dahdi build even without PRI /
	  SS7 (Note: still some strange build warnings without SS7 in
	  dev-mode)

2009-10-24 14:40 +0000 [r225727]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_sip.c: Improve performance of pedantic mode dialog
	  searching in chan_sip. This patch changes chan_sip to use the new
	  astobj2 OBJ_MULTIPLE iterator support to make pedantic mode
	  dialog searching in find_call() not require a linear search of
	  all dialogs in the list of dialogs. This patch does *not* change
	  the dialog matching logic (more on that later), just improves the
	  searching performance.

2009-10-23 16:57 +0000 [r225692]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c,
	  configs/chan_dahdi.conf.sample, configure,
	  include/asterisk/autoconfig.h.in, configure.ac, CHANGES,
	  channels/sig_pri.c: Add to chan_dahdi ISDN HOLD, Call deflection,
	  and keypad facility support. * Added handling of received
	  HOLD/RETRIEVE messages and the optional ability to transfer a
	  held call on disconnect similar to an analog phone. * Added
	  CallRerouting/CallDeflection support for Q.SIG, ETSI PTP, ETSI
	  PTMP. Will reroute/deflect an outgoing call when receive the
	  message. Can use the DAHDISendCallreroutingFacility to send the
	  message for the supported switches. * Added ability to
	  send/receive keypad digits in the SETUP message. Send keypad
	  digits in SETUP message:
	  Dial(DAHDI/g1[/K<keypad_digits>][/extension]) Access any received
	  keypad digits in SETUP message by: ${CHANNEL(keypad_digits)} *
	  Added support for BRI PTMP NT mode.

2009-10-23 16:40 +0000 [r225690]  Sean Bright <sean@malleable.com>

	* Makefile, agi/Makefile, agi/agi.xml (added): Optionally build and
	  install the sample AGIs in the agi/ directory.

2009-10-23 14:41 +0000 [r225650]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Fixes an iterator memory leak and
	  uninitialized memory

2009-10-23 14:02 +0000 [r225582]  Kevin P. Fleming <kpfleming@digium.com>

	* Makefile, /: Merged revisions 225581 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r225581 | kpfleming | 2009-10-23 09:00:01 -0500 (Fri, 23 Oct
	  2009) | 10 lines Don't force menuselect.makeopts to be rebuilt on
	  every build. For some reason the menuselect.makeopts file was
	  listed as PHONY in the Makefile, resulting in 'make' needing to
	  rebuild it for every build. This then resulted in the embedded
	  module rules being rebuilt on every build, which can be slow and
	  is unnecessary. This patch fixes the problem by properly allowing
	  'make' to know when the menuselect.makeopts file needs to be
	  rebuilt (defining the proper dependencies). ........

2009-10-22 22:24 +0000 [r225483-225515]  Leif Madsen <lmadsen@digium.com>

	* README: Update README documentation. Update the README
	  documentation to correctly describe which CLI command you should
	  use when attempting to get help from the CLI. (closes issue
	  #16064) Reported by: thedavidfactor Patches: readme.patch
	  uploaded by thedavidfactor (license 903)

	* /, doc/valgrind.txt, contrib/valgrind.supp (added): Merged
	  revisions 225484 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r225484 | lmadsen | 2009-10-22 16:51:52 -0500 (Thu, 22 Oct 2009)
	  | 11 lines Clean valgrind output by suppressing false errors.
	  Update valgrind.txt documentation and add valgrind.supp file in
	  order to allow those who are creating valgrind output to have
	  less false errors in the logfile. (closes issue #16007) Reported
	  by: atis Patches: valgrind.txt.diff uploaded by atis (license
	  242) asterisk2.supp uploaded by atis (license 242) Tested by:
	  atis, amorsen ........

	* include/asterisk/doxyref.h,
	  include/asterisk/doxygen/asterisk-git-howto.h (added): Add
	  Asterisk Git HowTo documentation. Added documentation on how to
	  create a local git repository from SVN. This documentation was
	  added via doxygen. (closes issue #15814) Reported by: tzafrir
	  Patches: git-asterisk-howto uploaded by tzafrir (license 46)

2009-10-22 20:07 +0000 [r225446]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Search for the subaddress only within the
	  extension section of the dial string.
	  Dial(DAHDI/(g|G|r|R)<group#(0-63)>[c|r<cadance#>|d][/extension])

2009-10-22 19:55 +0000 [r225445]  David Vossel <dvossel@digium.com>

	* main/tcptls.c, channels/chan_sip.c, apps/app_externalivr.c,
	  include/asterisk/tcptls.h: SIP TCP/TLS: move client connection
	  setup/write into tcp helper thread, various related
	  locking/memory fixes. What this patch fixes 1.Moves sip TCP/TLS
	  connection setup into the TCP helper thread: Connection setup
	  takes awhile and before this it was being done while holding the
	  monitor lock. 2.Moves TCP/TLS writing to the TCP helper thread:
	  Through the use of a packet queue and an alert pipe, the TCP
	  helper thread can now be woken up to write data as well as read
	  data. 3.Locking error: sip_xmit returned an XMIT_ERROR without
	  giving up the tcptls_session lock. This lock has been completely
	  removed from sip_xmit and placed in the new sip_tcptls_write()
	  function. 4.Memory leak: When creating a tcptls_client the
	  tls_cfg was alloced but never freed unless the tcptls_session
	  failed to start. Now the session_args for a sip client are an ao2
	  object which frees the tls_cfg on destruction. 5.Pointer to stack
	  variable: During sip_prepare_socket the creation of a client's
	  ast_tcptls_session_args was done on the stack and stored as a
	  pointer in the newly created tcptls_session. Depending on the
	  events that followed, there was a slight possibility that pointer
	  could have been accessed after the stack returned. Given the new
	  changes, it is always accessed after the stack returns which is
	  why I found it. Notable code changes 1.I broke tcptls.c's
	  ast_tcptls_client_start() function into two functions. One for
	  creating and allocating the new tcptls_session, and a separate
	  one for starting and handling the new connection. This allowed me
	  to create the tcptls_session, launch the helper thread, and then
	  establish the connection within the helper thread. 2.Writes to a
	  tcptls_session are now done within the helper thread. This is
	  done by using an alert pipe to wake up the thread if new data
	  needs to be sent. The thread's sip_threadinfo object contains the
	  alert pipe as well as the packet queue. 3.Since the threadinfo
	  object contains the alert pipe, it must now be accessed outside
	  of the helper thread for every write (queuing of a packet). For
	  easy lookup, I moved the threadinfo objects from a linked list to
	  an ao2_container. (closes issue #13136) Reported by: pabelanger
	  Tested by: dvossel, whys (closes issue #15894) Reported by:
	  dvossel Tested by: dvossel Review:
	  https://reviewboard.asterisk.org/r/380/

2009-10-22 19:33 +0000 [r225440]  Sean Bright <sean@malleable.com>

	* Makefile, utils/Makefile, utils/utils.xml (added),
	  doc/janitor-projects.txt: Add the programs in utils/ to
	  menuselect. Nothing in utils/ is now built by default except for
	  astcanary. Review: https://reviewboard.asterisk.org/r/353/

2009-10-22 19:10 +0000 [r225406]  Tilghman Lesher <tlesher@digium.com>

	* configs/voicemail.conf.sample, CHANGES, apps/app_voicemail.c:
	  Permit storage of voicemail secrets in a separate file, located
	  within the spool directory. (closes issue #14276) Reported by:
	  klaus3000 Patches: app_voicemail.c-svn-trunk-r214898.txt uploaded
	  by klaus3000 (license 65) Tested by: jamesgolovich

2009-10-22 18:41 +0000 [r225405]  Kevin P. Fleming <kpfleming@digium.com>

	* main/astobj2.c: Fix a refcount error introduced by yesterday's
	  OBJ_MULTIPLE commit. When an object is being unlinked from its
	  container *and* being returned to the caller, we do not want to
	  decrement the reference count after unlinking it from the
	  container, as the reference that the container held is what we
	  are returning to the caller... and if it was the only remaining
	  reference to the object, that could result in the object being
	  destroyed.

2009-10-22 17:11 +0000 [r225360]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c, /, apps/app_meetme.c, include/asterisk/channel.h:
	  Merged revisions 225105 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r225105 | tilghman | 2009-10-21 11:02:12 -0500 (Wed, 21 Oct 2009)
	  | 4 lines Fix documentation for ast_softhangup() and correct the
	  misuse thereof. (closes issue #16103) Reported by: majorbloodnok
	  ........

2009-10-22 16:33 +0000 [r225357]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c, configure, include/asterisk/autoconfig.h.in,
	  configure.ac, funcs/func_connectedline.c,
	  include/asterisk/channel.h, CHANGES, channels/sig_pri.c,
	  funcs/func_callerid.c: Add support for calling and called
	  subaddress. Partial support for COLP subaddress. The Telecom
	  Specs in NZ suggests that SUB ADDRESS is always on, so doing
	  "desk to desk" between offices each with an asterisk box over the
	  ISDN should then be possible, without a whole load of DDI numbers
	  required. (closes issue #15604) Reported by: alecdavis Patches:
	  asterisk_subaddr_trunk.diff11.txt uploaded by alecdavis (license
	  585) Some minor modificatons were made. Tested by: alecdavis,
	  rmudgett Review: https://reviewboard.asterisk.org/r/405/

2009-10-21 21:58 +0000 [r225307]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 225243 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r225243 | dvossel | 2009-10-21 15:58:08 -0500 (Wed, 21
	  Oct 2009) | 13 lines IAX2: VNAK loop caused by signaling frames
	  with no destination call number It is possible for the PBX thread
	  to queue up signaling frames before a destination call number is
	  received. This can result in signaling frames being sent out with
	  no destination call number. Since recent versions of Asterisk
	  require accurate destination callnumbers for all Full Frames,
	  this can cause a VNAK loop to occur. To resolve this no signaling
	  frames are sent until a destination callnumber is received, and
	  destination call numbers are now only required for iax_pvt
	  matching when the frame is an ACK. Review:
	  https://reviewboard.asterisk.org/r/413/ ........

2009-10-21 21:15 +0000 [r225244-225245]  Kevin P. Fleming <kpfleming@digium.com>

	* doc/tex/manager.tex, channels/chan_sip.c: Add 'mohsuggest'
	  configuration option to 'sip show peer' CLI command and
	  SIPShowPeer AMI action. (closes issue #15990) Reported by:
	  _brent_ Patches: sip_peer_info_mohsuggest-r3.patch uploaded by
	  brent (license 388) Review:
	  https://reviewboard.asterisk.org/r/381/

	* main/channel.c, main/manager.c, apps/app_directed_pickup.c,
	  apps/app_softhangup.c, funcs/func_channel.c,
	  include/asterisk/astobj2.h, res/snmp/agent.c,
	  include/asterisk/channel.h, include/asterisk/lock.h,
	  apps/app_chanspy.c, main/astobj2.c, main/cli.c: Finish
	  implementaton of astobj2 OBJ_MULTIPLE, and convert
	  ast_channel_iterator to use it. This patch finishes the
	  implementation of OBJ_MULTIPLE in astobj2 (the case where
	  multiple results need to be returned; OBJ_NODATA mode already was
	  supported). In addition, it converts ast_channel_iterators (only
	  the targeted versions, not the ones that iterate over all
	  channels) to use this method. During this work, I removed the
	  'ao2_flags' arguments to the ast_channel_iterator constructor
	  functions; there were no uses of that argument yet, there is only
	  one possible flag to pass, and it made the iterators less
	  'opaque'. If at some point in the future someone really needs an
	  ast_channel_iterator that does not lock the container, we can
	  provide constructor(s) for that purpose. Review:
	  https://reviewboard.asterisk.org/r/379/

2009-10-21 16:46 +0000 [r225170-225172]  Russell Bryant <russell@digium.com>

	* /, main/translate.c: Merged revisions 225171 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r225171 | russell | 2009-10-21 11:44:49 -0500 (Wed, 21 Oct 2009)
	  | 2 lines Revert 225169, as this doesn't account for the
	  possibility of a list of frames. ........

	* /, main/translate.c: Merged revisions 225169 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r225169 | russell | 2009-10-21 11:39:20 -0500 (Wed, 21 Oct 2009)
	  | 2 lines Isolate the frame returned from ast_translate().
	  ........

2009-10-21 15:42 +0000 [r225102]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c: Apparently, I don't need to specify the ".so"
	  suffix to get a match

2009-10-21 15:35 +0000 [r225089]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample, CHANGES: Add
	  support for specifying the IP address to use for media streams in
	  sip.conf This is the second commit for this and documents the
	  text stream using the configured IP address and fixes a bug in
	  the original patch where the UDPTL stream would also use the
	  different IP address. (closes issue #14729) Reported by: _brent_
	  Patches: media_address.patch uploaded by brent (license 388)

2009-10-21 15:21 +0000 [r225048]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c, CHANGES: Turn on DENOISE filter for all
	  conference participants. (Fixes SWP-238)

2009-10-21 15:04 +0000 [r225034]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample, CHANGES: Revert
	  media_address commit, I'm going to roll a fix to the SDP
	  generation in the next version.

2009-10-21 14:39 +0000 [r225033]  David Vossel <dvossel@digium.com>

	* configs/iax.conf.sample, /, channels/chan_sip.c,
	  configs/sip.conf.sample, channels/chan_iax2.c: Merged revisions
	  225032 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r225032 | dvossel | 2009-10-21 09:37:04 -0500 (Wed, 21 Oct 2009)
	  | 20 lines IAX/SIP shrinkcallerid option The shrinking of caller
	  id removes '(', ' ', ')', non-trailing '.', and '-' from the
	  string. This means values such as 555.5555 and test-test result
	  in 555555 and testtest. There are instances, such as Skype
	  integration, where a specific value is passed via caller id that
	  must be preserved unmodified. This patch makes the shrinking of
	  caller id optional in chan_sip and chan_iax in order to support
	  such cases. By default this option is on to preserve previous
	  expected behavior. (closes issue #15940) Reported by: dimas
	  Patches: v2-15940.patch uploaded by dimas (license 88)
	  15940_shrinkcallerid_trunk.c uploaded by dvossel (license 671)
	  Tested by: dvossel Review:
	  https://reviewboard.asterisk.org/r/408/ ........

2009-10-21 13:34 +0000 [r225003]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample, CHANGES: Add
	  support for specifying the IP address to use for media streams in
	  sip.conf (closes issue #14729) Reported by: _brent_ Patches:
	  media_address.patch uploaded by brent (license 388)

2009-10-21 03:09 +0000 [r224932]  Russell Bryant <russell@digium.com>

	* main/frame.c, /, main/translate.c, include/asterisk/dsp.h,
	  codecs/codec_dahdi.c, include/asterisk/frame.h,
	  include/asterisk/translate.h, main/dsp.c: Merged revisions 224931
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r224931 | russell | 2009-10-20 21:59:54 -0500 (Tue, 20 Oct 2009)
	  | 5 lines Isolate frames returned from a DSP instance or codec
	  translator. The reasoning for these changes are the same as what
	  I wrote in the commit message for rev 222878. ........

2009-10-21 02:43 +0000 [r224930]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Make PRI_SUBCMD_xxx handling subaddress
	  friendly.

2009-10-20 22:09 +0000 [r224856]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_speex.c, /, main/audiohook.c: Merged revisions 224855
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r224855 | tilghman | 2009-10-20 17:07:11 -0500 (Tue, 20 Oct 2009)
	  | 5 lines Pay attention to the return value of the manipulate
	  function. While this looks like an optimization, it prevents a
	  crash from occurring when used with certain audiohook callbacks
	  (diagnosed with SVN trunk, backported to 1.4 to keep the source
	  consistent across versions). ........

2009-10-20 17:47 +0000 [r224774]  Joshua Colp <jcolp@digium.com>

	* /, main/features.c: Merged revisions 224773 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r224773 | file | 2009-10-20 14:46:37 -0300 (Tue, 20 Oct 2009) | 5
	  lines Add support for relaying early media in the features
	  attended transfer option. (closes issue #14828) Reported by:
	  licedey ........

2009-10-20 12:44 +0000 [r224738]  Matthew Nicholson <mnicholson@digium.com>

	* CHANGES: Added information to CHANGES about the dynamic range
	  compression feature added to dahdi.

2009-10-19 23:47 +0000 [r224671]  Kevin P. Fleming <kpfleming@digium.com>

	* res/res_rtp_asterisk.c, /: Merged revisions 224670 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r224670 | kpfleming | 2009-10-19 18:44:07 -0500 (Mon, 19
	  Oct 2009) | 7 lines Correct timestamp calculations when RTP
	  sample rates over 8kHz are used. While testing some endpoints
	  that support 16kHz and 32kHz sample rates, some log messages were
	  generated due to calc_rxstamp() computing timestamps in a way
	  that produced odd results, so this patch sanitizes the result of
	  the computations. ........

2009-10-19 22:02 +0000 [r224637]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample: Add
	  dynamic range compression support for analog channels. (closes
	  issue AST-29)

2009-10-19 19:49 +0000 [r224567]  Joshua Colp <jcolp@digium.com>

	* apps/app_dial.c, /: Merged revisions 224565 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r224565 | file | 2009-10-19 16:47:50 -0300 (Mon, 19 Oct 2009) | 5
	  lines Do not attempt early media bridging (ie: direct RTP setup)
	  if options are enabled that should prevent it. (closes issue
	  #14763) Reported by: cupotka ........

2009-10-19 19:40 +0000 [r224562]  Kevin P. Fleming <kpfleming@digium.com>

	* formats/format_siren14.c: Remove useless debugging message.

2009-10-19 15:50 +0000 [r224527]  Tilghman Lesher <tlesher@digium.com>

	* doc/janitor-projects.txt: Remove a completed project and add
	  another

2009-10-19 14:32 +0000 [r224491]  Joshua Colp <jcolp@digium.com>

	* channels/sig_pri.h, channels/sig_pri.c: Add a callback to sig_pri
	  which is called when sig_pri is going to queue a control frame on
	  a channel.

2009-10-19 00:05 +0000 [r224446-224448]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Allow ODBC storage to be queried with
	  multiple mailboxes, and remove multiple goto's. This corrects an
	  issue reported on the -users list.

	* configs/res_odbc.conf.sample: Clarify that "forcecommit" is NOT
	  an alias for "autocommit", but instead controls the default
	  disposition of uncommitted transactions.

2009-10-17 16:39 +0000 [r224403]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/app.h, main/app.c: Remove unnecessary typedef

2009-10-17 02:01 +0000 [r224331-224335]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: fix typo, sorry

	* channels/chan_dahdi.c, /, channels/sig_pri.c: Merged revisions
	  224330 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r224330 | jpeeler | 2009-10-16 20:32:47 -0500 (Fri, 16 Oct 2009)
	  | 13 lines Fix stale caller id data from being reported in AMI
	  NewChannel event The problem here is that chan_dahdi is designed
	  in such a way to set certain values in the dahdi_pvt only once.
	  One of those such values is the configured caller id data in
	  chan_dahdi.conf. For PRI, the configured caller id data could be
	  overwritten during a call. Instead of saving the data and
	  restoring, it was decided that for all non-analog channels it was
	  simply best to not set the configured caller id in the first
	  place and also clear it at the end of the call. (closes issue
	  #15883) Reported by: jsmith ........

2009-10-16 20:40 +0000 [r224261]  Richard Mudgett <rmudgett@digium.com>

	* /, channels/sig_pri.c: Merged revisions 224260 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r224260 | rmudgett | 2009-10-16 15:25:23 -0500 (Fri, 16 Oct 2009)
	  | 18 lines Never released PRI channels when using Busy() or
	  Congestion() dialplan apps. When the Busy() or Congestion()
	  application is used towards ISDN (an ISDN progress is sent), the
	  responding ISDN Disconnect or Release may contain the ISDN cause
	  user busy or one of the congestion causes. In chan_dahdi.c these
	  causes will only set the needbusy or needcongestion flags and not
	  activate the softhangup procedure. Unfortunately only the latter
	  can interrupt the endless wait loop of Busy()/Congestion().
	  Result: PRI channels staying in state busy for the rest of
	  asterisk life or until the other end times out and forces the
	  call to clear. (issue #14292) Reported by: tomaso Patches:
	  disc_rel_userbusy.patch uploaded by tomaso (license 564) (This
	  patch is unrelated to the issue.) ........

2009-10-15 22:33 +0000 [r224225]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/app.h, main/pbx.c, main/app.c: Create an API for
	  adding an optional time unit onto the ends of time periods. Two
	  examples of its use are included, and the usage could be expanded
	  in some cases into certain configuration options where time
	  periods are specified.

2009-10-15 15:57 +0000 [r224178]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_chanspy.c: Readd removed ability to allow listening to
	  one side of the call in app_chanspy (Option o) (closes issue
	  #15675) Reported by: john8675309 Patches:
	  issue15675patchtrunk.txt uploaded by dbrooks (license 790) Tested
	  by: jgutierrez on users list:
	  http://lists.digium.com/pipermail/asterisk-users/2009-October/239155.html

2009-10-15 14:37 +0000 [r224144]  Doug Bailey <dbailey@digium.com>

	* configs/chan_dahdi.conf.sample: chan_dahdi.conf.sample changes
	  for DTMF CID detect Explains new options for detecting DTMF CID
	  on fxo lines (issue #9096) Reported by: fleed Patches:
	  chan_dahid_sample_config.patch uploaded by sum (license 766)

2009-10-15 06:48 +0000 [r224074-224109]  Terry Wilson <twilson@digium.com>

	* res/res_calendar_caldav.c: Properly handle PUT requests for
	  CALENDAR_WRITE()

	* res/res_calendar.c: Add missing 'getnum' field

2009-10-14 17:48 +0000 [r224035]  Jeff Peeler <jpeeler@digium.com>

	* configs/sip_notify.conf.sample, channels/chan_sip.c, CHANGES:
	  Allow for adding message body to the SIP NOTIFY message Ability
	  has been added to both manager command SIPnotify as well as
	  console command sip notify. Message body is stored in the
	  "Content" variable. An example is present in sip_notify.conf.
	  (closes issue #13926) Reported by: jthurman Patches:
	  sip-notify-svn189463.diff uploaded by gareth (license 208) Tested
	  by: gareth

2009-10-13 22:14 +0000 [r223992]  Terry Wilson <twilson@digium.com>

	* res/res_calendar.c: use Calendar: instead of Calendar/ for
	  devstate

2009-10-13 17:11 +0000 [r223911-223912]  Richard Mudgett <rmudgett@digium.com>

	* include/asterisk/pbx.h: Fix some doxygen format problems and trim
	  trailing whitespace.

	* res/res_calendar.c: Fix compiler warning.

2009-10-13 01:58 +0000 [r223874-223875]  Terry Wilson <twilson@digium.com>

	* apps/app_originate.c: Revert inadvertant code commit to
	  app_originate

	* apps/app_originate.c, include/asterisk/calendar.h,
	  res/res_calendar.c: Fix handling of notification calls w/ the
	  dialing api

2009-10-12 23:48 +0000 [r223832]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_dial.c, /: Merged revisions 223804 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r223804 | jpeeler | 2009-10-12 18:12:50 -0500 (Mon, 12 Oct 2009)
	  | 8 lines Ensure ringing continues for branched calls after
	  progress is received While waiting for an answer, don't send
	  progress for branched calls for which ringing was sent. (closes
	  issue #15028) Reported by: fnordian ........

2009-10-12 20:58 +0000 [r223756]  David Vossel <dvossel@digium.com>

	* configs/iax.conf.sample: Clarifies trunkmaxsize, trunkfreq, and
	  trunkmtu iax2 options SWP-151

2009-10-12 15:32 +0000 [r223652-223693]  Kevin P. Fleming <kpfleming@digium.com>

	* /: Recorded merge of revisions 223692 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r223692 | kpfleming | 2009-10-12 10:30:40 -0500 (Mon, 12 Oct
	  2009) | 13 lines Remove automatic switching from T.38 to voice
	  mode in chan_sip. chan_sip has some code to automatically switch
	  from T.38 mode to voice mode when a voice frame is written to the
	  channel while it is in T.38 mode; this was intended to handle the
	  situation when a FAX transmission has ended and the channel is
	  not yet hung up, but is causing problems at the beginning of FAX
	  sessions as well when there are still voice frames 'in flight' at
	  the time the T.38 negotiation completes. This patch removes the
	  automatic switchover. (issue #16025) Reported by: jamicque
	  ........

	* channels/chan_sip.c, apps/app_fax.c: Remove automatic switching
	  from T.38 to voice mode in chan_sip. chan_sip has some code to
	  automatically switch from T.38 mode to voice mode when a voice
	  frame is written to the channel while it is in T.38 mode; this
	  was intended to handle the situation when a FAX transmission has
	  ended and the channel is not yet hung up, but is causing problems
	  at the beginning of FAX sessions as well when there are still
	  voice frames 'in flight' at the time the T.38 negotiation
	  completes. This patch removes the automatic switchover, and
	  changes app_fax to explicitly switch off T.38 mode when the FAX
	  transmission process ends. (closes issue #16025) Reported by:
	  jamicque

2009-10-11 22:19 +0000 [r223617]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Check the proper page for the SENDRPID flag.
	  If a pending reinvite were sent, we might not properly send
	  connected party info since we were checking the wrong flag. This
	  was a rare occurrence, but could still happen nevertheless.

2009-10-11 18:35 +0000 [r223487-223553]  Russell Bryant <russell@digium.com>

	* /: Merged revisions 223550 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r223550 | russell | 2009-10-11 13:34:37 -0500 (Sun, 11 Oct 2009)
	  | 2 lines Remove a duplicate ao2_iterator_destroy(). ........

	* main/autoservice.c, /: Merged revisions 223485-223486 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r223485 | russell | 2009-10-11 12:22:52 -0500 (Sun, 11 Oct 2009)
	  | 6 lines Don't use data outside of its scope. The purpose of
	  this code was to have a hangup frame put on the list of deferred
	  frames. However, the code that read the hangup frame was outside
	  of the scope of where the hangup frame was declared. ........
	  r223486 | russell | 2009-10-11 12:25:06 -0500 (Sun, 11 Oct 2009)
	  | 2 lines Remove some unnecessary code. ........

2009-10-10 20:02 +0000 [r223449]  Terry Wilson <twilson@digium.com>

	* res/res_calendar_icalendar.c, res/res_calendar_caldav.c: Fix
	  handling of floating times and dates

2009-10-10 08:30 +0000 [r223413-223415]  Olle Johansson <oej@edvina.net>

	* configs/cdr_pgsql.conf.sample: Adding note about TLS usage

	* configs/res_ldap.conf.sample: Add an additional note on TLS
	  support

	* configs/res_ldap.conf.sample: Adding some information on TLS
	  support

2009-10-09 22:04 +0000 [r223370]  Terry Wilson <twilson@digium.com>

	* res/res_calendar_icalendar.c, res/res_calendar_caldav.c: Properly
	  return "free" on confirmed events that are free CONFIRMED status
	  doesn't imply busy or free, that is handled with the TRANSP
	  field. Luckily, libical already sets the is_busy status on the
	  span for us.

2009-10-09 20:58 +0000 [r223330]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_fax.c: Initiate T.38 switchover when acting as called
	  party, regardless of FAX direction. SendFAX() and ReceiveFAX()
	  can be given options to indicate whether they should act as the
	  calling or called party; this mode should be used to decide
	  whether to initiate a switchover to T.38, not the direction that
	  the FAX transfer will take place. (closes issue #16039) Reported
	  by: jamicque

2009-10-09 18:34 +0000 [r223273]  Matthew Nicholson <mnicholson@digium.com>

	* main/channel.c, /: Merged revisions 223225 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r223225 | mnicholson | 2009-10-09 13:20:11 -0500 (Fri, 09 Oct
	  2009) | 8 lines Signal timeouts by returning AST_CONTROL_RINGING
	  when originating calls. (closes issue #15104) Reported by:
	  nblasgen Patches: manager-timeout1.diff uploaded by mnicholson
	  (license 96) Tested by: nblasgen, mnicholson ........

2009-10-09 18:17 +0000 [r223211-223215]  Mark Michelson <mmichelson@digium.com>

	* /: Recorded merge of revisions 223213 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r223213 | mmichelson | 2009-10-09 13:17:12 -0500 (Fri, 09 Oct
	  2009) | 3 lines Fix potential memory leak in app_dial.c ........

	* apps/app_dial.c: Fix potential memory leaks. ABE-1998

2009-10-09 17:53 +0000 [r223206]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 223205 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r223205 | dvossel | 2009-10-09 12:52:35 -0500 (Fri, 09 Oct 2009)
	  | 10 lines fixes sip registration using authuser in user.conf
	  (closes issue #14954) Reported by: tornblad Tested by:
	  mmichelson, tornblad, dvossel ........

2009-10-09 17:14 +0000 [r223136]  Matthew Nicholson <mnicholson@digium.com>

	* cdr/cdr_sqlite3_custom.c: Don't close the sqlite database when
	  reloading. Only close the database when unloading. (closes issue
	  #15953) Reported by: frawd Patches: sqlite3_rev220097.diff
	  uploaded by frawd (license 610) Tested by: frawd

2009-10-09 16:54 +0000 [r223088-223132]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: 'auth=' did not parse md5 secret correctly
	  (closes issue #15949) Reported by: ebroad Patches:
	  authparsefix.patch uploaded by ebroad (license 878)
	  15949_trunk.diff uploaded by dvossel (license 671) Tested by:
	  ebroad

	* channels/chan_sip.c: p->peerauth is always empty in
	  transmit_register() When using callbackextension or specifing the
	  peer name in a registration string, the peer's specific auth
	  settings set by the "auth=" strings within the peer definition
	  are not used by the registration. Thanks to ebroad for reporting
	  the issue and providing the patch. (closes issue #15955) Reported
	  by: ebroad Patches: regauthfix.patch uploaded by ebroad (license
	  878)

2009-10-09 15:00 +0000 [r223016-223053]  Terry Wilson <twilson@digium.com>

	* res/res_calendar.c: Don't add Attendees during copy, replace them

	* res/res_calendar_exchange.c, res/res_calendar_icalendar.c,
	  res/res_calendar_caldav.c, include/asterisk/calendar.h,
	  res/res_calendar.c: Remove global variable that makes dlopen
	  unhappy This isn't the best way to do this, but it is the
	  easiest. There are some limitations that are going to need to be
	  addressed at some point with reloads and when I (or someone else)
	  work on that, then the API can be updated to handle passing the
	  private config data that the calendar tech modules need in a
	  better way as well.

2009-10-08 22:57 +0000 [r222947-223015]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixed comment line for do_magic_pickup

	* channels/chan_sip.c: Deadlock between ast_cel_report_event and
	  ast_do_masquerade chan_sip calls pbx_exec on a pvt's owner
	  channel while only the pvt lock is held. Since pbx_exec calls
	  ast_cel_report_event which attempts to lock the channel, invalid
	  locking order occurs. Channels should be locked before pvt's.
	  (closes issue #15512) Reported by: lmsteffan Patches:
	  ast_cel_deadlock_15512.diff uploaded by dvossel (license 671)

	* channels/chan_sip.c: makes externtcpport and externtlsport static
	  variables externtcpport and externtlsport need to be declared as
	  static variables. Thanks to russell for finding and pointing this
	  out.

2009-10-08 19:52 +0000 [r222880]  Russell Bryant <russell@digium.com>

	* include/asterisk/file.h, main/frame.c, /, main/file.c,
	  include/asterisk/frame.h: Merged revisions 222878 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r222878 | russell | 2009-10-08 14:45:47 -0500 (Thu, 08
	  Oct 2009) | 44 lines Make filestream frame handling safer by
	  isolating frames before returning them. This patch is related to
	  a number of issues on the bug tracker that show crashes related
	  to freeing frames that came from a filestream. A number of fixes
	  have been made over time while trying to figure out these
	  problems, but there re still people seeing the crash. (Note that
	  some of these bug reports include information about other
	  problems. I am specifically addressing the filestream frame crash
	  here.) I'm still not clear on what the exact problem is. However,
	  what is _very_ clear is that we have seen quite a few problems
	  over time related to unexpected behavior when we try to use
	  embedded frames as an optimization. In some cases, this
	  optimization doesn't really provide much due to improvements made
	  in other areas. In this case, the patch modifies filestream
	  handling such that the embedded frame will not be returned.
	  ast_frisolate() is used to ensure that we end up with a
	  completely mallocd frame. In reality, though, we will not
	  actually have to malloc every time. For filestreams, the frame
	  will almost always be allocated and freed in the same thread.
	  That means that the thread local frame cache will be used. So,
	  going this route doesn't hurt. With this patch in place, some
	  people have reported success in not seeing the crash anymore.
	  (SWP-150) (AST-208) (ABE-1834) (issue #15609) Reported by: aragon
	  Patches: filestream_frisolate-1.4.diff2.txt uploaded by russell
	  (license 2) Tested by: aragon, russell (closes issue #15817)
	  Reported by: zerohalo Tested by: zerohalo (closes issue #15845)
	  Reported by: marhbere Review:
	  https://reviewboard.asterisk.org/r/386/ ........

2009-10-08 19:35 +0000 [r222873]  David Vossel <dvossel@digium.com>

	* include/asterisk/netsock.h, main/netsock.c: fixes an
	  ast_netsock_list memory leak. ABE-1998 Review:
	  https://reviewboard.asterisk.org/r/395/

2009-10-08 16:44 +0000 [r222799]  Richard Mudgett <rmudgett@digium.com>

	* /, channels/misdn_config.c: Merged revisions 222797 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r222797 | rmudgett | 2009-10-08 11:33:06 -0500 (Thu, 08
	  Oct 2009) | 12 lines Fix memory leak if chan_misdn config
	  parameter is repeated. Memory leak when the same config option is
	  set more than once in an misdn.conf section. Why must this be
	  considered? Templates! Defining a template with default port
	  options and later adding to or overriding some of them. Patches:
	  memleak-misdn.patch JIRA ABE-1998 ........

2009-10-07 22:58 +0000 [r222761]  David Vossel <dvossel@digium.com>

	* main/channel.c, main/pbx.c, channels/chan_misdn.c,
	  channels/chan_sip.c, main/features.c, include/asterisk/channel.h:
	  Deadlock in channel masquerade handling Channels are stored in an
	  ao2_container. When accessing an item within an ao2_container the
	  proper locking order is to first lock the container, and then the
	  items within it. In ast_do_masquerade both the clone and original
	  channel must be locked for the entire duration of the function.
	  The problem with this is that it attemptes to unlink and link
	  these channels back into the ao2_container when one of the
	  channel's name changes. This is invalid locking order as the
	  process of unlinking and linking will lock the ao2_container
	  while the channels are locked!!! Now, both the channels in
	  do_masquerade are unlinked from the ao2_container and then locked
	  for the entire function. At the end of the function both channels
	  are unlocked and linked back into the container with their new
	  names as hash values. This new method of requiring all channels
	  and tech pvts to be unlocked before ast_do_masquerade() or
	  ast_change_name() required several changes throughout the code
	  base. (closes issue #15911) Reported by: russell Patches:
	  masq_deadlock_trunk.diff uploaded by dvossel (license 671) Tested
	  by: dvossel, atis (closes issue #15618) Reported by: lmsteffan
	  Patches: deadlock_local_attended_transfers_trunk.diff uploaded by
	  dvossel (license 671) Tested by: lmsteffan, dvossel Review:
	  https://reviewboard.asterisk.org/r/387/

2009-10-07 21:56 +0000 [r222692]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, /: Merged revisions 222691 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r222691 | rmudgett | 2009-10-07 16:51:24 -0500 (Wed, 07
	  Oct 2009) | 14 lines chan_misdn.c:process_ast_dsp() memory leak
	  misdn.conf: astdtmf must be set to "yes". With "no", buffer loss
	  does not occur. The translated frame "f2" when passing through
	  ast_dsp_process() is not freed whenever it is not used further in
	  process_ast_dsp(). Then in the end it is never ever freed.
	  Patches: translate.patch JIRA ABE-1993 ........

2009-10-07 20:08 +0000 [r222652]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: Change ringt (ring timeout) styles to be
	  consistent across chan_dahdi. (closes issue #15684) Reported by:
	  alecdavis Patches: chan_dahdi.bug15684.diff2.txt uploaded by
	  alecdavis (license 585) Tested by: alecdavis

2009-10-07 18:57 +0000 [r222614-222615]  Olle Johansson <oej@edvina.net>

	* res/res_config_ldap.c: Formatting, moving error messages to
	  ERROR, removing references to unexisting debug output. No
	  functionality changes.

	* cel/cel_pgsql.c, res/res_config_pgsql.c, cdr/cdr_pgsql.c: Use
	  extref for doxygen references to external libraries (in this case
	  PostgreSQL)

2009-10-07 18:04 +0000 [r222548]  Jason Parker <jparker@digium.com>

	* configs/queues.conf.sample: Remove 'keepstats' queue option from
	  sample config, as it's no longer used.
	  https://reviewboard.asterisk.org/r/115/ (closes issue #15820)
	  Reported by: kshumard

2009-10-07 17:44 +0000 [r222543]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 222542 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r222542 | dvossel | 2009-10-07 12:41:21 -0500 (Wed, 07 Oct 2009)
	  | 8 lines crash on transfer handle_invite_replaces() attempts to
	  uplock a pvt's owner channel without first verifing that it
	  exists. (issue #16027) ........

2009-10-06 23:56 +0000 [r222463]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 222462 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r222462 | jpeeler | 2009-10-06 18:51:19 -0500 (Tue, 06
	  Oct 2009) | 8 lines Add missing unlock(s) in dahdi_read (two
	  cases in trunk) (closes issue #15683) Reported by: alecdavis
	  ........

2009-10-06 22:49 +0000 [r222398-222399]  David Vossel <dvossel@digium.com>

	* CHANGES: Updates CHANGES to reflect the new externtcpport and
	  externtlsport sip options

	* channels/chan_sip.c, configs/sip.conf.sample: contact header port
	  ignored transport when using externip This patch adds support for
	  TCP/TLS in the Contact header when using NAT, specifically
	  externip or externhost. The original issue was that Asterisk sent
	  5060 as the port in the contact header whether TLS was used or
	  not. Additionally, this patch adds 2 config options to sip.conf,
	  specifically externtcpport and externtlsport. This allows a user
	  to specify different external ports for TCP and TLS other than
	  those used internally, this is especially useful in in a PAT/port
	  redirection setup. Thanks to ebroad for reporting the issue and
	  providing the patch! (closes issue #15880) Reported by: ebroad
	  Patches: portmap.patch uploaded by ebroad (license 878)
	  externtXXport_v2.patch uploaded by ebroad (license 878) Tested
	  by: ebroad Review: https://reviewboard.asterisk.org/r/392/

2009-10-06 20:35 +0000 [r222351]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: Fix 222298 (crash during destruction of
	  second channel when variable set with setvar). I mistakenly
	  reasoned that setvar would be used on all channels. Since it can
	  be set per channel, give each dahdi channel a copy of the
	  variable. (related to #15899)

2009-10-06 19:31 +0000 [r222309]  Tilghman Lesher <tlesher@digium.com>

	* res/res_config_pgsql.c, cdr/cdr_pgsql.c: Change schema query to
	  involve the use of an optional schema parameter. This change is
	  done in such a way as to allow the driver to continue to function
	  with older databases which don't have these features. (closes
	  issue #16000) Reported by: jamicque Patches:
	  20091002__issue16000.diff.txt uploaded by tilghman (license 14)
	  20091002__issue16000__1.6.1.diff.txt uploaded by tilghman
	  (license 14) Tested by: jamicque

2009-10-06 19:24 +0000 [r222298]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: Fix crash during destruction of second
	  channel when variable set with setvar. The setvar line in
	  chan_dahdi.conf is shared among all the channels, so make sure to
	  only free the resources only when the last channel is destroyed.
	  (closes issue #15899) Reported by: tzafrir

2009-10-06 19:17 +0000 [r222273]  Tilghman Lesher <tlesher@digium.com>

	* res/ael/pval.c: When we call a gosub routine, the variables
	  should be scoped to avoid contaminating the caller. This affected
	  the ~~EXTEN~~ hack, where a subroutine might have changed the
	  value before it was used in the caller. Patch by myself, tested
	  by ebroad on #asterisk

2009-10-06 16:17 +0000 [r222237]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_dahdi.c: Make sure digit events are not reported as
	  "ERROR" dahdievent_to_analogevent used a simple switch statement
	  to convert DAHDI event numbers to "ANALOG_*" event numbers.
	  However "digit" events (DAHDI_EVENT_PULSEDIGIT,
	  DAHDI_EVENT_DTMFDOWN, DAHDI_EVENT_DTMFUP) are accompannied by the
	  digit in the low word of the event number. This fix makes
	  dahdievent_to_analogevent() return the event number as-is for
	  such an event. This is also required to fix #15924 (in addition
	  to r222108).

2009-10-06 01:24 +0000 [r222110-222176]  Kevin P. Fleming <kpfleming@digium.com>

	* /, channels/chan_sip.c, funcs/func_dialgroup.c,
	  include/asterisk/astobj2.h, res/res_phoneprov.c,
	  channels/chan_console.c, res/res_musiconhold.c, apps/app_queue.c,
	  channels/chan_iax2.c, main/astobj2.c, res/res_odbc.c,
	  res/res_calendar.c, res/res_clialiases.c: Recorded merge of
	  revisions 222152 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r222152 | kpfleming | 2009-10-05 20:16:36 -0500 (Mon, 05 Oct
	  2009) | 20 lines Fix ao2_iterator API to hold references to
	  containers being iterated. See Mantis issue for details of what
	  prompted this change. Additional notes: This patch changes the
	  ao2_iterator API in two ways: F_AO2I_DONTLOCK has become an enum
	  instead of a macro, with a name that fits our naming policy;
	  also, it is now necessary to call ao2_iterator_destroy() on any
	  iterator that has been created. Currently this only releases the
	  reference to the container being iterated, but in the future this
	  could also release other resources used by the iterator, if the
	  iterator implementation changes to use additional resources.
	  (closes issue #15987) Reported by: kpfleming Review:
	  https://reviewboard.asterisk.org/r/383/ ........

	* main/udptl.c, channels/chan_sip.c, configs/udptl.conf.sample,
	  UPGRADE.txt, configs/sip.conf.sample: Allow non-compliant T.38
	  endpoints to be supportable via configuration option. Many T.38
	  endpoints incorrectly send the maximum IFP frame size they can
	  accept as the T38FaxMaxDatagram value in their SDP, when in fact
	  this value is supposed to be the maximum UDPTL payload size
	  (datagram size) they can accept. If the value they supply is
	  small enough (a commonly supplied value is '72'), T.38 UDPTL
	  transmissions will likely fail completely because the UDPTL
	  packets will not have enough room for a primary IFP frame and the
	  redundancy used for error correction. If this occurs, the
	  Asterisk UDPTL stack will emit log messages warning that data
	  loss may occur, and that the value may need to be overridden.
	  This patch extends the 't38pt_udptl' configuration option in
	  sip.conf to allow the administrator to override the value
	  supplied by the remote endpoint and supply a value that allows
	  T.38 FAX transmissions to be successful with that endpoint. In
	  addition, in any SIP call where the override takes effect, a
	  debug message will be printed to that effect. This patch also
	  removes the T38FaxMaxDatagram configuration option from
	  udptl.conf.sample, since it has not actually had any effect for a
	  number of releases. In addition, this patch cleans up the T.38
	  documentation in sip.conf.sample (which incorrectly documented
	  that T.38 support was passthrough only). (issue #15586) Reported
	  by: globalnetinc

2009-10-05 19:20 +0000 [r222108]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: Add a few missing events to
	  analog_handle_event. The reported bug was actually only for
	  pulsedigit, dtmfup, and dtmfdown handling. Also added recognition
	  for fax events (just some verbose output) and fixed handling for
	  the ec_disabled_event. In order to make comparing the analog
	  version of events to the DAHDI events easier, the ordering has
	  been changed to follow that of the DAHDI events. (closes issue
	  #15924) Reported by: tzafrir

2009-10-02 17:34 +0000 [r222030]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 222026 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r222026 | dvossel | 2009-10-02 12:32:13 -0500 (Fri, 02
	  Oct 2009) | 3 lines Removes unnecessary unlock, clarifies a
	  memcpy. ........

2009-10-02 16:59 +0000 [r221920-221971]  Tilghman Lesher <tlesher@digium.com>

	* /, main/astobj2.c: Merged revisions 221970 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r221970 | tilghman | 2009-10-02 11:58:03 -0500 (Fri, 02 Oct 2009)
	  | 2 lines Ensure the result of the hash function is positive.
	  Negative array offsets suck. ........

	* main/logger.c: Initialize a variable that we check immediately
	  upon startup. (closes issue #15973) Reported by: atis

2009-10-02 01:49 +0000 [r221844-221881]  Richard Mudgett <rmudgett@digium.com>

	* channels/misdn/isdn_lib.c: Whitespace change.

	* channels/misdn/isdn_lib.c: Whitespace change.

	* channels/misdn/isdn_lib_intern.h, /, channels/misdn/isdn_lib.c:
	  Merged revisions 221769 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r221769 | rmudgett | 2009-10-01 18:18:28 -0500 (Thu, 01 Oct 2009)
	  | 26 lines Occasionally losing use of B channels in chan_misdn. I
	  have not been able to reproduce the problem of losing channels.
	  However, I have seen in the code a reentrancy problem that might
	  give these symptoms. The reentrancy patch does several things: 1)
	  Guards B channel and B channel structure allocation. 2) Makes the
	  B channel structure find routines more precise in locating
	  records. 3) Never leave a B channel allocated if we received
	  cause 44. The last item may cause temporary outgoing call
	  problems, but they should clear when the line becomes idle.
	  (closes issue #15490) Reported by: slutec18 Patches:
	  issue15490_channel_alloc_reentrancy.patch uploaded by rmudgett
	  (license 664) Tested by: rmudgett, slutec18 (closes issue #15458)
	  Reported by: FabienToune Patches:
	  issue15458_channel_alloc_reentrancy.patch uploaded by rmudgett
	  (license 664) Tested by: FabienToune, rmudgett, slutec18 ........

2009-10-02 00:08 +0000 [r221777-221781]  Tilghman Lesher <tlesher@digium.com>

	* main/say.c: One more off-by-one in trunk

	* main/rtp_engine.c, /, main/say.c, main/asterisk.c: Merged
	  revisions 221776 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r221776 | tilghman | 2009-10-01 18:53:12 -0500 (Thu, 01 Oct 2009)
	  | 2 lines Fix a bunch of off-by-one errors ........

2009-10-01 20:18 +0000 [r221709]  Richard Mudgett <rmudgett@digium.com>

	* UPGRADE.txt, CHANGES: Move DAHDI/ISDN channel naming note from
	  CHANGES to UPGRADE.txt.

2009-10-01 20:09 +0000 [r221705]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Revision 220906 (a merge from 1.4) was not
	  merged correctly, causing a problem with non-dynamic peers.

2009-10-01 19:48 +0000 [r221701]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, CHANGES: Prevent
	  deadlock if chan_dahdi attempts to change PRI channel names. The
	  PRI channels can no longer change the channel name if a different
	  B channel is selected during call negotiation. To prevent using
	  the channel name to infer what B channel a call is using and to
	  avoid name collisions, the channel name format is changed. The
	  new channel naming for PRI channels is:
	  DAHDI/ISDN-<span>-<sequence-number>

2009-10-01 19:33 +0000 [r221697]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: outbound tls connections were not defaulting
	  to port 5061 (closes issue #15854) Reported by: dvossel Patches:
	  sip_port_config_trunk.diff uploaded by dvossel (license 671)
	  Tested by: dvossel Review:
	  https://reviewboard.asterisk.org/r/357/

2009-10-01 16:27 +0000 [r221592-221627]  Kevin P. Fleming <kpfleming@digium.com>

	* UPGRADE.txt: Sync up UPGRADE.txt with the 1.6.2 version.

	* main/udptl.c, configs/udptl.conf.sample: Remove ability to
	  control T.38 FAX error correction from udptl.conf. chan_sip has
	  had the ability to control T.38 FAX error correction mode on a
	  per-peer (or global) basis for a couple of releases now, which is
	  where it should have been all along. This patch removes the
	  ability to configure it in udptl.conf, but issues a warning if
	  the user tries to do, telling them to look at sip.conf.sample for
	  how to configure it now. For any SIP peers that are T.38 enabled
	  in sip.conf, there is already a default for FEC error correction
	  even if the user does not specify any mode, so this change will
	  not turn off error correction by default, it will have the same
	  default value that has been in the udptl.conf sample file.

2009-10-01 15:26 +0000 [r221589]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 221588 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r221588 | mnicholson | 2009-10-01 10:24:00 -0500 (Thu, 01 Oct
	  2009) | 2 lines Use unsigned ints for portinuri flags. ........

2009-10-01 07:00 +0000 [r221554]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Simplify code for porturi, use TRUE/FALSE
	  constructs when it's just TRUE or FALSE.

2009-09-30 23:04 +0000 [r221484]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Cleaned up merge from r221432

2009-09-30 21:15 +0000 [r221436]  Matthias Nick <mnick@digium.com>

	* apps/app_queue.c: Prevents from division by zero

2009-09-30 20:40 +0000 [r221432]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c, configs/sip.conf.sample: Merged revisions
	  221360 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r221360 | mnicholson | 2009-09-30 14:36:06 -0500 (Wed, 30 Sep
	  2009) | 10 lines Fix SRV lookup and Request-URI generation in
	  chan_sip. This patch adds a new field "portinuri" to the sip
	  dialog struct and the sip peer struct. That field is used during
	  RURI generation to determine if the port should be included in
	  the RURI. It is also used in some places to determine if an SRV
	  lookup should occur. (closes issue #14418) Reported by: klaus3000
	  Tested by: klaus3000, mnicholson Review:
	  https://reviewboard.asterisk.org/r/369/ ........

2009-09-30 19:42 +0000 [r221368]  Matthias Nick <mnick@digium.com>

	* configs/cdr_custom.conf.sample, /, funcs/func_strings.c: Merged
	  revisions 221153,221157,221303 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r221153 | mnick | 2009-09-30 10:37:39 -0500 (Wed, 30 Sep 2009) |
	  2 lines check bounds - prevents for buffer overflow ........
	  r221157 | mnick | 2009-09-30 10:41:46 -0500 (Wed, 30 Sep 2009) |
	  8 lines added a new dialplan function 'CSV_QUOTE' and changed the
	  cdr_custom.sample.conf (closes issue #15471) Reported by: dkerr
	  Patches: csv_quote_14.txt uploaded by mnick (license ) Tested by:
	  mnick ........ r221303 | mnick | 2009-09-30 14:02:00 -0500 (Wed,
	  30 Sep 2009) | 2 lines changed the prototype definition of
	  csv_quote ........

2009-09-30 18:47 +0000 [r221266-221300]  Terry Wilson <twilson@digium.com>

	* res/res_rtp_asterisk.c: Remove spurious debug

	* res/res_rtp_asterisk.c, main/rtp_engine.c, channels/chan_sip.c,
	  include/asterisk/rtp_engine.h: Use rtp properties instead of
	  adding a callback Thanks, Josh.

	* res/res_rtp_asterisk.c, main/rtp_engine.c, /,
	  channels/chan_sip.c, configs/sip.conf.sample,
	  include/asterisk/rtp_engine.h: Merged revisions 221086 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r221086 | twilson | 2009-09-30 09:49:11 -0500 (Wed, 30 Sep 2009)
	  | 25 lines Change the SSRC by default when our media stream
	  changes Be default, change SSRC when doing an audio stream
	  changes Asterisk doesn't honor marker bit when reinvited to
	  already-bridged RTP streams,resulting in far-end stack discarding
	  packets with "old" timestamps that areactually part of a new
	  stream. This patch sends AST_CONTROL_SRCUPDATE whenever there is
	  a reinvite, unless the 'constantssrc' is set to true in sip.conf.
	  The original issue reported to Digium support detailed the
	  following situation: ITSP <-> Asterisk 1.4.26.2 <-> SIP-based
	  Application Server Call comes in fromITSP, Asterisk dials the app
	  server which sends a re-invite back toAsterisk--not to negotiate
	  to send media directly to the ITSP, but to indicatethat it's
	  changing the stream it's sending to Asterisk. The app
	  servergenerates a new SSRC, sequence numbers, timestamps, and
	  sets the marker bit on the new stream. Asterisk passes through
	  the teimstamp of the new stream, butdoes not reset the SSRC,
	  sequence numbers, or set the marker bit. When the timestamp on
	  the new stream is older than the timestamp on the originalstream,
	  the ITSP (which doesn't know there has been any change) discards
	  the newframes because it thinks they are too old. This patch
	  addresses this by changing the SSRC on a stream update unless
	  constantssrc=true is set in sip.conf. Review:
	  https://reviewboard.asterisk.org/r/374/ ........

2009-09-30 16:56 +0000 [r221201]  Tilghman Lesher <tlesher@digium.com>

	* main/channel.c, /: Merged revisions 221200 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r221200 | tilghman | 2009-09-30 11:55:21 -0500 (Wed, 30 Sep 2009)
	  | 7 lines Avoid a potential NULL dereference. (closes issue
	  #15865) Reported by: kobaz Patches: 20090915__issue15865.diff.txt
	  uploaded by tilghman (license 14) Tested by: kobaz ........

2009-09-30 15:11 +0000 [r221085-221090]  Sean Bright <sean@malleable.com>

	* apps/app_voicemail.c: Modify VoiceMailMain()'s a() argument to
	  allow mailboxes to be specified by name. (closes issue #14740)
	  Reported by: pj Patches: issue14740_09022009.diff uploaded by
	  seanbright (license 71) Tested by: seanbright, lmadsen

	* apps/app_voicemail.c: Clarify documentation for VoiceMailMain()'s
	  a() option. We require box numbers, not names as the
	  documentation implies. (issue #14740) Reported by: pj Patches:
	  __20090729-app_voicemail-documentation.patch uploaded by lmadsen
	  (license 10) Tested by: seanbright, lmadsen

2009-09-30 04:32 +0000 [r221044]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_lock.c: Allow locks to be inherited through a
	  masquerade without causing starvation. (closes issue #14859)
	  Reported by: atis Patches: 20090821__issue14859.diff.txt uploaded
	  by tilghman (license 14) 20090925__issue14859__1.6.1.diff.txt
	  uploaded by tilghman (license 14) Tested by: atis, tilghman

2009-09-29 21:28 +0000 [r220920-220995]  Mark Michelson <mmichelson@digium.com>

	* main/cel.c: Fix channel reference leak. ast_cel_report_event
	  would geet a reference to the bridged channel. However, certain
	  return paths, such as if CEL was not enabled, would result in a
	  reference leak. All return paths now properly unref the channel.
	  (closes issue #15991) Reported by: mmichelson

	* main/rtp_engine.c: Get rid of annoying and cryptic debug
	  messages.

2009-09-29 19:57 +0000 [r220906]  Tilghman Lesher <tlesher@digium.com>

	* /, channels/chan_sip.c: Merged revisions 220873 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r220873 | tilghman | 2009-09-29 12:59:26 -0500 (Tue, 29 Sep 2009)
	  | 9 lines Reduce CPU usage related to building a peer merely for
	  devicestates. This fixes a 100% CPU problem in the SIP driver,
	  found by profiling the driver while the problem was occurring.
	  (closes issue #14309) Reported by: pkempgen Patches:
	  20090924__issue14309.diff.txt uploaded by tilghman (license 14)
	  Tested by: pkempgen, vrban ........

2009-09-29 19:49 +0000 [r220904]  Matthew Nicholson <mnicholson@digium.com>

	* apps/app_confbridge.c: Fix options 'm' and 's'. They were swapped
	  in the code. Also document the fact that app_confbridge does not
	  automatically answer the channel. (closes issue #15964) Reported
	  by: shrift

2009-09-29 16:58 +0000 [r220833]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c: Make deletion of temporary greetings work
	  properly with IMAP_STORAGE When imapgreetings was set to yes, the
	  message was being deleted but wasn't actually being expunged.
	  When imapgreetings was set to no, the file based message was not
	  being deleted at all. All good now! (closes issue #14949)
	  Reported by: noahisaac Patches: vm_tempgreeting_removal.patch
	  uploaded by noahisaac (license 748), modified by me

2009-09-28 21:02 +0000 [r220792]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_pri.c: Miscellaneous minor
	  changes.

2009-09-28 19:11 +0000 [r220721]  Sean Bright <sean@malleable.com>

	* /, Makefile.rules: Merged revisions 220717 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r220717 | seanbright | 2009-09-28 15:09:25 -0400 (Mon, 28 Sep
	  2009) | 3 lines When selecting DONT_OPTIMIZE in menuselect,
	  explicitly pass -O0 to the compiler so we override any default
	  optimization levels for a particular install. ........

2009-09-28 19:10 +0000 [r220718]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_sip.c: Fix building of registration entry in
	  build_peer when using callbackextension Check for remotesecret
	  option was unintentionally always true, which therefore caused
	  the secret option to never be used. Thanks to dvossel for
	  pointing out the exact fix. (closes issue #15943) Reported by:
	  tpsast

2009-09-28 15:27 +0000 [r220672]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/sig_pri.c: Locking issues dealing
	  with service_lock. * Removed unneeded and uninitialized
	  service_lock. * Fixed potential locking imbalance in
	  pri_dchannel():PRI_EVENT_RESTART. * Fixed verbose message typo in
	  pri_dchannel():PRI_EVENT_RESTART.

2009-09-27 20:40 +0000 [r220629]  Michiel van Baak <michiel@vanbaak.info>

	* funcs/func_callerid.c: add name argument for the CALLERID
	  dialplan function to the xml documentation. Pointed out to me on
	  IRC by snuff-home. Thanks

2009-09-26 15:10 +0000 [r220586]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/aes.h: Allow AES to compile, when OpenSSL is not
	  present.

2009-09-25 19:56 +0000 [r220543]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Reduce indentation in sig_pri_available().

2009-09-25 14:50 +0000 [r220494-220496]  Kevin P. Fleming <kpfleming@digium.com>

	* main/manager.c: Eliminate unnecessary include of version.h in
	  manager.c. Including version.h here causes this file to get
	  recompiled after every commit or update, which is not needed.

	* main/channel.c: Correct sense of logic test committed in revision
	  220494.

	* main/channel.c: Don't use hash-based lookups for
	  ast_channel_get_by_name_prefix(). ast_channel_get_full() tries to
	  use OBJ_POINTER to optimize name-based channel lookups, but this
	  will not work properly when the channel's full name was not
	  supplied; for name-prefix searches, there is no value in doing a
	  hash-based lookup, and in fact doing so could result in many
	  channels being skipped.

2009-09-25 10:54 +0000 [r220457]  Philippe Sultan <philippe.sultan@gmail.com>

	* channels/chan_jingle.c, configs/jabber.conf.sample,
	  include/asterisk/jabber.h, channels/chan_gtalk.c, CHANGES,
	  doc/jabber.txt, res/res_jabber.c: Add JABBER_RECEIVE as a
	  dialplan function, implement SendText in Jingle channels
	  JABBER_RECEIVE (along with JabberSend) makes Asterisk interact
	  with users over XMPP to process calls. SendText can be used
	  instead of JabberSend in the context of XMPP based voice channels
	  (chan_gtalk and chan_jingle). (closes issue #12569) Reported by:
	  eech55 Tested by: phsultan, asannucci, lmadsen, jtodd, maxgo
	  Review: https://reviewboard.asterisk.org/r/88/

2009-09-24 22:53 +0000 [r220417]  Tilghman Lesher <tlesher@digium.com>

	* UPGRADE.txt, main/asterisk.c: Change the default behavior of Set,
	  AGI, and pbx_realtime to 1.6 behavior by default (starting in
	  1.6.3).

2009-09-24 20:37 +0000 [r220365]  David Vossel <dvossel@digium.com>

	* main/tcptls.c: fixes tcptls_session memory leak caused by ref
	  count error (closes issue #15939) Reported by: dvossel Review:
	  https://reviewboard.asterisk.org/r/375/

2009-09-24 20:29 +0000 [r220344]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_dial.c, main/features.c, include/asterisk/features.h:
	  Add bridge related dial flags to the bridge app Most of the
	  functionality here is gained simply by setting the feature flag
	  on the bridge config. However, the dial limit functionality has
	  been moved from app_dial to the features code and has been made
	  public so both app_dial and the bridge app can use it. (closes
	  issue #13165) Reported by: tim_ringenbach Patches:
	  app_bridge_options_r138998.diff uploaded by tim ringenbach
	  (license 540), modified by me

2009-09-24 19:57 +0000 [r220295]  Olle Johansson <oej@edvina.net>

	* configs/sip.conf.sample: Documentation in the commit messages is
	  soon forgotten, please add it to the docs in the product.

2009-09-24 19:41 +0000 [r220289]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c, /, apps/app_disa.c, apps/app_playback.c: Merged
	  revisions 220288 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r220288 | tilghman | 2009-09-24 14:39:41 -0500 (Thu, 24 Sep 2009)
	  | 6 lines Implicitly sending a progress signal breaks some
	  applications. Call Progress() in your dialplan if you explicitly
	  want progress to be sent. (Reverts change 216430, closes issue
	  #15957) Reported by: Pavel Troller on the Asterisk-Dev mailing
	  list
	  http://lists.digium.com/pipermail/asterisk-dev/2009-September/039897.html
	  ........

2009-09-24 18:19 +0000 [r220217]  Sean Bright <sean@malleable.com>

	* Makefile, /: Merged revisions 220213 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r220213 | seanbright | 2009-09-24 14:18:18 -0400 (Thu, 24 Sep
	  2009) | 1 line Resolve parallel build warnings. Reported by Klaus
	  Darilion on the asterisk-dev mailing list. ........

2009-09-24 16:33 +0000 [r220174]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Ensure the numeric portion of the
	  P-Asserted-Identity header is properly escaped.

2009-09-24 14:44 +0000 [r220100]  Sean Bright <sean@malleable.com>

	* Makefile, build_tools/mkpkgconfig, /: Merged revisions 220099 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r220099 | seanbright | 2009-09-24 10:41:57 -0400 (Thu, 24 Sep
	  2009) | 2 lines Remove the remaining bashisms in the
	  Makefile/mkpkgconfig ........

2009-09-24 08:36 +0000 [r220028]  Michiel van Baak <michiel@vanbaak.info>

	* build_tools/mkpkgconfig, /: Merged revisions 220027 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r220027 | mvanbaak | 2009-09-24 10:33:50 +0200 (Thu, 24
	  Sep 2009) | 7 lines mkpkgconfig does not need bash so make it use
	  /bin/sh This fixes building on all systems that don't have bash
	  at /bin/bash Reported by _ys on #asterisk-dev Tested by _ys on
	  #asterisk-dev ........

2009-09-24 07:39 +0000 [r219951-219987]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_directory.c: Fix two possible crashes, one only in 1.6.1
	  and one in 1.6.1 forward. (closes issue #15739) Reported by:
	  DLNoah, jeffg Patches: 20090914__issue15739.diff.txt uploaded by
	  tilghman (license 14) 20090922__issue15739.diff.txt uploaded by
	  tilghman (license 14) Tested by: DLNoah, jeffg

	* configs/mgcp.conf.sample, CHANGES, channels/chan_mgcp.c: Add
	  support for 'setvar=' for MGCP device lines, like other channel
	  drivers provide. (closes issue #14818) Reported by:
	  alea-soluciones Patches:
	  chan_mgcp-setvars-svn-trunk-r219899.patch uploaded by alea
	  (license 514)

	* doc/lang/language-criteria.txt: Update fax number to the legal
	  fax, not the generic fax. (closes issue #15946) Reported by:
	  jtodd Patches: leif-is-a-wuss.txt uploaded by jtodd (license 870)
	  Tested by: jparker, tilghman, jtodd, russellb, mmichelson,
	  seanbright, kpfleming, and the rest of the usual suspects

2009-09-23 17:46 +0000 [r219895]  Leif Madsen <lmadsen@digium.com>

	* include/asterisk/doxyref.h,
	  include/asterisk/doxygen/mantisworkflow.h (added): Add Mantis
	  work flow documention. This commit adds the doxygen changes that
	  I've made to describe the Mantis work flow documentation for the
	  open source issue tracker. This should make it easier to
	  determine the flow of issues through the issue tracker, and what
	  those statuses mean. (closes issue #15902) Reported by: lmadsen
	  Patches: mantisworkflow.h uploaded by lmadsen (license 10)
	  Review: https://reviewboard.asterisk.org/r/367/

2009-09-22 21:43 +0000 [r219818]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 219816 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r219816 | tilghman | 2009-09-22 16:37:03 -0500 (Tue, 22
	  Sep 2009) | 10 lines When IMAP variables were changed during a
	  reload, Voicemail did not use the new values. This change
	  introduces a configuration version variable, which ensures that
	  connections with the old values are not reused but are allowed to
	  expire normally. (closes issue #15934) Reported by:
	  viniciusfontes Patches: 20090922__issue15934.diff.txt uploaded by
	  tilghman (license 14) Tested by: viniciusfontes ........

2009-09-21 16:59 +0000 [r219721]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 219720 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r219720 | dvossel | 2009-09-21 11:55:53 -0500 (Mon, 21
	  Sep 2009) | 3 lines Reverting merge 219520. This change was not
	  necessary. ........

2009-09-20 17:55 +0000 [r219654]  Tilghman Lesher <tlesher@digium.com>

	* /, main/file.c: Merged revisions 219653 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r219653 | tilghman | 2009-09-20 12:52:05 -0500 (Sun, 20 Sep 2009)
	  | 8 lines Really stop the stream, when ast_closestream() is
	  called. (closes issue #15129) Reported by: bmh Patches:
	  20090918__issue15129.diff.txt uploaded by tilghman (license 14)
	  Review: https://reviewboard.asterisk.org/r/372/ ........

2009-09-19 02:59 +0000 [r219587]  Russell Bryant <russell@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 219586 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r219586 | russell | 2009-09-18 21:51:13 -0500 (Fri, 18
	  Sep 2009) | 6 lines Make sure the iax_pvt exists before
	  dereferencing it. This fixes the latest crash posted on issue
	  15609. (issue #15609) ........

2009-09-18 23:20 +0000 [r219451-219520]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 219519 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r219519 | dvossel | 2009-09-18 18:19:50 -0500 (Fri, 18
	  Sep 2009) | 9 lines iax2 frame double free The iax frame's
	  retrans sched id was written over right before iax2_frame_free
	  was called. In iax2_frame_free that retrans id is used to delete
	  the sched item. By writing over the retrans field before the
	  sched item could be deleted, it was possible for a retransmit to
	  occur on a freed frame. ........

	* /, channels/chan_sip.c: Merged revisions 219450 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r219450 | dvossel | 2009-09-18 11:19:15 -0500 (Fri, 18 Sep 2009)
	  | 14 lines via-header branches not updated correctly on INVITE
	  INVITE requests must always contain a new unique branch id. When
	  a new branch id is created for an INVITE, the dialog's
	  invite_branch variable must be updated so CANCEL requests use the
	  correct branch id. (closes issue #15262) Reported by: maniax
	  Patches: asterisk-1.6.1.0-sip-branch.patch uploaded by tweety
	  (license 608) invite_new_branch_trunk.diff uploaded by dvossel
	  (license 671) Tested by: maniax, dvossel ........

2009-09-18 13:54 +0000 [r219412]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Missing value setting line for
	  maxsecs/maxmessage (closes issue #15696) Reported by:
	  fhackenberger Patches: maxsecs.patch uploaded by fhackenberger
	  (license 592)

2009-09-17 22:37 +0000 [r219371]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes deadlock when performing directed
	  pickup w Invite/replaces (closes issue #15340) Reported by:
	  lmsteffan Patches: deadlock.patch uploaded by lmsteffan (license
	  779) Tested by: lmsteffan

2009-09-17 22:22 +0000 [r219324]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 219320 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r219320 | mmichelson | 2009-09-17 17:20:50 -0500 (Thu, 17 Sep
	  2009) | 6 lines Send a 100 Trying response when we detect a
	  spiral. This was problematic during spiral tests at SIPit...
	  along with some other things as well. ........

2009-09-17 21:59 +0000 [r219304]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 219303 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r219303 | dvossel | 2009-09-17 16:29:37 -0500 (Thu, 17 Sep 2009)
	  | 21 lines INVITE w/Replaces deadlock fix This patch cleans up
	  the locking logic in chan_sip.c's handle_invite_replaces()
	  function as well as making use of ast_do_masquerade() rather than
	  forcing the masquerade on an ast_read(). The code had several
	  redundant unlocks that would result in 'freed more times than
	  we've locked!' errors. I cleaned these up as well as moving all
	  the unlock logic to the end of the function. This patch should
	  also resolve the issue people were having with the replacecall
	  channel never being unlocked with one legged calls. (closes issue
	  #15151) Reported by: irroot Patches: invite_w_replaces_1.4.diff
	  uploaded by dvossel (license 671) Tested by: irroot, dvossel
	  Review: https://reviewboard.asterisk.org/r/371/ ........

2009-09-17 19:57 +0000 [r219264]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Ensure no spaces exist before "refresher="
	  when doing the comparison.

2009-09-17 16:25 +0000 [r219230]  Sean Bright <sean@malleable.com>

	* apps/app_chanspy.c: Get this compiling under dev-mode.

2009-09-17 15:18 +0000 [r219139]  Matthew Nicholson <mnicholson@digium.com>

	* main/channel.c, /, include/asterisk/cdr.h: Merged revisions
	  219136 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r219136 | mnicholson | 2009-09-17 09:58:39 -0500 (Thu, 17 Sep
	  2009) | 10 lines Prevent a potential race condition and crash
	  when hanging up a channel by removing the channel from the
	  channel list before begining channel tear down. This fix may
	  potentially cause problems with CDR backends that access the
	  channel a CDR is associated with via the channel list. This fix
	  makes the channel unavabile at the time when the CDR backend is
	  invoked. This has been documented in include/asterisk/cdr.h.
	  (closes issue #15316) Reported by: vmarrone Tested by: mnicholson
	  Review: https://reviewboard.asterisk.org/r/362/ ........

2009-09-17 00:58 +0000 [r219007-219105]  Tilghman Lesher <tlesher@digium.com>

	* CHANGES, apps/app_chanspy.c: Add the 'E' option to exit ChanSpy,
	  once the single channel it spied upon hangs up. In addition,
	  there's a bit of cleanup to the arguments and documentation, in
	  which I discovered that the last feature added to this
	  application duplicated an option (oops!) and changed that option
	  so that it now works. (closes issue #14909) Reported by: junky
	  Patches: __20090901-spy_hangup_trunk.diff uploaded by lmadsen
	  (license 10) Tested by: amilcar, junky, flujan, lmadsen

	* /, main/config.c, configs/extensions.conf.sample: Merged
	  revisions 219023 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r219023 | tilghman | 2009-09-16 18:21:53 -0500 (Wed, 16 Sep 2009)
	  | 8 lines Properly deal with quotes in the arguments of '#exec'
	  includes. (closes issue #15583) Reported by: pkempgen Patches:
	  20090726__issue15583.diff.txt uploaded by tilghman (license 14)
	  20090726__issue15583-1.4-4.diff.txt uploaded by pkempgen (license
	  169) Tested by: pkempgen ........

	* configure, include/asterisk/autoconfig.h.in, configure.ac: Detect
	  whether we actually have the long double type, before looking for
	  those functions. (closes issue #15017) Reported by: tzafrir
	  Patches: 20090916__issue15017.diff.txt uploaded by tilghman
	  (license 14) Tested by: tzafrir

2009-09-16 20:32 +0000 [r218973]  Sean Bright <sean@malleable.com>

	* res/res_jabber.c: Remove some unused defines from res_jabber.
	  (closes issue #15359) Reported by: snuffy Patches:
	  bug_res_jabber_unused_defines.diff uploaded by snuffy (license
	  35)

2009-09-16 19:25 +0000 [r218933]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Reverse order of args to fread. This way, we
	  don't always write a null byte into byte 1 of the buffer (closes
	  issue #15905) Reported by: ebroad Patches: freadfix.patch
	  uploaded by ebroad (license 878) Tested by: ebroad

2009-09-16 18:31 +0000 [r218918]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: On TCP and TLS connections do not attempt to
	  stop retransmission of the packet internally. This was preventing
	  responses from being properly processed because the packet was
	  not being found causing handle_response to return prematurely.

2009-09-16 18:06 +0000 [r218868]  David Brooks <dbrooks@digium.com>

	* main/pbx.c, /: Merged revisions 218867 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r218867 | dbrooks | 2009-09-16 13:00:45 -0500 (Wed, 16 Sep 2009)
	  | 13 lines Fixes CID pattern matching behavior to mirror that of
	  extension pattern matching. Pattern matching for extensions uses
	  a type of scoring system, giving values for specificity to each
	  character in the pattern. Unfortunately, this is done character
	  by character, in order. This does lead to some less specific
	  patterns being first in line for matching, but it will usually
	  get the job done. This patch merely brings CID matching to the
	  same level as extension matching. This patch does not attempt to
	  tackle the problem shared by extension matching. (closes issue
	  #14708) Reported by: klaus3000 ........

2009-09-16 13:34 +0000 [r218799]  Russell Bryant <russell@digium.com>

	* contrib/firmware/iax/iaxy.bin (removed), /, UPGRADE.txt: Merged
	  revisions 218798 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r218798 | russell | 2009-09-16 08:33:43 -0500 (Wed, 16 Sep 2009)
	  | 9 lines Remove the IAXy firmware from Asterisk. The firmware
	  can now be found on downloads.digium.com, where the rest of our
	  binary downloads live. This was the last part of our Asterisk
	  tarballs that was considered non-free by Debian. :-) (closes
	  issue #15838) Reported by: paravoid ........

2009-09-15 22:33 +0000 [r218731]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 218730 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r218730 | tilghman | 2009-09-15 17:27:41 -0500 (Tue, 15
	  Sep 2009) | 6 lines If the user enters the same password as
	  before, don't signal an error when the change does nothing.
	  (closes issue #15492) Reported by: cbbs70a Patches:
	  20090713__issue15492.diff.txt uploaded by tilghman (license 14)
	  ........

2009-09-15 19:22 +0000 [r218687]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: upward bound checking for port string to int
	  conversion

2009-09-15 16:15 +0000 [r218586]  Matthew Nicholson <mnicholson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 218578 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r218578 | mnicholson | 2009-09-15 11:03:54 -0500 (Tue, 15 Sep
	  2009) | 8 lines Send request contact header field with response
	  to registrer queries instead of the address of record. (closes
	  issue #14438) Reported by: ravindrad Patches: regquerypatch
	  uploaded by ravindrad (license 684) Tested by: ravindrad ........

2009-09-15 16:12 +0000 [r218583]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: Add some changes related to 218430. *
	  Remove thread_spawned in handle_init_event since it was never
	  used * Always check handle_init_event in case a channel is
	  destroyed

2009-09-15 16:04 +0000 [r218579]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_followme.c: Merged revisions 218577 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r218577 | tilghman | 2009-09-15 11:01:17 -0500 (Tue, 15 Sep 2009)
	  | 9 lines Ensure FollowMe sets language in channels it creates.
	  Also, not in the original bug report, but related fields are
	  accountcode and musicclass, and the inheritance of datastores.
	  (closes issue #15372) Reported by: Romik Patches:
	  20090828__issue15372.diff.txt uploaded by tilghman (license 14)
	  Tested by: cervajs ........

2009-09-15 15:40 +0000 [r218504-218566]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Use a better method of ensuring
	  null-termination of the buffer while reading the SDP when using
	  TCP.

	* channels/chan_sip.c: Ensure that SDP read from TCP socket is
	  null-terminated.

2009-09-15 15:02 +0000 [r218500]  Kevin P. Fleming <kpfleming@digium.com>

	* /: Merged revisions 218497 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r218497 | kpfleming | 2009-09-15 10:55:58 -0400 (Tue, 15 Sep
	  2009) | 1 line Use proper hostname for downloading sound files.
	  ........

2009-09-15 14:59 +0000 [r218499]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix off-by-one error when reading SDP sent
	  over TCP.

2009-09-15 10:24 +0000 [r218465]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_dahdi.c: Fix false error message on
	  DAHDI_EVENT_REMOVED (RESULT_SUCCESS == 0)

2009-09-14 22:38 +0000 [r218430]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /,
	  channels/sig_analog.h: Merged revisions 218401 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r218401 | jpeeler | 2009-09-14 16:47:11 -0500 (Mon, 14 Sep 2009)
	  | 11 lines Fix handling of DAHDI_EVENT_REMOVED event to prevent
	  crash in do_monitor. After talking to rmudgett about some of his
	  recent iflist locking changes, it was determined that the only
	  place that would destroy a channel without being explicitly to do
	  so was in handle_init_event. The loop to walk the interface list
	  has been modified to wait to destroy the channel until the
	  dahdi_pvt of the channel to be destroyed is no longer needed.
	  (closes issue #15378) Reported by: samy ........

2009-09-14 20:08 +0000 [r218365]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Add support for multiple interface lists.
	  Also unlink the sig_pri_pri.pvts[] pointer in
	  destroy_dahdi_pvt().

2009-09-14 19:29 +0000 [r218361]  Tilghman Lesher <tlesher@digium.com>

	* /, configs/voicemail.conf.sample, sounds/Makefile,
	  apps/app_voicemail.c: Recorded merge of revisions 218331 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r218331 | tilghman | 2009-09-14 14:16:35 -0500 (Mon, 14 Sep 2009)
	  | 4 lines Don't say "Please try again" if we don't give the user
	  another chance to try again. (issue #15055, SWP-129) Reported by:
	  jthurman ........

2009-09-14 18:16 +0000 [r218295]  Joshua Colp <jcolp@digium.com>

	* main/features.c: Do not attempt to add a parking extension if an
	  error occurred while reading the configuration.

2009-09-14 14:57 +0000 [r218224]  Matthew Nicholson <mnicholson@digium.com>

	* /, apps/app_directed_pickup.c: Merged revisions 218223 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r218223 | mnicholson | 2009-09-14 09:53:57 -0500 (Mon, 14 Sep
	  2009) | 8 lines Ensure we don't pickup ourselves when doing
	  pickup by exten. (closes issue #15100) Reported by: lmsteffan
	  Patches: (modified) pickup.patch uploaded by lmsteffan (license
	  779) ........

2009-09-13 17:34 +0000 [r218184]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* channels/chan_phone.c: gcc 4.4: Remove a nop memset size 0 that
	  annoys gcc This memset doesn't write beyond the end of the
	  buffer. (tmpbuf has size of 4).

2009-09-13 05:51 +0000 [r218150]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c: get rid of mfcr2 monitor thread condition,
	  is problematic

2009-09-12 13:08 +0000 [r218107]  Michiel van Baak <michiel@vanbaak.info>

	* res/res_rtp_asterisk.c: use the actual given ip address for 'rtp
	  set debug ip <foo>' instead of the word 'ip' (closes issue
	  #15711) Reported by: davidw Patches: 2009082800-rtpdebug.diff.txt
	  uploaded by mvanbaak (license 7) Tested by: davidw

2009-09-11 05:58 +0000 [r217990-218050]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Check the origination priority for more matches, not
	  the current priority. Found by Pavel Troller on the -dev list.

	* /, apps/app_queue.c: Merged revisions 217989 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r217989 | tilghman | 2009-09-10 18:52:22 -0500 (Thu, 10 Sep 2009)
	  | 3 lines Don't ring another channel, if there's not enough time
	  for a queue member to answer. (Fixes AST-228) ........

2009-09-10 23:49 +0000 [r217954-217987]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  Cleanup approach in 217804 and don't reach inside the sig_pvt.

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: Allow do not disturb to be set on analog
	  channels via the CLI and AMI.

2009-09-10 23:12 +0000 [r217916]  Tilghman Lesher <tlesher@digium.com>

	* contrib/scripts/iax-friends.sql, channels/chan_sip.c,
	  channels/chan_iax2.c: Make calltoken support work with realtime
	  users and peers. In the course of this, I also found that the
	  results of ast_gethostbyname were being used incorrectly in both
	  chan_iax2 and chan_sip, so both have been fixed.

2009-09-10 22:31 +0000 [r217873-217912]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Cleaned up chan_dahdi iflist handling and
	  locking. * Fixed walking the iflist so it is always done with the
	  iflock locked. * Simplified iflist walking routines. * Created
	  chan_dahdi iflist insertion and extraction routines. * Fixed
	  duplicate_pseudo() malloc fail handling. * Fixed infinite loop in
	  action_dahdishowchannels() when showing a single channel.

	* channels/chan_dahdi.c: Miscellaneous minor changes.

2009-09-10 21:07 +0000 [r217807]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 217806 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r217806 | dvossel | 2009-09-10 16:06:07 -0500 (Thu, 10
	  Sep 2009) | 22 lines IAX2 encryption regression The IAX2 Call
	  Token security patch inadvertently broke the use of encryption
	  due to the reorganization of code in the socket_process()
	  function. When encryption is used, an incoming full frame must
	  first be decrypted before the information elements can be parsed.
	  The security release mistakenly moved IE parsing before
	  decryption in order to process the new Call Token IE. To resolve
	  this, decryption of full frames is once again done before looking
	  into the frame. This involves searching for an existing callno,
	  checking the pvt to see if encryption is turned on, and
	  decrypting the packet before the internal fields of the full
	  frame are accessed. (closes issue #15834) Reported by: karesmakro
	  Patches: iax2_encryption_fix_1.4.diff uploaded by dvossel
	  (license 671) Tested by: dvossel, karesmakro Review:
	  https://reviewboard.asterisk.org/r/355/ ........

2009-09-10 20:52 +0000 [r217744-217804]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: Fix crash during attended transfer over
	  PRI. The owner pointers in the sig_pri_chan structure were not
	  getting updated in dahdi_fixup.

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: Stop caller id transmission when offhook
	  event detected. This fixes the problem that would occur if an
	  analog phone was picked up while the caller id was being sent.
	  The caller id before sent the whole spill even after pickup and
	  is now corrected.

2009-09-10 19:39 +0000 [r217730]  Matthias Nick <mnick@digium.com>

	* res/res_musiconhold.c: Sets the correct musicclass after an
	  announcement (closes issue #15279) Reported by: mbeckwell
	  Patches: patch.txt uploaded by mnick (license ) Tested by: mnick
	  (closes issue #15832) Reported by: mbeckwell Patches: patch.txt
	  uploaded by mnick (license 874) Tested by: mnick

2009-09-10 18:29 +0000 [r217663]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Don't assign UINT_MAX to an INT.

2009-09-10 18:17 +0000 [r217638]  Tilghman Lesher <tlesher@digium.com>

	* res/res_config_odbc.c, configure,
	  include/asterisk/autoconfig.h.in, configure.ac: Verify support
	  for wide ODBC character types before using them. (closes issue
	  #15870) Reported by: nic_bellamy

2009-09-10 12:06 +0000 [r217593]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Include ActionID in all events that are
	  responsed to AMI Action SIPShowRegistry (closes issue #15868)
	  Reported by: nic_bellamy Patches:
	  manager_SIPshowregistry_actionid.patch uploaded by nic bellamy
	  (license 299)

2009-09-10 00:35 +0000 [r217560]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Fix available() for SS7, MFC/R2, and
	  pseudo channels.

2009-09-09 21:48 +0000 [r217524]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c: ast_log replaced for ast_verbose in MFCR2
	  event notifications

2009-09-09 20:09 +0000 [r217482]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Don't report transfer success until we
	  actually know. 1xx messages are not final. Related to #12713
	  Patch by oej A big thank you to file for finally fixing the
	  transfer() dialplan application. I've been waiting for years for
	  this. Great work!

2009-09-09 18:52 +0000 [r217445]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* res/res_phoneprov.c: gcc 4.4 fix: union instead of cast gcc 4.4
	  has more strict rules for aliasing. It doesn't like a struct
	  sockaddr_in pointer pointing to a struct sockaddr. So we make it
	  a union.

2009-09-09 12:11 +0000 [r217408]  Sean Bright <sean@malleable.com>

	* main/manager.c: Properly terminate the response to the manager
	  Ping action. In passing, correct the formatting of the Timestamp
	  attribute so that there is a space after the colon and before the
	  value. (closes issue #15861) Reported by: Ivan

2009-09-09 10:39 +0000 [r217367-217368]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Not having any TLS session to write to is a
	  serious XMIT_ERROR.

	* channels/chan_sip.c: Formatting and doxygen updates

2009-09-08 23:37 +0000 [r217331-217332]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h, channels/sig_pri.c: Fix memory leak of
	  sig_xxx private structures.

	* channels/chan_dahdi.c: Miscellaneous minor code cleanup in
	  mkintf().

2009-09-08 22:17 +0000 [r217286]  Sean Bright <sean@malleable.com>

	* apps/app_meetme.c: Fix compilation of app_meetme. Reported by
	  ebroad in #asterisk-bugs

2009-09-08 21:17 +0000 [r217236]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Remove duplicate entry in the sig_pri_pri
	  private pointer array.

2009-09-08 20:28 +0000 [r217199]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_meetme.c: Merged revisions 217156 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r217156 | tilghman | 2009-09-08 15:01:45 -0500 (Tue, 08 Sep 2009)
	  | 7 lines When MOH is playing on the channel, announcements sent
	  through the conference are not heard. (closes issue #14588)
	  Reported by: voipas Patches: 20090716__issue14588__2.diff.txt
	  uploaded by tilghman (license 14) Tested by: lmadsen, twisted,
	  tilghman ........

2009-09-08 20:06 +0000 [r217158]  Mark Michelson <mmichelson@digium.com>

	* include/asterisk/event.h: Add doxygen to ast_event_subscribe for
	  the description. Most importantly, note that a NULL description
	  will cause a crash, as I just experienced that firsthand.

2009-09-08 18:06 +0000 [r217113]  Russell Bryant <russell@digium.com>

	* addons/format_mp3.c: Fix audio problems with format_mp3. This
	  problem was introduced when the AST_FRIENDLY_OFFSET patch was
	  merged. I'm surprised that nobody noticed any trouble when
	  testing that patch, but this fixes the code that fills in the
	  buffer to start filling in after the offset portion of the
	  buffer. (closes issue #15850) Reported by: 99gixxer Patches:
	  issue15850.diff1.txt uploaded by russell (license 2) Tested by:
	  99gixxer

2009-09-08 16:37 +0000 [r217074]  Kevin P. Fleming <kpfleming@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac: Ensure
	  that the default autoconf CFLAGS are not used. A recent change to
	  the configure script that allows the user to specify CFLAGS
	  and/or LDFLAGS to the script had the unfortunate side effect of
	  letting autoconf's default CFLAGS (-g -O2) feed in to the rest of
	  the build system, thereby overriding the DONT_OPTIMIZE setting in
	  menuselect. That problem is now corrected.

2009-09-08 15:30 +0000 [r217033]  Tilghman Lesher <tlesher@digium.com>

	* res/res_limit.c: Remove what appears to be an unnecessary define.
	  (closes issue #15851) Reported by: tzafrir

2009-09-08 15:23 +0000 [r217015]  Tzafrir Cohen <tzafrir.cohen@xorcom.com>

	* contrib/scripts/live_ast: live_ast: Fix asterisk.conf instead of
	  regenerating it * Don't write asterisk.conf from scratch. Fix the
	  existing one. * Pass extra 'make' command-line arguments to
	  'install' and 'samples'. * Fix some extra typos. closes issue
	  #15019 .

2009-09-08 14:26 +0000 [r216993]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: caller id number empty parse_uri was not
	  being given the correct scheme's, as a result, uri parsing did
	  not parse the username correctly. One of the side effects of this
	  is an empty caller id. (closes issue #15839) Reported by: ebroad
	  Patches: blank_cidv2.patch uploaded by ebroad (license 878)
	  parse_uri_fix.diff uploaded by dvossel (license 671) Tested by:
	  ebroad, dvossel

2009-09-07 20:23 +0000 [r216883-216956]  Olle Johansson <oej@edvina.net>

	* doc/manager_1_1.txt: Fixing formatting

	* doc/manager_1_1.txt: Add new actions under "new actions" and not
	  in the top of the document

	* channels/chan_sip.c: Moving another function declared in the
	  middle of forward declarations. Please follow the structure of
	  the source code, thanks. Chan_sip is messy enough as it is :-)

	* channels/chan_sip.c: Move "deprecated_username" to a flag like
	  the others - unsigned int blah:1

	* channels/chan_sip.c: - Doxygen additions - Remove unused string
	  in sip_registry -- "random" - Someone added a function in the
	  middle of all forward declarations... Weird. Moved it out of that
	  section.

	* channels/chan_sip.c: Clean up the "offered_media" code - Add
	  variable for number of known media streams instead of hardcoding
	  in definition of sip_pvt - Rename "text" to "codecs" - beacuse
	  it's what it is - Add documentation for future developers so that
	  we make sure that we define new sdp media types for SRTP-variants

2009-09-07 17:15 +0000 [r216846]  Tilghman Lesher <tlesher@digium.com>

	* configs/func_odbc.conf.sample, funcs/func_odbc.c, CHANGES: Allow
	  multiple rows to be fetched within the normal mode of operation.

2009-09-07 16:35 +0000 [r216652-216842]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Make sure we reset global_exclude_static at
	  channel reload

	* channels/chan_sip.c: Move capability into sip_cfg. While at it,
	  make sure we reset it at channel reload.

	* channels/chan_sip.c: Move global_regcontext into the sip_cfg
	  structure

	* channels/chan_sip.c: Move contact_ha to sip_cfg structure

	* channels/chan_sip.c: Doxygen updates

	* channels/chan_sip.c: Since it's possible to have more than 999
	  calls, I'm changing the call counter roof to something higher.

	* channels/chan_sip.c: add doxygen and remove duplicate declaration
	  of variable

	* channels/chan_sip.c: After many years, remove VOCAL_DATA_HACK
	  definition

	* channels/chan_sip.c: Remove unneeded header files (tested on
	  Linux and OS/X)

	* channels/chan_sip.c: Don't send MESSAGE with sendtext() if
	  recepient doesn't allow MESSAGE requests

	* channels/chan_sip.c: Add some doxygen

	* channels/chan_sip.c: Fix typo

	* channels/chan_sip.c: If there is no session timer in the INVITE,
	  set it to default value (not unset minimum = -1) Patch by oej
	  closes issue #15621 Reported by: fnordian Tested by: atis

	* configs/sip.conf.sample: Update sip.conf.sample documentation,
	  reorganize a bit

	* channels/chan_sip.c: Simplify the code in this function

2009-09-04 19:32 +0000 [r216594]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: sip peer matching by address only with
	  TCP/TLS This patch removes the contact header matching logic and
	  adds logic to match all tcp/tls connections by ip only. Thanks to
	  oej for finding the issue and suggesting solutions. Review:
	  https://reviewboard.asterisk.org/r/354/

2009-09-04 19:29 +0000 [r216593]  Sean Bright <sean@malleable.com>

	* apps/app_voicemail.c: Use ast_free() instead of free().

2009-09-04 17:50 +0000 [r216547-216551]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/lock.h: Fix trunk breakage.

	* main/pbx.c, UPGRADE-1.6.txt: Enable turning off the application
	  delimiter warning with the 'dontwarn' option. Suggested on the
	  -dev list, and implemented in an alternate way by me.

2009-09-04 15:05 +0000 [r216506]  Michiel van Baak <michiel@vanbaak.info>

	* /, main/utils.c: Merged revisions 216435 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r216435 | mvanbaak | 2009-09-04 15:56:10 +0200 (Fri, 04 Sep 2009)
	  | 2 lines make asterisk compile under devmode with DEBUG_THREADS
	  enabled on OpenBSD ........

2009-09-04 14:02 +0000 [r216438]  Olle Johansson <oej@edvina.net>

	* main/pbx.c, /, channels/chan_sip.c, apps/app_disa.c,
	  configs/sip.conf.sample, apps/app_playback.c: Merged revisions
	  216430 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r216430 | oej | 2009-09-04 15:45:48 +0200 (Fre, 04 Sep 2009) | 27
	  lines Make apps send PROGRESS control frame for early media and
	  fix too early media issue in SIP The issue at hand is that some
	  legacy (dying) PBX systems send empty media frames on PRI links
	  *before* any call progress. The SIP channel receives these frames
	  and by default signals 183 Session progress and starts sending
	  media. This will cause phones to play silence and ignore the
	  later 180 ringing message. A bad user experience. The fix is
	  twofold: - We discovered that asterisk apps that support early
	  media ("noanswer") did not send any PROGRESS frame to indicate
	  early media. Fixed. - We introduce a setting in chan_sip so that
	  users can disable any relay of media frames before the outbound
	  channel actually indicates any sort of call progress. In 1.4,
	  1.6.0 and 1.6.1, this will be disabled for backward
	  compatibility. In later versions of Asterisk, this will be
	  enabled. We don't assume that it will change your Asterisk phone
	  experience - only for the better. We encourage third-party
	  application developers to make sure that if they have
	  applications that wants to send early media, add a PROGRESS
	  control frame transmission to make sure that all channel drivers
	  actually will start sending early media. This has not been the
	  default in Asterisk previous to this patch, so if you got
	  inspiration from our code, you need to update accordingly. Sorry
	  for the trouble and thanks for your support. This code has been
	  running for a few months in a large scale installation (over 250
	  servers with PRI and/or BRI links to old PBX systems). That's no
	  proof that this is an excellent patch, but, well, it's tested :-)
	  ........

2009-09-04 14:00 +0000 [r216431-216437]  Michiel van Baak <michiel@vanbaak.info>

	* include/asterisk/lock.h: make sure canlog is set so we can
	  compile with DEBUG_THREADS enabled on OpenBSD

	* /: Recorded merge of revisions 216432 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r216432 | mvanbaak | 2009-09-04 15:53:09 +0200 (Fri, 04 Sep 2009)
	  | 2 lines make chan_sip compile under devmode again ........

	* /: Recorded merge of revisions 216369 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r216369 | mvanbaak | 2009-09-04 15:16:29 +0200 (Fri, 04 Sep 2009)
	  | 4 lines Make sure 'start' is always initialized. This is the
	  same as rev 216222 in trunk but 1.4 is affected as well ........

2009-09-04 13:14 +0000 [r216368]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Do not treat every SIP peer as if they were
	  configured with insecure=port. There was a problem in the
	  function responsible for doing peer matching by IP address and
	  port number such that during the second pass for checking for a
	  peer configured with insecure=port, it would end up treating
	  every peer as if it had been configured that way. These changes
	  fix the logic in the peer IP and port comparison callback to
	  handle insecure=port checking properly. This problem was
	  introduced when SIP peers were converted to astobj2. Many thanks
	  to dvossel for noticing this while working on another peer
	  matching issue.

2009-09-04 12:05 +0000 [r216335]  Olle Johansson <oej@edvina.net>

	* doc/janitor-projects.txt: Adding to the janitor list. For new
	  readers: The janitor list is a list of tasks we need help with in
	  the Asterisk project. Taking up one of these is often a good way
	  to get into Asterisk development and getting a lot of developers
	  in the project to be grateful. It's stuff we could spend time on
	  when the bug tracker is empty, when our employers hasn't filled
	  our task lists and our servers is running bugfree and happily
	  without any issues. If you want to start working on one of these
	  small projects, feel free to ask for help in the #asterisk-dev
	  channel on IRC or asterisk-dev mailing list. We'll be more than
	  happy to help you to start and reach goal. Thank you for your
	  help. </end of long commit message>

2009-09-04 10:48 +0000 [r216264]  Russell Bryant <russell@digium.com>

	* /, doc/IAX2-security.txt (added): Merged revisions 216263 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r216263 | russell | 2009-09-04 05:48:00 -0500
	  (Fri, 04 Sep 2009) | 9 lines Merged revisions 216262 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.2
	  ........ r216262 | russell | 2009-09-04 05:47:37 -0500 (Fri, 04
	  Sep 2009) | 2 lines Add a plain text version of the IAX2 security
	  document. ........ ................

2009-09-04 06:08 +0000 [r216222]  Michiel van Baak <michiel@vanbaak.info>

	* main/astobj2.c: make sure 'start' is always initialized. Makes
	  asterisk compile with --enable-dev-mode

2009-09-03 21:09 +0000 [r216186]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_pri.c: Lets try not to use
	  C++ keywords for variable names.

2009-09-03 19:40 +0000 [r216094]  Doug Bailey <dbailey@digium.com>

	* include/asterisk/callerid.h, channels/chan_dahdi.c,
	  channels/sig_analog.c, channels/sig_analog.h: Added detection
	  DTMF CID without polarity change alert. Added detection of DTMF
	  tone energy levels on FXO channels in chan_dahdi monitoring loop
	  so DTMF CID can be detected without the need of a polarity change
	  precursor. (closes issue #9096) Reported by: fleed Patches:
	  9096-chan_dahdi-trunk.diff uploaded by dbailey (license 819)
	  Tested by: cyberplant, sum, maturs

2009-09-03 19:38 +0000 [r216009-216092]  Russell Bryant <russell@digium.com>

	* /, UPGRADE.txt: Merged revisions 216085 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r216085 | russell | 2009-09-03 14:36:46 -0500
	  (Thu, 03 Sep 2009) | 9 lines Merged revisions 216080 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.2
	  ........ r216080 | russell | 2009-09-03 14:35:23 -0500 (Thu, 03
	  Sep 2009) | 2 lines Add a note about IAX2 to UPGRADE.txt.
	  ........ ................

	* /, doc/IAX2-security.pdf (added): Merged revisions 216008 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r216008 | russell | 2009-09-03 13:44:58 -0500
	  (Thu, 03 Sep 2009) | 9 lines Merged revisions 216005 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.2
	  ........ r216005 | russell | 2009-09-03 13:42:24 -0500 (Thu, 03
	  Sep 2009) | 2 lines Add IAX2 security document related to
	  AST-2009-006. ........ ................

2009-09-03 18:42 +0000 [r216006]  Kevin P. Fleming <kpfleming@digium.com>

	* main/file.c, doc/lang/language-criteria.txt (added): Document
	  language prompt submission process. This patch adds a document
	  describing the language prompt submission process, licensing
	  terms and other issues related to that process. In addition, it
	  modifies the sound file searching process to support language
	  codes with any number of suffices (not limited to just "xx" or
	  "xx_YY"), so that prompts can be named with gender,
	  customer/company, etc. suffices as well. (closes issue #15771)
	  Reported by: jtodd Patches: language-criteria.txt uploaded by
	  jtodd

2009-09-03 16:31 +0000 [r215955]  David Vossel <dvossel@digium.com>

	* configs/iax.conf.sample, include/asterisk/acl.h,
	  channels/iax2-parser.h, include/asterisk/astobj2.h,
	  channels/iax2.h, main/acl.c, channels/chan_iax2.c,
	  channels/iax2-parser.c, main/astobj2.c: Merge code associated
	  with AST-2009-006 (closes issue #12912) Reported by: rathaus
	  Tested by: tilghman, russell, dvossel, dbrooks

2009-09-03 13:02 +0000 [r215891]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Add known internal IP address when
	  autodomain=yes (closes issue #14573) Reported by: pj Patches:
	  sip-internip-autodomain1.diff uploaded by mnicholson (license 96)
	  modified by oej Tested by: pj

2009-09-03 05:57 +0000 [r215838]  Michiel van Baak <michiel@vanbaak.info>

	* doc/manager_1_1.txt: Document that SIPshowpeer and SKINNYshowline
	  now include the configured parkinglot in their response. Prodded
	  by snuff-work on #asterisk-dev IRC channel

2009-09-03 03:43 +0000 [r215800-215801]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Default the callback extension to "s". This
	  is a regression. (closes issue #15764) Reported by: elguero
	  Change-type: bugfix

	* include/asterisk.h: Revert attempt to standardize with
	  _POSIX_C_SOURCE. This did not function in the way that was
	  intended, causing more compatibility issues than it solved. It is
	  best, therefore, that it be simply removed. (Discussed with
	  kpfleming; agreement to remove was reached.)

2009-09-02 23:31 +0000 [r215758]  Terry Wilson <twilson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 215682 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r215682 | twilson | 2009-09-02 16:41:22 -0500 (Wed, 02 Sep 2009)
	  | 18 lines Re-send non-100 provisional responses to prevent
	  cancellation From section 13.3.1.1 of RFC 3261: If the UAS
	  desires an extended period of time to answer the INVITE, it will
	  need to ask for an "extension" in order to prevent proxies from
	  canceling the transaction. A proxy has the option of canceling a
	  transaction when there is a gap of 3 minutes between responses in
	  a transaction. To prevent cancellation, the UAS MUST send a
	  non-100 provisional response at every minute, to handle the
	  possibility of lost provisional responses. (closes issue #11157)
	  Reported by: rjain Tested by: twilson Review:
	  https://reviewboard.asterisk.org/r/315/ ........

2009-09-02 23:25 +0000 [r215757]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c,
	  configs/chan_dahdi.conf.sample, CHANGES, channels/sig_pri.c: Made
	  chan_dahdi able to ignore incoming calls that are not in a MSN
	  list for ISDN PTMP CPE spans.

2009-09-02 21:39 +0000 [r215681]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: port string to int conversion using sscanf
	  There are several instances where a port is parsed from a uri or
	  some other source and converted to an int value using atoi(), if
	  for some reason the port string is empty, then a standard port is
	  used. This logic is used over and over, so I created a function
	  to handle it in a safer way using sscanf().

2009-09-02 21:23 +0000 [r215622-215665]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_sip.c, channels/chan_skinny.c: add Parkinglot info
	  to sip show peer <foo> and skinny show line <foo> If we had this
	  from the start, debugging the 'parking not using configured
	  parkinglot' bug would have been easier.

	* main/features.c: - lock channel before looking for a channel
	  variable - Init the parkings list member of struct parkinglot.
	  Thanks Sean for the explanation why this should be here.

2009-09-02 19:49 +0000 [r215608]  Doug Bailey <dbailey@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c: Fix issue where
	  DTMF CID detect was placing channels into signed linear mode made
	  analog_set_linear_mode return back the mode that was being
	  overwritten so it could be restored later.

2009-09-02 18:37 +0000 [r215567]  Tilghman Lesher <tlesher@digium.com>

	* main/Makefile, main/app.c: Close up to the soft open file limit
	  (same on Linux, but varies drastically on OS X). Also, a Makefile
	  fix for Darwin (OS X). (closes issue #14542) Reported by: jtodd
	  Patches: 20090901__issue14542.diff.txt uploaded by tilghman
	  (license 14) Tested by: jtodd, tilghman Change-type: bugfix

2009-09-02 17:26 +0000 [r215522]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: SIP uri parsing cleanup Now, the scheme
	  passed to parse_uri can either be a single scheme, or a list of
	  schemes ',' delimited. This gets rid of the whole problem of
	  having to create two buffers and calling parse_uri twice to check
	  for separate schemes. Review:
	  https://reviewboard.asterisk.org/r/343/

2009-09-02 16:20 +0000 [r215479]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_skinny.c: like in chan_sip's sip_new skinny should
	  copy the configured parkinglot from a line to the newly created
	  channel. This makes callparking honor the configured parkinglot
	  for skinny lines as well.

2009-09-02 16:08 +0000 [r215466]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: SIP support for keep-alive event keep-alive
	  events are used by Sipura/Linksys for NAT keepalive. There
	  currently don't appear to be any problems with NAT, but everytime
	  a keep-alive event is received, Asterisk responds with a "489 Bad
	  event". This error may indicate to a user that NAT problems exist
	  just because this even is not supported. Now, rather than respond
	  with an error, the packet is consumed and a "200 ok" is sent just
	  to indicate we received the packet. (issue #15084) Patches:
	  chan_sip.keepalive.v1.diff uploaded by IgorG (license 20)

2009-09-02 15:56 +0000 [r215419-215462]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_sip.c: Honor configured parkinglot when parking and
	  retrieving parked calls Thank oej for pointing out the fact that
	  sip_new did not copy parkinglot from the peer into the newly
	  created channel. (closes issue #15538) Reported by: gracedman
	  Patches: 2009090100_sipnewparkinglot-161.diff.txt uploaded by
	  mvanbaak (license 7) With mod by me to also fix callparking as
	  well (this uploaded patch only fixed retrieving a parked call)
	  Tested by: gracedman, mvanbaak

	* include/asterisk.h: Let's compile again on OpenBSD

2009-09-02 06:23 +0000 [r215382]  Olle Johansson <oej@edvina.net>

	* CHANGES, res/res_mutestream.c (added): Adding MUTEAUDIO()
	  dialplan function and MuteAudio AMI action (pinepeach) Review:
	  https://reviewboard.asterisk.org/r/345/

2009-09-02 01:16 +0000 [r215338]  Dwayne M. Hubbard <dwayne.hubbard@gmail.com>

	* /, apps/app_softhangup.c: Merged revisions 215270 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r215270 | dhubbard | 2009-09-01 18:04:52 -0500 (Tue, 01
	  Sep 2009) | 12 lines Use strrchr() so SoftHangup will correctly
	  truncate multi-hyphen channel names In general channel names are
	  in the form Foo/Bar-Z, but the channel name could have multiple
	  hyphens and look like Foo/B-a-r-Z. Use strrchr to truncate the
	  channel name at the last hyphen. (closes issue #15810) Reported
	  by: dhubbard Patches: dw-softhangup-1.4.patch uploaded by
	  dhubbard (license 733) ........

2009-09-01 23:41 +0000 [r215222-215301]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c, funcs/func_channel.c, CHANGES: Add
	  MASTER_CHANNEL() dialplan function, as well as a useful usage.
	  (closes issue #13140) Reported by: cpina Patches:
	  20090807__issue13140.diff.txt uploaded by tilghman (license 14)
	  Tested by: lmadsen Change-type: feature

	* channels/chan_sip.c: Fix register such that lines with a
	  transport string, but without an authuser, parse correctly.
	  (AST-228)

2009-09-01 20:44 +0000 [r215212]  Russell Bryant <russell@digium.com>

	* addons/format_mp3.c: Fix memory corruption caused by format_mp3.
	  format_mp3 claimed that it provided AST_FRIENDLY_OFFSET in frames
	  returned by read(). However, it lied. This means that other parts
	  of the code that attempted to make use of the offset buffer would
	  end up corrupting the fields in the ast_filestream structure.
	  This resulted in quite a few crashes due to unexpected values for
	  fields in ast_filestream. This patch closes out quite a few bugs.
	  However, some of these bugs have been open for a while and have
	  been an area where more than one bug has been discussed. So with
	  that said, anyone that is following one of the issues closed
	  here, if you still have a problem, please open a new bug report
	  for the specific problem you are still having. If you do, please
	  ensure that the bug report is based on the newest version of
	  Asterisk, and that this patch is applied if format_mp3 is in use.
	  Thanks! (closes issue #15109) Reported by: jvandal Tested by:
	  aragon, russell, zerohalo, marhbere, rgj (closes issue #14958)
	  Reported by: aragon (closes issue #15123) Reported by:
	  axisinternet (closes issue #15041) Reported by: maxnuv (closes
	  issue #15396) Reported by: aragon (closes issue #15195) Reported
	  by: amorsen Tested by: amorsen (closes issue #15781) Reported by:
	  jensvb (closes issue #15735) Reported by: thom4fun (closes issue
	  #15460) Reported by: marhbere

2009-09-01 19:50 +0000 [r215161]  Kevin P. Fleming <kpfleming@digium.com>

	* main/frame.c: Ensure that frame dumps of
	  AST_CONTROL_T38_PARAMETERS frames are properly decoded.

2009-09-01 14:40 +0000 [r215110]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Removing whitespace that causes red dots in
	  reviewboard

2009-08-31 22:02 +0000 [r215069-215070]  Tilghman Lesher <tlesher@digium.com>

	* main/http.c: Fix a trunk compilation warning.

	* main/manager.c: Properly initialize the session to prevent a
	  crash. (closes issue #15774) Reported by: lasko Patches:
	  20090831__issue15774.diff.txt uploaded by tilghman (license 14)
	  Tested by: lasko

2009-08-31 18:17 +0000 [r215023]  Olle Johansson <oej@edvina.net>

	* funcs/func_volume.c: By copying this code I got bad comments in
	  reviewboard... Better fix the original.

2009-08-31 16:18 +0000 [r214819-214945]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_local.c, /: Merged revisions 214940 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r214940 | tilghman | 2009-08-31 11:16:52 -0500 (Mon, 31
	  Aug 2009) | 7 lines Also unlock the "other" channel, when
	  returning, due to glare. (closes issue #15787) Reported by:
	  tim_ringenbach Patches: chan_local.diff uploaded by tim
	  ringenbach (license 540) Tested by: tim_ringenbach ........

	* Makefile: Force Darwin on ppc platforms to compile with a target
	  level that supports aliasing.

	* include/asterisk.h, main/poll.c: Various patches, to enable
	  Asterisk to once again compile on Mac OS X. One note on defining
	  _POSIX_C_SOURCE: while this feature test macro works to require
	  certain behaviors on Linux, it works differently on *BSD
	  platforms to REMOVE certain API calls that are not in the POSIX
	  specification, such as vasprintf(3). Thus, defining it while
	  depending upon vasprintf (and other extensions to the POSIX
	  standard) to be defined is a recipe to ensure that Asterisk is
	  only buildable on Linux. Hence, this define which was meant to
	  INCREASE portability, effectively ensures the opposite.

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  pbx/pbx_lua.c: If lua is detected with the lua5.1 prefix (or
	  not), adjust the include path accordingly. Based upon feedback to
	  a release announcement on the -users list. See
	  http://lists.digium.com/pipermail/asterisk-users/2009-August/236954.html

2009-08-28 22:44 +0000 [r214777]  Russell Bryant <russell@digium.com>

	* configure: Update configure script so that CONFIG_CFLAGS and
	  CONFIG_LDFLAGS doesn't break the build.

2009-08-28 20:14 +0000 [r214702]  Tilghman Lesher <tlesher@digium.com>

	* main/channel.c, /: Merged revisions 214701 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r214701 | tilghman | 2009-08-28 15:13:32 -0500 (Fri, 28 Aug 2009)
	  | 8 lines Modify comment to be a bit more accurate. We have kept
	  this comment around long enough, that it's pretty clear that
	  we're keeping the code, because changing the code would require a
	  pretty fundamental architectural shift. We've also taken
	  criticism in some quarters, because it was believed that it was
	  referring to the code being nasty. No, the code isn't nasty, just
	  the operation itself is rather odd. Fixed for eternity (probably
	  not). ........

2009-08-28 20:01 +0000 [r214696]  Kevin P. Fleming <kpfleming@digium.com>

	* Makefile, include/asterisk/autoconfig.h.in, configure.ac,
	  makeopts.in: Ensure that CFLAGS and/or LDFLAGS provided to
	  configure script are preserved. Cross-compilation environments
	  want to provide 'defaults' for compiler and linker options, and
	  frequently do this by specifying CFLAGS and LDFLAGS in the
	  environment or as command-line arguments to the configure script.
	  This patch modifies the configure script and Makefile to preserve
	  these settings and ensure they are used in the build process.

2009-08-28 19:13 +0000 [r214654]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Move discardremoteholdretrieval test so it
	  applies only to the specific notification indicator values.

2009-08-28 18:41 +0000 [r214650]  Mark Michelson <mmichelson@digium.com>

	* include/asterisk/sched.h: Fix some incorrect documentation of
	  sched_thread functions.

2009-08-28 16:50 +0000 [r214360-214611]  Tilghman Lesher <tlesher@digium.com>

	* res/res_musiconhold.c: Remove unnecessary define for Solaris
	  (closes issue #15358) Reported by: snuffy Patches:
	  bug_res_moh_remove_unneeded_include.diff uploaded by snuffy
	  (license 35)

	* /, configure, include/asterisk/autoconfig.h.in, configure.ac,
	  autoconf/libcurl.m4 (added): Merged revisions 214517 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r214517 | tilghman | 2009-08-27 16:45:34 -0500 (Thu, 27
	  Aug 2009) | 7 lines Use autoconf to detect libcurl, as this
	  enables cross-compilation checks, something we didn't allow
	  before. (closes issue #15714) Reported by: pprindeville Patches:
	  20090813__issue15714.diff.txt uploaded by tilghman (license 14)
	  Tested by: pprindeville ........

	* main/manager.c: Ensure that we check for the special value
	  CONFIG_STATUS_FILEINVALID. (closes issue #15786) Reported by:
	  a_villacis Patches:
	  asterisk-1.6.2.0-beta4-manager-fix-crash-on-include-nonexistent-file.patch
	  uploaded by a villacis (license 660) (Plus a few of my own, to
	  catch the remaining places within manager.c where it could have
	  been a problem)

	* /, configure, include/asterisk/autoconfig.h.in, configure.ac,
	  autoconf/ast_ext_lib.m4: Merged revisions 214436 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r214436 | tilghman | 2009-08-27 11:53:58 -0500 (Thu, 27
	  Aug 2009) | 2 lines One more build system change, to make the
	  descriptions look better, if we have better information. ........

	* /, configure, include/asterisk/autoconfig.h.in,
	  autoconf/ast_ext_lib.m4: Merged revisions 214357 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r214357 | tilghman | 2009-08-27 11:03:50 -0500 (Thu, 27
	  Aug 2009) | 3 lines Make autoheader descriptions render correctly
	  in our autoconfig.h file. (Figured out while working with issue
	  #14906) ........

2009-08-27 15:57 +0000 [r214309-214355]  Jeff Peeler <jpeeler@digium.com>

	* doc/tex/channelvariables.tex: Add forgotten documentation for new
	  channel variables added in 214309.

	* main/features.c, CHANGES: Add two new dialplan variables when
	  using features Added DYNAMIC_FEATURENAME which holds the last
	  triggered dynamic feature. Added DYNAMIC_PEERNAME which holds the
	  unique channel name on the other side and is set when a dynamic
	  feature is triggered. (closes issue #14663) Reported by: tamiel
	  Patches: 20090313_features.diff uploaded by tamiel (license 712)
	  Tested by: tamiel

2009-08-26 21:56 +0000 [r214272]  Richard Mudgett <rmudgett@digium.com>

	* configs/chan_dahdi.conf.sample: Minor punctuation change.

2009-08-26 16:53 +0000 [r214199]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Typo fix ("SIP/2.0 XXX" is 11 chars, not 10)
	  (closes issue #15362) Reported by: klaus3000 Patches:
	  chan_sip.c_logmessagefix_patch.txt uploaded by klaus3000 (license
	  65)

2009-08-26 16:38 +0000 [r214195]  David Vossel <dvossel@digium.com>

	* main/channel.c, /: Merged revisions 214194 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r214194 | dvossel | 2009-08-26 11:36:42 -0500 (Wed, 26 Aug 2009)
	  | 19 lines ast_write() ignores ast_audiohook_write() results In
	  ast_write(), if a channel has a list of audiohooks, those lists
	  are written to and the resulting frame is what ast_write() should
	  continue with. The problem was the returned audiohook frame was
	  not being handled at all, and the original frame passed into it
	  did not contain the mixed audio, so essentially audio was being
	  lost. One result of this was chan_spy's whisper mode no longer
	  worked. To complicate the issue, frames passed into ast_write may
	  either be a single frame, or a list of frames. So, as the list of
	  frames is processed in the audiohook_write, the returned frames
	  had to be added to a new list. (closes issue #15660) Reported by:
	  corruptor Tested by: dvossel ........

2009-08-25 22:39 +0000 [r213900-214152]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac: Not
	  all versions of gnu-linux use glibc, which contains iconv. Some
	  (especially embedded systems) don't have iconv at all. (closes
	  issue #15169) Reported by: pprindeville

	* /, main/say.c: Merged revisions 214068-214069 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r214068 | tilghman | 2009-08-25 14:26:50 -0500 (Tue, 25 Aug 2009)
	  | 6 lines Fix pronunciation of German dates. (closes issue
	  #15273) Reported by: Benjamin Kluck Patches: say_c.patch uploaded
	  by Benjamin Kluck (license 803) ........ r214069 | tilghman |
	  2009-08-25 14:28:42 -0500 (Tue, 25 Aug 2009) | 2 lines I should
	  always compile before committing... ........

	* pbx/pbx_dundi.c: DUNDILOOKUP function in 1.6 should use comma
	  delimiters. (closes issue #15322) Reported by: chappell Patches:
	  dundilookup-0015322.patch uploaded by chappell (license 8)

	* main/pbx.c, /: Merged revisions 213970 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r213970 | tilghman | 2009-08-25 01:34:44 -0500 (Tue, 25 Aug 2009)
	  | 7 lines Improve error message by informing user exactly which
	  function is missing a parethesis. (closes issue #15242) Reported
	  by: Nick_Lewis Patches: pbx.c-funcparenthesis.patch2 uploaded by
	  dbrooks (license 790) pbx.c-funcparenthesis-1.4.diff uploaded by
	  loloski (license 68) ........

	* Makefile: The DTD should be installed in the same path as the
	  rest of the XML documentation. (closes issue #15344) Reported by:
	  tzafrir Patches: makefile_appdocs_dtd.diff uploaded by tzafrir
	  (license 46)

	* Makefile, /: Merged revisions 213899 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r213899 | tilghman | 2009-08-24 21:40:22 -0500 (Mon, 24 Aug 2009)
	  | 4 lines Use the default runlevels for Debian derivatives,
	  instead of making up our own. (closes issue #14730) Reported by:
	  pkempgen ........

2009-08-24 16:43 +0000 [r213833]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c: Fix storage of greetings when using
	  IMAP_STORAGE The store macro was not getting called preventing
	  storage of IMAP greetings at all. This has been corrected along
	  with fixing checking if the imapgreetings option is turned on to
	  store the greeting in IMAP. Lastly, the attachment filename was
	  incorrectly using the full path instead of just the basename,
	  which was causing problems with retrieval of the greeting.
	  (closes issue #14950) Reported by: noahisaac (closes issue
	  #15729) Reported by: lmadsen

2009-08-24 04:46 +0000 [r213790]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c: improve handling of
	  openr2_chan_disconnect_call API failure, unlikely, but happened
	  on openr2 library bug

2009-08-21 23:18 +0000 [r213748]  Richard Mudgett <rmudgett@digium.com>

	* configure, configure.ac, channels/sig_pri.c: Update configure
	  script for libpri COLP feature dependency requirements.

2009-08-21 22:36 +0000 [r213738]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Clarifying comments in sip_register, and
	  removing a dead section

2009-08-21 22:22 +0000 [r213716]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Register request line contains wrong address
	  when user domain and register host differ (closes issue #15539)
	  Reported by: Nick_Lewis Patches: chan_sip.c-registraraddr.patch
	  uploaded by Nick (license 657) register_domain_fix_1.6.2 uploaded
	  by dvossel (license 671) Tested by: Nick_Lewis, dvossel

2009-08-21 21:39 +0000 [r213697]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_voicemail.c: Ensure that realtime mailboxes properly
	  report status on subscription. This patch modifies
	  app_voicemail's response to mailbox status subscriptions (via the
	  internal event system) to ensure that a subscription triggers an
	  explicit poll of the mailbox, so the subscriber can get an
	  immediate cached event with that status. Previously, the cache
	  was only populated with the status of non-realtime mailboxes.
	  (closes issue #15717) Reported by: natmlt

2009-08-21 21:02 +0000 [r213635]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fixes sip register parsing when user@domain
	  is used (issue #15008) (issue #15672)

2009-08-21 16:53 +0000 [r213560]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk.h, /: Merged revisions 213559 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r213559 | tilghman | 2009-08-21 11:52:53 -0500 (Fri, 21 Aug 2009)
	  | 7 lines Permit DEBUG_FD_LEAKS to be used with C++ source files.
	  (closes issue #15698) Reported by: slavon Patches:
	  20090817__issue15698.diff.txt uploaded by tilghman (license 14)
	  Tested by: slavon, tilghman ........

2009-08-21 16:04 +0000 [r213494]  Jason Parker <jparker@digium.com>

	* /, configs/queues.conf.sample: Merged revisions 213493 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r213493 | qwell | 2009-08-21 11:03:21 -0500 (Fri, 21 Aug 2009) |
	  5 lines Clarify queues.conf comments to specify that variables
	  should be set in the dialplan. (closes issue #15755) Reported by:
	  trendboy ........

2009-08-21 04:09 +0000 [r213454]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c: increment the mfcr2 monitor count when
	  clearing the call request

2009-08-21 03:48 +0000 [r213450]  Terry Wilson <twilson@digium.com>

	* main/loader.c: Make LOAD_ORDER actually work

2009-08-20 22:13 +0000 [r213414]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_queue.c: Add original position, when logging a caller
	  entering a queue. (closes issue #15146) Reported by: arabe
	  Patches: asterisk-trunk.patch uploaded by arabe (license 786)

2009-08-20 21:33 +0000 [r213404]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.c: Fix greeting retrieval from IMAP Properly
	  check for the current voicemail state and if it doesn't exist,
	  create it. (closes issue #14597) Reported by: wtca Patches:
	  14597_v2.patch uploaded by mmichelson (license 60) Tested by:
	  jpeeler

2009-08-20 20:29 +0000 [r213327]  Matthew Nicholson <mnicholson@digium.com>

	* main/features.c: Fix a crash by checking the proper pointer for
	  validity before deferencing it. (closes issue #15751) Reported
	  by: atis Patches: ast_bridge_call_peer_cdr.patch uploaded by atis
	  (license 242)

2009-08-20 19:56 +0000 [r213284]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_voicemail.exports (added), /: Merged revisions 213283
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r213283 | jpeeler | 2009-08-20 14:53:34 -0500 (Thu, 20 Aug 2009)
	  | 2 lines Make all the symbols for the C-client callbacks global
	  ........

2009-08-20 15:29 +0000 [r213248]  Tilghman Lesher <tlesher@digium.com>

	* addons/res_config_mysql.c: Select uncommented lines, not
	  commented ones. (closes issue #15746) Reported by: makoto

2009-08-20 03:26 +0000 [r213216]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c: fixed bug caused by calling ast_request
	  without calling ast_call on an R2 channel, ie, CHANISAVAIL

2009-08-19 22:38 +0000 [r213179]  Jason Parker <jparker@digium.com>

	* main/ulaw.c, main/alaw.c: Fix compile when certain G711
	  menuselect options are enabled. (closes issue #15697) Reported
	  by: slavon

2009-08-19 21:21 +0000 [r213113]  David Vossel <dvossel@digium.com>

	* /, apps/app_mixmonitor.c: Merged revisions 213103 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r213103 | dvossel | 2009-08-19 16:18:37 -0500 (Wed, 19
	  Aug 2009) | 8 lines Fixes memory leak caused by incorrectly
	  freeing mixmonitor (closes issue #15699) Reported by: edantie
	  Patches: mixmonitor.patch uploaded by edantie (license 862)
	  ........

2009-08-19 21:05 +0000 [r213093-213098]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample: Better parsing for
	  the "register" line Allows characters that are otherwise used as
	  delimiters to be used within certain fields (like the secret).
	  (closes issue #15008, closes issue #15672) Reported by: tilghman
	  Patches: 20090818__issue15008.diff.txt uploaded by tilghman
	  (license 14) Tested by: lmadsen, tilghman

	* channels/chan_sip.c: If we have realtime caching enabled, 'sip
	  reload' must purge users/peers, even if the config files haven't
	  changed. (closes issue #12869) Reported by: bcnit Patches:
	  20090819__issue12869__2.diff.txt uploaded by tilghman (license
	  14) Tested by: lasko

2009-08-19 15:32 +0000 [r213046]  Russell Bryant <russell@digium.com>

	* main/features.c: Don't blow up on a NULL cdr. Reported in
	  #asterisk-dev.

2009-08-18 23:53 +0000 [r213007]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, CHANGES, channels/sig_pri.c: Add COLP support
	  to chan_dahdi/sig_pri. Add Connected Line Presentation (COLP)
	  support to chan_dahdi/libpri as an addition to issue 8824. This
	  is the chan_dahdi/sig_pri portion. COLP support is now available
	  for any switch for which libpri supports COLP (currently ETSI
	  PTP, ETSI PTMP, and Q.SIG) with this patch. (closes issue #14068)
	  Tested by: rmudgett Review:
	  https://reviewboard.asterisk.org/r/340/

2009-08-18 20:33 +0000 [r212922-212939]  Kevin P. Fleming <kpfleming@digium.com>

	* /: Remove some accidentally-committed properties.

	* CREDITS, /, UPGRADE-1.4.txt, sounds/sounds.xml,
	  build_tools/prep_tarball, sounds/Makefile, doc/tex/asterisk.tex:
	  Convert this branch to Opsound music-on-hold. For more details:
	  http://blogs.digium.com/2009/08/18/asterisk-music-on-hold-changes/

2009-08-18 19:49 +0000 [r212857-212883]  Tilghman Lesher <tlesher@digium.com>

	* addons/res_config_mysql.c: Clarify some of the error messages, to
	  help upgraders.

	* configs/extconfig.conf.sample: Make the default extconfig.conf
	  match entries with the sample res_mysql.conf. This eliminates a
	  future source of possible confusion with the configuration of
	  1.6.1 and higher.

2009-08-18 18:57 +0000 [r212844]  Olle Johansson <oej@edvina.net>

	* apps/app_meetme.c: Small doxygen changes

2009-08-18 16:38 +0000 [r212764]  Sean Bright <sean@malleable.com>

	* main/manager.c, /: Merged revisions 212763 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r212763 | seanbright | 2009-08-18 12:36:00 -0400 (Tue, 18 Aug
	  2009) | 11 lines Delay the creation of temporary files until we
	  have a valid manager command to handle. Without this patch,
	  asterisk creates a temporary file before determining if the
	  specified command is valid. If invalid, we weren't properly
	  cleaning up the file. (closes issue #15730) Reported by: zmehmood
	  Patches: M15730.diff uploaded by junky (license 177) Tested by:
	  zmehmood ........

2009-08-18 16:29 +0000 [r212758]  Richard Mudgett <rmudgett@digium.com>

	* /, channels/misdn/isdn_lib.c: Merged revisions 212727 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r212727 | rmudgett | 2009-08-18 11:00:56 -0500 (Tue, 18 Aug 2009)
	  | 1 line Removed some deadwood and added some doxygen comments.
	  ........

2009-08-17 20:40 +0000 [r212672]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk.h: Relax check for XOPEN_VERSION. It's not clear
	  that we actually require XOPEN_VERSION to be 600 or greater at
	  this time, so skip the check for now.

2009-08-17 19:57 +0000 [r212627]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Check the return value of opendir(3), or we
	  may crash. (closes issue #15720) Reported by: tobias_e

2009-08-17 18:50 +0000 [r212574-212581]  Sean Bright <sean@malleable.com>

	* channels/chan_agent.c: Correct spelling of AGENTACCEPTDTMF in
	  chan_agent. (closes issue #15668) Reported by: davidw

	* main/logger.c: Correct the return value check for
	  ast_safe_system. The logic here was reversed as ast_safe_system
	  returns -1 on error and not on success. Fix suggested by
	  reporter. (closes issue #15667) Reported by: loic

2009-08-17 16:50 +0000 [r212506]  Jeff Peeler <jpeeler@digium.com>

	* /, channels/misdn_config.c: Merged revisions 212498 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r212498 | jpeeler | 2009-08-17 11:34:56 -0500 (Mon, 17
	  Aug 2009) | 12 lines Fix segfault when reloading chan_misdn. If
	  more ports were specified than configured in misdn.conf a reload
	  would crash asterisk. The problem was the unconfigured port was
	  using data from the previously configured port. When the data for
	  an unconfigured port was freed a crash would result from the
	  double free. (closes issue #12113) Reported by: agupta Patches:
	  bug12113.patch uploaded by jpeeler (license 325) ........

2009-08-17 16:25 +0000 [r212463]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk.h, main/xml.c: Define our desires for POSIX and
	  X/OPEN API features properly. Based on a post on the gcc-help
	  mailing list and some subsequent reading, we can increase our
	  portability to various platforms by directly defining the POSIX
	  and X/OPEN API feature sets we wish to have available. This patch
	  does that, and also includes a double-check to ensure that the
	  system we are compiling on can actually provide the requested
	  feature sets.

2009-08-17 15:42 +0000 [r212431]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c, /: Merged revisions
	  212430 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 Fix
	  uninitialized variable causing random MWI indications. (closes
	  issue #15727) Reported by: doda Patches: dahdi_changes.patch
	  uploaded by doda (license 853) ........ r212430 | rmudgett |
	  2009-08-17 10:36:28 -0500 (Mon, 17 Aug 2009) | 1 line Fix
	  uninitialized variable. ........

2009-08-16 19:27 +0000 [r212390]  Joshua Colp <jcolp@digium.com>

	* main/rtp_engine.c, include/asterisk/rtp_engine.h: Add two more
	  API calls for getting the current glue and channel in bridging
	  code.

2009-08-15 11:36 +0000 [r212339-212343]  Michiel van Baak <michiel@vanbaak.info>

	* res/res_calendar.c: cast time_t type variables to long where
	  needed. This makes res_calendar.c compile on OpenBSD and the same
	  cast is used in a lot of other places where time_t type vars are
	  used. (closes issue #15656) Reported by: mvanbaak Patches:
	  2009081100-rescalendarcompilefix.diff.txt uploaded by mvanbaak
	  (license 7)

	* main/xmldoc.c: Add an empty line after each option when printing
	  the documentation of a function/application. This will make
	  reading the docs on the CLI way more easy. (closes issue #15694)
	  Reported by: mvanbaak Patches:
	  2009081100-extralinesoptionlist.diff.txt uploaded by mvanbaak
	  (license 7)

2009-08-14 23:07 +0000 [r212287-212291]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_analog.c: Add braces where missing and a few
	  whitespace fixes in sig_analog (closes issue #15678) Reported by:
	  alecdavis Patches: sig_analog_mainly_braces.diff.txt uploaded by
	  alecdavis (license 585) Tested by: alecdavis

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: More code that somehow got left out of
	  sig_analog * confirmanswer option now respected * check and set
	  waiting for dialtone timer * unneeded needcallerid flag removed
	  from analog_subchannel * ss_astchan does not need to be a void
	  pointer * swap_channels callback updated to trunk * analog_hangup
	  now resets channel to default law

2009-08-14 17:36 +0000 [r212249]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_curl.c: Add SSL_VERIFYPEER, as requested on the -users
	  list

2009-08-13 17:33 +0000 [r212199]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c: Send a generic return result when we
	  receive a CallDeflection facility message in chan_misdn. ETSI
	  300-196 implies that a facility return result without arguments
	  does not have the operation-value. This fact implies for ETSI
	  that you can only use the invoke-id to match requests with
	  responses.

2009-08-13 16:44 +0000 [r212161]  Joshua Colp <jcolp@digium.com>

	* main/rtp_engine.c, include/asterisk/rtp_engine.h: Add an API call
	  for retrieving the engine in use by an RTP instance.

2009-08-13 15:46 +0000 [r212113]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_sip.c: Ensure that T38FaxVersion is put into
	  outgoing SDP in the proper case.

2009-08-13 13:51 +0000 [r212067]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Check an actual populated variable when
	  seeing if we need to do video or not.

2009-08-13 11:37 +0000 [r212027]  Gavin Henry <ghenry@suretecsystems.com>

	* contrib/scripts/asterisk.ldap-schema,
	  contrib/scripts/asterisk.ldif: Fixed typo (closes issue #15710)
	  Reported by: suretec

2009-08-12 23:14 +0000 [r211947-211957]  Matthew Nicholson <mnicholson@digium.com>

	* /, apps/app_queue.c: Merged revisions 211953 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r211953 | mnicholson | 2009-08-12 18:04:02 -0500 (Wed, 12 Aug
	  2009) | 10 lines This patch adds additional checking when
	  generating queue log TRANSFER events. The additional checks
	  prevent generation of false TRANSFER events in certain
	  situations. (closes issue #14536) Reported by: aragon Patches:
	  queue-log-xfer-fix1.diff uploaded by mnicholson (license 96)
	  Tested by: aragon, mnicholson ........

	* channels/chan_sip.c, configs/sip.conf.sample: This patch adds
	  support for choosing a realm based on the domain in the From or
	  To header in the incoming request. Eligible domains are taken
	  from the domains list in the config file. This functionality is
	  enabled when domainsasrealm is enabled in the config file.
	  (closes issue #11361) Reported by: arkadia Patches:
	  sip_realm_mnich_to_added_2.patch uploaded by arkadia (license
	  233) Tested by: arkadia

2009-08-12 20:47 +0000 [r211908]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: Fix chan_dahdi option ringtimeout
	  dahdi_read relies on the dahdi_pvt copy of ringt which was not
	  getting set in sig_analog. This patch adds a callback to do so.
	  (closes issue #15288) Reported by: alecdavis Patches:
	  chan_dahdi.ringtimeout.diff.txt uploaded by alecdavis (license
	  585) Tested by: alecdavis

2009-08-12 19:53 +0000 [r211876]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Make asterisk handle 423 Interval Too Short
	  messages better. This change uses separate values for the
	  acceptable minimum expiry provided by the 423 error and the
	  expiry value stored in the configuration file. Previously, the
	  value pulled from the configuration file would be overwritten.
	  (closes issue #14366) Reported by: Nick_Lewis Patches:
	  sip-expiry-fix1.diff uploaded by mnicholson (license 96)
	  chan_sip.c-reqexpiry.patch uploaded by Nick (license 657) Tested
	  by: mnicholson

2009-08-12 16:00 +0000 [r211767]  Gavin Henry <ghenry@suretecsystems.com>

	* res/res_config_ldap.c, contrib/scripts/asterisk.ldap-schema,
	  contrib/scripts/asterisk.ldif: Added three new attributes and
	  applied a patch to res_config_ldap.c attributetype (
	  AstAccountSubscribeContext NAME 'AstAccountSubscribeContext' DESC
	  'Asterisk subscribe context' EQUALITY caseIgnoreMatch SUBSTR
	  caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
	  attributetype ( AstAccountIpAddr NAME 'AstAccountIpAddr' DESC
	  'Asterisk aaccount IP address' EQUALITY caseIgnoreMatch SUBSTR
	  caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15)
	  attributetype ( AstAccountUserAgent NAME 'AstAccountUserAgent'
	  DESC 'Asterisk account user context' EQUALITY caseIgnoreMatch
	  SUBSTR caseIgnoreSubstringsMatch SYNTAX
	  1.3.6.1.4.1.1466.115.121.1.15) and patch
	  fix_empty_attributes_1.6.1.4_v2.patch (closes issue #13725)
	  Reported by: macogeek Patches:
	  fix_empty_attributes_1.6.1.4_v2.patch uploaded by xvisor (license
	  863) Tested by: suretec

2009-08-12 10:11 +0000 [r211732]  Russell Bryant <russell@digium.com>

	* channels/chan_jingle.c, channels/chan_unistim.c,
	  channels/chan_skinny.c, channels/chan_h323.c,
	  channels/chan_gtalk.c, channels/chan_mgcp.c: Always specify which
	  RTP engine is desired for a new RTP instance. This fixes a crash
	  reported in #asterisk-dev where chan_mgcp unexpectedly allocated
	  an RTP instance from res_rtp_multicast, since by not specifying
	  an engine, you get the first one in the list of engines.

2009-08-10 23:21 +0000 [r211675]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Encapsulate testing for which signaling
	  styles are used by sig_pri. Created the
	  dahdi_sig_pri_lib_handles() function and SIG_PRI_LIB_HANDLE_CASES
	  macro to simplify testing for which signaling styles are handled
	  by sig_pri.

2009-08-10 19:49 +0000 [r211539-211584]  Tilghman Lesher <tlesher@digium.com>

	* doc/CODING-GUIDELINES, /: Merged revisions 211583 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r211583 | tilghman | 2009-08-10 14:48:48 -0500 (Mon, 10
	  Aug 2009) | 1 line Conversion specifiers, not format specifiers
	  ........

	* cel/cel_pgsql.c, funcs/func_speex.c, funcs/func_rand.c,
	  apps/app_dahdibarge.c, main/frame.c, addons/chan_ooh323.c,
	  apps/app_readfile.c, /, apps/app_record.c,
	  apps/app_alarmreceiver.c, cdr/cdr_adaptive_odbc.c,
	  res/res_http_post.c, channels/chan_iax2.c, main/indications.c,
	  main/config.c, main/cli.c, pbx/pbx_loopback.c,
	  channels/chan_dahdi.c, pbx/pbx_spool.c, res/res_smdi.c,
	  channels/chan_skinny.c, main/features.c, main/http.c, main/pbx.c,
	  funcs/func_sprintf.c, funcs/func_timeout.c, apps/app_privacy.c,
	  codecs/codec_speex.c, channels/chan_agent.c, funcs/func_math.c,
	  apps/app_disa.c, apps/app_morsecode.c, channels/iax2-provision.c,
	  funcs/func_cut.c, apps/app_talkdetect.c, main/netsock.c,
	  res/res_config_curl.c, channels/chan_misdn.c,
	  apps/app_waitforring.c, funcs/func_channel.c, apps/app_macro.c,
	  addons/cdr_mysql.c, pbx/pbx_config.c, apps/app_mixmonitor.c,
	  apps/app_chanspy.c, main/asterisk.c, res/res_odbc.c,
	  cel/cel_adaptive_odbc.c, main/timing.c, apps/app_voicemail.c,
	  doc/CODING-GUIDELINES, addons/app_mysql.c, utils/muted.c,
	  apps/app_meetme.c, main/utils.c, res/res_musiconhold.c,
	  cdr/cdr_pgsql.c, apps/app_followme.c, res/res_config_sqlite.c,
	  main/enum.c, utils/frame.c, channels/misdn_config.c,
	  main/channel.c, res/ael/pval.c, main/cdr.c, funcs/func_enum.c,
	  channels/chan_phone.c, main/manager.c, apps/app_setcallerid.c,
	  apps/app_osplookup.c, funcs/func_odbc.c, res/res_agi.c,
	  apps/app_minivm.c, channels/xpmr/xpmr.c, res/res_config_ldap.c,
	  apps/app_rpt.c, channels/chan_mgcp.c, apps/app_adsiprog.c,
	  res/res_config_pgsql.c, funcs/func_dialplan.c, main/dnsmgr.c,
	  channels/chan_sip.c, res/res_limit.c, apps/app_waitforsilence.c,
	  agi/eagi-test.c, main/acl.c, apps/app_waituntil.c,
	  apps/app_originate.c, channels/sig_pri.c, apps/app_queue.c,
	  channels/chan_oss.c, agi/eagi-sphinx-test.c,
	  channels/chan_usbradio.c, res/snmp/agent.c, pbx/pbx_dundi.c,
	  apps/app_sms.c, utils/extconf.c, apps/app_stack.c,
	  apps/app_verbose.c, addons/app_saycountpl.c, main/dsp.c,
	  addons/res_config_mysql.c: AST-2009-005

2009-08-10 18:01 +0000 [r211475]  Michiel van Baak <michiel@vanbaak.info>

	* channels/chan_skinny.c: add manager events when a skinny device
	  registers/unregisters like we have in chan_sip (closes issue
	  #15499) Reported by: arifzaman Patches:
	  2009072600-skinnymanagerevents.diff.txt uploaded by mvanbaak
	  (license 7)

2009-08-10 17:17 +0000 [r211435]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_pri.c: Fix PRI/BRI channels
	  when in alarm condition to only be marked for hangup if T309 is
	  not enabled.

2009-08-10 15:53 +0000 [r211392]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  Restoring some code to sig_pri. Not sure if it is really needed.
	  Putting some DSP code back into sig_pri that was removed by the
	  chan_dahdi/sig_pri reorganization.

2009-08-10 15:46 +0000 [r211390]  Russell Bryant <russell@digium.com>

	* main/channel.c: Fix up some issues with getting a channel by
	  "name". Even though the get_channel_by_name() API advertised that
	  you could search by name or uniqueid (just as the old API did),
	  searching by uniqueid was not actually implemented. This patch
	  fixes that problem. The ast_channel_get_full() function now makes
	  a second search attempt by uniqueid if the parameter was a name.
	  The channel comparison function also now knows how to compare by
	  unqieueid. Finally, a bug was fixed in passing where OBJ_POINTER
	  was being passed in some scenarios where it should not have been.

2009-08-10 14:07 +0000 [r211347]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix retrieval of the port used for the video
	  stream when adding SDP to a SIP message. (closes issue #15121)
	  Reported by: jsmith

2009-08-09 15:42 +0000 [r211232-211275]  Tilghman Lesher <tlesher@digium.com>

	* /, main/astfd.c: Merged revisions 211274 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r211274 | tilghman | 2009-08-09 10:41:01 -0500 (Sun, 09 Aug 2009)
	  | 2 lines Small oops. Clear the flags which have been checked.
	  ........

	* apps/app_stack.c: Check for NULL frame, before dereferencing
	  pointer. (closes issue #15617) Reported by: rain

2009-08-07 23:30 +0000 [r211191-211197]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Fixed some unsafe down cast pointer
	  operations for sig_pri. You cannot cast the struct
	  dahdi_pvt.sig_pvt pointer to a specific signaling private pointer
	  without first checking that it is in fact pointing to the correct
	  signaling private structure.

	* channels/sig_pri.c: Fix static on line when PRI does overlap
	  dialing. The wrong encoding law was used because = was used when
	  it should have been ==.

2009-08-07 20:12 +0000 [r211113]  Russell Bryant <russell@digium.com>

	* /: Recorded merge of revisions 211112 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r211112 | russell | 2009-08-07 15:11:31 -0500 (Fri, 07 Aug 2009)
	  | 4 lines Resolve a deadlock involving app_chanspy and
	  masquerades. (ABE-1936) ........

2009-08-07 18:17 +0000 [r211040]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_queue.c: Merged revisions 211038 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r211038 | tilghman | 2009-08-07 13:16:28 -0500 (Fri, 07 Aug 2009)
	  | 14 lines QUEUE_MEMBER_LIST _really_ wants the interface name,
	  not the membername. This is a partial revert of revision 82590,
	  which was an attempted cleanup, but in reality, it broke
	  QUEUE_MEMBER_LIST, which has always been intended as a method by
	  which component interfaces could be queried from the queue.
	  Membername isn't useful here, because that field cannot be used
	  to obtain further information about the member. See the
	  documentation on QUEUE_MEMBER_LIST, RemoveQueueMember,
	  QUEUE_MEMBER_PENALTY, and the various AMI commands which take a
	  member argument for further justification. (closes issue #15664)
	  Reported by: rain Patches: app_queue-queue_member_list.diff
	  uploaded by rain (license 327) ........

2009-08-07 13:08 +0000 [r210992]  Kevin P. Fleming <kpfleming@digium.com>

	* main/udptl.c: Workaround broken T.38 endpoints that offer tiny
	  MaxDatagram sizes. Some T.38 endpoints treat T38FaxMaxDatagram as
	  the maximum IFP size that should be sent to them, rather than the
	  maximum packet payload size. If such an endpoint also requests
	  UDPRedundancy as the error correction mode, we'll end up
	  calculating a tiny maximum IFP size, so small as to be unusable.
	  This patch sets a lower bound on what we'll consider the remote's
	  maximum IFP size to be, assuming that endpoints that do this
	  really can accept larger packets than they've offered to accept.
	  (closes issue #15649) Reported by: dazza76

2009-08-06 21:46 +0000 [r210908-210914]  Tilghman Lesher <tlesher@digium.com>

	* main/channel.c, /: Merged revisions 210913 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r210913 | tilghman | 2009-08-06 16:45:01 -0500 (Thu, 06 Aug 2009)
	  | 7 lines Because channel information can be accessed outside of
	  the channel thread, we must lock the channel prior to modifying
	  it. (closes issue #15397) Reported by: caspy Patches:
	  20090714__issue15397.diff.txt uploaded by tilghman (license 14)
	  Tested by: caspy ........

	* include/asterisk/app.h, main/app.c, apps/app_stack.c: Allow Gosub
	  to recognize quote delimiters without consuming them. (closes
	  issue #15557) Reported by: rain Patches:
	  20090723__issue15557.diff.txt uploaded by tilghman (license 14)
	  Tested by: rain Review: https://reviewboard.asterisk.org/r/316/

2009-08-06 20:15 +0000 [r210866-210869]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_analog.c: Miscellaneous minor fixes to sig_analog. *
	  Sanity adjustments to __analog_ss_thread for sig_analog
	  environment. * Deleted some duplicated code. * Fixed
	  analog_ss_thread_start passing the wrong pointer.

	* channels/sig_pri.c: Sanity adjustments to pri_ss_thread for
	  sig_pri environment.

2009-08-06 17:47 +0000 [r210817]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Accept additional T.38 reinvites after an
	  initial one has been handled. Discussion of this subject has
	  yielded that it is not actually acceptable to change T.38
	  parameters after the initial reinvite but declining is harsh and
	  can cause the fax to fail when it may be possible to allow it to
	  continue. This patch changes things so that additional T.38
	  reinvites are accepted but parameter changes ignored. This gives
	  the fax a fighting chance. (closes issue #15610) Reported by:
	  huangtx2009

2009-08-06 16:07 +0000 [r210777]  Kevin P. Fleming <kpfleming@digium.com>

	* configure, include/asterisk/autoconfig.h.in, apps/app_fax.c,
	  configure.ac: Minor improvements to app_fax. This patch makes
	  some small changes to handle watchdog timeouts in a better way,
	  and also uses a 'cleaner' method of including the spandsp header
	  files. (closes issue #14769) Reported by: andrew Patches:
	  app_fax-20090406.diff uploaded by andrew (license 240)
	  v1-14769.patch uploaded by dimas (license 88) Tested by: freh,
	  deti, caspy, dimas, sgimeno, Dovid

2009-08-05 23:44 +0000 [r210640-210732]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.c: Fix potential deadlock issue with
	  USERUSERINFO channel variable.

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  More changes from chan_dahdi that did not make it into sig_pri. *
	  Q.SIG channel mapping option. * discardremoteholdretrieval
	  option. * libPRI debug defines. * pri_set_overlapdial() now set
	  correctly. * pthread creation of pri_ss_thread now matches.

	* /, channels/sig_pri.c: Merged revisions 210575 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r210575 | rmudgett | 2009-08-05 14:18:56 -0500 (Wed, 05 Aug 2009)
	  | 14 lines Dialplan starts execution before the channel setup is
	  complete. * Issue 15655: For the case where dialing is complete
	  for an incoming call, dahdi_new() was asked to start the PBX and
	  then the code set more channel variables. If the dialplan hungup
	  before these channel variables got set, asterisk would likely
	  crash. * Fixed potential for overlap incoming call to erroneously
	  set channel variables as global dialplan variables if the
	  ast_channel structure failed to get allocated. * Added missing
	  set of CALLINGSUBADDR in the dialing is complete case. (closes
	  issue #15655) Reported by: alecdavis ........

2009-08-05 18:49 +0000 [r210564]  Leif Madsen <lmadsen@digium.com>

	* doc/tex/imapstorage.tex, /: Merged revisions 210563 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r210563 | lmadsen | 2009-08-05 13:46:21 -0500 (Wed, 05
	  Aug 2009) | 11 lines Update imapstorage.txt documentation.
	  Updated the imapstorage.txt documentation to reflect that issues
	  with c-client versions older than 2007 seem to cause crashing
	  issues that are not seen with more recent versions. Documentation
	  has been updated to reflect this. (closes issue #14496) Reported
	  by: vbcrlfuser Patches: __20090727-imap-documentation-patch.txt
	  uploaded by lmadsen (license 10) Tested by: lmadsen, mmichelson,
	  dbrooks ........

2009-08-05 14:09 +0000 [r210522]  Russell Bryant <russell@digium.com>

	* main/file.c: Revert some silly code that snuck into trunk from my
	  working copy. Sorry!

2009-08-05 08:03 +0000 [r210478]  Michiel van Baak <michiel@vanbaak.info>

	* addons/mp3: ignore the .i files when compiling in 'DONT_OPTIMIZE'
	  in the addons/mp3 directory

2009-08-04 17:46 +0000 [r210353-210387]  Richard Mudgett <rmudgett@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  Fix CALLERID() values for sig_pri on incoming calls.

	* main/channel.c, include/asterisk/channel.h: Initial minimum
	  ast_party_caller support.

	* channels/chan_dahdi.c: Removed some dead code.

2009-08-04 15:35 +0000 [r210302]  Jeff Peeler <jpeeler@digium.com>

	* main/features.c: Fix broken call pickup The find_channel_by_group
	  callback was only looking at the channel that was attempting to
	  make the pickup instead of the other channels in the container.

2009-08-04 14:53 +0000 [r210190-210238]  Kevin P. Fleming <kpfleming@digium.com>

	* Makefile, /: Merged revisions 210237 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r210237 | kpfleming | 2009-08-04 09:51:39 -0500 (Tue, 04 Aug
	  2009) | 10 lines Eliminate spurious compiler warnings from system
	  headers on *BSD platforms. Ensure that system headers located in
	  /usr/local/include are actually treated as system headers by the
	  compiler, and not as local headers which are subject to warnings
	  from the -Wundef compiler option and others. (closes issue
	  #15606) Reported by: mvanbaak ........

	* contrib/scripts/realtime_pgsql.sql, channels/chan_sip.c,
	  channels/chan_skinny.c, configs/mgcp.conf.sample,
	  doc/res_config_sqlite.txt, doc/tex/phoneprov.tex, UPGRADE.txt,
	  configs/res_ldap.conf.sample, configs/sip.conf.sample,
	  configs/skinny.conf.sample, channels/chan_mgcp.c,
	  doc/chan_sip-perf-testing.txt: Rename 'canreinvite' option to
	  'directmedia', with backwards compatibility. It is clear from
	  multiple mailing list, forum, wiki and other sorts of posts that
	  users don't really understand the effects that the 'canreinvite'
	  config option actually has, and that in some cases they think
	  that setting it to 'no' will actually cause various other
	  features (T.38, MOH, etc.) to not work properly, when in fact
	  this is not the case. This patch changes the proper name of the
	  option to what it should have been from the beginning
	  ('directmedia'), but preserves backwards compatibility for
	  existing configurations.

2009-08-03 18:05 +0000 [r210094-210154]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, channels/sig_pri.c: Changes from
	  chan_dahdi that did not make it into sig_pri. * Moved
	  SUPPORT_USERUSER to sig_pri.c * Fix PRI_DEADLOCK_AVOIDANCE
	  parameter. * Whitespace changes. * Added missing unlock in
	  pri_dchannel():PRI_EVENT_RING case. * Balanced curly braces. *
	  ast_debug/ast_log changes from chan_dahdi. * sig_pri_indicate()
	  should default to return -1 if the indication is not handled.

	* channels/sig_pri.h, channels/sig_analog.c, channels/sig_pri.c:
	  Trim trailing whitespace.

2009-08-03 14:29 +0000 [r210027]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c: Fix order and redundancy of channel rename
	  manager events in ast_do_masquerade. Patch contributed by Mark
	  Spencer.

2009-08-03 14:01 +0000 [r209993]  Matthew Nicholson <mnicholson@digium.com>

	* addons/chan_mobile.c, configs/chan_mobile.conf.sample: Add an
	  'sms' option to mobile.conf to manually enable or disable SMS
	  support. (closes issue #15071) Reported by: ughnz Patches:
	  optional-sms1.diff uploaded by mnicholson (license 96) Tested by:
	  ughnz, mnicholson

2009-08-01 23:33 +0000 [r209958-209959]  Bradley Latus <brad.latus@gmail.com>

	* doc/tex/realtime.tex: Update documentation in relation to
	  UnixODBC (closes issue #15516) Reported by: snuffy Patches:
	  bug_odbc_tex_update_v2.diff uploaded by snuffy (license 35)

	* doc/CODING-GUIDELINES: (closes issue #15515)

2009-08-01 11:29 +0000 [r209835-209887]  Russell Bryant <russell@digium.com>

	* /, main/db1-ast/mpool/mpool.c: Merged revisions 209879 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r209879 | russell | 2009-08-01 06:27:25 -0500 (Sat, 01 Aug 2009)
	  | 5 lines Resolve a valgrind warning about a read from
	  uninitialized memory. (issue #15396) Reported by: aragon ........

	* /, apps/app_milliwatt.c: Merged revisions 209838 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r209838 | russell | 2009-08-01 05:59:05 -0500 (Sat, 01
	  Aug 2009) | 13 lines Modify how Playtones() is used in
	  Milliwatt() to resolve gain issue. When Milliwatt() was changed
	  internally to use Playtones() so that the proper tone was used,
	  it introduced a drop in gain in the output signal. So, use the
	  playtones API directly and specify a volume argument such that
	  the output matches the gain of the original Milliwatt() code.
	  (closes issue #15386) Reported by: rue_mohr Patches:
	  issue_15386.rev2.diff uploaded by russell (license 2) Tested by:
	  rue_mohr ........

	* main/event.c: Fix ast_event_queue_and_cache() to actually do the
	  cache() part. (closes issue #15624) Reported by: ffossard Tested
	  by: russell

2009-08-01 01:04 +0000 [r209760-209761]  Kevin P. Fleming <kpfleming@digium.com>

	* Makefile: Revert accidental Makefile change.

	* Makefile, channels/chan_dahdi.c, channels/chan_misdn.c, /,
	  main/Makefile, channels/misdn/ie.c, pbx/pbx_config.c,
	  utils/frame.c: Merged revisions 209759 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r209759 | kpfleming | 2009-07-31 19:52:00 -0500 (Fri, 31 Jul
	  2009) | 7 lines Minor changes inspired by testing with latest
	  GCC. The latest GCC (what will become 4.5.x) has a few new
	  warnings, that in these cases found some either downright buggy
	  code, or at least seriously poorly designed code that could be
	  improved. ........

2009-07-31 21:53 +0000 [r209711]  Russell Bryant <russell@digium.com>

	* main/event.c: Fix some places where ast_event_type was used
	  instead of ast_event_ie_type.

2009-07-31 17:57 +0000 [r209673-209674]  Mark Michelson <mmichelson@digium.com>

	* configs/sip.conf.sample: Add configuration sample code for
	  previous commit.

	* channels/chan_sip.c: Improve chan_sip's ability to determine what
	  methods should and should not be used in a dialog. The previous
	  effort here was to store what a peer is capable of receiving by
	  parsing REGISTER requests from the peer and keeping that
	  information for as long as the registration was active. The
	  problem with this is that there are a great number of SIP devices
	  which give no indication of the methods allowed in their REGISTER
	  requests, and it is unreasonable to try to guess what the device
	  may or may not support. In addition, some SIP devices have been
	  found to claim support for a specific method, but their handling
	  the method is less than ideal, or they are actually lying. With
	  this patch, we now determine what methods a device supports by
	  parsing the Allow header we receive from them, and we do this
	  with each new dialog. In addition, a configuration option has
	  been added so that an administrator can essentially blacklist
	  certain methods from being used with certain peers if the admin
	  knows that support for a specific method is dodgy or nonexistent.
	  ABE-1822

2009-07-30 23:37 +0000 [r209623]  Sean Bright <sean@malleable.com>

	* configure, configure.ac, makeopts.in: Allow passing 'noisy' to
	  configure's --enable-dev-mode argument to turn on verbose builds.
	  (closes issue #15607) Reported by: mvanbaak Patches:
	  20090730_issue15607.patch uploaded by seanbright (license 71)
	  Tested by: seanbright

2009-07-30 23:31 +0000 [r209619]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_pri.h, channels/sig_pri.c: Add missing ifdef-s for
	  service maintenance message functionality (closes issue #15614)
	  Reported by: fabled

2009-07-30 16:07 +0000 [r209554]  David Brooks <dbrooks@digium.com>

	* channels/sig_pri.h, apps/app_forkcdr.c, channels/chan_dahdi.c,
	  contrib/init.d/rc.debian.asterisk, addons/chan_ooh323.c,
	  addons/ooh323c/src/ooGkClient.h, funcs/func_math.c,
	  apps/app_sms.c, codecs/lpc10/pitsyn.c, channels/chan_console.c,
	  include/asterisk/abstract_jb.h: Fixes numerous spelling errors.
	  Patch submitted by alecdavis. (closes issue #15595) Reported by:
	  alecdavis

2009-07-30 14:38 +0000 [r209516]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix a crash that can result if text codecs
	  are allowed but textsupport is disabled. (closes issue #15596)
	  Reported by: fabled Patches: sip-red.patch uploaded by fabled
	  (license 448)

2009-07-29 21:46 +0000 [r209453-209484]  Matthew Nicholson <mnicholson@digium.com>

	* addons/chan_mobile.c: This patch adds the ability to send a CUSD
	  command to a bluetooth device. (closes issue #15278) Reported by:
	  Artem Patches: cusd5.patch uploaded by Artem (license 800) Tested
	  by: mnicholson, Artem Review:
	  https://reviewboard.asterisk.org/r/274/

	* addons/chan_mobile.c: Fixed a comment for hfp_parse_clip

2009-07-28 13:49 +0000 [r209400]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_usbradio.c, include/asterisk/utils.h,
	  channels/chan_sip.c, channels/chan_alsa.c,
	  channels/chan_console.c, channels/chan_oss.c, main/poll.c: Define
	  side-effect-safe MIN and MAX macros and remove duplicate
	  definitions from various files.

2009-07-28 00:20 +0000 [r209317-209331]  Tilghman Lesher <tlesher@digium.com>

	* sounds/sounds.xml: Regex FTL

	* /, sounds/sounds.xml: Merged revisions 209315 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r209315 | tilghman | 2009-07-27 19:12:03 -0500 (Mon, 27 Jul 2009)
	  | 2 lines Publish French extra sounds ........

2009-07-27 21:43 +0000 [r209256-209279]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_fax.c: Cleanup T.38 negotiation changes. Convert
	  LOG_NOTICE messages about T.38 negotiation in debug level 1
	  messages, clean up some looping logic, and correct an improper
	  use of ast_free() for freeing an ast_frame.

	* apps/app_fax.c: Make T.38 switchover in ReceiveFAX synchronous.
	  In receive mode, if the channel that ReceiveFAX is running on
	  supports T.38, we should *always* attempt to switch T.38, rather
	  than listening for an incoming CNG tone and only triggering on
	  that. The channel may be using a low-bitrate codec that distorts
	  the CNG tone, the sending FAX endpoint may not send CNG at all,
	  or there could be a variety of other reasons that we don't detect
	  it, but in all those cases if T.38 is available we certainly want
	  to use it.

2009-07-27 20:54 +0000 [r209132-209235]  Mark Michelson <mmichelson@digium.com>

	* res/res_rtp_asterisk.c: Gracefully handle malformed RTP text
	  packets. AST-2009-004

	* res/res_musiconhold.c: Honor channel's music class when using
	  realtime music on hold. (closes issue #15051) Reported by: alexh
	  Patches: 15051.patch uploaded by mmichelson (license 60) Tested
	  by: alexh

	* main/udptl.c, /, configs/udptl.conf.sample: Merged revisions
	  209131 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r209131 | mmichelson | 2009-07-27 12:44:06 -0500 (Mon, 27 Jul
	  2009) | 18 lines Allow for UDPTL to use only even-numbered ports
	  if desired. There are some VoIP providers out there that will not
	  accept SDP offers with odd numbered UDPTL ports. While it is my
	  personal opinion that these VoIP providers are misinterpreting
	  RFC 2327, it really is not a big deal to play along with their
	  silly little games. Of course, since restricting UDPTL ports to
	  only even numbers reduces the range of available ports by half,
	  so the option to use only even port numbers is off by default. A
	  user can enable the behavior by setting use_even_ports=yes in
	  udptl.conf. (closes issue #15182) Reported by: CGMChris Patches:
	  15182.patch uploaded by mmichelson (license 60) Tested by:
	  CGMChris ........

2009-07-27 16:33 +0000 [r209098]  David Brooks <dbrooks@digium.com>

	* channels/chan_dahdi.c, channels/chan_vpb.cc, res/res_smdi.c,
	  include/asterisk/module.h, main/features.c, pbx/pbx_dundi.c,
	  res/res_jabber.c, addons/chan_mobile.c, apps/app_rpt.c,
	  main/loader.c: Fixing typos. Replaces "recieved" with "received"
	  and "initilize" with "initialize" (closes issue #15571) Reported
	  by: alecdavis

2009-07-27 15:38 +0000 [r209056]  Kevin P. Fleming <kpfleming@digium.com>

	* Makefile: Restore explicit export of ASTCFLAGS/ASTLDFLAGS and
	  underscore-variants to sub-makes. During the recent Makefile
	  improvements I made, it seemed the 'make' was automatically
	  carrying down the ASTCFLAGS/ASTLDFLAGS settings to sub-makes, so
	  I removed the explict export of them. However, there are some
	  circumstances where make does this, and some where it does not,
	  so I've brought them back to ensure they are always exported. I
	  also removed an extraneous double setting of _ASTLDFLAGS on *BSD
	  platforms.

2009-07-27 01:20 +0000 [r208924]  Jeff Peeler <jpeeler@digium.com>

	* /, main/translate.c, channels/chan_iax2.c: Merged revisions
	  208923 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r208923 | jpeeler | 2009-07-26 20:18:31 -0500 (Sun, 26 Jul 2009)
	  | 2 lines Fix logic errors from 208746 ........

2009-07-26 14:00 +0000 [r208886]  Michiel van Baak <michiel@vanbaak.info>

	* contrib/scripts/install_prereq: add OpenBSD to the install_prereq
	  script

2009-07-25 12:28 +0000 [r208813-208848]  Michiel van Baak <michiel@vanbaak.info>

	* contrib/scripts/install_prereq: libxml2-dev is needed as well by
	  default.

	* configs/cli_aliases.conf.sample, main/cli.c: add default alias
	  reload to run module reload. Requiring 'module reload' to reload
	  everything, including core etc makes russell very unhappy. The
	  default configuration already loads the 'friendly' aliases
	  template. Added 'reload=module reload' to that template. Also
	  removed the comment in main/cli.c that reload should come back.

2009-07-25 06:23 +0000 [r208749]  Jeff Peeler <jpeeler@digium.com>

	* /, channels/chan_skinny.c, main/translate.c,
	  channels/chan_iax2.c: Merged revisions 208746 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r208746 | jpeeler | 2009-07-25 01:19:50 -0500 (Sat, 25 Jul 2009)
	  | 7 lines Fix compiling under dev-mode with gcc 4.4.0. Mostly
	  trivial changes, but I did not know of any other way to fix the
	  "dereferencing type-punned pointer will break strict-aliasing
	  rules" error without creating a tmp variable in chan_skinny.
	  ........

2009-07-24 21:12 +0000 [r208593-208709]  Russell Bryant <russell@digium.com>

	* pbx/pbx_dundi.c: Remove trailing whitespace.

	* main/cli.c: Note that "reload" needs to be added back. I keep
	  getting annoyed at having to type "module reload" to reload
	  everything, so I'm adding a note that we need to add "reload"
	  back. "module reload" doesn't really make sense as the command to
	  reload everything, including the core.

	* main/cli.c: Don't log a warning for something that does not
	  affect operation.

	* apps/app_dial.c, /: Merged revisions 208592 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r208592 | russell | 2009-07-24 13:38:24 -0500 (Fri, 24 Jul 2009)
	  | 7 lines Do not log an ERROR if autoservice_stop() returns -1.
	  This does not indicate an error. A return of -1 just means that
	  the channel has been hung up. (reported in #asterisk-dev)
	  ........

2009-07-24 18:31 +0000 [r208588]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 208587 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r208587 | mmichelson | 2009-07-24 13:26:50 -0500 (Fri, 24 Jul
	  2009) | 10 lines Only send a BYE when hanging up a channel that
	  is up. For cases where Asterisk sends an INVITE and receives a
	  non 2XX final response, Asterisk would follow the INVITE
	  transaction by immediately sending a BYE, which was unnecessary.
	  (closes issue #14575) Reported by: chris-mac ........

2009-07-24 15:02 +0000 [r208548]  Kevin P. Fleming <kpfleming@digium.com>

	* main/udptl.c, channels/chan_sip.c, include/asterisk/udptl.h:
	  Resolve a T.38 negotiation issue left over from the udptl-updates
	  merge. The udptl-updates branch that was merged yesterday failed
	  to properly send back T.38 SDP responses with the correct error
	  correction mode, if the incoming SDP from the other end caused us
	  to change error correction modes. This patch corrects that
	  situation.

2009-07-24 14:35 +0000 [r208542]  Michiel van Baak <michiel@vanbaak.info>

	* contrib/scripts/install_prereq: use aptitude for debian based
	  systems The function to check wether we need to install packages
	  was using dpkg-query which was gives wrong output on Debian 5
	  Also, the apt-get has been replaced with aptitude because
	  aptitude is now the preferred way to handle packages on Debian
	  (closes issue #15570) Reported by: mvanbaak Patches:
	  2009072400_installprereq-aptitude.diff uploaded by mvanbaak
	  (license 7)

2009-07-23 22:32 +0000 [r208464-208504]  Kevin P. Fleming <kpfleming@digium.com>

	* UPGRADE.txt: T.38 change note is not necessary in this branch

	* main/channel.c, main/udptl.c, main/frame.c, main/rtp_engine.c,
	  channels/chan_sip.c, apps/app_fax.c, UPGRADE.txt,
	  include/asterisk/udptl.h, include/asterisk/frame.h: Rework of
	  T.38 negotiation and UDPTL API to address interoperability
	  problems Over the past couple of months, a number of issues with
	  Asterisk negotiating (and successfully completing) T.38 sessions
	  with various endpoints have been found. This patch attempts to
	  address many of them, primarily focused around ensuring that the
	  endpoints' MaxDatagram size is honored, and in addition by
	  ensuring that T.38 session parameter negotiation is performed
	  correctly according to the ITU T.38 Recommendation. The major
	  changes here are: 1) T.38 applications in Asterisk (app_fax) only
	  generate/receive IFP packets, they do not ever work with UDPTL
	  packets. As a result of this, they cannot be allowed to generate
	  packets that would overflow the other endpoints' MaxDatagram size
	  after the UDPTL stack adds any error correction information. With
	  this patch, the application is told the maximum *IFP* size it can
	  generate, based on a calculation using the far end MaxDatagram
	  size and the active error correction mode on the T.38 session.
	  The same is true for sending *our* MaxDatagram size to the remote
	  endpoint; it is computed from the value that the application says
	  it can accept (for a single IFP packet) combined with the active
	  error correction mode. 2) All treatment of T.38 session
	  parameters as 'capabilities' in chan_sip has been removed; these
	  parameters are not at all like audio/video stream capabilities.
	  There are strict rules to follow for computing an answer to a
	  T.38 offer, and chan_sip now follows those rules, using the
	  desired parameters from the application (or channel) that wants
	  to accept the T.38 negotiation. 3) chan_sip now stores and
	  forwards ast_control_t38_parameters structures for tracking 'our'
	  and 'their' T.38 session parameters; this greatly simplifies
	  negotiation, especially for pass-through calls. 4) Since T.38
	  negotiation without specifying parameters or receiving the final
	  negotiated parameters is not very worthwhile, the AST_CONTROL_T38
	  control frame has been removed. A note has been added to
	  UPGRADE.txt about this removal, since any out-of-tree
	  applications that use it will no longer function properly until
	  they are upgraded to use AST_CONTROL_T38_PARAMETERS. Review:
	  https://reviewboard.asterisk.org/r/310/

2009-07-23 19:34 +0000 [r208388]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 208386 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r208386 | mmichelson | 2009-07-23 14:24:21 -0500 (Thu, 23 Jul
	  2009) | 17 lines Fix a problem where a 491 response could be sent
	  out of dialog. This generalizes the fix for issue 13849. The
	  initial fix corrected the problem that Asterisk would reply with
	  a 491 if a reinvite were received from an endpoint and we had not
	  yet received an ACK from that endpoint for the initial INVITE it
	  had sent us. This expansion also allows Asterisk to appropriately
	  handle an INVITE with authorization credentials if Asterisk had
	  not received an ACK from the previous transaction in which
	  Asterisk had responded to an unauthorized INVITE with a 407.
	  (closes issue #14239) Reported by: klaus3000 Patches: 14239.patch
	  uploaded by mmichelson (license 60) Tested by: klaus3000 ........

2009-07-23 19:21 +0000 [r208383]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 208380 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r208380 | jpeeler | 2009-07-23 14:19:53 -0500 (Thu, 23
	  Jul 2009) | 6 lines Only set the priindication setting when not
	  performing a reload (closes issue #14696) Reported by: fdecher
	  ........

2009-07-23 16:29 +0000 [r208314]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 208312 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r208312 | mmichelson | 2009-07-23 11:29:18 -0500 (Thu, 23 Jul
	  2009) | 3 lines Remove inaccurate XXX comment. ........

2009-07-23 15:59 +0000 [r208267]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_pri.c:
	  Fix sending of interface identifier unconditionally in sig_pri
	  The wrong logic was being used in chan_dahdi to convert a
	  sig_pri_chan to the proper libpri channel number. The most
	  significant bit must only be set only when trunk groups are being
	  used. (closes issue #15452) Reported by: alecdavis Patches:
	  bug15452.patch uploaded by jpeeler (license 325) Tested by:
	  alecdavis

2009-07-23 15:46 +0000 [r208229-208263]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 208262 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r208262 | mmichelson | 2009-07-23 10:43:07 -0500 (Thu, 23 Jul
	  2009) | 8 lines Properly handle 183 responses which do not
	  contain an SDP. (closes issue #15442) Reported by: ffloimair
	  Patches: 15442.patch uploaded by mmichelson (license 60) Tested
	  by: tkarl, ffloimair ........

	* channels/chan_sip.c: Fix potential crash if p->owner is NULL.
	  Problem was observed when a call-forwarding loop was accidentally
	  configured. ABE-1906

2009-07-23 01:31 +0000 [r208193]  Russell Bryant <russell@digium.com>

	* main/cel.c: Resolve compiler warning on mac.

2009-07-22 22:42 +0000 [r208155]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: Reset the fax buffers back to default
	  settings regardless of signaling in use - Pointed out by Matt F.
	  Also in the case of not using a signaling module, set the law
	  back to the default as well.

2009-07-22 22:35 +0000 [r208151]  Tilghman Lesher <tlesher@digium.com>

	* /, include/asterisk/compat.h, main/strcompat.c,
	  main/asterisk.exports: Merged revisions 208083 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r208083 | tilghman | 2009-07-22 15:23:53 -0500 (Wed, 22 Jul 2009)
	  | 4 lines Export symbols for functions included in our
	  compatibility headers. (closes issue #15556) Reported by: smw1218
	  ........

2009-07-22 21:43 +0000 [r208113]  Jason Parker <jparker@digium.com>

	* apps/app_festival.c: Restore an int declaration on PPC platforms.
	  This x is one crafty little bugger... It was used for 2 different
	  things (one of which was only done on PPC) in 1.4. One of the
	  uses were removed in trunk, and with it went the declaration.
	  (closes issue #14038) Reported by: ffloimair

2009-07-22 16:49 +0000 [r208052]  Tilghman Lesher <tlesher@digium.com>

	* res/res_realtime.c: Clarify documentation on 'realtime update2'
	  to show more than one condition. (closes issue #15357) Reported
	  by: snuffy Patches: bug_fix_doc_update2.diff uploaded by snuffy
	  (license 35) (slightly modified by me)

2009-07-22 14:35 +0000 [r208018]  Russell Bryant <russell@digium.com>

	* include/asterisk/channel.h: Remove trailing whitespace.

2009-07-22 14:35 +0000 [r208017]  Mark Michelson <mmichelson@digium.com>

	* apps/app_directed_pickup.c: Fix the crash in directed pickups.
	  For real this time. A shallow pointer copy was causing an
	  ast_party_connected_line structure to be freed multiple times,
	  thus causing a crash. (closes issue #15441) Reported by:
	  lmsteffan Patches: 15441.patch uploaded by mmichelson (license
	  60) Tested by: lmsteffan

2009-07-21 22:51 +0000 [r207950]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_pri.c: Do not dial digits when none were specified
	  for sig_pri based calls (closes issue #15524) Reported by:
	  elguero Patches: pri-sig-no-dest-set.patch uploaded by elguero
	  (license 37)

2009-07-21 22:45 +0000 [r207946]  Tilghman Lesher <tlesher@digium.com>

	* /, funcs/func_strings.c: Merged revisions 207945 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r207945 | tilghman | 2009-07-21 17:38:54 -0500 (Tue, 21
	  Jul 2009) | 8 lines Force an error if a blank is passed to QUOTE
	  (because the documentation states the argument is not optional).
	  This change makes URIENCODE and QUOTE behave similarly, since the
	  documentation states that the argument is not optional, for both.
	  (closes issue #15439) Reported by: pkempgen Patches:
	  20090706__issue15439.diff.txt uploaded by tilghman (license 14)
	  ........

2009-07-21 22:24 +0000 [r207934]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: whitespace fix only

2009-07-21 22:22 +0000 [r207925]  Russell Bryant <russell@digium.com>

	* doc/CODING-GUIDELINES: Note that we use tabs instead of spaces
	  for indentation. I'm surprised this was never actually in here...

2009-07-21 22:02 +0000 [r207854-207902]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: Fix my_is_off_hook to check rxbits only
	  for FXS signaling

	* channels/chan_dahdi.c, channels/sig_analog.c, /: Merged revisions
	  207827 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r207827 | jpeeler | 2009-07-21 15:16:55 -0500 (Tue, 21 Jul 2009)
	  | 9 lines Wait for wink before dialing when using E&M wink
	  signaling There was already code for other signaling types in
	  dahdi_handle_event to handle dialing if a dial operation dial
	  string was present. Simply add SIG_EMWINK to the list. (closes
	  issue #14434) Reported by: araasch ........

2009-07-21 14:29 +0000 [r207723]  Mark Michelson <mmichelson@digium.com>

	* main/manager.c, /: Merged revisions 207714 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r207714 | mmichelson | 2009-07-21 09:26:00 -0500 (Tue, 21 Jul
	  2009) | 5 lines Document default timeout for AMI originations.
	  AST-224 ........

2009-07-21 13:28 +0000 [r207680]  Kevin P. Fleming <kpfleming@digium.com>

	* /, main/Makefile, codecs/gsm/Makefile, Makefile.moddir_rules,
	  res/Makefile, pbx/Makefile, Makefile.rules, channels/Makefile,
	  doc/video_console.txt, Makefile, utils/Makefile, codecs/Makefile,
	  agi/Makefile, addons/Makefile, funcs/Makefile,
	  codecs/lpc10/Makefile, main/db1-ast/Makefile: Merged revisions
	  207647 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r207647 | kpfleming | 2009-07-21 08:04:44 -0500 (Tue, 21 Jul
	  2009) | 12 lines Ensure that user-provided CFLAGS and LDFLAGS are
	  honored. This commit changes the build system so that
	  user-provided flags (in ASTCFLAGS and ASTLDFLAGS) are supplied to
	  the compiler/linker *after* all flags provided by the build
	  system itself, so that the user can effectively override the
	  build system's flags if desired. In addition, ASTCFLAGS and
	  ASTLDFLAGS can now be provided *either* in the environment before
	  running 'make', or as variable assignments on the 'make' command
	  line. As a result, the use of COPTS and LDOPTS is no longer
	  necessary, so they are no longer documented, but are still
	  supported so as not to break existing build systems that supply
	  them when building Asterisk. ........

2009-07-20 23:08 +0000 [r207522-207551]  Mark Michelson <mmichelson@digium.com>

	* apps/app_directed_pickup.c: Okay, that didn't fix the crash. It
	  didn't really do anything useful.

	* apps/app_directed_pickup.c: Initialize connected line instance
	  when doing a directed pickup. This helps to prevent a crash which
	  may occur due to our freeing garbage due to a struct being
	  uninitialized.

2009-07-20 20:45 +0000 [r207484]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: reg->username is parsed only once on sip
	  reload The registration string can contain an expanded user
	  portion of the form user@domain. This expanded user portion was
	  stored in reg->username and parsed each time there is a
	  registration refresh. Now, the domain portion of the user is
	  parsed and stored separately in the regdomain field. (closes
	  issue #14331) Reported by: Nick_Lewis Patches:
	  chan_sip.c.domainparse3.patch uploaded by Nick (license 657)
	  Tested by: Nick_Lewis, dvossel

2009-07-20 19:48 +0000 [r207424]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 207423 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r207423 | mmichelson | 2009-07-20 14:39:59 -0500 (Mon, 20 Jul
	  2009) | 33 lines Answer video SDP offers properly when
	  videosupport is not enabled. Copied from Review board: In issue
	  12434, the reporter describes a situation in which audio and
	  video is offered on the call, but because videosupport is
	  disabled in sip.conf, Asterisk gives no response at all to the
	  video offer. According to RFC 3264, all media offers should have
	  a corresponding answer. For offers we do not intend to actually
	  reply to with meaningful values, we should still reply with the
	  port for the media stream set to 0. In this patch, we take note
	  of what types of media have been offered and save the information
	  on the sip_pvt. The SDP in the response will take into account
	  whether media was offered. If we are not otherwise going to
	  answer a media offer, we will insert an appropriate m= line with
	  the port set to 0. It is important to note that this patch is
	  pretty much a bandage being applied to a broken bone. The patch
	  *only* helps for situations where video is offered but
	  videosupport is disabled and when udptl_pt is disabled but T.38
	  is offered. Asterisk is not guaranteed to respond to every media
	  offer. Notable cases are when multiple streams of the same type
	  are offered. The 2 media stream limit is still present with this
	  patch, too. In trunk and the 1.6.X branches, things will be a bit
	  different since Asterisk also supports text in SDPs as well.
	  (closes issue #12434) Reported by: mnnojd Review:
	  https://reviewboard.asterisk.org/r/311 Review:
	  https://reviewboard.asterisk.org/r/313 ........

2009-07-20 16:36 +0000 [r207361]  Russell Bryant <russell@digium.com>

	* main/channel.c, /: Merged revisions 207360 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r207360 | russell | 2009-07-20 11:26:24 -0500 (Mon, 20 Jul 2009)
	  | 9 lines Only do the chan->fdno check in ast_read() in a
	  developer build. I changed this check to only happen in a
	  dev-mode build. I also added a comment explaining what is going
	  on. I also made it so that detection of this situation does not
	  affect ast_read() operation. (closes issue #14723) Reported by:
	  seadweller ........

2009-07-18 04:17 +0000 [r207318]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, CHANGES: Merged 207316 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.2-...
	  .......... r207316 | rmudgett | 2009-07-17 23:05:05 -0500 (Fri,
	  17 Jul 2009) | 20 lines Fixed incoming calls being matched to
	  MSNs without type-of-number prefix added. For an incoming ISDN
	  call the dialed.number is incorrectly matched against the
	  configured MSNs in misdn.conf. The numbers passed to the dialplan
	  include the configured prefix for the dialed.number_type, whereas
	  the check against the configured MSNs (to decide if the call is
	  accepted at all), is executed without the configured prefix.
	  e.g., dialed.number = 241168020, TON = national, configured
	  national prefix is "0". (This is the TON which is used by ISDN
	  providers in the Netherlands.) In chan_misdn.c:cb_events() in
	  case EVENT_SETUP the call to misdn_cfg_is_msn_valid() uses the
	  unnormalized number 241168020, but 57 lines later the call to
	  read_config() adds the prefix, and the dialed.number is now
	  0241168020, which is then used in the dialplan.
	  misdn_cfg_is_msn_valid() must use the normalized number, too.
	  JIRA ABE-1912

2009-07-18 04:16 +0000 [r207317]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Flag field in wrong position. Reported by
	  "Hoggins!" on asterisk-dev list.

2009-07-18 01:31 +0000 [r207285]  Richard Mudgett <rmudgett@digium.com>

	* /: Recorded merge of revisions 145293,158010 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r145293 | rmudgett | 2008-09-30 18:55:24 -0500
	  (Tue, 30 Sep 2008) | 54 lines channels/chan_misdn.c
	  channels/misdn/isdn_lib.c * Miscellaneous other fixes from trunk
	  to make merging easier later. ........ r145200 | rmudgett |
	  2008-09-30 16:00:54 -0500 (Tue, 30 Sep 2008) | 7 lines *
	  Miscellaneous formatting changes to make v1.4 and trunk more
	  merge compatible in the mISDN area. channels/chan_misdn.c *
	  Eliminated redundant code in cb_events() EVENT_SETUP ........
	  r144257 | crichter | 2008-09-24 03:42:55 -0500 (Wed, 24 Sep 2008)
	  | 9 lines improved helptext of misdn_set_opt. ........ r142181 |
	  rmudgett | 2008-09-09 12:30:52 -0500 (Tue, 09 Sep 2008) | 1 line
	  Cleaned up comment ........ r138738 | rmudgett | 2008-08-18
	  16:07:28 -0500 (Mon, 18 Aug 2008) | 30 lines
	  channels/chan_misdn.c * Made bearer2str() use
	  allowed_bearers_array[] * Made use the causes.h defines instead
	  of hardcoded numbers. * Made use Asterisk presentation indicator
	  values if either of the mISDN presentation or screen options are
	  negative. * Updated the misdn_set_opt application option
	  descriptions. * Renamed the awkward Caller ID presentation
	  misdn_set_opt application option value not_screened to
	  restricted. Deprecated the not_screened option value.
	  channels/misdn/isdn_lib.c * Made use the causes.h defines instead
	  of hardcoded numbers. * Fixed some spelling errors and typos. *
	  Added all defined facility code strings to fac2str().
	  channels/misdn/isdn_lib.h * Added doxygen comments to struct
	  misdn_bchannel. channels/misdn/isdn_lib_intern.h * Added doxygen
	  comments to struct misdn_stack. channels/misdn_config.c
	  configs/misdn.conf.sample * Updated the mISDN presentation and
	  screen parameter descriptions. doc/misdn.txt (doc/tex/misdn.tex)
	  * Updated the misdn_set_opt application option descriptions. *
	  Fixed some spelling errors and typos. ................ r158010 |
	  rmudgett | 2008-11-19 19:46:09 -0600 (Wed, 19 Nov 2008) | 9 lines
	  Merged revision 157977 from
	  https://origsvn.digium.com/svn/asterisk/team/group/issue8824
	  ........ Fixes JIRA ABE-1726 The dial extension could be empty if
	  you are using MISDN_KEYPAD to control ISDN provider features.
	  ................

2009-07-17 22:29 +0000 [r207255]  Tilghman Lesher <tlesher@digium.com>

	* doc/voicemail_odbc_postgresql.txt: Add flag here, too (as
	  requested by jsmith)

2009-07-17 22:07 +0000 [r207225]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: fixes an error in r203638 CEL commit
	  (closes issue #15525) Reported by: elguero Patches:
	  iax2-double-unlock.patch uploaded by elguero (license 37)
	  15525.diff uploaded by dvossel (license 671) Tested by: dvossel

2009-07-17 22:04 +0000 [r207224]  Tilghman Lesher <tlesher@digium.com>

	* doc/tex/odbcstorage.tex, UPGRADE.txt: Document the "flag" field
	  in the voicemessages table.

2009-07-17 19:37 +0000 [r207095-207156]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 207155 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r207155 | jpeeler | 2009-07-17 14:36:19 -0500 (Fri, 17
	  Jul 2009) | 7 lines Fix format specifier to print out an unsigned
	  long long. Yep, it's even ifdefed out code. But it made it to the
	  RR list... (closes issue #14726) Reported by: lmadsen ........

	* configs/chan_dahdi.conf.sample: Update some missing allowed
	  options for overlapdial

2009-07-17 17:51 +0000 [r207029]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: sip option flags handled incorrectly (closes
	  issue #15376) Reported by: Takehiko Ooshima Tested by: dvossel,
	  Takehiko_Ooshima

2009-07-17 17:02 +0000 [r206998]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c: Fix segfault in
	  sig_analog when using callwaiting, respect callwaiting options
	  Sig_analog handles allocating the sub channel for callwaiting, so
	  no longer try to do it in chan_dahdi. Modified analog_alloc_sub
	  to only mark the sub as allocated upon success of the alloc_sub
	  callback, which was responsible for the segfault. Also, the
	  callwaiting and callwaitingcallerid options were being
	  unconditionally set to true. Now, the options are properly set
	  from chan_dahdi.conf. (closes issue #15508) Reported by: elguero
	  Tested by: elguero

2009-07-17 16:13 +0000 [r206868-206939]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 206938 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r206938 | dvossel | 2009-07-17 11:05:06 -0500 (Fri, 17 Jul 2009)
	  | 14 lines SIP incorrect From: header information when callpres
	  is prohib Some ITSP make use of the "Anonymous" display name to
	  detect a requirement to withhold caller id across the PSTN. This
	  does not work if the display name is "Unknown". (closes issue
	  #14465) Reported by: Nick_Lewis Patches:
	  chan_sip.c-callerpres.patch uploaded by Nick (license 657)
	  chan_sip.c-callerpres_trunk.patch uploaded by dvossel (license
	  671) Tested by: Nick_Lewis, dvossel ........

	* funcs/func_timeout.c: TIMEOUT(absolute) returned negative value.
	  (closes issue #15513) Reported by: ys

	* configs/iax.conf.sample, /: Merged revisions 206872 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r206872 | dvossel | 2009-07-16 16:33:19 -0500 (Thu, 16
	  Jul 2009) | 6 lines error in iax.conf related IP-based access
	  control (closes issue #15518) Reported by: pkempgen ........

	* /, main/callerid.c: Merged revisions 206867 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r206867 | dvossel | 2009-07-16 16:24:16 -0500 (Thu, 16 Jul 2009)
	  | 8 lines avoid segfault caused by user error If the CALLERPRES()
	  dialplan function is set to nothing, a segfault occurs. This is
	  user error to begin with, but I'd rather see a cli warning
	  message than have Asterisk crash on me. ........

2009-07-16 16:51 +0000 [r206808]  Tilghman Lesher <tlesher@digium.com>

	* /, funcs/func_realtime.c: Merged revisions 206807 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r206807 | tilghman | 2009-07-16 11:27:35 -0500 (Thu, 16
	  Jul 2009) | 6 lines Fix a memory leak. (closes issue #15517)
	  Reported by: adomjan Patches:
	  func_realtime.c-ast_variable_destroy.diff uploaded by adomjan
	  (license 487) ........

2009-07-15 22:04 +0000 [r206768]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Session timer were not activated if
	  Supported header field in INVITE had both "timer" and other
	  options. (closes issue #15403) Reported by: makoto Patches:
	  sip-session-timer.patch uploaded by makoto (license 38)

2009-07-15 22:02 +0000 [r206767]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h, channels/sig_pri.c: The dialing flag was
	  mistakingly removed from sig_pri. This readds the proper setting
	  of the flag and is really a continuation of r205731. The flag was
	  being set properly in sig_analog, but use of the newly added
	  set_dialing callback allowed for some simplification in
	  chan_dahdi. (closes issue #15486) Reported by: rmudgett

2009-07-15 21:14 +0000 [r206707]  Richard Mudgett <rmudgett@digium.com>

	* channels/misdn/isdn_lib_intern.h, /, channels/misdn/isdn_lib.c:
	  Merged revisions 206706 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r206706 | rmudgett | 2009-07-15 15:44:55 -0500
	  (Wed, 15 Jul 2009) | 26 lines Merged revision 206700 from
	  https://origsvn.digium.com/svn/asterisk/be/branches/C.2-...
	  .......... Fixed chan_misdn crash because mISDNuser library is
	  not thread safe. With Asterisk the mISDNuser library is driven by
	  two threads concurrently: 1.
	  channels/misdn/isdn_lib.c::manager_event_handler() 2.
	  channels/misdn/isdn_lib.c::misdn_lib_isdn_event_catcher() Calls
	  into the library are done concurrently and recursively from
	  isdn_lib.c. Both threads can fiddle with the master/child
	  layer3_proc_t lists. One thread may traverse the list when the
	  other interrupts it and then removes the list element which the
	  first thread was currently handling. This is exactly what caused
	  the crash. About 60 calls were needed to a Gigaset CX475 before
	  it occurred once. This patch adds locking when calling into the
	  mISDNuser library. This also fixes some cb_log calls with wrong
	  port parameter. JIRA ABE-1913 Patches: misdn-locking.patch
	  (Modified with mostly cosmetic changes) ..........
	  ................

2009-07-15 20:20 +0000 [r206702]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: callerid(num) is wrong when username is
	  missing A domain only sip uri <sip:123.123.123.123> would return
	  123.123.123.123 as callid num. Now, if the username is missing
	  from a uri, the callerid num field is left empty. (closes issue
	  #15476) Reported by: viraptor

2009-07-15 16:00 +0000 [r206636]  Sean Bright <sean@malleable.com>

	* /, codecs/codec_dahdi.c: Merged revisions 206635 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r206635 | seanbright | 2009-07-15 11:57:51 -0400 (Wed,
	  15 Jul 2009) | 1 line Only print debug info in codec_dahdi if we
	  are asking for it. ........

2009-07-14 20:38 +0000 [r206603]  Jeff Peeler <jpeeler@digium.com>

	* configs/chan_dahdi.conf.sample: fix a typo in sample config file
	  for option change

2009-07-14 20:14 +0000 [r206567]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_meetme.c, contrib/scripts/meetme.sql: Document all
	  meetme realtime fields, and in the process, make some field
	  lengths more consistent. (closes issue #15493) Reported by: lasko
	  Patches: meetme.diff uploaded by lasko (license 833)

2009-07-14 20:01 +0000 [r206566]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/sig_analog.h: Restore some missing functionality to
	  sig_analog. The main purpose of this commit is to restore missing
	  functionality present in the ss_thread before all the sig related
	  work was done. Two of the biggest missing things were distinctive
	  ring detection and cid handling for V23. fxsoffhookstate and
	  associated mwi variables have been moved inside sig_analog as
	  they were not being set properly as well.

2009-07-14 17:03 +0000 [r206490]  Mark Michelson <mmichelson@digium.com>

	* apps/app_dial.c: I AM A TERRIBLE PERSON

2009-07-14 17:01 +0000 [r206489]  Richard Mudgett <rmudgett@digium.com>

	* channels/misdn/isdn_lib.h, channels/chan_misdn.c, /,
	  channels/misdn/isdn_lib.c: Merged revisions 206487 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r206487 | rmudgett | 2009-07-14 11:44:47 -0500 (Tue, 14
	  Jul 2009) | 28 lines Fixes several call transfer issues with
	  chan_misdn. * issue #14355 - Crash if attempt to transfer a call
	  to an application. Masquerade the other pair of the four asterisk
	  channels involved in the two calls. The held call already must be
	  a bridged call (not an applicaton) or it would have been
	  rejected. * issue #14692 - Held calls are not automatically
	  cleared after transfer. Allow the core to initate disconnect of
	  held calls to the ISDN port. This also fixes a similar case where
	  the party on hold hangs up before being transferred or taken off
	  hold. * JIRA ABE-1903 - Orphaned held calls left in
	  music-on-hold. Do not simply block passing the hangup event on
	  held calls to asterisk core. * Fixed to allow held calls to be
	  transferred to ringing calls. Previously, held calls could only
	  be transferred to connected calls. * Eliminated unused call
	  states to simplify hangup code. * Eliminated most uses of
	  "holded" because it is not a word. (closes issue #14355) (closes
	  issue #14692) Reported by: sodom Patches:
	  misdn_xfer_v14_r205839.patch uploaded by rmudgett (license 664)
	  Tested by: rmudgett ........

2009-07-14 16:09 +0000 [r206455]  Mark Michelson <mmichelson@digium.com>

	* apps/app_dial.c: Reset the sentringing indication when redirects
	  occur. If a redirecting control frame is processed or a call
	  forward occurs, we need to reset the sentringing flag so that we
	  can send another ringing indication to the phone that may contain
	  a connected line update. AST-164

2009-07-14 14:51 +0000 [r206386]  Russell Bryant <russell@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 206385 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r206385 | russell | 2009-07-14 09:48:00 -0500
	  (Tue, 14 Jul 2009) | 13 lines Merged revisions 206384 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.2 ........
	  r206384 | russell | 2009-07-14 09:45:47 -0500 (Tue, 14 Jul 2009)
	  | 6 lines Ensure apathetic replies are sent out on the proper
	  socket. chan_iax2 supports multiple address bindings. The
	  send_apathetic_reply() function did not attempt to send its
	  response on the same socket that the incoming message came in on.
	  ........ ................

2009-07-14 00:48 +0000 [r206341]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, /, channels/misdn/isdn_lib.c: Merged
	  revisions 206284 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r206284 | rmudgett | 2009-07-13 19:17:28 -0500 (Mon, 13 Jul 2009)
	  | 4 lines Fix some memory leaks in chan_misdn. JIRA ABE-1911
	  ........

2009-07-13 23:26 +0000 [r206280]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: dns lookup of peername rather than peer's
	  host in transmit_register() (closes issue #15052) Reported by:
	  fsantulli Patches: chan_sip_bug_15052_[20090626204511].patch
	  uploaded by fsantulli (license 818) Tested by: fsantulli

2009-07-13 18:46 +0000 [r206225]  Sean Bright <sean@malleable.com>

	* contrib/upstart/asterisk.upstart-0.3.9: Make sure that since we
	  are passing -c to asterisk that we have a console. Without this
	  line, Asterisk will busy-loop trying to read and write to
	  /dev/null (woops... my bad).

2009-07-13 16:23 +0000 [r206185]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Remove reference to non-existent help file
	  (closes issue #15427) Reported by: brushtyler Patches:
	  app_voicemail.c.diff uploaded by brushtyler (license 821)

2009-07-13 14:06 +0000 [r206092-206094]  Kevin P. Fleming <kpfleming@digium.com>

	* .cleancount: Bump up cleancount so that existing checkouts will
	  update themselves properly for the 'Addons' -> 'ADDONS' change.

	* addons/Makefile: Make the menuselect category for Add-Ons
	  consistent with the other directories (uppercase).

2009-07-11 19:30 +0000 [r206021-206049]  Russell Bryant <russell@digium.com>

	* CHANGES: note the security events API in CHANGES

	* doc/tex/security-events.tex (added), tests/test_security_events.c
	  (added), main/manager.c, main/security_events.c (added),
	  include/asterisk/event_defs.h, main/event.c,
	  include/asterisk/security_events.h (added), doc/tex/asterisk.tex,
	  include/asterisk/security_events_defs.h (added),
	  res/res_security_log.c (added), tests/test_ami_security_events.sh
	  (added): Add an API for reporting security events, and a security
	  event logging module. This commit introduces the security events
	  API. This API is to be used by Asterisk components to report
	  events that have security implications. A simple example is when
	  a connection is made but fails authentication. These events can
	  be used by external tools manipulate firewall rules or something
	  similar after detecting unusual activity based on security
	  events. Inside of Asterisk, the events go through the ast_event
	  API. This means that they have a binary encoding, and it is easy
	  to write code to subscribe to these events and do something with
	  them. One module is provided that is a subscriber to these events
	  - res_security_log. This module turns security events into a
	  parseable text format and sends them to the "security" logger
	  level. Using logger.conf, these log entries may be sent to a
	  file, or to syslog. One service, AMI, has been fully updated for
	  reporting security events. AMI was chosen as it was a fairly
	  straight forward service to convert. The next target will be
	  chan_sip. That will be more complicated and will be done as its
	  own project as the next phase of security events work. For more
	  information on the security events framework, see the
	  documentation generated from doc/tex/. "make asterisk.pdf"
	  Review: https://reviewboard.asterisk.org/r/273/

2009-07-10 21:42 +0000 [r205985]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: SIP register not using peer's outbound proxy
	  If callbackextension is defined for a peer it successfully causes
	  a registration to occur, but the registration ignores the
	  outboundproxy settings for the peer. This patch allows the peer
	  to be passed to obproxy_get() in transmit_register(). (closes
	  issue #14344) Reported by: Nick_Lewis Patches:
	  callbackextension_peer_trunk.diff uploaded by dvossel (license
	  671) Tested by: dvossel Review:
	  https://reviewboard.asterisk.org/r/294/

2009-07-10 18:44 +0000 [r205939]  Kevin P. Fleming <kpfleming@digium.com>

	* main/udptl.c: Update comments about the level of T.38 support in
	  Asterisk.

2009-07-10 17:39 +0000 [r205878]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 205877 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r205877 | mmichelson | 2009-07-10 12:39:13 -0500
	  (Fri, 10 Jul 2009) | 23 lines Merged revisions 205776 via
	  svnmerge from https://origsvn.digium.com/svn/asterisk/trunk
	  ................ r205776 | mmichelson | 2009-07-10 10:56:45 -0500
	  (Fri, 10 Jul 2009) | 16 lines Merged revisions 205775 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r205775 | mmichelson | 2009-07-10 10:51:36 -0500 (Fri, 10 Jul
	  2009) | 10 lines Ensure that outbound NOTIFY requests are
	  properly routed through stateful proxies. With this change, we
	  make note of Record-Route headers present in any SUBSCRIBE
	  request that we receive so that our outbound NOTIFY requests will
	  have the proper Route headers in them. (closes issue #14725)
	  Reported by: ibc ........ ................ ................

2009-07-10 16:42 +0000 [r205840]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 205804 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r205804 | dvossel | 2009-07-10 11:23:59 -0500 (Fri, 10 Jul 2009)
	  | 31 lines SIP registration auth loop caused by stale nonce If an
	  endpoint sends two registration requests in a very short period
	  of time with the same nonce, both receive 401 responses from
	  Asterisk, each with a different nonce (the second 401 containing
	  the current nonce and the first one being stale). If the endpoint
	  responds to the first 401, it does not match the current nonce so
	  Asterisk sends a third 401 with a newly generated nonce (which
	  updates the current nonce)... Now if the endpoint responds to the
	  second 401, it does not match the current nonce either and
	  Asterisk sends a fourth 401 with a newly generated nonce... This
	  loop goes on and on. There appears to be a simple fix for this.
	  If the nonce from the request does not match our nonce, but is a
	  good response to a previous nonce, instead of sending a 401 with
	  a newly generated nonce, use the current one instead. This breaks
	  the loop as the nonce is not updated until a response is
	  received. Additional logic has been added to make sure no nonce
	  can be responded to twice though. (closes issue #15102) Reported
	  by: Jamuel Patches: patch-bug_0015102 uploaded by Jamuel (license
	  809) nonce_sip.diff uploaded by dvossel (license 671) Tested by:
	  Jamuel Review: https://reviewboard.asterisk.org/r/289/ ........

2009-07-10 16:00 +0000 [r205780]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_fax.c: Eliminate extraneous LOG_DEBUG messages generated
	  by app_fax. The transmit_audio() and transmit_t38() functions in
	  app_fax have processing loops that are supposed to wait for
	  frames to arrive on the channel and then handle them, but they
	  also have short timeouts so that the loops can have watchdog
	  timers and do other required processing. This commit changes the
	  loops to not actually call ast_read() and attempt to process the
	  returned frame unless a frame actually arrived, eliminating
	  hundreds of LOG_DEBUG messages and slightly improving
	  performance.

2009-07-10 15:56 +0000 [r205776]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 205775 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r205775 | mmichelson | 2009-07-10 10:51:36 -0500 (Fri, 10 Jul
	  2009) | 10 lines Ensure that outbound NOTIFY requests are
	  properly routed through stateful proxies. With this change, we
	  make note of Record-Route headers present in any SUBSCRIBE
	  request that we receive so that our outbound NOTIFY requests will
	  have the proper Route headers in them. (closes issue #14725)
	  Reported by: ibc ........

2009-07-10 15:28 +0000 [r205770]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_fax.c: Fix some remaining T.38 negotiation problems in
	  app_fax. Revision 205696 did not quite fix all the issues with
	  the T.38 negotiation changes and app_fax; this patch corrects
	  them, along with a couple of other minor issues. (closes issue
	  #15480) Reported by: dimas Patches: test2-15480.patch uploaded by
	  dimas (license 88)

2009-07-09 21:32 +0000 [r205700]  Matthew Nicholson <mnicholson@digium.com>

	* addons/chan_mobile.c: Fix mbl_fixup() in chan_mobile to update
	  newchan->tech_pvt instead of oldchan. (closes issue #15299)
	  Reported by: nikkk

2009-07-09 21:20 +0000 [r205696]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_sip.c, apps/app_fax.c, include/asterisk/frame.h:
	  Repair ability of SendFAX/ReceiveFAX to respond to T.38
	  switchover. Recent changes in T.38 negotiation in Asterisk caused
	  these applications to not respond when the other endpoint
	  initiated a switchover to T.38; this resulted in the T.38
	  switchover failing, and the FAX attempt to be made using an audio
	  connection, instead of T.38 (which would usually cause the FAX to
	  fail completely). This patch corrects this problem, and the
	  applications will now correctly respond to the T.38 switchover
	  request. In addition, the response will include the appopriate
	  T.38 session parameters based on what the other end offered and
	  what our end is capable of. (closes issue #14849) Reported by:
	  afosorio

2009-07-09 20:04 +0000 [r205666]  Matthew Nicholson <mnicholson@digium.com>

	* funcs/func_odbc.c: Convert func_odbc to use
	  ast_dummy_alloc_channel() Review:
	  https://reviewboard.asterisk.org/r/290/

2009-07-09 16:19 +0000 [r205600]  David Vossel <dvossel@digium.com>

	* /, include/asterisk/time.h: Merged revisions 205599 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r205599 | dvossel | 2009-07-09 11:18:09 -0500 (Thu, 09
	  Jul 2009) | 2 lines Changing ast_samp2tv to not use floating
	  point. ........

2009-07-09 14:10 +0000 [r205532-205562]  Michiel van Baak <michiel@vanbaak.info>

	* main/cel.c: make this compile again under devmode

	* main/ssl.c: pthread_self returns a pthread_t which is not an
	  unsigned int on all pthread implementations. Casting it to an
	  unsigned int fixes compiler warnings. Tested on OpenBSD and Linux
	  both 32 and 64 bit

2009-07-08 23:19 +0000 [r205479]  David Vossel <dvossel@digium.com>

	* res/res_rtp_asterisk.c, /, channels/chan_iax2.c,
	  include/asterisk/frame.h: Merged revisions 205471 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r205471 | dvossel | 2009-07-08 18:15:54 -0500 (Wed, 08
	  Jul 2009) | 10 lines Fixes 8khz assumptions Many calculations
	  assume 8khz is the codec rate. This is not always the case. This
	  patch only addresses chan_iax.c and res_rtp_asterisk.c, but I am
	  sure there are other areas that make this assumption as well.
	  Review: https://reviewboard.asterisk.org/r/306/ ........

2009-07-08 23:07 +0000 [r205469]  Matthew Nicholson <mnicholson@digium.com>

	* main/pbx.c: Fix a CEL related regression with hints updating by
	  subscribing to AST_DEVICE_STATE instead of
	  AST_DEVICE_STATE_CHANGED. (closes issue #15440) Reported by:
	  lmsteffan

2009-07-08 22:15 +0000 [r205410-205412]  David Vossel <dvossel@digium.com>

	* include/asterisk/devicestate.h, main/pbx.c, /,
	  main/devicestate.c, include/asterisk/pbx.h: Merged revisions
	  205409 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r205409 | dvossel | 2009-07-08 16:35:12 -0500 (Wed, 08 Jul 2009)
	  | 6 lines moving ast_devstate_to_extenstate to pbx.c from
	  devicestate.c ast_devstate_to_extenstate belongs in pbx.c. This
	  change fixes a compile time error with chan_vpb as well. ........

	* main/devicestate.c: missing comma in devstatestring array

2009-07-08 19:26 +0000 [r205350]  Mark Michelson <mmichelson@digium.com>

	* /, apps/app_queue.c: Merged revisions 205349 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r205349 | mmichelson | 2009-07-08 14:26:13 -0500 (Wed, 08 Jul
	  2009) | 14 lines Prevent phantom calls to queue members. If a
	  caller were to hang up while a periodic announcement or position
	  were being said, the return value for those functions would
	  incorrectly indicate that the caller was still in the queue. With
	  these changes, the problem does not occur. (closes issue #14631)
	  Reported by: latinsud Patches: queue_announce_ghost_call2.diff
	  uploaded by latinsud (license 745) (with small modification from
	  me) ........

2009-07-08 18:19 +0000 [r205291]  Jason Parker <jparker@digium.com>

	* config.sub, /, config.guess: Merged revisions 205288 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r205288 | qwell | 2009-07-08 13:19:03 -0500 (Wed, 08 Jul
	  2009) | 1 line Update config.guess and config.sub from the
	  savannah.gnu.org git repo. ........

2009-07-08 17:26 +0000 [r205254]  David Brooks <dbrooks@digium.com>

	* main/features.c: Fixes Park() argument handling Park() was not
	  respecting the arguments passed to it. Any
	  extension/context/priority given to it was being ignored. This
	  patch remedies this. (closes issue #15380) Reported by: DLNoah

2009-07-08 16:59 +0000 [r205221]  Tilghman Lesher <tlesher@digium.com>

	* main/say.c: Oops, fixing build

2009-07-08 16:54 +0000 [r205216]  David Vossel <dvossel@digium.com>

	* /, include/asterisk/time.h: Merged revisions 205215 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r205215 | dvossel | 2009-07-08 11:53:40 -0500 (Wed, 08
	  Jul 2009) | 10 lines ast_samp2tv needs floating point for 16khz
	  audio In ast_samp2tv(), (1000000 / _rate) = 62.5 when _rate is
	  16000. The .5 is currently stripped off because we don't
	  calculate using floating points. This causes madness with 16khz
	  audio. (issue ABE-1899) Review:
	  https://reviewboard.asterisk.org/r/305/ ........

2009-07-08 16:43 +0000 [r205214]  Sean Bright <sean@malleable.com>

	* utils/muted.c, configure, include/asterisk/autoconfig.h.in,
	  configure.ac, main/dns.c: Fix a few compilation problems found
	  when building Asterisk against uClibc.

2009-07-08 16:27 +0000 [r205196]  Tilghman Lesher <tlesher@digium.com>

	* /, main/say.c: Merged revisions 205188 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r205188 | tilghman | 2009-07-08 11:26:15 -0500 (Wed, 08 Jul 2009)
	  | 2 lines Add redirection warnings for the invalid language codes
	  previously removed. ........

2009-07-08 15:56 +0000 [r205120-205151]  Russell Bryant <russell@digium.com>

	* main/ssl.c: Use tabs instead of spaces for indentation.

	* res/res_crypto.c, main/ssl.c (added),
	  include/asterisk/_private.h, res/res_jabber.c, main/asterisk.c:
	  Move OpenSSL initialization to a single place, make library usage
	  thread-safe. While doing some reading about OpenSSL, I noticed a
	  couple of things that needed to be improved with our usage of
	  OpenSSL. 1) We had initialization of the library done in multiple
	  modules. This has now been moved to a core function that gets
	  executed during Asterisk startup. We already link OpenSSL into
	  the core for TCP/TLS functionality, so this was the most logical
	  place to do it. 2) OpenSSL is not thread-safe by default.
	  However, making it thread safe is very easy. We just have to
	  provide a couple of callbacks. One callback returns a thread ID.
	  The other handles locking. For more information, start with the
	  "Is OpenSSL thread-safe?" question on the FAQ page of
	  openssl.org.

2009-07-08 14:45 +0000 [r205118]  Luigi Rizzo <rizzo@icir.org>

	* bootstrap.sh: FreeBSD now has autoconf 2.62 in the ports, 2.61
	  has disappeared.

2009-07-07 21:10 +0000 [r205086]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Permit setting custom headers from the peer
	  definition. (closes issue #14059) Reported by: fnordian

2009-07-07 18:24 +0000 [r205014-205047]  Matthew Nicholson <mnicholson@digium.com>

	* channels/sig_analog.c: Fix a deadlock in sig_analog

	* channels/sig_analog.c: Add CEL transfer events to analog
	  (chan_dahdi) transfers.

2009-07-06 21:37 +0000 [r204986]  Tilghman Lesher <tlesher@digium.com>

	* addons/res_config_mysql.c: Merged revisions 981 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk-addons/branches/1.4
	  ........ r981 | tilghman | 2009-07-06 16:30:13 -0500 (Mon, 06 Jul
	  2009) | 7 lines Don't reset reconnect time, unless a reconnect
	  really occurred. (closes issue #15375) Reported by: kowalma
	  Patches: 20090628__issue15375.diff.txt uploaded by tilghman
	  (license 14) Tested by: kowalma, jacco ........

2009-07-06 13:38 +0000 [r204948]  Kevin P. Fleming <kpfleming@digium.com>

	* main/channel.c: Improve handling of AST_CONTROL_T38 and
	  AST_CONTROL_T38_PARAMETERS for non-T.38-capable channels. This
	  change allows applications that request T.38 negotiation on a
	  channel that does not support it to get the proper indication
	  that it is not supported, rather than thinking that negotiation
	  was started when it was not.

2009-07-03 15:44 +0000 [r204893-204919]  Sean Bright <sean@malleable.com>

	* channels/sig_pri.h, channels/chan_dahdi.c, configure,
	  include/asterisk/autoconfig.h.in, configure.ac,
	  channels/sig_pri.c: Add a configure check for Reverse Charging
	  Indication support in LibPRI. Also go back and wrap all of the
	  places that use the specific reverse charge APIs with
	  preprocessor conditionals.

	* include/asterisk/rtp_engine.h: Wrap rtp_engine.h header comments
	  to 80 characters.

2009-07-02 22:01 +0000 [r204835]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, /: Merged revisions 204834 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r204834 | rmudgett | 2009-07-02 16:59:43 -0500 (Thu, 02
	  Jul 2009) | 10 lines Removed confusing warning message "Got Busy
	  in Connected State" If an incoming mISDN call is answered with
	  the Answer application and a subsequent Dial gets a busy endpoint
	  then it is valid for that already connected channel to get the
	  busy indication. Asterisk will play the busy tones until the
	  dialplan plays something else or hangs up the call. (closes issue
	  #11974) Reported by: fvdb ........

2009-07-02 20:37 +0000 [r204807]  Matthew Nicholson <mnicholson@digium.com>

	* main/channel.c, main/features.c: Moved trigger for BRIDGE_END CEL
	  event so that it is more accurate.

2009-07-02 17:46 +0000 [r204749]  Sean Bright <sean@malleable.com>

	* channels/sig_pri.h, channels/chan_dahdi.c,
	  configs/chan_dahdi.conf.sample, funcs/func_channel.c, CHANGES,
	  channels/sig_pri.c: Support setting and receiving Reverse
	  Charging Indication over ISDN PRI. This is a continuation of
	  revision 885 to LibPRI (Capture and expose the Reverse Charging
	  Indication IE on ISDN PRI) which added the ability to get/set
	  Reverse Charging Indication in LibPRI. This patch adds the
	  ability to specify RCI on the outbound leg of a PRI call from
	  within Asterisk, by prefixing the dialed number with a capital
	  'C' like: ...,Dial(DAHDI/g1/C4445556666) And to read it off an
	  inbound channel: exten => s,1,Set(RCI=${CHANNEL(reversecharge)})
	  Thanks again to rmudgett for the thorough review. (closes issue
	  #13760) Reported by: mrgabu Review:
	  https://reviewboard.asterisk.org/r/303/

2009-07-02 16:03 +0000 [r204710]  David Vossel <dvossel@digium.com>

	* include/asterisk/devicestate.h, main/pbx.c, /,
	  main/devicestate.c: Merged revisions 204681 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r204681 | dvossel | 2009-07-02 10:05:57 -0500 (Thu, 02 Jul 2009)
	  | 14 lines Improved mapping of extension states from combined
	  device states. This fixes a few issues with incorrect extension
	  states and adds a cli command, core show device2extenstate, to
	  display all possible state mappings. (closes issue #15413)
	  Reported by: legart Patches: exten_helper.diff uploaded by
	  dvossel (license 671) Tested by: dvossel, legart, amilcar Review:
	  https://reviewboard.asterisk.org/r/301/ ........

2009-07-01 19:47 +0000 [r204654]  Ryan Brindley <rbrindley@digium.com>

	* configs/http.conf.sample: - cfgbasic.html has been replaced by
	  index.html in the GUI for some time now

2009-07-01 16:06 +0000 [r204622]  Sean Bright <sean@malleable.com>

	* apps/app_voicemail.c: A bunch of CODING_GUIDELINES related fixes.
	  Not even close to done.

2009-06-30 20:41 +0000 [r204563]  Tilghman Lesher <tlesher@digium.com>

	* /, main/say.c, UPGRADE.txt: Merged revisions 204556 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r204556 | tilghman | 2009-06-30 15:23:51 -0500 (Tue, 30
	  Jun 2009) | 6 lines More incorrect language codes, plus ensuring
	  that regionalizations use the specified language, and not English
	  for grammar. (closes issue #15022) Reported by: greenfieldtech
	  Patches: 20090519__issue15022.diff.txt uploaded by tilghman
	  (license 14) ........

2009-06-30 20:39 +0000 [r204561]  Sean Bright <sean@malleable.com>

	* apps/app_voicemail.c: Remove an unnecessary #ifdef

2009-06-30 19:59 +0000 [r204530-204532]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Move the masquerade in
	  local_attended_transfer to a point where we hold the channel
	  lock. Masquerading without the channel's lock held is a
	  *horrible* idea.

	* channels/chan_sip.c: Remove some bogus deadlock avoidance code
	  from local_attended_transfer. First of all, the code was
	  unnecessary. The goal was to lock a channel which was already
	  locked. Second, the assumption of the deadlock avoidance loop was
	  that the sip_pvt was already locked and we were trying to get the
	  channel lock. The problem is that the sip_pvt was unlocked a few
	  lines above. Basically, I'm removing 5 lines of no-op.

2009-06-30 18:48 +0000 [r204475]  Jason Parker <jparker@digium.com>

	* /, main/say.c: Merged revisions 204474 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r204474 | qwell | 2009-06-30 13:47:06 -0500 (Tue, 30 Jun 2009) |
	  1 line Fix ast_say_counted_noun to correctly handle Polish. Fix a
	  comment typo in passing. ........

2009-06-30 18:36 +0000 [r204470]  Tilghman Lesher <tlesher@digium.com>

	* /, main/say.c, UPGRADE.txt, apps/app_voicemail.c: Recorded merge
	  of revisions 204469 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r204469 | tilghman | 2009-06-30 13:23:35 -0500 (Tue, 30 Jun 2009)
	  | 11 lines "tw" is the language specification for Twi (from
	  Ghana) not Taiwanese. (closes issue #15346) Reported by: volivier
	  Patches: 20090617__issue15346__1.4.diff.txt uploaded by tilghman
	  (license 14) 20090617__issue15346__trunk.diff.txt uploaded by
	  tilghman (license 14) 20090617__issue15346__1.6.0.diff.txt
	  uploaded by tilghman (license 14)
	  20090617__issue15346__1.6.1.diff.txt uploaded by tilghman
	  (license 14) 20090617__issue15346__1.6.2.diff.txt uploaded by
	  tilghman (license 14) Tested by: volivier ........

2009-06-30 17:22 +0000 [r204417-204440]  Russell Bryant <russell@digium.com>

	* configs/res_config_sqlite.conf (removed),
	  configs/res_config_sqlite.conf.sample (added): Rename
	  res_config_sqlite.conf to res_config_sqlite.conf.sample (missing
	  .sample).

	* addons/chan_ooh323.c, configs/chan_ooh323.conf.sample (added),
	  configs/ooh323.conf.sample (removed): Rename ooh323.conf to
	  chan_ooh323.conf, make module support both names

	* configs/mobile.conf.sample (removed), addons/chan_mobile.c,
	  configs/chan_mobile.conf.sample (added): Rename mobile.conf to
	  chan_mobile.conf, make module support old name, too

	* configs/res_config_mysql.conf.sample (added),
	  configs/res_mysql.conf.sample (removed),
	  addons/res_config_mysql.c: Rename res_mysql.conf to
	  res_config_mysql.conf, make module support both

	* Makefile: Make addons build last - this is for Qwell.

	* addons/app_mysql.c, configs/app_mysql.conf.sample (added),
	  configs/mysql.conf.sample (removed): Rename mysql.conf to
	  app_mysql.conf, make module support both names

	* addons/Makefile, addons/cdr_mysql.c (added),
	  addons/cdr_addon_mysql.c (removed): Rename cdr_addon_mysql to
	  cdr_mysql

	* addons/app_mysql.c (added), addons/app_addon_sql_mysql.c
	  (removed), addons/Makefile: Rename app_addon_sql_mysql to
	  app_mysql

2009-06-30 17:04 +0000 [r204415]  Kevin P. Fleming <kpfleming@digium.com>

	* build_tools/embed_modules.xml, Makefile.moddir_rules,
	  addons/Makefile: Add-ons related build system improvements.
	  Ensure that add-on modules can be embedded, fix up
	  Makefile.moddir_rules to allow module directory Makefiles to more
	  easily specify the modules to be built, and explicitly list the
	  addons modules in its Makefile, since the module names don't
	  follow any pattern.

2009-06-30 16:40 +0000 [r204413]  Russell Bryant <russell@digium.com>

	* autoconf/ast_ext_tool_check.m4, addons/ooh323c/src/oochannels.h,
	  addons/ooh323c/src/printHandler.h, addons/chan_ooh323.c,
	  addons/ooh323c/src/ooq931.h, include/asterisk/autoconfig.h.in,
	  addons/ooh323c/src/ootrace.h, addons/chan_ooh323.h,
	  addons/ooh323c/src/ooasn1.h, configs/res_mysql.conf.sample
	  (added), addons/ooh323c/src/ooStackCmds.c,
	  addons/ooh323c/src/errmgmt.c, addons/ooh323c/src/ooStackCmds.h,
	  addons/ooh323c/src/eventHandler.c,
	  addons/ooh323c/src/h323/H235-SECURITY-MESSAGES.h,
	  addons/mp3/huffman.h, configure,
	  addons/ooh323c/src/eventHandler.h, addons/ooh323cDriver.c,
	  include/asterisk/mod_format.h, addons/mp3/interface.c,
	  doc/tex/asterisk.tex, addons/ooh323cDriver.h,
	  addons/cdr_addon_mysql.c, addons/ooh323c/src/encode.c,
	  addons/mp3/MPGLIB_README,
	  addons/ooh323c/src/h323/H235-SECURITY-MESSAGESEnc.c,
	  configure.ac, doc/tex/chan_mobile.tex (added),
	  addons/ooh323c/src/ooports.c, addons/mp3/mpg123.h,
	  addons/mp3/mpglib.h, addons (added),
	  addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.c,
	  addons/ooh323c/src/ooports.h, addons/ooh323c/src/memheap.c,
	  Makefile, addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROL.h,
	  addons/ooh323c/src/ooh245.c, addons/mp3/common.c,
	  addons/ooh323c/src/memheap.h, addons/ooh323c/src/perutil.c,
	  addons/mp3/decode_i386.c, addons/ooh323c/src/ooh245.h,
	  addons/mp3/dct64_i386.c, addons/ooh323c/src/ooSocket.c,
	  addons/ooh323c/src/h323/H235-SECURITY-MESSAGESDec.c,
	  addons/mp3/layer3.c, addons/ooh323c/src/ooper.h,
	  addons/ooh323c/src/ooCmdChannel.c, addons/ooh323c/src/ooSocket.h,
	  addons/ooh323c/src/ooCommon.h, addons/ooh323c/src/ooCmdChannel.h,
	  addons/ooh323c/COPYING, addons/format_mp3.c,
	  addons/ooh323c/src/Makefile.in, configs/mobile.conf.sample
	  (added), addons/ooh323c/src/ootypes.h, addons/mp3,
	  addons/ooh323c/src/ooLogChan.c, addons/ooh323c/src/ooTimer.c,
	  addons/ooh323c/src/ooLogChan.h, addons/ooh323c/src/dlist.c,
	  addons/ooh323c/src/ooCapability.c, addons/ooh323c/src/oohdr.h,
	  README-addons.txt (added), addons/app_addon_sql_mysql.c,
	  addons/ooh323c/src/ooTimer.h, addons/ooh323c/src/ooCapability.h,
	  addons/ooh323c/src/dlist.h, addons/mp3/Makefile, addons/Makefile,
	  addons/ooh323c/README, addons/ooh323c, doc/tex/cdrdriver.tex,
	  addons/ooh323c/src/h323/H323-MESSAGESEnc.c, addons/chan_mobile.c,
	  configs/cdr_mysql.conf.sample (added),
	  addons/ooh323c/src/ooDateTime.c, addons/ooh323c/src/rtctype.c,
	  addons/ooh323c/src/ooCalls.c, addons/ooh323c/src/ooGkClient.c,
	  addons/ooh323c/src/h323, addons/ooh323c/src/ooUtils.c,
	  addons/ooh323c/src/ooDateTime.h,
	  addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLEnc.c,
	  addons/ooh323c/src/rtctype.h, addons/ooh323c/src/ooCalls.h,
	  configs/mysql.conf.sample (added), addons/ooh323c/src/ooh323ep.c,
	  addons/ooh323c/src/ooGkClient.h,
	  addons/ooh323c/src/h323/H323-MESSAGES.c,
	  addons/ooh323c/src/ooUtils.h, addons/mp3/README, UPGRADE.txt,
	  addons/mp3/MPGLIB_TODO, addons/ooh323c/src/ooh323ep.h,
	  addons/ooh323c/src/h323/H323-MESSAGES.h,
	  addons/mp3/decode_ntom.c, configs/ooh323.conf.sample (added),
	  addons/ooh323c/src/ooh323.c,
	  addons/ooh323c/src/h323/H323-MESSAGESDec.c, addons/ooh323c/src,
	  build_tools/menuselect-deps.in, addons/mp3/tabinit.c,
	  addons/ooh323c/src/ooh323.h, doc/tex/Makefile,
	  addons/ooh323c/src/decode.c, addons/ooh323c/src/context.c,
	  main/file.c,
	  addons/ooh323c/src/h323/MULTIMEDIA-SYSTEM-CONTROLDec.c,
	  makeopts.in, addons/ooh323c/src/oochannels.c,
	  addons/app_saycountpl.c, addons/ooh323c/src/printHandler.c,
	  addons/ooh323c/src/ooq931.c, addons/ooh323c/src/ootrace.c,
	  addons/res_config_mysql.c: Move Asterisk-addons modules into the
	  main Asterisk source tree. Someone asked yesterday, "is there a
	  good reason why we can't just put these modules in Asterisk?".
	  After a brief discussion, as long as the modules are clearly set
	  aside in their own directory and not enabled by default, it is
	  perfectly fine. For more information about why a module goes in
	  addons, see README-addons.txt. chan_ooh323 does not currently
	  compile as it is behind some trunk API updates. However, it will
	  not build by default, so it should be okay for now.

2009-06-29 23:50 +0000 [r204355]  Sean Bright <sean@malleable.com>

	* apps/app_meetme.c: A few const changes in app_meetme.c that I
	  noticed while browsing the source.

2009-06-29 22:50 +0000 [r204247-204301]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 204300 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r204300 | mmichelson | 2009-06-29 17:45:34 -0500 (Mon, 29 Jun
	  2009) | 9 lines Add error message so that it is clear why a SIP
	  peer was not processed when a DNS lookup fails on a host or
	  outboundproxy. (closes issue #13432) Reported by: p_lindheimer
	  Patches: outboundproxy.patch uploaded by p (license 558) ........

	* /, channels/chan_sip.c: Merged revisions 204243,204246 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r204243 | mmichelson | 2009-06-29 16:23:43 -0500 (Mon, 29 Jun
	  2009) | 22 lines Fix a problem where chan_sip would ignore "old"
	  but valid responses. chan_sip has had a problem for quite a long
	  time that would manifest when Asterisk would send multiple SIP
	  responses on the same dialog before receiving a response. The
	  problem occurred because chan_sip only kept track of the highest
	  outgoing sequence number used on the dialog. If Asterisk sent two
	  requests out, and a response arrived for the first request sent,
	  then Asterisk would ignore the response. The result was that
	  Asterisk would continue retransmitting the requests and ignoring
	  the responses until the maximum number of retransmissions had
	  been reached. The fix here is to rearrange the code a bit so that
	  instead of simply comparing the sequence number of the response
	  to our latest outgoing sequence number, we walk our list of
	  outstanding packets and determine if there is a match. If there
	  is, we continue. If not, then we ignore the response. In doing
	  this, I found a few completely useless variables that I have now
	  removed. (closes issue #11231) Reported by: flefoll Review:
	  https://reviewboard.asterisk.org/r/298 ........ r204246 |
	  mmichelson | 2009-06-29 16:37:05 -0500 (Mon, 29 Jun 2009) | 3
	  lines Fix build oops. ........

2009-06-29 20:29 +0000 [r204119-204217]  Sean Bright <sean@malleable.com>

	* configs/cel_adaptive_odbc.conf.sample: Reorganize this adaptive
	  CEL config a bit.

	* apps/app_rpt.c: Get app_rpt compiling again. I doubt seriously
	  that it actually works. Also, the code in this module is
	  horrendous and we should remove it from the tree. I'm not sure
	  who is supposed to be maintaning this thing, but they clearly are
	  not. I don't see the sense of leaving it in the main tree. If it
	  lives *anywhere* it should be in addons.

	* configs/cel_sqlite3_custom.conf.sample, configs/cel.conf.sample,
	  configs/cel_adaptive_odbc.conf.sample,
	  configs/cel_pgsql.conf.sample, configs/cel_custom.conf.sample:
	  Add common headers to CEL related configs.

2009-06-29 17:56 +0000 [r204069-204118]  Tilghman Lesher <tlesher@digium.com>

	* main/channel.c, include/asterisk/channel.h: Allow trunk to once
	  again compile under MALLOC_DEBUG

	* configs/cel_adaptive_odbc.conf.sample: Remove invalid entries in
	  the config. This might seem like a legitimate comment that merely
	  needed semicolon prefixes, but in reality, the adaptive layer is
	  designed to allow arbitrary CDR variables, without needing the
	  use of a userfield to store multiple items. It's therefore not
	  only invalid syntax but also goes against the intent of the
	  adaptive method.

2009-06-27 20:26 +0000 [r203985]  Sean Bright <sean@malleable.com>

	* CHANGES: Another CHANGES spelling fix.

2009-06-27 10:04 +0000 [r203960-203962]  Russell Bryant <russell@digium.com>

	* main/app.c: Only update total silence counter after a counter
	  reset. (closes issue #2264) Reported by: pfn Patches:
	  silent-vm-1.6.2-fix2.txt uploaded by pfn (license 810) Tested by:
	  pfn

	* UPGRADE.txt, CHANGES: Minor tweaks and spelling fixes for CHANGES
	  and UPGRADE.txt.

2009-06-27 01:07 +0000 [r203909]  Richard Mudgett <rmudgett@digium.com>

	* /, channels/sig_pri.c: Merged revisions 203908 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r203908 | rmudgett | 2009-06-26 19:55:12 -0500 (Fri, 26 Jun 2009)
	  | 16 lines The ISDN CPE side should not exclusively pick B
	  channels normally. Before this patch, Asterisk unconditionally
	  picked B channels exclusively on the CPE side and normally
	  allowed alternative B channels on the network side. Now Asterisk
	  does the opposite. Reasons for the CPE side to normally not pick
	  B channels exclusively: * For CPE point-to-multipoint mode (i.e.
	  phone side), the CPE side does not have enough information to
	  exclusively pick B channels. (There may be other devices on the
	  line.) * Q.931 gives preference to the network side picking B
	  channels. * Some telcos require the CPE side to not pick B
	  channels exclusively. (closes issue #14383) Reported by:
	  mbrancaleoni ........

2009-06-26 22:11 +0000 [r203853]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 203848 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r203848 | jpeeler | 2009-06-26 17:09:19 -0500 (Fri, 26
	  Jun 2009) | 5 lines Make sure to recreate the dahdi pseudo
	  channel after dahdi restart (closes issue #14477) Reported by:
	  timking ........

2009-06-26 22:08 +0000 [r203846]  Sean Bright <sean@malleable.com>

	* cdr/cdr_syslog.c (added), build_tools/menuselect-deps.in,
	  configure, configure.ac, configs/cdr_syslog.conf.sample (added),
	  CHANGES: Add a new module, cdr_syslog, which allows writing CDRs
	  to syslog. The original patch for this was written by Brett
	  Bryant, and I split it out into it's own module. (closes issue
	  #12876) Reported by: bbryant Patches:
	  06162008_cdr_custom_syslog.diff uploaded by bbryant (license 36)
	  05212009_cdr_syslog.patch uploaded by seanbright (license 71)
	  Tested by: seanbright Review:
	  https://reviewboard.asterisk.org/r/297/

2009-06-26 21:48 +0000 [r203802-203842]  Russell Bryant <russell@digium.com>

	* CHANGES, apps/app_chanspy.c: Add 's' option to ChanSpy, which
	  makes the app exit when no channels are left to spy on. (closes
	  issue #14594) Reported by: JimDickenson Patches: chanspy.diff
	  uploaded by JimDickenson (license 710)

	* /, main/file.c: Merged revisions 203785 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r203785 | russell | 2009-06-26 16:16:39 -0500 (Fri, 26 Jun 2009)
	  | 15 lines Don't fast forward past the end of a message. This is
	  nice change for users of the voicemail application. If someone
	  gets a little carried away with fast forwarding through a
	  message, they can easily get to the end and accidentally exit the
	  voicemail application by hitting the fast forward key during the
	  following prompt. This adds some safety by not allowing a fast
	  forward past the end of a message. (closes issue #14554) Reported
	  by: lacoursj Patches: 21761.patch uploaded by lacoursj (license
	  707) Tested by: lacoursj ........

2009-06-26 20:52 +0000 [r203783]  Mark Michelson <mmichelson@digium.com>

	* doc/manager_1_1.txt, main/manager.c: Add timestamp to response to
	  "Ping" manager action. (closes issue #14596) Reported by:
	  JimDickenson Patches: pong2.diff uploaded by JimDickenson
	  (license 710)

2009-06-26 20:45 +0000 [r203779]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Ensure the TCP read buffer is fully
	  initialized before handling each packet. (closes issue #14452)
	  Reported by: umberto71

2009-06-26 20:19 +0000 [r203735]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample, CHANGES: Fix the
	  'nat' option to actually do RFC3581 as expected and extend the
	  configurable values for finer control. (closes issue #8855)
	  Reported by: mikma Tested by: klaus3000, file

2009-06-26 20:13 +0000 [r203721]  David Brooks <dbrooks@digium.com>

	* apps/app_voicemail.c: Fixing voicemail's error in checking max
	  silence vs min message length Max silence was represented in
	  milliseconds, yet vmminsecs (minmessage) was represented as
	  seconds. Also, the inequality was reversed. The warning, if
	  triggered, was "Max silence should be less than minmessage or you
	  may get empty messages", which should have been logged if max
	  silence was greater than minmessage, but the check was for less
	  than. Also, conforming if statement to coding guidelines. closes
	  issue #15331) Reported by: markd Review:
	  https://reviewboard.asterisk.org/r/293/

2009-06-26 19:47 +0000 [r203710]  David Vossel <dvossel@digium.com>

	* channels/chan_iax2.c: moving debug message from level 0 to 1.
	  (closes issue #15404) Reported by: leobrown Patches:
	  iax_codec_debug.patch uploaded by leobrown (license 541)

2009-06-26 19:31 +0000 [r203702]  Russell Bryant <russell@digium.com>

	* include/asterisk/devicestate.h, main/pbx.c, main/devicestate.c:
	  Make invalid hints report Unavailable instead of Idle. (closes
	  issue #14413) Reported by: pj

2009-06-26 19:27 +0000 [r203699]  Joshua Colp <jcolp@digium.com>

	* main/channel.c, main/frame.c, main/rtp_engine.c,
	  channels/chan_sip.c, apps/app_fax.c, configs/sip.conf.sample,
	  include/asterisk/frame.h: Improve T.38 negotiation by exchanging
	  session parameters between application and channel.

2009-06-26 19:03 +0000 [r203672]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_analog.c: Check if polarityonanswerdelay has elapsed
	  before setting a channel as answered after a polarity reversal.
	  Previously on a polarity switch event chan_dahdi would set the
	  channel immediately as answered. This would cause problems if a
	  polarity reversal occurred when the line was picked up as the
	  dial would not have yet occurred. Now if the polarity reversal
	  occurs before delay has elapsed after coming off hook or an
	  answer, it is ignored. Also, some refactoring was done in
	  _handle_event. (closes issue #13917) Reported by: alecdavis
	  Patches: chan_dahdi.bug13917.feb09.diff2.txt uploaded by
	  alecdavis (license 585) Tested by: alecdavis

2009-06-26 15:42 +0000 [r203638-203640]  Russell Bryant <russell@digium.com>

	* include/asterisk/doxyref.h, include/asterisk/channel.h: Note a
	  new API call, and one that changed in doxygen.

	* cel/cel_pgsql.c, configs/cel_sqlite3_custom.conf.sample (added),
	  cdr/cdr_sqlite3_custom.c, configs/cel.conf.sample (added),
	  channels/chan_local.c, include/asterisk/cel.h (added),
	  main/devicestate.c, apps/app_chanisavail.c, channels/chan_iax2.c,
	  doc/tex/cel-doc.tex (added), main/loader.c, main/cli.c,
	  channels/chan_dahdi.c, channels/sig_analog.c,
	  channels/chan_skinny.c, include/asterisk/event_defs.h,
	  main/features.c, res/ais/evt.c, channels/sig_analog.h,
	  channels/chan_alsa.c, doc/tex/asterisk.tex, cdr/cdr_manager.c,
	  apps/app_dial.c, main/pbx.c, include/asterisk/utils.h,
	  channels/chan_bridge.c, cel/cel_tds.c, channels/chan_agent.c,
	  configs/cel_adaptive_odbc.conf.sample (added),
	  include/asterisk/cdr.h, include/asterisk/channel.h, CHANGES,
	  main/cel.c (added), Makefile, channels/chan_misdn.c,
	  funcs/func_channel.c, funcs/func_cdr.c, doc/tex/celdriver.tex
	  (added), main/asterisk.c, cel/cel_adaptive_odbc.c,
	  apps/app_voicemail.c, res/res_calendar.c,
	  channels/chan_unistim.c, tests/test_substitution.c,
	  cel/cel_radius.c, channels/chan_multicast_rtp.c,
	  channels/chan_vpb.cc, apps/app_meetme.c, channels/chan_gtalk.c,
	  apps/app_followme.c, configs/cel_tds.conf.sample (added),
	  main/channel.c, main/cdr.c, channels/chan_phone.c, main/dial.c,
	  main/manager.c, include/asterisk/event.h,
	  bridges/bridge_builtin_features.c, funcs/func_odbc.c,
	  cel/cel_custom.c, cel/cel_manager.c, cdr/cdr_sqlite.c,
	  res/res_agi.c, apps/app_minivm.c, main/logger.c,
	  apps/app_confbridge.c, configs/cel_custom.conf.sample (added),
	  channels/chan_mgcp.c, apps/app_parkandannounce.c,
	  cdr/cdr_custom.c, channels/chan_sip.c, cel (added),
	  configs/cel_pgsql.conf.sample (added), channels/chan_console.c,
	  include/asterisk/_private.h, channels/sig_pri.c,
	  apps/app_queue.c, channels/chan_oss.c, channels/sig_pri.h,
	  channels/chan_usbradio.c, channels/chan_jingle.c, cel/Makefile,
	  apps/app_celgenuserevent.c (added), apps/app_directed_pickup.c,
	  channels/chan_h323.c, cel/cel_sqlite3_custom.c, main/event.c,
	  channels/chan_nbs.c: Merge the new Channel Event Logging (CEL)
	  subsystem. CEL is the new system for logging channel events. This
	  was inspired after facing many problems trying to represent what
	  is possible to happen to a call in Asterisk using CDR records.
	  For more information on CEL, see the built in HTML or PDF
	  documentation generated from the files in doc/tex/. Many thanks
	  to Steve Murphy (murf) and Brian Degenhardt (bmd) for their hard
	  work developing this code. Also, thanks to Matt Nicholson
	  (mnicholson) and Sean Bright (seanbright) for their assistance in
	  the final push to get this code ready for Asterisk trunk. Review:
	  https://reviewboard.asterisk.org/r/239/

2009-06-26 13:00 +0000 [r203569-203605]  Sean Bright <sean@malleable.com>

	* include/asterisk/syslog.h, main/syslog.c: Add functions to map
	  syslog facilities and priorities constants to strings. Also
	  change the default casing of the string contants to lowercase.
	  This really just saves us from have to lowercase them later when
	  displaying them.

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  main/syslog.c: Add checks in configure for non-POSIX syslog
	  facilities.

2009-06-26 00:23 +0000 [r203525-203534]  Russell Bryant <russell@digium.com>

	* main/syslog.c: One more formatting nit ... use spaces for inline
	  indentation.

	* main/syslog.c: Convert spaces to tabs for indentation.

2009-06-25 23:54 +0000 [r203508]  Sean Bright <sean@malleable.com>

	* include/asterisk/syslog.h (added), main/logger.c, main/syslog.c
	  (added): Move syslog utility functions into a separate file so
	  they can be re-used. This has the pleasant side effect of
	  cleaning up the header inclusion process in logger.c.

2009-06-25 22:48 +0000 [r203479]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: make sure chan_dahdi compiles with only
	  libss7 and not libpri installed

2009-06-25 21:45 +0000 [r203444]  David Vossel <dvossel@digium.com>

	* main/ast_expr2.fl, main/ast_expr2.c: fixes a few redundant
	  conditions (issue #15269)

2009-06-25 21:34 +0000 [r203443]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: Picking nits

2009-06-25 21:22 +0000 [r203402]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample: Remove
	  some unnecessary code and update sample config file with respect
	  to GR-303.

2009-06-25 21:15 +0000 [r203381]  Terry Wilson <twilson@digium.com>

	* /, main/cli.c: Merged revisions 203380 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r203380 | twilson | 2009-06-25 16:13:10 -0500 (Thu, 25 Jun 2009)
	  | 4 lines I didn't see that Mark already fixed the underlying
	  issue! Yay for removing useless code. ........

2009-06-25 21:04 +0000 [r203376]  Russell Bryant <russell@digium.com>

	* /, main/features.c: Merged revisions 203375 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r203375 | russell | 2009-06-25 16:02:18 -0500 (Thu, 25 Jun 2009)
	  | 9 lines Fix a case where CDR answer time could be before the
	  start time involving parking. (closes issue #13794) Reported by:
	  davidw Patches: 13794.patch uploaded by murf (license 17)
	  13794.patch.160 uploaded by murf (license 17) Tested by: murf,
	  dbrooks ........

2009-06-25 20:25 +0000 [r203338]  Terry Wilson <twilson@digium.com>

	* /, main/cli.c: Merged revisions 203311 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r203311 | twilson | 2009-06-25 15:09:15 -0500 (Thu, 25 Jun 2009)
	  | 2 lines Don't try to free NULL ........

2009-06-25 19:54 +0000 [r203304]  Jeff Peeler <jpeeler@digium.com>

	* channels/sig_pri.h (added), channels/chan_dahdi.c,
	  channels/sig_analog.c, channels/sig_analog.h, channels/sig_pri.c
	  (added), channels/Makefile: New signaling module to handle
	  PRI/BRI operations in chan_dahdi This merge splits the PRI/BRI
	  signaling logic out of chan_dahdi.c into sig_pri.c. Functionality
	  in theory should not change (mostly). A few trivial changes were
	  made in sig_analog with verbose messages and commenting.

2009-06-25 19:22 +0000 [r203258]  Jason Parker <jparker@digium.com>

	* channels/chan_dahdi.c: Unmute when we get a dtmfup (we muted on
	  dtmfdown) event. This would occasionally cause one-way audio when
	  using hardware DTMF detection. (closes issue #14761) Reported by:
	  tzafrir Patches: v1-14761.patch uploaded by dimas (license 88)
	  Tested by: tzafrir, dimas

2009-06-25 18:25 +0000 [r203227]  Joshua Colp <jcolp@digium.com>

	* res/res_rtp_multicast.c (added), channels/chan_multicast_rtp.c
	  (added), CHANGES: Add support for multicast RTP paging. (closes
	  issue #11797) Reported by: macbrody Review:
	  https://reviewboard.asterisk.org/r/270/

2009-06-25 17:01 +0000 [r203188]  Sean Bright <sean@malleable.com>

	* main/logger.c: Pass a logmsg to ast_log_vsyslog instead of
	  separate arguments.

2009-06-25 16:18 +0000 [r203126]  Doug Bailey <dbailey@digium.com>

	* channels/chan_dahdi.c: Insure ring cadence is set for fxs ports
	  Moved SETCADENCE ioctl call to before call into new analog signal
	  module to insure that it gets set. (closes issue #15381) Reported
	  by: alecdavis Patches: fix15381.diff uploaded by dbailey (license
	  819) Tested by: dbailey

2009-06-25 16:04 +0000 [r203116]  Russell Bryant <russell@digium.com>

	* /, channels/chan_sip.c: Merged revisions 203115 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r203115 | russell | 2009-06-25 11:02:16 -0500 (Thu, 25 Jun 2009)
	  | 11 lines Resolve a crash related to a T.38 reinvite race
	  condition. This change resolves a crash observed locally during
	  some T.38 testing. A call was set up using a call file, and when
	  the T.38 reinvite came in, the channel state was still
	  AST_STATE_DOWN. The reason is explained by a comment in the code
	  that previously lived in the handling of AST_STATE_RINGING. This
	  change modifies the logic to handle the same race condition for
	  any channel state that is not UP. (closes ABE-1895) ........

2009-06-24 21:08 +0000 [r203037]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 203036 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r203036 | rmudgett | 2009-06-24 16:01:43 -0500 (Wed, 24
	  Jun 2009) | 8 lines Improved chan_dahdi.conf pritimer error
	  checking. Valid format is: pritimer=timer_name,timer_value *
	  Fixed segfault if the ',' is missing. * Completely check the
	  range returned by pri_timer2idx() to prevent possible access
	  outside array bounds. ........

2009-06-24 18:29 +0000 [r202967]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 202966 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r202966 | mmichelson | 2009-06-24 13:28:47 -0500 (Wed, 24 Jun
	  2009) | 3 lines Use the handy UNLINK macro instead of hand-coding
	  the same thing in-line. ........

2009-06-24 18:08 +0000 [r202925]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Ensure the default settings are applied for
	  T.38 when we set it up for a peer.

2009-06-24 13:53 +0000 [r202840-202889]  Sean Bright <sean@malleable.com>

	* doc/tex: Ignore some files generated when asterisk.pdf is
	  created.

	* configs/cdr_tds.conf.sample, cdr/cdr_tds.c: Update sample cdr_tds
	  configuration to try and eliminate some confusion. Also change
	  the preferred configuration option from 'hostname' (which was
	  misleading because it didn't actually treat the value as a
	  hostname) to 'connection' and added some verbage explaining that
	  the user would need to refer to their freetds.conf file for those
	  settings. 'hostname' was kept as a backwards compatible
	  configuration parameter.

	* doc/tex/billing.tex, doc/tex/cdrdriver.tex: Change some section
	  names in the CDR tex documentation.

	* doc/tex/cdrdriver.tex: Remove some trailing whitespace before
	  making content changes.

2009-06-23 22:47 +0000 [r202804]  Russell Bryant <russell@digium.com>

	* doc/tex/cdrdriver.tex: Clean up section hierarchy for the CDR
	  chapter.

2009-06-23 22:08 +0000 [r202761]  Matthew Fredrickson <creslin@digium.com>

	* channels/chan_dahdi.c: I could have sworn I committed this patch
	  ages ago, but... bug fix with setting NAI properly on linksets in
	  certain situations.

2009-06-23 21:38 +0000 [r202755]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c: Make outgoing_colp=2 misdn.conf port
	  parameter not send redirecting or transfer messages. If the
	  outgoing_colp parameter is set to not send COLP information, then
	  it does not make sense to send redirecting or transfer messages
	  announcing new COLP information that is blocked. The service
	  provider may supply the listed number for that line when it
	  passes the messages to the next hop. Why tell the switch that
	  these events happened when the information is otherwise
	  suppressed? Also blocked the number of previous redirects that
	  may have occurred to calls going out the port when outgoing_colp
	  is 2. Follow on to JIRA ABE-1853.

2009-06-23 21:25 +0000 [r202753]  Ryan Brindley <rbrindley@digium.com>

	* main/config.c: If we delete the info, lets also delete the lines
	  (closes issue #14509) Reported by: timeshell Patches:
	  20090504__bug14509.diff.txt uploaded by tilghman (license 14)
	  Tested by: awk, timeshell

2009-06-23 16:31 +0000 [r202672]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 202671 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r202671 | dvossel | 2009-06-23 11:28:46 -0500 (Tue, 23 Jun 2009)
	  | 12 lines MWI NOTIFY contains a wrong URI if Asterisk listens to
	  non-standard port and transport (closes issue #14659) Reported
	  by: klaus3000 Patches: patch_chan_sip_fixMWIuri_1.4.txt uploaded
	  by klaus3000 (license 65) mwi_port-transport_trunk.diff uploaded
	  by dvossel (license 671) Tested by: dvossel, klaus3000 Review:
	  https://reviewboard.asterisk.org/r/288/ ........

2009-06-23 14:54 +0000 [r202497-202570]  Russell Bryant <russell@digium.com>

	* main/app.c, CHANGES: Ignore voicemail messages that are just
	  silence. (closes issue #2264) Reported by: pfn Patches:
	  silent-vm-1.6.2.txt uploaded by pfn (license 810)

	* main/channel.c, /: Merged revisions 202496 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r202496 | russell | 2009-06-22 15:08:53 -0500 (Mon, 22 Jun 2009)
	  | 4 lines Report CallerID change during a masquerade. Reported
	  by: markster ........

2009-06-22 16:09 +0000 [r202417]  Sean Bright <sean@malleable.com>

	* cdr/cdr_sqlite3_custom.c: Fix lock usage in cdr_sqlite3_custom to
	  avoid potential crashes during reload. Pointed out by Russell
	  while working on the CEL branch.

2009-06-22 16:05 +0000 [r202415]  Russell Bryant <russell@digium.com>

	* /, channels/chan_sip.c: Merged revisions 202414 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r202414 | russell | 2009-06-22 11:00:00 -0500 (Mon, 22 Jun 2009)
	  | 2 lines Make Polycom subscription type override check more
	  explicit. ........

2009-06-22 15:33 +0000 [r202410]  David Vossel <dvossel@digium.com>

	* include/asterisk/module.h, main/loader.c: attempting to load
	  running modules Modules placed in the priority heap for loading
	  were not properly removed from the linked list. This resulted in
	  some modules attempting to load twice.

2009-06-22 14:58 +0000 [r202337-202343]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 202341-202342 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r202341 | mmichelson | 2009-06-22 09:42:55 -0500 (Mon, 22 Jun
	  2009) | 26 lines Fix a situation in which Asterisk would not stop
	  retransmitting 487s. If a CANCEL were received by Asterisk, we
	  would send a 487 in response to the original INVITE and a 200 OK
	  for the CANCEL. If there were a network hiccup which caused the
	  200 OK and the 487 to be lost, then the UA communicating with
	  Asterisk may try to retransmit its CANCEL. Asterisk's response to
	  this used to be to try sending another 487 to the canceled INVITE
	  and another 200 OK to the CANCEL. The problem here is that the
	  originally-sent 487 was sent "reliably" meaning that it will be
	  retransmitted until it is received properly. So when we receive
	  the second CANCEL it is likely that the first batch of 487s we
	  sent is still going strong and reaches the UA. The result was
	  that the second set of 487s would be retransmitted constantly
	  until the maximum number of retries had been reached. The fix for
	  this is that if we receive a second CANCEL for an INVITE, then we
	  cancel the retransmission of the first set of 487s and start a
	  second set. This causes the dialog to be terminated reasonably.
	  (closes issue #14584) Reported by: klaus3000 Patches:
	  14584_v2.patch uploaded by mmichelson (license 60) Tested by:
	  klaus3000 ........ r202342 | mmichelson | 2009-06-22 09:44:58
	  -0500 (Mon, 22 Jun 2009) | 3 lines Remove an extra debug line
	  left from previous commit. ........

	* /, channels/chan_sip.c: Merged revisions 202336 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r202336 | mmichelson | 2009-06-22 09:34:05 -0500 (Mon, 22 Jun
	  2009) | 25 lines Fix a possible infinite loop in SDP parsing
	  during glare situation. There was a while loop in
	  get_ip_and_port_from_sdp which was controlled by a call to
	  get_sdp_iterate. The loop would exit either if what we were
	  searching for was found or if the return was NULL. The problem is
	  that get_sdp_iterate never returns NULL. This means that if what
	  we were searching for was not present, the loop would run
	  infinitely. This modification of the loop fixes the problem.
	  (closes issue #15213) Reported by: schmidts (closes issue #15349)
	  Reported by: samy (closes issue #14464) Reported by: pj (closes
	  issue #15345) Reported by: aragon Patches: sip_inf_loop.patch
	  uploaded by mmichelson (license 60) Tested by: aragon ........

2009-06-21 16:36 +0000 [r202223-202301]  Russell Bryant <russell@digium.com>

	* cdr/cdr_sqlite3_custom.c: Note a bug in cdr_sqlite3_custom so I
	  don't forget about it.

	* cdr/cdr_manager.c: Fix possibility of crashiness during reload in
	  custom fields handling.

	* cdr/cdr_manager.c: Standardize return values of load_config() so
	  reload() doesn't report an error on success.

	* cdr/cdr_manager.c: Leave a note about some unsafe code in
	  cdr_manager

2009-06-20 19:09 +0000 [r202183]  Sean Bright <sean@malleable.com>

	* apps/app_fax.c: Fix version detection for API changes in spandsp.
	  (closes issue #15355) Reported by: deuffy

2009-06-20 14:09 +0000 [r202109]  Russell Bryant <russell@digium.com>

	* main/cdr.c, cdr/cdr_adaptive_odbc.c, cdr/cdr_pgsql.c: Remove
	  unnecessary usleep() from a couple of module unload callbacks. In
	  passing, also tweak cdr_unregister() to hold the list lock a bit
	  less time.

2009-06-19 21:25 +0000 [r202039]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Use sched_yield() instead of usleep(1)

2009-06-19 20:24 +0000 [r201994]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 201993 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r201993 | dvossel | 2009-06-19 15:22:02 -0500 (Fri, 19
	  Jun 2009) | 8 lines timestamp was being converted to host order
	  as a short rather than a long (closes issue #15361) Reported by:
	  ffloimair Patches: ts_issue.diff uploaded by dvossel (license
	  671) ........

2009-06-19 17:40 +0000 [r201944]  Terry Wilson <twilson@digium.com>

	* CHANGES: Add note about the addition of calendar support

2009-06-19 15:47 +0000 [r201904]  Tilghman Lesher <tlesher@digium.com>

	* res/res_config_odbc.c: Fix 2 typos and add support for wide
	  character types. Reported by Benny Amorsen via the asterisk-users
	  mailing list.
	  http://lists.digium.com/pipermail/asterisk-users/2009-June/233622.html

2009-06-19 15:41 +0000 [r201902]  Joshua Colp <jcolp@digium.com>

	* main/rtp_engine.c, channels/chan_sip.c,
	  include/asterisk/rtp_engine.h: Add support for allowing an RTP
	  engine to decide on whether it is possible for specific formats
	  to be transcoded for an RTP instance.

2009-06-19 00:43 +0000 [r201745-201829]  Tilghman Lesher <tlesher@digium.com>

	* /, main/features.c: Merged revisions 201828 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r201828 | tilghman | 2009-06-18 19:40:41 -0500 (Thu, 18 Jun 2009)
	  | 6 lines If the "h" extension fails, give it another chance in
	  main/pbx.c. If the "h" extension fails, give it another chance in
	  main/pbx.c, when it returns from the bridge code. Fixes an issue
	  where the "h" extension may occasionally not fire, when a Dial is
	  executed from a Macro. Debugged in #asterisk with user tompaw.
	  ........

	* apps/Makefile: One of the changes in 1.6.1 was to allow
	  app_directory to use functionality within app_voicemail for
	  directory functions. It is therefore no longer necessary for
	  app_directory to be linked against the ODBC libraries (and it
	  never was necessary for app_directory to be linked against IMAP,
	  though it was).

	* funcs/func_cut.c: Clarify CUT code, and in the process, fix a bug
	  in trunk only (closes issue #15320) Reported by: chappell
	  Patches: cut_fix.patch uploaded by chappell (license 8)
	  cut_clarify.patch uploaded by chappell (license 8)

2009-06-18 17:41 +0000 [r201717]  Matthew Nicholson <mnicholson@digium.com>

	* channels/chan_sip.c: Added deadlock protection to
	  try_suggested_sip_codec in chan_sip.c. Review:
	  https://reviewboard.asterisk.org/r/285/

2009-06-18 16:37 +0000 [r201678]  David Vossel <dvossel@digium.com>

	* codecs/gsm/src/gsm_destroy.c, channels/h323/ast_h323.cxx,
	  main/ast_expr2f.c, res/ael/ael_lex.c, utils/ael_main.c,
	  utils/extconf.c, channels/xpmr/xpmr.c, pbx/pbx_config.c,
	  res/res_config_ldap.c, apps/app_rpt.c, channels/misdn/isdn_lib.c,
	  main/asterisk.c, utils/conf2ael.c, main/ast_expr2.c,
	  utils/stereorize.c: fixes some memory leaks and redundant
	  conditions (closes issue #15269) Reported by: contactmayankjain
	  Patches: patch.txt uploaded by contactmayankjain (license 740)
	  memory_leak_stuff.trunk.diff uploaded by dvossel (license 671)
	  Tested by: contactmayankjain, dvossel

2009-06-18 15:27 +0000 [r201610]  Russell Bryant <russell@digium.com>

	* /, res/res_musiconhold.c: Merged revisions 201600 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r201600 | russell | 2009-06-18 10:24:31 -0500 (Thu, 18
	  Jun 2009) | 29 lines Fix memory corruption and leakage related
	  reloads of non files mode MoH classes. For Music on Hold classes
	  that are not files mode, meaning that we are executing an
	  application that will feed us audio data, we use a thread to
	  monitor the external application and read audio from it. This
	  thread also makes use of the MoH class object. In the MoH class
	  destructor, we used pthread_cancel() to ask the thread to exit.
	  Unfortunately, the code did not wait to ensure that the thread
	  actually went away. What needed to be done is a pthread_join() to
	  ensure that the thread fully cleans up before we proceed. By
	  adding this one line, we resolve two significant problems: 1)
	  Since the thread was never joined, it never fully goes away. So,
	  on every reload of non-files mode MoH, an unused thread was
	  sticking around. 2) There was a race condition here where the
	  application monitoring thread could still try to access the MoH
	  class, even though the thread executing the MoH reload has
	  already destroyed it. (issue #15109) Reported by: jvandal (issue
	  #15123) Reported by: axisinternet (issue #15195) Reported by:
	  amorsen (issue AST-208) ........

2009-06-18 15:20 +0000 [r201583]  Mark Michelson <mmichelson@digium.com>

	* res/res_rtp_asterisk.c, main/rtp_engine.c, channels/chan_sip.c,
	  include/asterisk/rtp_engine.h: Trunk implementation of setting an
	  alternate RTP source. This contains the interface by which we can
	  let an rtp instance know that it might start receiving audio from
	  a new source. This is similar in nature to revision 197588 of
	  Asterisk 1.4. Review: https://reviewboard.asterisk.org/r/276

2009-06-18 15:16 +0000 [r201534-201570]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: parsing extension correctly from sip
	  register lines If a transport type was specified, but no
	  extension, parsing of the extension would return whatever was
	  after the transport rather than defaulting to 's'. (closes issue
	  #15111) Reported by: ffs Patches:
	  chan_sip.c_register-parser.patch uploaded by ffs (license 730)
	  Tested by: ffs, dvossel

	* configs/iax.conf.sample, CHANGES, channels/chan_iax2.c: Add
	  rtsavesysname to chan_iax chan_sip has an option to save the
	  sysname on rtupdate. This patch copies that same logic to
	  chan_iax. (closes issue #14837) Reported by: barthpbx Patches:
	  iax2-rtsavesysname.patch uploaded by barthpbx (license 744)
	  rt_iax.diff uploaded by dvossel (license 671)

2009-06-17 21:31 +0000 [r201531]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Initialize additional variables, to prevent
	  a possible crash. (closes issue #15186) Reported by: ajohnson
	  Patches: 20090528__issue15186.diff.txt uploaded by tilghman
	  (license 14) Tested by: ajohnson

2009-06-17 20:10 +0000 [r201458-201462]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix problem with no audio due to ignoring
	  the SDP. A recent change to our SDP version comparison made audio
	  not function on some calls. This was because of a test wherein we
	  were trying to see if an unsigned value was less than 0. This is
	  a dumb comparison and arguably the compiler should have warned
	  about it. Alas, though, it slipped past. Now it's fixed by
	  changing the variable to be a signed type. Found by several
	  developers. Tested by mnicholson and dbrooks.

	* main/channel.c, /: Merged revisions 201450 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r201450 | mmichelson | 2009-06-17 14:59:31 -0500 (Wed, 17 Jun
	  2009) | 9 lines Change the datastore traversal in
	  ast_do_masquerade to use a safe list traversal. It is possible
	  for datastore fixup functions to remove the datastore from the
	  list and free it. In particular, the queue_transfer_fixup in
	  app_queue does this. While I don't yet know of this causing any
	  crashes, it certainly could. Found while discussing a separate
	  issue with Brian Degenhardt. ........

2009-06-17 20:00 +0000 [r201445-201453]  David Vossel <dvossel@digium.com>

	* doc/datastores.txt: ast_channel_datastore_alloc is no longer
	  used. updating datastores.txt to reflect that.

	* /, apps/app_mixmonitor.c: Merged revisions 201423 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r201423 | dvossel | 2009-06-17 14:28:12 -0500 (Wed, 17
	  Jun 2009) | 19 lines StopMixMonitor race condition (not giving up
	  file immediately) StopMixMonitor only indicates to the MixMonitor
	  thread to stop writing to the file. It does not guarantee that
	  the recording's file handle is available to the dialplan
	  immediately after execution. This results in a race condition. To
	  resolve this, the filestream pointer is placed in a datastore on
	  the channel. When StopMixMonitor is called, the datastore is
	  retrieved from the channel and the filestream is closed
	  immediately before returning to the dialplan. Documentation
	  indicating the use of StopMixMonitor to free files has been
	  updated as well. (closes issue #15259) Reported by: travisghansen
	  Tested by: dvossel Review:
	  https://reviewboard.asterisk.org/r/283/ ........

2009-06-17 19:15 +0000 [r201381]  David Brooks <dbrooks@digium.com>

	* /, channels/chan_sip.c: Merged revisions 201380 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r201380 | dbrooks | 2009-06-17 13:45:50 -0500 (Wed, 17 Jun 2009)
	  | 9 lines Checks for NULL sip_pvt pointer in
	  chan_sip.c->acf_channel_read() Zombie channels could be passed,
	  and chan_sip.c wasn't checking for it. Could crash Asterisk. Now
	  checking for NULL pointer. (closes issue #15330) Reported by:
	  okrief Tested by: dbrooks ........

2009-06-17 15:20 +0000 [r201331-201344]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: SIP registry ref count error During a sip
	  reload, the list of sip_registry objects are supposed to be
	  traversed, unlinked, and destroyed, but destruction never takes
	  place due to a ref counting error. This causes a memory leak when
	  registry items are removed from sip.conf and reloaded. While the
	  registries are removed from the global list, they are not removed
	  from the scheduler. Because of this, SIP register attempts
	  continue to be sent out for the item even though it may no longer
	  be in the .conf. (closes issue #15295) Reported by: amorsen
	  Review: https://reviewboard.asterisk.org/r/282/

	* channels/chan_iax2.c: update chan_iax to use 64bit feature flags.
	  (closes issue #15335) Reported by: lmadsen Review:
	  https://reviewboard.asterisk.org/r/284/

2009-06-17 12:04 +0000 [r201262]  Kevin P. Fleming <kpfleming@digium.com>

	* /, include/asterisk/linkedlists.h: Merged revisions 201261 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r201261 | kpfleming | 2009-06-17 07:03:25 -0500 (Wed, 17 Jun
	  2009) | 9 lines Correct AST_LIST_APPEND_LIST behavior when list
	  to be appended is empty. When the list to be appended is empty,
	  and the list to be appended to is *not*, AST_LIST_APPEND_LIST
	  would actually cause the target list to become broken, and no
	  longer have a pointer to its last entry. This patch fixes the
	  problem. (reported by Stanislaw Pitucha on the asterisk-dev
	  mailing list) ........

2009-06-16 22:29 +0000 [r201223]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: fix issue with build_contact introduced by
	  the "SIP trasnport type issues" commit

2009-06-16 22:11 +0000 [r201190]  Sean Bright <sean@malleable.com>

	* CREDITS: Update my e-mail address (thanks for the props, russell
	  :))

2009-06-16 21:10 +0000 [r200985-201139]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_dahdi.c, channels/chan_sip.c, apps/app_fax.c,
	  include/asterisk/frame.h: Enable applications to enable/disable
	  digit and tone detection. Some applications (notably app_fax) do
	  not need digit detection nor FAX tone detection while they are
	  running, and if Asterisk is using software DSPs to provide the
	  detection, this consumes extra CPU cycles that could be better
	  spent on the actual application. This patch allows applications
	  to query and control the state of digit and tone detection on a
	  channel, and modifies app_fax to disable them while the FAX
	  operations are occurring (and re-enable digit detection
	  afterwards).

	* configure, configure.ac: Explicitly test for 'static weakref'
	  support. Since we use 'static' weakref symbols, and not all GCC
	  versions support them, test for that combination explicitly.

	* Makefile: When compiling in an Emacs-spawned shell, always print
	  directory names. This change ensures that Emacs can find the
	  proper source files when parsing compiler error messages, since
	  it uses the 'make' output including directory names to do it.

	* configure, autoconf/ast_gcc_attribute.m4, configure.ac: Another
	  minor fix to compiler attribute checking. Defaulting to 'static'
	  for the function scope was bad... so remove it.

	* main/channel.c, main/autoservice.c, main/frame.c, /,
	  apps/app_meetme.c, main/slinfactory.c,
	  include/asterisk/linkedlists.h, main/file.c,
	  include/asterisk/channel.h, include/asterisk/frame.h,
	  apps/app_chanspy.c, apps/app_mixmonitor.c: Merged revisions
	  200991 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r200991 | kpfleming | 2009-06-16 12:05:38 -0500 (Tue, 16 Jun
	  2009) | 11 lines Improve support for media paths that can
	  generate multiple frames at once. There are various media paths
	  in Asterisk (codec translators and UDPTL, primarily) that can
	  generate more than one frame to be generated when the application
	  calling them expects only a single frame. This patch addresses a
	  number of those cases, at least the primary ones to solve the
	  known problems. In addition it removes the broken TRACE_FRAMES
	  support, fixes a number of bugs in various frame-related API
	  functions, and cleans up various code paths affected by these
	  changes. https://reviewboard.asterisk.org/r/175/ ........

	* configure, autoconf/ast_gcc_attribute.m4, configure.ac: Fix
	  problems with new compiler attribute checking in configure
	  script. The last changes to ast_gcc_attribute.m4 caused some
	  problems checking for various attributes, because the scope of
	  the symbol the attribute is applied to can be important; this
	  patch allows the scope to be specified for the check.

2009-06-16 16:03 +0000 [r200946]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: SIP transport type issues What this patch
	  addresses: 1. ast_sip_ouraddrfor() by default binds to the UDP
	  address/port reguardless if the sip->pvt is of type UDP or not.
	  Now when no remapping is required, ast_sip_ouraddrfor() checks
	  the sip_pvt's transport type, attempting to set the address and
	  port to the correct TCP/TLS bindings if necessary. 2. It is not
	  necessary to send the port number in the Contact header unless
	  the port is non-standard for the transport type. This patch fixes
	  this and removes the todo note. 3. In sip_alloc(), the default
	  dialog built always uses transport type UDP. Now sip_alloc()
	  looks at the sip_request (if present) and determines what
	  transport type to use by default. 4. When changing the transport
	  type of a sip_socket, the file descriptor must be set to -1 and
	  in some cases the tcptls_session's ref count must be decremented
	  and set to NULL. I've encountered several issues associated with
	  this process and have created a function, set_socket_transport(),
	  to handle the setting of the socket type. (closes issue #13865)
	  Reported by: st Patches: dont_add_port_if_tls.patch uploaded by
	  Kristijan (license 753) 13865.patch uploaded by mmichelson
	  (license 60) tls_port_v5.patch uploaded by vrban (license 756)
	  transport_issues.diff uploaded by dvossel (license 671) Tested
	  by: mmichelson, Kristijan, vrban, jmacz, dvossel Review:
	  https://reviewboard.asterisk.org/r/278/

2009-06-16 15:51 +0000 [r200943]  Michiel van Baak <michiel@vanbaak.info>

	* apps/app_voicemail.c: add FILE_STORAGE to Voicemail Build Options
	  Voicemail can only use one storage module at the moment. Because
	  it's unclear that selecting one of the storage modules in
	  menuselect will disable filesystem storage we now have a
	  FILE_STORAGE option that conflicts with the other modules.
	  (closes issue #15333)

2009-06-16 15:26 +0000 [r200942]  Russell Bryant <russell@digium.com>

	* CREDITS: Add Sean Bright to CREDITS - Thanks, Sean!

2009-06-16 14:12 +0000 [r200841-200878]  Eliel C. Sardanons <eliels@gmail.com>

	* /: Recorded merge of revisions 200875 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r200875 | eliel | 2009-06-16 09:25:51 -0400 (Tue, 16 Jun 2009) |
	  5 lines Show the interface name on error, if it is not found. If
	  the smdiport specified is not found, show the interface name
	  instead of '(null)'. ........

	* res/res_smdi.c: Show the interface name on error, if it is not
	  found. If the smdiport specified is not found, show the interface
	  name instead of '(null)'.

2009-06-16 02:32 +0000 [r200805]  Russell Bryant <russell@digium.com>

	* main/manager.c: Don't claim a char * is a mansession object.
	  Since there was only 1 bucket, and no hash function was
	  specified, the code actually worked perfectly fine. However, in
	  theory, this was invalid use of the OBJ_POINTER flag, so remove
	  it so the code provides a better usage example.

2009-06-16 02:24 +0000 [r200799]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample: keep
	  backwards compatible chan_dahdi with older openr2 versions by not
	  using the new skip category feature unless supported

2009-06-16 01:28 +0000 [r200764]  Kevin P. Fleming <kpfleming@digium.com>

	* configure, autoconf/ast_gcc_attribute.m4: Ensure that
	  configure-script testing for compiler attributes actually works.
	  The configure script tests for compiler attributes didn't
	  actually enable enough warnings or provide a proper test harness
	  to determine whether the compiler supports the attribute in
	  question or not; this caused gcc 4.1 to report that it supports
	  'weakref', but it doesn't actually support it in the way that is
	  needed for our optional API mechanism. The new configure script
	  test will properly distinguish between full support and partial
	  support for this attribute, among others.

2009-06-16 01:26 +0000 [r200762]  Russell Bryant <russell@digium.com>

	* doc/tex/channelvariables.tex: Add missing closure of verbatim
	  environment.

2009-06-16 01:03 +0000 [r200519-200726]  Kevin P. Fleming <kpfleming@digium.com>

	* CHANGES: Document the new automatic 'ignoresdpversion' behavior.
	  Asterisk will now automatically ignore incorrect incoming SDP
	  version numbers when necessary to complete a T.38 re-INVITE
	  operation.

	* channels/chan_sip.c: Accept T.38 re-INVITE responses with invalid
	  SDP versions. This commit changes the 'incoming SDP version'
	  check logic a bit more; when 'ignoresdpversion' is *not* set for
	  a peer, if we initiate a re-INVITE to switch to T.38, we'll
	  always accept the peer's SDP response, even if they don't
	  properly increment the SDP version number as they should. If this
	  situation occurs, a warning message will be generated suggesting
	  that the peer's configuration be changed to include the
	  'ignoresdpversion' configuration option (although ideally they'd
	  fix their SIP implementation to be RFC compliant). AST-221

	* doc/CODING-GUIDELINES, apps/app_read.c, apps/app_page.c,
	  apps/app_fax.c, apps/app_readexten.c, apps/app_queue.c,
	  include/asterisk/app.h, apps/app_skel.c, apps/app_minivm.c,
	  apps/app_macro.c, apps/app_url.c, apps/app_sms.c,
	  apps/app_externalivr.c, apps/app_stack.c, apps/app_mixmonitor.c,
	  apps/app_voicemail.c: Last batch of 'static' qualifiers for
	  module-level global variables. Fix up modules in the 'apps'
	  directory, and also correct the bad example of enum definitions
	  in include/asterisk/app.h, which many developers followed (thanks
	  for reading the documentation!). In addition, add some basic
	  usage examples of the 'pahole' and 'pglobal' tools to the coding
	  guidelines.

	* res/res_snmp.c, main/devicestate.c, funcs/func_vmcount.c,
	  res/res_calendar_caldav.c, formats/format_wav_gsm.c,
	  res/res_jabber.c, main/loader.c, main/cli.c, funcs/func_enum.c,
	  main/manager.c, res/res_smdi.c, funcs/func_odbc.c,
	  main/features.c, main/logger.c, main/http.c, pbx/pbx_realtime.c,
	  main/image.c, main/db.c, cdr/cdr_manager.c,
	  res/res_calendar_exchange.c, res/res_calendar_icalendar.c,
	  res/res_config_pgsql.c, funcs/func_lock.c, pbx/pbx_lua.c,
	  funcs/func_cut.c, include/asterisk/calendar.h,
	  funcs/func_realtime.c, funcs/func_curl.c, funcs/func_cdr.c,
	  funcs/func_channel.c, main/file.c, main/event.c, pbx/pbx_dundi.c,
	  main/xmldoc.c, res/res_calendar.c: More 'static' qualifiers on
	  module global variables. The 'pglobal' tool is quite handy indeed
	  :-)

	* channels/chan_dahdi.c, channels/chan_misdn.c,
	  channels/chan_sip.c, channels/chan_skinny.c,
	  channels/chan_agent.c, channels/chan_h323.c,
	  channels/chan_iax2.c: Convert a number of global module variables
	  to 'static'. These modules all contained variables that are
	  module-global but not system-global, but were not marked
	  'static'.

	* channels/chan_sip.c: Some minor structure size improvements in
	  sip_pvt and sip_peer. Using the 'pahole' tool, it is now quite
	  easy to see where structure fields could be organized differently
	  to keep the compiler from having to add padding to satisfy
	  alignment requirements. These changes reduced the sizes of
	  sip_pvt and sip_peer by a few bytes each (on 64-bit platforms),
	  and also fixed a spelling error in a field name.

	* include/asterisk/agi.h, main/Makefile,
	  include/asterisk/autoconfig.h.in, res/res_smdi.exports,
	  configure.ac, res/res_agi.exports, include/asterisk/compiler.h,
	  apps/app_queue.c, res/res_monitor.c,
	  include/asterisk/optional_api.h, Makefile, res/res_smdi.c,
	  configure, res/res_agi.c, include/asterisk/monitor.h,
	  apps/app_stack.c, include/asterisk/smdi.h,
	  res/res_monitor.exports, apps/app_voicemail.c: Redesigned
	  'optional API' support. This patch provides a new implementation
	  of the optional API support defined in asterisk/optional_api.h;
	  this new version provides solves compatibility issues with the
	  use of linker version scripts for suppressing global symbols. In
	  addition, there is now a functional (and tested!) implementation
	  for Mac OS/X, so module writers no longer need to use special
	  tests before calling optional API functions. All future
	  implementations must provide these same semantics, so that module
	  writers can rely on them.

2009-06-15 15:22 +0000 [r200514]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 200513 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r200513 | mmichelson | 2009-06-15 10:21:46 -0500 (Mon, 15 Jun
	  2009) | 5 lines Add INFO to our allowed methods so that endpoints
	  know they may send it to us. AST-223 ........

2009-06-14 06:13 +0000 [r200477]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample,
	  build_tools/menuselect-deps.in: added openr2 to
	  menuselect-deps.in, recent commit in menuselect made me realize
	  this was never done but was working anyways also added support
	  for skip category request feature of openr2 and updated
	  chan_dahdi.conf.sample

2009-06-12 19:46 +0000 [r200428-200430]  Sean Bright <sean@malleable.com>

	* contrib/upstart/asterisk.upstart-0.3.9: Include basic
	  installation and usage instructions for upstart script.

	* contrib/upstart/asterisk.upstart-0.3.9 (added), contrib/upstart
	  (added): First shot at an upstart script for asterisk on Ubuntu.
	  This works relatively well (assuming you are using
	  /var/run/asterisk) as your run directory and upstart 0.3.9. Needs
	  to be generalized and eventually added to the 'make install'
	  target for Ubuntu.

2009-06-12 19:07 +0000 [r200290-200361]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c, /: Merged revisions 200360 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r200360 | mmichelson | 2009-06-12 14:06:41 -0500 (Fri, 12 Jun
	  2009) | 10 lines Suppress a warning message and give a better
	  return code when generating inband ringing after a call is
	  answered. (closes issue #15158) Reported by: madkins Patches:
	  15158.patch uploaded by mmichelson (license 60) Tested by:
	  madkins ........

	* channels/chan_local.c, apps/app_queue.c: Fix some bad locking
	  stemming from trying to forward a call to a non-existent
	  extension from a queue.

	* apps/app_queue.c: Fix a potential crash from trying to access a
	  NULL channel pointer.

2009-06-12 02:20 +0000 [r200254]  Sean Bright <sean@malleable.com>

	* contrib/init.d/rc.debian.asterisk: Call chgrp instead of chown
	  when setting run directory group ownership. (issue #13153)
	  Reported by: pabelanger

2009-06-11 21:17 +0000 [r200146]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix a crash due to a potentially NULL
	  p->options. Thanks to mnicholson for pointing it out.

2009-06-11 15:40 +0000 [r200108]  Eliel C. Sardanons <eliels@gmail.com>

	* main/channel.c: Release the allocated channel decreasing the
	  reference counter. When allocating the channel use ao2_ref(-1) to
	  release it, instead of calling ast_free(). Also avoid freeing
	  structures inside that channel (on error) if they will be
	  released by the channel destructor being called if the reference
	  counter reachs 0.

2009-06-11 12:15 +0000 [r200039]  Leif Madsen <lmadsen@digium.com>

	* build_tools/make_version_c, build_tools/make_version_h: Fix path
	  for .flavor and .version (issue #14737) Reported by: davidw
	  Patches: flavor.patch uploaded by davidw (license 780) Tested by:
	  davidw

2009-06-10 20:40 +0000 [r200000]  Sean Bright <sean@malleable.com>

	* sample.call: Remove some trailing whitespace and steal revision
	  200000.

2009-06-10 20:15 +0000 [r199958]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Only try to use the invite_branch on
	  outgoing INVITEs with auth credentials. I have added a comment to
	  the code to help ease understanding of the logic here as well.

2009-06-10 20:00 +0000 [r199957]  David Brooks <dbrooks@digium.com>

	* main/pbx.c: Fixes the argument order in definition of
	  new_find_extension(). In the definition of new_find_extension(),
	  the arguments 'callerid' and 'label' were swapped. The prototype
	  declaration and all calls to the function are ordered 'callerid'
	  then 'label', but the function itself was ordered 'label' then
	  'callerid'. (closes issue #15303) Reported by: JimDickenson

2009-06-10 18:58 +0000 [r199923]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c: Use ast_channel_unref to instead of ast_free on a
	  newly created channel. Also I removed an unnecessary free of a
	  cid_name. This will be freed properly in the channel destructor.
	  Reported by mnicholson in #asterisk-dev.

2009-06-10 16:10 +0000 [r199857]  Sean Bright <sean@malleable.com>

	* include/asterisk/utils.h, /: Merged revisions 199856 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r199856 | seanbright | 2009-06-10 12:08:35 -0400 (Wed,
	  10 Jun 2009) | 2 lines __WORDSIZE is not available on all
	  platforms, so use sizeof(void *) instead. ........

2009-06-09 20:47 +0000 [r199818]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: CLI NOTIFY sending wrong transport type.
	  SIP's cli NOTIFY command only used UDP rather than copying the
	  transport type from the peer. (closes issue #15283) Reported by:
	  jthurman Patches: sip-notify-tcp-svn199728.patch uploaded by
	  jthurman (license 614) Tested by: jthurman, dvossel

2009-06-09 18:08 +0000 [r199781]  Sean Bright <sean@malleable.com>

	* Makefile: Fix all of the parallel build warnings issued when
	  running make -j#.

2009-06-09 16:22 +0000 [r199743]  David Vossel <dvossel@digium.com>

	* res/res_timing_pthread.c, include/asterisk/module.h,
	  res/res_timing_dahdi.c, res/res_timing_timerfd.c, main/loader.c:
	  module load priority This patch adds the option to give a module
	  a load priority. The value represents the order in which a
	  module's load() function is initialized. The lower the value, the
	  higher the priority. The value is only checked if the
	  AST_MODFLAG_LOAD_ORDER flag is set. If the AST_MODFLAG_LOAD_ORDER
	  flag is not set, the value will never be read and the module will
	  be given the lowest possible priority on load. Since some modules
	  are reliant on a timing interface, the timing modules have been
	  given a high load priorty. (closes issue #15191) Reported by:
	  alecdavis Tested by: dvossel Review:
	  https://reviewboard.asterisk.org/r/262/

2009-06-08 22:08 +0000 [r199696]  Tilghman Lesher <tlesher@digium.com>

	* doc/janitor-projects.txt: Add sigaction janitor

2009-06-08 19:33 +0000 [r199630]  Sean Bright <sean@malleable.com>

	* include/asterisk/utils.h, /: Merged revisions 199626,199628 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r199626 | seanbright | 2009-06-08 15:24:32 -0400 (Mon, 08 Jun
	  2009) | 21 lines Increase the size of our thread stack on 64 bit
	  processors. We were setting the stack size for each thread to
	  240KB regardless of architecture, which meant that in some
	  scenarios we actually had less available stack space on 64 bit
	  processors (pointers use 8 bytes instead of 4). So now we
	  calculate the stack size we reserve based on the platform's
	  __WORDSIZE, which gives us: 32 bit -> 240KB 64 bit -> 496KB 128
	  bit -> 1008KB (that's right, we're ready for 128 bit processors)
	  Patch typed by me but written by several members of
	  #asterisk-dev, including Kevin, Tilghman, and Qwell. (closes
	  issue #14932) Reported by: jpiszcz Patches:
	  06052009_issue14932.patch uploaded by seanbright (license 71)
	  Tested by: seanbright ........ r199628 | seanbright | 2009-06-08
	  15:28:33 -0400 (Mon, 08 Jun 2009) | 2 lines Fix a typo in the
	  stack size calculation just introduced. ........

2009-06-08 17:32 +0000 [r199588]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix a deadlock that could occur when setting
	  rtp stats on SIP calls. (closes issue #15143) Reported by:
	  cristiandimache Patches: 15143.patch uploaded by mmichelson
	  (license 60) Tested by: cristiandimache

2009-06-07 19:15 +0000 [r199514-199547]  Eliel C. Sardanons <eliels@gmail.com>

	* apps/app_osplookup.c: Move OSP* applications static documentation
	  to XML. Move OSP* applications static documentation to the new
	  AstXML form. (closes issue #15245) Reported by: eliel Patches:
	  app_osplookup_static_conversion.txt uploaded by lmadsen (license
	  10)

	* apps/app_externalivr.c: Move application ExternalIVR static
	  documentation to XML. Move application ExternalIVR static
	  documentation to the new AstXML form. (issue #15245) Reported by:
	  eliel Patches: app_externalivr.diff uploaded by eliel (license
	  64)

2009-06-07 14:55 +0000 [r199479]  Russell Bryant <russell@digium.com>

	* apps/app_dial.c, apps/app_dahdibarge.c, apps/app_dictate.c,
	  apps/app_authenticate.c, apps/app_echo.c, apps/app_fax.c,
	  apps/app_dahdiras.c, apps/app_disa.c, apps/app_alarmreceiver.c,
	  apps/app_chanisavail.c, apps/app_exec.c, apps/app_db.c,
	  apps/app_controlplayback.c, apps/app_channelredirect.c,
	  apps/app_directed_pickup.c, apps/app_dumpchan.c, apps/app_amd.c,
	  apps/app_confbridge.c, apps/app_directory.c, apps/app_chanspy.c,
	  apps/app_adsiprog.c: Global var cleanup - constification and
	  removing unused vars.

2009-06-06 23:28 +0000 [r199374-199446]  Eliel C. Sardanons <eliels@gmail.com>

	* apps/app_stack.c: Move AGI command 'gosub' static documentation
	  to XML. Move AGI command 'gosub' statis documentation to the new
	  AstXML form. (issue #15245) Reported by: eliel Patches:
	  app_stack_static_conversion.txt uploaded by lmadsen (license 10)
	  (with minor changes by me)

	* res/res_musiconhold.c: Move music on hold related applications
	  documentation to XML. Move MusicOnHold, SetMusicOnHold,
	  StartMusicOnHold, StopMusicOnHold static documentation to the new
	  AstXML form. (issue #15245) Reported by: eliel Patches:
	  res_musiconhold_static_conversion.txt uploaded by lmadsen
	  (license 10) (with some fixes and formatting by me)

	* res/res_phoneprov.c: Move function PP_EACH_USER and
	  PP_EACH_EXTENSION documentation to XML. Move function
	  PP_EACH_USER and PP_EACH_EXTENSION documentation to the new
	  AstXML form. (issue #15245) Reported by: eliel Patches:
	  res_phoneprov_static_conversion.txt uploaded by lmadsen (license
	  10) (with PP_EACH_USER add by me)

	* apps/app_meetme.c: Move function MEETME_INFO documentation to
	  XML. Move function MEETME_INFO static documentation to the new
	  AstXML form. (issue #15245) Reported by: eliel Patches:
	  app_meetme_static_conversion.txt uploaded by lmadsen (license 10)

	* apps/app_minivm.c: Move function MINIVMACCOUNT and MINIVMCOUNTER
	  static documentation to XML. Move function MINIVMACCOUNT and
	  MINIVMCOUNTER statis documentation to the new AstXML form. (issue
	  #15245) Reported by: eliel Patches:
	  app_minivm_static_conversion.txt uploaded by lmadsen (license 10)
	  (with minor changes by me)

	* funcs/func_sysinfo.c: Move function SYSINFO documentation to XML.
	  Move function SYSINFO static documentation to the new AstXML
	  form. (issue #15245) Reported by: eliel Patches:
	  func_sysinfo_static_conversion.txt uploaded by lmadsen (license
	  10)

2009-06-06 21:42 +0000 [r199368-199372]  Russell Bryant <russell@digium.com>

	* apps/app_jack.c: minor tweak

	* apps/app_jack.c: Constify a string and strip trailing whitespace.

	* Makefile: Switch from "echo -n" to printf. On my mac, the -n was
	  just getting printed out.

2009-06-05 21:21 +0000 [r199298]  David Vossel <dvossel@digium.com>

	* include/asterisk/devicestate.h, /, main/devicestate.c: Merged
	  revisions 199297 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r199297 | dvossel | 2009-06-05 16:19:56 -0500 (Fri, 05 Jun 2009)
	  | 14 lines Fixes issue with hints giving unexpected results.
	  Hints with two or more devices that include ONHOLD gave
	  unexpected results. (closes issue #15057) Reported by:
	  p_lindheimer Patches: onhold_trunk.diff uploaded by dvossel
	  (license 671) pbx.c.1.4.patch uploaded by p (license 558)
	  devicestate.c.trunk.patch uploaded by p (license 671) Tested by:
	  p_lindheimer, dvossel Review:
	  https://reviewboard.asterisk.org/r/254/ ........

2009-06-05 13:51 +0000 [r199227]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_dahdi.c: Correct "dahdi show channels" output when
	  specifying a group. Since a DAHDI channel may belong to multiple
	  groups, we need to use a bitwise and instead of equivalence to
	  determine whether to display the channel information. (closes
	  issue #15248) Reported by: gentian Patches: 15248.patch uploaded
	  by mmichelson (license 60) Tested by: gentian

2009-06-04 19:10 +0000 [r199139]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 199138 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r199138 | dvossel | 2009-06-04 14:00:15 -0500 (Thu, 04
	  Jun 2009) | 3 lines Additional updates to AST-2009-001 ........

2009-06-04 16:29 +0000 [r199091]  Eliel C. Sardanons <eliels@gmail.com>

	* res/res_smdi.c: Move static docs to the new AstXML form. Move
	  SMDI_MSG and SMDI_MSG_RETRIEVE functions statis documentation to
	  XML. (issue #15245) Reported by: eliel Patches:
	  res_smdi_static_conversion.txt uploaded by lmadsen (license 10)

2009-06-04 14:31 +0000 [r199051]  Sean Bright <sean@malleable.com>

	* /, include/asterisk/_private.h, main/asterisk.c, main/loader.c:
	  Merged revisions 199022 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r199022 | seanbright | 2009-06-04 10:14:57 -0400 (Thu, 04 Jun
	  2009) | 40 lines Safely handle AMI connections/reload requests
	  that occur during startup. During asterisk startup, a lock on the
	  list of modules is obtained by the primary thread while each
	  module is initialized. Issue 13778 pointed out a problem with
	  this approach, however. Because the AMI is loaded before other
	  modules, it is possible for a module reload to be issued by a
	  connected client (via Action: Command), causing a deadlock. The
	  resolution for 13778 was to move initialization of the manager to
	  happen after the other modules had already been lodaded. While
	  this fixed this particular issue, it caused a problem for users
	  (like FreePBX) who call AMI scripts via an #exec in a
	  configuration file (See issue 15189). The solution I have come up
	  with is to defer any reload requests that come in until after the
	  server is fully booted. When a call comes in to ast_module_reload
	  (from wherever) before we are fully booted, the request is added
	  to a queue of pending requests. Once we are done booting up, we
	  then execute these deferred requests in turn. Note that I have
	  tried to make this a bit more intelligent in that it will not
	  queue up more than 1 request for the same module to be reloaded,
	  and if a general reload request comes in ('module reload') the
	  queue is flushed and we only issue a single deferred reload for
	  the entire system. As for how this will impact existing
	  installations - Before 13778, a reload issued before module
	  initialization was completed would result in a deadlock. After
	  13778, you simply couldn't connect to the manager during startup
	  (which causes problems with #exec-that-calls-AMI configuration
	  files). I believe this is a good general purpose solution that
	  won't negatively impact existing installations. (closes issue
	  #15189) (closes issue #13778) Reported by: p_lindheimer Patches:
	  06032009_15189_deferred_reloads.diff uploaded by seanbright
	  (license 71) Tested by: p_lindheimer, seanbright Review:
	  https://reviewboard.asterisk.org/r/272/ ........

2009-06-03 20:30 +0000 [r198824-198954]  David Vossel <dvossel@digium.com>

	* apps/app_dial.c, main/channel.c, apps/app_queue.c:
	  ast_call_forward() todo notes and originate flag copy.

	* main/channel.c, main/features.c, include/asterisk/channel.h:
	  Generic call forward api, ast_call_forward() The function
	  ast_call_forward() forwards a call to an extension specified in
	  an ast_channel's call_forward string. After an ast_channel is
	  called, if the channel's call_forward string is set this function
	  can be used to forward the call to a new channel and terminate
	  the original one. I have included this api call in both
	  channel.c's ast_request_and_dial() and feature.c's
	  feature_request_and_dial(). App_dial and app_queue already
	  contain call forward logic specific for their application and
	  options. (closes issue #13630) Reported by: festr Review:
	  https://reviewboard.asterisk.org/r/271/

	* channels/chan_iax2.c: fixes issue with channels not going down
	  after transfer Iax2 currently does not support native bridging if
	  the timeoutms value is set. We check for that in iax2_bridge, but
	  then set timeoutms to 0 by default. If the timeoutms is not
	  provided it is set to -1. By setting timeoutms to 0 it is
	  processed causing a bridging retry loop. (closes issue #15216)
	  Reported by: oxymoron Tested by: dvossel

2009-06-02 13:48 +0000 [r198762-198791]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample: Correct
	  documentation for the register line, specifically where the
	  domain should be specified. (closes issue #14367) Reported by:
	  Nick_Lewis

	* main/rtp_engine.c: Fix a bug where we were passing in address
	  information that should remain unmodified to a function that may
	  modify it. (closes issue #15243) Reported by: pj

2009-06-01 21:03 +0000 [r198729]  Russell Bryant <russell@digium.com>

	* channels/iax2-parser.c: Tell the IAX2 parser about more control
	  frame types.

2009-06-01 20:57 +0000 [r198727]  Mark Michelson <mmichelson@digium.com>

	* apps/app_dial.c, main/channel.c, include/asterisk/app.h,
	  main/dial.c, channels/chan_sip.c, apps/app_directed_pickup.c,
	  main/features.c, apps/app_macro.c, doc/tex/channelvariables.tex,
	  main/app.c, include/asterisk/channel.h, apps/app_queue.c: Add the
	  ability to execute connected line interception macros. When
	  connected line updates are received or generated in the middle of
	  an application call, it is now possible to execute a macro to
	  manipulate the connected line data. This way, phone numbers may
	  be manipulated to be more presentable to users, names may be
	  changed for...whatever reason, or whatever else needs to be done
	  may be. Review: https://reviewboard.asterisk.org/r/256 AST-165

2009-06-01 20:33 +0000 [r198725]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_math.c: Add INCrement and DECrement functions (closes
	  issue #15025) Reported by: greenfieldtech Patches:
	  func_math.c.patch_v4 uploaded by greenfieldtech (license 369)
	  slightly modified by me Tested by: greenfieldtech, lmadsen

2009-06-01 20:17 +0000 [r198670]  Russell Bryant <russell@digium.com>

	* include/asterisk/frame.h: Minor whitespace fix.

2009-06-01 19:37 +0000 [r198661]  Eliel C. Sardanons <eliels@gmail.com>

	* res/res_monitor.c: Moved more static documentation to the new
	  AstXML form. Moved more static docs to XML (pplications and
	  manager actions): Monitor, StopMonitor, ChangeMonitor,
	  PauseMonitor, UnpauseMonitor.

2009-06-01 18:40 +0000 [r198626]  Tilghman Lesher <tlesher@digium.com>

	* contrib/scripts/meetme.sql: Add information for new meetme
	  realtime fields

2009-06-01 17:53 +0000 [r198561-198597]  Eliel C. Sardanons <eliels@gmail.com>

	* main/Makefile: Do not add say.o in a separate line.

	* res/res_jabber.c: Move JabberSend manager action from static docs
	  to the AstXML form.

	* res/res_agi.c: Move static documentation of E|Dead|AGI()
	  application and manager action to XML.

2009-06-01 15:23 +0000 [r198558]  David Vossel <dvossel@digium.com>

	* main/threadstorage.c: Fixed an issue in the threadstorage cli
	  functions resulting from the constification of struct
	  ast_cli_args in r196072.

2009-06-01 14:45 +0000 [r198500-198530]  Mark Michelson <mmichelson@digium.com>

	* apps/app_queue.c: Remove extra lock from app_queue.

	* channels/chan_local.c: Remove extra lock from local_indicate in
	  connected line case. Oh, and this fixes a deadlock I was seeing.

	* channels/chan_local.c: Add missing unlock of local pvt.

	* channels/chan_agent.c: Remove documentation for the 'exten'
	  argument to the AGENT function. Since AgentCallbackLogin has been
	  removed, this should not be documented any more.

2009-06-01 13:31 +0000 [r198498]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug where the Event and Content-Type
	  headers were added twice to outgoing SIP NOTIFY messages. (closes
	  issue #15239) Reported by: pj

2009-05-31 17:52 +0000 [r198470]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_strings.c: Fix documentation for FIELDQTY.

2009-05-31 02:09 +0000 [r198442]  Eliel C. Sardanons <eliels@gmail.com>

	* main/Makefile: Filter the say.o object, it is being added later.

2009-05-31 01:40 +0000 [r198438]  Russell Bryant <russell@digium.com>

	* main/manager.c: Constification and remove some unused code.

2009-05-31 01:22 +0000 [r198437]  Eliel C. Sardanons <eliels@gmail.com>

	* res/res_timing_dahdi.c: Avoid a crash when res_timing_dahdi is
	  unloaded but wasn't properly loaded. if dahdi_test_timer() fails,
	  timing_funcs_handle remains NULL causing a crash when calling
	  ast_unregister_timing_interface() with a NULL pointer. (closes
	  issue #15234) Reported by: eliel Patches: timing_dahdi1.diff
	  uploaded by eliel (license 64)

2009-05-31 01:19 +0000 [r198434]  Russell Bryant <russell@digium.com>

	* main/channel.c, include/asterisk/channel.h: Constify the
	  ast_frame arg to ast_queue_frame().

2009-05-30 20:11 +0000 [r198371-198375]  Sean Bright <sean@malleable.com>

	* res/res_jabber.c: Properly terminate the receive buffer before
	  sending to iksemel. aji_io_recv takes the maximum number of bytes
	  to read (instead of the total buffer size), so we have to
	  subtract 1 from our buffer size. Without this, when we receive
	  packets that are larger than our buffer, iksemel will choke and
	  things get wonky. (closes issue #15232) Reported by: lp0 Patches:
	  05302009_res_jabber.c.patch uploaded by seanbright (license 71)
	  Tested by: seanbright, lp0

	* /, res/res_jabber.c: Merged revisions 198370 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r198370 | seanbright | 2009-05-30 15:36:20 -0400 (Sat, 30 May
	  2009) | 12 lines Properly terminate AMI JabberSend response
	  messages. The response message (either Error or Success) needs an
	  extra trailing \r\n after the fields to inform the client that
	  the message is complete. (closes issue #14876) Reported by: srt
	  Patches: 05302009_1.4_res_jabber.c.diff uploaded by seanbright
	  (license 71) asterisk_14876.patch uploaded by srt (license 378)
	  trunk-14876-2.diff uploaded by phsultan (license 73) ........

2009-05-30 03:43 +0000 [r198312]  Russell Bryant <russell@digium.com>

	* res/res_smdi.c, /: Merged revisions 198311 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r198311 | russell | 2009-05-29 22:42:46 -0500 (Fri, 29 May 2009)
	  | 5 lines Fix a crash that occurred when MWI SMDI messages
	  expired. (closes issue #14561) Reported by: cmoss28 ........

2009-05-30 03:26 +0000 [r198285]  Sean Bright <sean@malleable.com>

	* apps/app_dial.c, /: Merged revisions 198251 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r198251 | seanbright | 2009-05-29 22:46:41 -0400 (Fri, 29 May
	  2009) | 8 lines Treat an empty FORWARD_CONTEXT the same way we
	  treat a missing one. (closes issue #15056) Reported by:
	  p_lindheimer Patches: 05292009_bug15056.diff uploaded by
	  seanbright (license 71) Tested by: p_lindheimer ........

2009-05-30 02:31 +0000 [r198248]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: When removing all packets from a dialog we
	  also need to free the data if present.

2009-05-30 01:04 +0000 [r198217]  Eliel C. Sardanons <eliels@gmail.com>

	* configs/agents.conf.sample, channels/chan_agent.c: Remove not
	  used code in the Agent channel. This code was there because of
	  the AgentCallbackLogin() application. ->loginchan[] member was
	  only used by AgentCallbackLogin(). Agent where dumped to astdb if
	  they where logged in using AgentCallbacklogin() so they are not
	  being dumper anymore. Review:
	  https://reviewboard.asterisk.org/r/267/

2009-05-29 23:04 +0000 [r198183-198186]  Russell Bryant <russell@digium.com>

	* configs/modules.conf.sample: Suggesting that only a single timing
	  module be loaded is no longer necessary.

	* res/res_timing_pthread.c: Improve handling of trying to ACK too
	  many timer expirations.

2009-05-29 22:21 +0000 [r198182]  Terry Wilson <twilson@digium.com>

	* res/res_calendar.c: Add a couple of TODO items so I don't forget

2009-05-29 20:06 +0000 [r198146]  Russell Bryant <russell@digium.com>

	* res/res_timing_pthread.c: Resolve issues with choppy sound when
	  using res_timing_pthread. The situation that caused this problem
	  was when continuous mode was being turned on and off while a rate
	  was set for a timing interface. A very easy way to replicate this
	  bug was to do a Playback() from behind a Local channel. In this
	  scenario, a rate gets set on the channel for doing file playback.
	  At the same time, continuous mode gets turned on and off about
	  every 20 ms as frames get queued on to the PBX side channel from
	  the other side of the Local channel. Essentially, this module
	  treated continuous mode and a set rate as mutually exclusive
	  states for the timer to be in. When I dug deep enough, I observed
	  the following pattern: 1) Set timer to tick every 20 ms. 2) Wait
	  almost 20 ms ... 3) Continuous mode gets turned on for a queued
	  up frame 4) Continuous mode gets turned off 5) The timer goes
	  back to its tick per 20 ms. state but starts counting at 0 ms. 6)
	  Goto step 2. Sometimes, res_timing_pthread would make it 20 ms
	  and produce a timer tick, but not most of the time. This is what
	  produced the choppy sound (or sometimes no sound at all). Now,
	  the module treats continuous mode and a set rate as completely
	  independent timer modes. They can be enabled and disabled
	  independently of each other and things work as expected. (closes
	  issue #14412) Reported by: dome Patches: issue14412.diff.txt
	  uploaded by russell (license 2) issue14412-1.6.1.0.diff.txt
	  uploaded by russell (license 2) Tested by: DennisD, russell

2009-05-29 19:46 +0000 [r198139]  Eliel C. Sardanons <eliels@gmail.com>

	* main/Makefile: Simplify the Makefile and avoid needing to specify
	  each object file. Instead of specifying every object file, use
	  make's magic to generate it. This will generate less conflicts in
	  team branches when a new file is added in trunk. (closes issue
	  #15226) Reported by: eliel Patches: makefile uploaded by eliel
	  (license 64) Review: http://reviewboard.asterisk.org/r/269/

2009-05-29 19:19 +0000 [r198088]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, channels/sig_analog.c (added),
	  channels/sig_analog.h (added), channels/Makefile: New signaling
	  module to handle analog operations in chan_dahdi This branch
	  splits all the analog signaling logic out of chan_dahdi.c into
	  sig_analog.c. Functionality in theory should not change at all.
	  As noted in the code, there is still some unused code remaining
	  that will be cleaned up in a later commit. Review:
	  https://reviewboard.asterisk.org/r/253/

2009-05-29 19:18 +0000 [r198083]  Eliel C. Sardanons <eliels@gmail.com>

	* CREDITS: Apply anti-spam obfuscation to an email address.

2009-05-29 19:04 +0000 [r198072]  Matthew Nicholson <mnicholson@digium.com>

	* main/cdr.c, main/channel.c, /, include/asterisk/cdr.h: Merged
	  revisions 198068 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r198068 | mnicholson | 2009-05-29 13:53:01 -0500 (Fri, 29 May
	  2009) | 15 lines Use AST_CDR_NOANSWER instead of AST_CDR_NULL as
	  the default CDR disposition. This change also involves the
	  addition of an AST_CDR_FLAG_ORIGINATED flag that is used on
	  originated channels to distinguish: them from dialed channels.
	  (closes issue #12946) Reported by: meral Patches: null-cdr2.diff
	  uploaded by mnicholson (license 96) Tested by: mnicholson,
	  dbrooks (closes issue #15122) Reported by: sum Tested by: sum
	  ........

2009-05-29 18:39 +0000 [r198064]  Joshua Colp <jcolp@digium.com>

	* main/file.c: Fix a memory leak of the write buffer when writing a
	  file.

2009-05-29 18:15 +0000 [r198000]  Sean Bright <sean@malleable.com>

	* Makefile, /: Merged revisions 197998 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r197998 | seanbright | 2009-05-29 14:14:12 -0400 (Fri, 29 May
	  2009) | 8 lines Fix 'make config' target for Slackware. There was
	  a missing semi-colon after the echo statement in the Makefile
	  that was causing problems for some users. Fix suggested by
	  reporter. (closes issue #15225) Reported by: pdavis ........

2009-05-29 17:51 +0000 [r197996]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug where the default setting did not
	  perform a remote bridge when it should have.

2009-05-29 16:15 +0000 [r197960]  Russell Bryant <russell@digium.com>

	* res/res_timing_pthread.c: Trim trailing whitespace so that I can
	  work on this bug without it bothering me. :-)

2009-05-29 15:48 +0000 [r197959]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: A few fixes to SIP with regards to connected
	  line updates during transfers. * Set the invitestate to
	  INV_CALLING when we send a connected line reinvite. This prevents
	  us from potentially rapid-firing reinvites to a single peer. *
	  Use the astdb to store a peer's allowed methods. This prevents us
	  from sending an UPDATE during the interval between startup and
	  the peer's first registration if the peer does not support the
	  UPDATE method. * Handle Polycom's method of indicating allowed
	  methods in REGISTER. Instead of using an Allow header, they place
	  the allowed methods in a methods= parameter in the Contact
	  header. ABE-1873

2009-05-29 05:15 +0000 [r197926]  Terry Wilson <twilson@digium.com>

	* doc/tex/asterisk.tex, doc/tex/calendaring.tex (added): Add some
	  TeX docs for calendaring. I still need to set up tests to make
	  sure my examples are completely correct, but I ran out of time
	  tonight and felt that they at least would give an idea as to how
	  to use calendaring. I will try to test the examples and do some
	  cleanup on the docs tomorrow night.

2009-05-28 22:42 +0000 [r197861]  Sean Bright <sean@malleable.com>

	* include/asterisk/doxygen/releases.h, sounds/Makefile: Update
	  references to downloads.digium.com to its new URL.

2009-05-28 22:04 +0000 [r197828]  Leif Madsen <lmadsen@digium.com>

	* apps/app_mixmonitor.c: Update documentation in MixMonitor.
	  Updated the MixMonitor documentation for the 'b' option so that
	  it is more obvious that you must not optimize away the Local
	  channel when using this option. (closes issue #14829) Reported
	  by: licedey Tested by: mmichelson, licedey, lmadsen

2009-05-28 21:50 +0000 [r197824]  Sean Bright <sean@malleable.com>

	* doc/CODING-GUIDELINES, doc/asterisk.8, BUGS, doc/backtrace.txt,
	  doc/tex/mp3.tex, channels/h323/README, main/enum.c,
	  doc/tex/misdn.tex, include/asterisk/doxyref.h,
	  contrib/scripts/ast_grab_core, doc/tex/backtrace.tex,
	  include/asterisk/doxygen/reviewboard.h,
	  include/asterisk/doxygen/commits.h,
	  contrib/scripts/asterisk.ldif,
	  contrib/scripts/asterisk.ldap-schema,
	  configs/extensions.conf.sample, doc/asterisk.sgml: Update
	  references to bugs.digium.com and reviewboard.digium.com to the
	  new URLs.

2009-05-28 20:43 +0000 [r197777]  Terry Wilson <twilson@digium.com>

	* configs/calendar.conf.sample: Make note of Exchange calendar
	  support limitations

2009-05-28 20:36 +0000 [r197775]  Kevin P. Fleming <kpfleming@digium.com>

	* main/utils.c: Ensure that accidental calls to
	  ast_string_field_free_memory() on embedded stringfield pools are
	  safe. It is possible for a stringfield manager structure (and
	  pool) structure to be allocated as part of a larger structure
	  allocation (using ast_calloc_with_strinfields()); when this is
	  done, the stringfield pool cannot be separately freed, but users
	  of the tructure may not be aware (and shouldn't have to be aware)
	  of whether the pool was embedded. This patch modifies the
	  behavior so that they can always call
	  ast_string_field_free_memory() and the function will do the right
	  thing for both embedded and non-embedded situations.

2009-05-28 20:17 +0000 [r197740]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Treat 405 responses the same way we would a
	  501. This makes sure that we mark a method as being unallowed if
	  we receive a 405 response so that we don't continue to try to
	  send that same type of message.

2009-05-28 19:57 +0000 [r197738]  Terry Wilson <twilson@digium.com>

	* res/res_calendar.exports (added), res/res_calendar_exchange.c
	  (added), res/res_calendar_icalendar.c (added),
	  build_tools/menuselect-deps.in, configure,
	  include/asterisk/autoconfig.h.in, configure.ac,
	  configs/calendar.conf.sample (added), res/res_calendar_caldav.c
	  (added), include/asterisk/calendar.h (added), makeopts.in,
	  res/res_calendar.c (added): Add Calendaring support for Asterisk
	  This commit add Calendaring support to Asterisk for iCalendar,
	  CalDAV, and MS Exchange calendars. Exchange support has only been
	  tested on Exchange Server 2k3 and does not support forms-based
	  authentication at this time (patches *very* welcome). Exchange
	  support is also currently missing the ability to return a list of
	  a meting's attendees (again, patches are very, very welcome).
	  Features include: Querying a calendar for events over a specific
	  time range Checking a calendar's busy status via the dialplan
	  Writing calendar events via the dialplan (CalDAV and Exchange
	  only) Handling calendar event notifications through the dialplan
	  (closes issue #14771) Tested by: lmadsen, twilson, Shivaprakash
	  Review: https://reviewboard.asterisk.org/r/58

2009-05-28 18:48 +0000 [r197701]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_local.c: Add missing lock to local_indicate
	  function for connected line frames.

2009-05-28 18:45 +0000 [r197697]  Joshua Colp <jcolp@digium.com>

	* channels/chan_iax2.c: Fix a bug where the trunkmtu setting was
	  not set to the default value of 1240 on load but was on reload.

2009-05-28 16:01 +0000 [r197621]  Eliel C. Sardanons <eliels@gmail.com>

	* /, channels/chan_sip.c: Merged revisions 197562 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r197562 | eliel | 2009-05-28 11:21:32 -0400 (Thu, 28 May 2009) |
	  13 lines Use the address we already know when reloading a peer
	  with nat=yes. If we already have an address for a peer, and we
	  are reloading the sip configuration, try to use that address to
	  contact the peer, instead of getting it from the Contact. (closes
	  issue #15194) Reported by: ibc Patches: sip.patch uploaded by
	  eliel (license 64) Tested by: manwe ........

2009-05-28 15:35 +0000 [r197616]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_dahdi.c, channels/chan_console.c, apps/app_rpt.c,
	  main/astobj2.c, main/cli.c: Eliminate several needless checks and
	  fix a few memory leaks (closes issue #14833) Reported by:
	  contactmayankjain Patches: all_changes.patch uploaded by
	  contactmayankjain (license 740) slightly modified by me

2009-05-28 15:32 +0000 [r197606]  Mark Michelson <mmichelson@digium.com>

	* /: Recorded merge of revisions 197588 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r197588 | mmichelson | 2009-05-28 10:27:49 -0500 (Thu, 28 May
	  2009) | 16 lines Allow for media to arrive from an alternate
	  source when responding to a reinvite with 491. When we receive a
	  SIP reinvite, it is possible that we may not be able to process
	  the reinvite immediately since we have also sent a reinvite out
	  ourselves. The problem is that whoever sent us the reinvite may
	  have also sent a reinvite out to another party, and that reinvite
	  may have succeeded. As a result, even though we are not going to
	  accept the reinvite we just received, it is important for us to
	  not have problems if we suddenly start receiving RTP from a new
	  source. The fix for this is to grab the media source information
	  from the SDP of the reinvite that we receive. This information is
	  passed to the RTP layer so that it will know about the alternate
	  source for media. Review: https://reviewboard.asterisk.org/r/252
	  ........

2009-05-28 15:23 +0000 [r197570]  Joshua Colp <jcolp@digium.com>

	* main/logger.c: Fix an incorrect call to
	  ast_string_field_free_memory which caused a crash in the logger.
	  Since the message structure is allocated using
	  ast_calloc_with_stringfields we do not need to free the memory
	  used for the stringfields as it will get freed when the message
	  structure is.

2009-05-28 14:58 +0000 [r197543]  Mark Michelson <mmichelson@digium.com>

	* /, include/asterisk/audiohook.h, main/audiohook.c,
	  apps/app_chanspy.c: Merged revisions 197537 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r197537 | mmichelson | 2009-05-28 09:49:13 -0500 (Thu, 28 May
	  2009) | 21 lines Add flags to chanspy audiohook so that audio
	  stays in sync. There are two flags being added to the chanspy
	  audiohook here. One is the pre-existing
	  AST_AUDIOHOOK_TRIGGER_SYNC flag. With this set, we ensure that
	  the read and write slinfactories on the audiohook do not skew
	  beyond a certain tolerance. In addition, there is a new audiohook
	  flag added here, AST_AUDIOHOOK_SMALL_QUEUE. With this flag set,
	  we do not allow for a slinfactory to build up a substantial
	  amount of audio before flushing it. For this particular issue,
	  this means that the person spying on the call will hear the
	  conversations in real time with very little delay in the audio.
	  (closes issue #13745) Reported by: geoffs Patches: 13745.patch
	  uploaded by mmichelson (license 60) Tested by: snblitz ........

2009-05-28 14:51 +0000 [r197538]  Joshua Colp <jcolp@digium.com>

	* main/utils.c: Fix a bug in stringfields where it did not actually
	  free the pools of memory. (closes issue #15074) Reported by: pj

2009-05-28 14:39 +0000 [r197528-197535]  Sean Bright <sean@malleable.com>

	* configs/amd.conf.sample, configs/users.conf.sample,
	  configs/gtalk.conf.sample, configs/rpt.conf.sample,
	  configs/rtp.conf.sample, configs/cli_aliases.conf.sample,
	  configs/modules.conf.sample, configs/phone.conf.sample,
	  configs/extensions.ael.sample, configs/skinny.conf.sample,
	  configs/ais.conf.sample, configs/meetme.conf.sample,
	  configs/extensions_minivm.conf.sample, configs/telcordia-1.adsi,
	  configs/alsa.conf.sample, configs/iax.conf.sample,
	  configs/followme.conf.sample, configs/mgcp.conf.sample,
	  configs/sip.conf.sample, configs/extensions.lua.sample,
	  configs/say.conf.sample, configs/queuerules.conf.sample,
	  configs/minivm.conf.sample, configs/osp.conf.sample,
	  configs/chan_dahdi.conf.sample,
	  configs/cli_permissions.conf.sample, configs/console.conf.sample,
	  configs/dundi.conf.sample, configs/indications.conf.sample,
	  configs/oss.conf.sample, configs/queues.conf.sample,
	  configs/voicemail.conf.sample, configs/usbradio.conf.sample,
	  configs/cdr.conf.sample, configs/jingle.conf.sample,
	  configs/misdn.conf.sample, configs/manager.conf.sample,
	  configs/festival.conf.sample, configs/features.conf.sample,
	  configs/logger.conf.sample, configs/http.conf.sample,
	  configs/h323.conf.sample, configs/sla.conf.sample,
	  configs/phoneprov.conf.sample, configs/res_odbc.conf.sample,
	  configs/agents.conf.sample, configs/alarmreceiver.conf.sample,
	  configs/func_odbc.conf.sample, configs/musiconhold.conf.sample,
	  configs/jabber.conf.sample, configs/extconfig.conf.sample,
	  configs/res_snmp.conf.sample, configs/iaxprov.conf.sample,
	  configs/unistim.conf.sample, configs/dnsmgr.conf.sample,
	  configs/extensions.conf.sample, configs/asterisk.adsi: Remove a
	  bunch of trailing whitespace in preparation for
	  reformatting/cleanup. Let's try that again, this time removing
	  trailing whitespace and not leading whitespace. I can't believe
	  no one noticed.

	* configs/amd.conf.sample, configs/gtalk.conf.sample,
	  configs/rtp.conf.sample, configs/rpt.conf.sample,
	  configs/cli_aliases.conf.sample, configs/extensions.ael.sample,
	  configs/skinny.conf.sample, configs/meetme.conf.sample,
	  configs/telcordia-1.adsi, configs/alsa.conf.sample,
	  configs/iax.conf.sample, configs/mgcp.conf.sample,
	  configs/extensions.lua.sample, configs/sip.conf.sample,
	  configs/say.conf.sample, configs/minivm.conf.sample,
	  configs/console.conf.sample, configs/cli_permissions.conf.sample,
	  configs/chan_dahdi.conf.sample, configs/oss.conf.sample,
	  configs/queues.conf.sample, configs/jingle.conf.sample,
	  configs/usbradio.conf.sample, configs/voicemail.conf.sample,
	  configs/misdn.conf.sample, configs/manager.conf.sample,
	  configs/features.conf.sample, configs/h323.conf.sample,
	  configs/sla.conf.sample, configs/res_odbc.conf.sample,
	  configs/phoneprov.conf.sample, configs/alarmreceiver.conf.sample,
	  configs/func_odbc.conf.sample, configs/musiconhold.conf.sample,
	  configs/jabber.conf.sample, configs/unistim.conf.sample,
	  configs/dnsmgr.conf.sample, configs/extensions.conf.sample,
	  configs/asterisk.adsi: Remove a bunch of trailing whitespace in
	  preparation for reformatting/cleanup.

2009-05-28 13:47 +0000 [r197467]  Joshua Colp <jcolp@digium.com>

	* /, channels/chan_sip.c: Merged revisions 197466 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r197466 | file | 2009-05-28 10:44:58 -0300 (Thu, 28 May 2009) | 8
	  lines Fix a bug where the flag indicating the presence of rport
	  would get overwritten by the nat setting. The presence of rport
	  is now stored as a separate flag. Once the dialog is setup and
	  authenticated (or it passes through unauthenticated) the proper
	  nat flag is set. (closes issue #13823) Reported by: dimas
	  ........

2009-05-28 11:25 +0000 [r197406-197431]  Gavin Henry <ghenry@suretecsystems.com>

	* contrib/scripts/asterisk.ldap-schema,
	  contrib/scripts/asterisk.ldif: Added AstVoicemailContext Added
	  AstVoicemailContext (closes issue #15155) Reported by: scramatte
	  Tested by: suretec

	* contrib/scripts/asterisk.ldap-schema,
	  contrib/scripts/asterisk.ldif: New objectclass AsteriskVoiceMail
	  and AstAccountCallLimit attribute Added new ObjectClass
	  AsteriskVoiceMail, and AstAccountCallLimit attribute and cleaned
	  up formatting and tested with OpenLDAP (closes issue #15155)
	  Reported by: scramatte Patches: asterisk.schema uploaded by
	  scramatte (license 796) Tested by: suretec Review: [full review
	  board URL with trailing slash]

	* doc/ldap.txt, configs/res_ldap.conf.sample,
	  contrib/scripts/asterisk.ldap-schema,
	  contrib/scripts/asterisk.ldif: closes issue #15156

2009-05-27 23:48 +0000 [r197374]  Tilghman Lesher <tlesher@digium.com>

	* main/xml.c: Revert commit 192032. This define is needed on Mac OS
	  X.

2009-05-27 22:42 +0000 [r197338]  Russell Bryant <russell@digium.com>

	* main/rtp_engine.c: Don't do a pointer comparison before setting
	  the remote address.

2009-05-27 22:21 +0000 [r197335]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk/agi.h: Ensure that this header includes
	  xmldoc.h, since it depends on it.

2009-05-27 20:14 +0000 [r197266]  Olle Johansson <oej@edvina.net>

	* channels/chan_sip.c: Adding some generic handling of error codes
	  sent to us in replys to requests. Previously they always set
	  hangupcause 0, which is generally wrong. With this change, we're
	  setting some generic hangup causes. For 5xx errors, which
	  indicate some sort of problem with the remote server, we're now
	  setting CONGESTION. EDVX002

2009-05-27 20:08 +0000 [r197260]  Sean Bright <sean@malleable.com>

	* Makefile: Use bash explicitly when calling
	  build_tools/mkpkgconfig from the Makefile. Since we use bashisms
	  in build_tools/mkpkgconfig, we should call on bash explicitly
	  when running from the Makefile, otherwise we get errors during a
	  'make install.' (closes issue #15209) Reported by: seandarcy

2009-05-27 19:20 +0000 [r197209]  Tilghman Lesher <tlesher@digium.com>

	* /, funcs/func_cut.c: Recorded merge of revisions 197194 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r197194 | tilghman | 2009-05-27 14:09:42 -0500 (Wed, 27 May 2009)
	  | 5 lines Use a different determinator on whether to print the
	  delimiter, since leading fields may be blank. (closes issue
	  #15208) Reported by: ramonpeek Patch by me, though inspired in
	  part by a patch from ramonpeek ........

2009-05-27 18:25 +0000 [r196948-197189]  Sean Bright <sean@malleable.com>

	* configs/adtranvofr.conf.sample (removed): Remove a file sample
	  configuration file that is no longer used.

	* configs/chan_dahdi.conf.sample, configs/vpb.conf.sample,
	  configs/smdi.conf.sample, configs/extensions.conf.sample,
	  configs/sla.conf.sample: Fix references to /etc/dahdi/system.conf
	  and /etc/asterisk/chan_dahdi.conf in the sample configuration
	  files. (closes issue #15207) Reported by: seandarcy

	* channels/chan_alsa.c: Display an error message when chan_alsa
	  fails to load due to a missing or inaccessible configuration
	  file. Before this change, when chan_alsa failed to load due to a
	  missing or inaccessible configuration file, no message would be
	  displayed. With this change, when chan_alsa fails to load due to
	  a missing or inaccessible configuration file, a message will be
	  displayed. (closes issue #14760) Reported by: Nick_Lewis Patches:
	  chan_alsa.c-confload.patch uploaded by Nick (license 657)

	* main/xmldoc.c: Reset the terminal to the correct fg/bg after XML
	  documenation is rendered. (closes issue #15200) Reported by:
	  ajohnson Patches: 05262009_xmldoc.patch uploaded by seanbright
	  (license 71) Tested by: ajohnson

2009-05-26 22:40 +0000 [r196946]  Russell Bryant <russell@digium.com>

	* autoconf/ast_check_osptk.m4 (added), configure,
	  include/asterisk/autoconfig.h.in, configure.ac: Update configure
	  script to check for OSP toolkit 3.5.0. (closes issue #14988)
	  Reported by: tzafrir Patches: configure.ac.diff uploaded by
	  homesick (license 91) new_ast_check_osptk.m4 uploaded by homesick
	  (license 91)

2009-05-26 22:38 +0000 [r196907-196945]  Sean Bright <sean@malleable.com>

	* main/manager.c: Add ActionID to CoreShowChannel event. There is
	  inconsistency in how we handle manager responses that are lists
	  of items and, unfortunately, third parties have come to rely on
	  ActionID being on every event within those lists instead of just
	  keeping track of the ActionID for the current response. This
	  change makes CoreShowChannels include the ActionID with each
	  CoreShowChannel event generated as a result of it being called.
	  (closes issue #15001) Reported by: sum Patches:
	  patchactionid2.patch uploaded by sum (license 766)

	* main/manager.c: Include startup and reload date in the CoreStatus
	  manager message. The CoreStartupTime and CoreReloadTime
	  name/value pairs in the CoreStatus response message only included
	  the time and not the date. This patch, inspired by the reporter's
	  patch, adds 2 new fields - CoreStartupDate and CoreReloadDate -
	  which contain the date portion of these values. (closes issue
	  #15000) Reported by: sum

2009-05-26 19:50 +0000 [r196893]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c, apps/app_directed_pickup.c: Remove some
	  redundant or unnecessary connected line-related function calls.

2009-05-26 18:20 +0000 [r196843]  Russell Bryant <russell@digium.com>

	* /, res/res_convert.c: Merged revisions 196826 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r196826 | russell | 2009-05-26 13:14:36 -0500 (Tue, 26 May 2009)
	  | 9 lines Resolve a file handle leak. The frames here should have
	  always been freed. However, out of luck, there was never any
	  memory leaked. However, after file streams became reference
	  counted, this code would leak the file stream for the file being
	  read. (closes issue #15181) Reported by: jkroon ........

2009-05-26 16:38 +0000 [r196725-196792]  Sean Bright <sean@malleable.com>

	* apps/app_queue.c: Add a missing unref for queues in
	  handle_statechange.

	* main/pbx.c, include/asterisk/pbx.h, res/res_clioriginate.c: Add
	  new ast_complete_applications function so that we can use it with
	  the 'channel originate ... application <app>' CLI command. (And
	  yeah, I cleaned up some whitespace in res_clioriginate.c... big
	  whoop, wanna fight about it!?)

	* cdr/cdr_sqlite3_custom.c: Use a properly allocated channel for
	  substitution in cdr_sqlite3_custom.

2009-05-26 13:43 +0000 [r196658-196721]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug where the sip unregister CLI
	  command did not completely unregister the peer. (closes issue
	  #15118) Reported by: alecdavis Patches:
	  chan_sip_unregister.diff2.txt uploaded by alecdavis (license 585)

	* /, contrib/scripts/safe_asterisk: Merged revisions 196657 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r196657 | file | 2009-05-26 10:06:09 -0300 (Tue, 26 May 2009) | 7
	  lines Remove some bash specific stuff from safe_asterisk. (closes
	  issue #10812) Reported by: paravoid Patches:
	  safe_asterisk_bashism.diff uploaded by tzafrir (license 46)
	  ........

2009-05-26 12:14 +0000 [r196622]  Sean Bright <sean@malleable.com>

	* cdr/cdr_manager.c: Use a properly allocated channel for
	  substitution in cdr_manager.

2009-05-24 16:17 +0000 [r196554-196585]  Eliel C. Sardanons <eliels@gmail.com>

	* res/res_agi.c: Move AGI static documentation to the new AstXML
	  form. Move AGI commands documentation to XML docs: 'set priority'
	  'set variable' 'stream file' 'control stream file' 'tdd mode'
	  'verbose' 'wait for digit' 'speech create' 'speech set' 'speech
	  destroy' 'speech load grammar' 'speech unload grammar' 'speech
	  activate grammar' 'speech deactivate grammar' 'speech recognize'

	* res/res_agi.c: Move static AGI commands documentation to XML.
	  Move AGI commands ('say datetime', 'send image', 'send text',
	  'set autohangup', 'set callerid', 'set context', 'set extension')
	  documentation to the AstXML form.

2009-05-23 15:16 +0000 [r196520]  Sean Bright <sean@malleable.com>

	* cdr/cdr_custom.c: Fix errors in cdr_custom that cause reference
	  errors when non-CDR variable substitution is done. cdr_custom was
	  creating a ast_channel struct directly and passing it into the
	  core for variable substition. This was fine as long as the format
	  string contained only calls to the CDR() function. Doing
	  something like ${EPOCH} on the other hand tried to lock the
	  channel, which would fail and throw an error because the passed
	  channel hadn't been allocated as an ao2 object. So now we create
	  the dummy channel with ast_channel_alloc, and everything works as
	  expected.

2009-05-23 13:31 +0000 [r196488]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk/cli.h: Correct example for CLI autocompletion
	  (generation) Reported by Atis on #asterisk-dev

2009-05-23 04:27 +0000 [r196456]  Moises Silva <moises.silva@gmail.com>

	* channels/chan_dahdi.c: set MFCR2_CATEGORY just when starting the
	  pbx

2009-05-22 21:11 +0000 [r196417]  Sean Bright <sean@malleable.com>

	* main/asterisk.c: Call ast_stun_init() when we're initializing to
	  get the 'stun debug set' commands.

2009-05-22 21:09 +0000 [r196416]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample: SIP set outbound
	  transport type from Registration In sip.conf the transport option
	  allows for the configuration of what transport types (udp, tcp,
	  and tls) a peer will accept, but only the first type listed was
	  used for outbound connections. This patch changes this. Now the
	  default transport type is only used until the peer registers.
	  When registration takes place the transport type is parsed out of
	  the Contact header. If the Contact header's transport type is
	  equal to one that the peer supports, the peer's default transport
	  type for outbound connections is set to match the Contact
	  header's type. If the Contact header's transport type is not
	  present, then the peer's default transport type is set to match
	  the one the peer registered with. When a peer unregisters or the
	  registration expires, the default transport type for that peer is
	  reset. (closes issue #12282) Reported by: rjain Patches:
	  reg_patch_1.diff uploaded by dvossel (license 671) Tested by:
	  dvossel (closes issue #14727) Reported by: pj Patches:
	  reg_patch_3.diff uploaded by dvossel (license 671) Tested by: pj,
	  dvossel Review: https://reviewboard.asterisk.org/r/249/

2009-05-22 20:01 +0000 [r196381]  Sean Bright <sean@malleable.com>

	* channels/chan_gtalk.c: Don't crash if an RTP instance can't be
	  created. This could occur when an invalid bindaddr was specified
	  in gtalk.conf.

2009-05-22 19:38 +0000 [r196308-196377]  Eliel C. Sardanons <eliels@gmail.com>

	* apps/app_minivm.c: Unregister every registered application by
	  MiniVM. The MinivmMWI application was not being unregistered on
	  unload and we were not able to load again the module or reload
	  it. (closes issue #15174) Reported by: junky Patches:
	  unregister_minivm_mwi.diff uploaded by junky (license 177)

	* res/res_agi.c: Moved static documentation to the AstXML form.
	  Moved AGI commands static documentation to XML docs ('say alpha',
	  'say digits', 'say number', 'say phonetic', 'say date' and 'say
	  time').

	* main/pbx.c, channels/chan_sip.c, apps/app_meetme.c,
	  channels/chan_agent.c, apps/app_queue.c, channels/chan_iax2.c,
	  include/asterisk/manager.h, channels/chan_dahdi.c,
	  main/manager.c, channels/chan_skinny.c, main/features.c,
	  res/res_agi.c, include/asterisk/xmldoc.h, include/asterisk/pbx.h,
	  apps/app_senddtmf.c, doc/appdocsxml.dtd, main/db.c,
	  main/xmldoc.c, apps/app_voicemail.c: Implement a new element in
	  AstXML for AMI actions documentation. A new xml element was
	  created to manage the AMI actions documentation, using AstXML. To
	  register a manager action using XML documentation it is now
	  possible using ast_manager_register_xml(). The CLI command
	  'manager show command' can be used to show the parsed
	  documentation. Example manager xml documentation: <manager
	  name="ami action name" language="en_US"> <synopsis> AMI action
	  synopsis. </synopsis> <syntax> <xi:include
	  xpointer="xpointer(...)" /> <-- for ActionID <parameter
	  name="header1" required="true"> <para>Description</para>
	  </parameter> ... </syntax> <description> <para>AMI action
	  description</para> </description> <see-also> ... </see-also>
	  </manager>

2009-05-22 16:53 +0000 [r196272]  Tilghman Lesher <tlesher@digium.com>

	* main/astmm.c: Two more minor fixes due to constification

2009-05-22 16:51 +0000 [r196270]  Sean Bright <sean@malleable.com>

	* res/res_agi.c: Fix res_agi compilation after the const-ify the
	  world merge. Since we are dealing with a 'const char * const'
	  now, we have to create a temporary copy of the string to work on
	  rather than the original. Fix inspired by reporter. Reviewed by
	  everyone-and-their-mother in #asterisk-dev. (closes issue #15184)
	  Reported by: andrew

2009-05-22 16:50 +0000 [r196268]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: s/it's/its/

2009-05-22 16:20 +0000 [r196246]  Russell Bryant <russell@digium.com>

	* channels/chan_dahdi.c: resolve compiler warning

2009-05-22 16:10 +0000 [r196227]  Sean Bright <sean@malleable.com>

	* channels/chan_dahdi.c, main/pbx.c, res/res_jabber.c,
	  res/res_monitor.c: Fix build under dev mode and remove some casts
	  that are no longer necessary as a result of the const-ify the
	  world patch.

2009-05-22 15:07 +0000 [r196187-196188]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_mp3.c: Fix constify the world compile problem.

	* channels/chan_misdn.c: Make chan_misdn compile.

2009-05-22 13:56 +0000 [r196117]  Joshua Colp <jcolp@digium.com>

	* channels/chan_misdn.c, /: Merged revisions 196116 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r196116 | file | 2009-05-22 10:54:17 -0300 (Fri, 22 May
	  2009) | 5 lines Fix a bug where using immediate with mISDN caused
	  a cause code of 16 to get sent back instead of 1 if the 's'
	  extension did not exist. (closes issue #12286) Reported by:
	  lmamane ........

2009-05-22 13:34 +0000 [r196114]  Eliel C. Sardanons <eliels@gmail.com>

	* main/pbx.c: Avoid using prototypes when not necessary (it is
	  already defined in the header file). Make log_match_char_tree()
	  static to main/pbx.c (only used there).

2009-05-21 21:13 +0000 [r196072]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_dahdibarge.c, main/frame.c, apps/app_record.c,
	  apps/app_playtones.c, funcs/func_strings.c,
	  include/asterisk/extconf.h, apps/app_alarmreceiver.c,
	  apps/app_chanisavail.c, apps/app_ices.c, apps/app_exec.c,
	  channels/chan_iax2.c, main/astobj2.c, channels/chan_dahdi.c,
	  channels/chan_skinny.c, apps/app_dumpchan.c, pbx/pbx_ael.c,
	  main/pbx.c, channels/vcodecs.c, apps/app_softhangup.c,
	  apps/app_morsecode.c, apps/app_talkdetect.c,
	  channels/iax2-parser.c, apps/app_db.c, apps/app_speech_utils.c,
	  apps/app_sendtext.c, pbx/pbx_config.c, apps/app_mixmonitor.c,
	  main/asterisk.c, res/res_odbc.c, apps/app_voicemail.c,
	  apps/app_dictate.c, apps/app_authenticate.c,
	  apps/app_readexten.c, apps/app_userevent.c, res/res_jabber.c,
	  include/asterisk/abstract_jb.h, main/channel.c,
	  apps/app_setcallerid.c, apps/app_osplookup.c, funcs/func_odbc.c,
	  apps/app_mp3.c, apps/app_minivm.c, apps/app_directory.c,
	  apps/app_rpt.c, channels/chan_mgcp.c, apps/app_adsiprog.c,
	  apps/app_read.c, channels/chan_sip.c,
	  include/asterisk/taskprocessor.h, include/asterisk/cli.h,
	  apps/app_originate.c, utils/conf2ael.c,
	  apps/app_channelredirect.c, apps/app_forkcdr.c,
	  main/abstract_jb.c, channels/misdn/chan_misdn_config.h,
	  apps/app_sms.c, utils/extconf.c, funcs/func_devstate.c,
	  apps/app_stack.c, apps/app_verbose.c, main/dsp.c, main/udptl.c,
	  include/asterisk/agi.h, cdr/cdr_sqlite3_custom.c,
	  apps/app_readfile.c, apps/app_sayunixtime.c, apps/app_test.c,
	  include/asterisk/speech.h, cdr/cdr_adaptive_odbc.c,
	  apps/app_image.c, main/taskprocessor.c, main/loader.c,
	  main/cli.c, apps/app_skel.c, include/asterisk/module.h,
	  main/features.c, apps/app_amd.c, channels/chan_alsa.c,
	  apps/app_url.c, apps/app_externalivr.c, formats/format_gsm.c,
	  apps/app_milliwatt.c, res/res_speech.c, main/ast_expr2.fl,
	  apps/app_dial.c, include/asterisk/utils.h, apps/app_page.c,
	  apps/app_privacy.c, apps/app_fax.c, apps/app_echo.c,
	  channels/chan_agent.c, apps/app_dahdiras.c, apps/app_disa.c,
	  pbx/dundi-parser.c, apps/app_transfer.c, res/res_monitor.c,
	  apps/app_playback.c, include/asterisk/app.h,
	  channels/chan_misdn.c, apps/app_waitforring.c,
	  include/asterisk/image.h, apps/app_macro.c,
	  apps/app_zapateller.c, apps/app_chanspy.c, apps/app_cdr.c,
	  channels/chan_unistim.c, apps/app_meetme.c, main/utils.c,
	  res/res_musiconhold.c, apps/app_followme.c,
	  channels/misdn_config.c, apps/app_controlplayback.c, main/ulaw.c,
	  main/cdr.c, main/manager.c, channels/console_gui.c,
	  cdr/cdr_sqlite.c, res/res_agi.c, main/app.c,
	  apps/app_confbridge.c, main/image.c, apps/app_ivrdemo.c,
	  apps/app_parkandannounce.c, res/res_clioriginate.c,
	  apps/app_jack.c, apps/app_while.c, res/res_rtp_asterisk.c,
	  apps/app_nbscat.c, apps/app_festival.c, res/res_limit.c,
	  apps/app_waitforsilence.c, apps/app_waituntil.c,
	  channels/chan_console.c, apps/app_queue.c, apps/app_system.c,
	  apps/app_getcpeid.c, channels/chan_oss.c,
	  include/asterisk/features.h, apps/app_flash.c,
	  apps/app_directed_pickup.c, channels/chan_nbs.c,
	  include/asterisk/strings.h, include/asterisk/pbx.h,
	  apps/app_senddtmf.c: Const-ify the world (or at least a good part
	  of it) This patch adds 'const' tags to a number of Asterisk APIs
	  where they are appropriate (where the API already demanded that
	  the function argument not be modified, but the compiler was not
	  informed of that fact). The list includes: - CLI command handlers
	  - CLI command handler arguments - AGI command handlers - AGI
	  command handler arguments - Dialplan application handler
	  arguments - Speech engine API function arguments In addition,
	  various file-scope and function-scope constant arrays got 'const'
	  and/or 'static' qualifiers where they were missing. Review:
	  https://reviewboard.asterisk.org/r/251/

2009-05-21 19:11 +0000 [r195995]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 195991 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r195991 | dvossel | 2009-05-21 14:04:56 -0500 (Thu, 21
	  May 2009) | 14 lines Sign problem calculating timestamp for iax
	  frame leads to no audio on the receiving peer. There are rare
	  cases in which a frame's delivery timestamp is slightly less than
	  the iax2_pvt's offset. This causes the pvt's timestamp to be a
	  small negative number, but since the timestamp value is unsigned
	  it looks like a huge positive number. This patch checks for this
	  negative case and sets the ms to zero. A similar check is already
	  done right below this one in the 'else' statement. (closes issue
	  #15032) Reported by: guillecabeza Patches:
	  chan_iax2.c.patch_timestamp uploaded by guillecabeza (license
	  380) Tested by: guillecabeza (closes issue #14216) Reported by:
	  Andrey Sofronov ........

2009-05-21 19:06 +0000 [r195992]  Mark Michelson <mmichelson@digium.com>

	* main/features.c: Pass connected line updates along during a
	  bridge.

2009-05-21 17:15 +0000 [r195949]  Sean Bright <sean@malleable.com>

	* configs/cdr_custom.conf.sample: Rework the cdr_custom.conf.sample
	  header a bit to reflect the changes in functionality (allowing
	  multiple mappings).

2009-05-21 15:33 +0000 [r195882]  Matthew Nicholson <mnicholson@digium.com>

	* main/cdr.c, /, include/asterisk/cdr.h: Merged revisions 195881
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r195881 | mnicholson | 2009-05-21 10:25:50 -0500 (Thu, 21 May
	  2009) | 13 lines This commit prevents cdr records with
	  AST_CDR_FLAG_ANSLOCKED and AST_CDR_FLAG_LOCKED from being updated
	  in certain cases. This is accomplished by adding two functions to
	  update the answer time and disposition of calls that checks for
	  the proper lock flags. These functions are used in the
	  ast_bridge_call() function so that ForkCDR(A) calls are
	  respected. This patch also modifies the way ast_bridge_call()
	  chooses the cdr record to base the bridged_cdr on. Previously the
	  first unlocked cdr record would be chosen, now instead the first
	  cdr record is chosen and forked cdr records are moved to the
	  bridge_cdr. This allows the original cdr record and any forked
	  cdr records to be properly updated with answer and end times.
	  (closes issue #13797) Reported by: sh0t Tested by: sh0t (closes
	  issue #14744) Reported by: deepesh ........

2009-05-20 23:30 +0000 [r195839]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_stack.c: If a variable had a blank value upon the
	  initial setting, then it would do nothing. Identified by Dmitry
	  Andrianov via private email, fixed by me.

2009-05-20 20:45 +0000 [r195763-195798]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Get rid of some duplicated code and correct
	  a connected line error. When receiving a 200 OK response to an
	  INVITE, it was possible to transmit two connected line updates
	  instead of a single one. Furthermore, the second did not have the
	  proper information present. Now the two have been combined into a
	  single update and the correct information is presented.

	* apps/app_dial.c: Plug a memory leak in app_dial. Since we may
	  have copied connected line info into the chanlist struct prior to
	  placing an outbound call, we need to be sure to free the
	  allocated data when we hang the call up.

2009-05-20 17:33 +0000 [r195636-195698]  Joshua Colp <jcolp@digium.com>

	* /, main/features.c: Merged revisions 195688 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r195688 | file | 2009-05-20 14:30:25 -0300 (Wed, 20 May 2009) | 5
	  lines Fix some code that wrongly assumed a pointer would always
	  be non-NULL when dealing with CDRs after a bridge. (closes issue
	  #15079) Reported by: barryf ........

	* /, apps/app_meetme.c: Merged revisions 195635 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r195635 | file | 2009-05-20 14:14:00 -0300 (Wed, 20 May 2009) | 5
	  lines Fix a bug where the MeetMe option 'D' did not actually
	  prompt for the pin. (closes issue #15050) Reported by: pmhaddad
	  ........

2009-05-19 20:59 +0000 [r195589]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample: Add basic support
	  for handling connected line-related UPDATE requests. SIP purists
	  may want to look the other way... When COLP/CONP support for SIP
	  was committed, there was a condition under which Asterisk may
	  transmit a SIP UPDATE in order to communicate the change in
	  connected line information. The issue here is that while we could
	  send a SIP UPDATE message, we were not prepared to receive such
	  an UPDATE and would always responde with a 501 when we received
	  an UPDATE. The situation was a bit rough. We really want to be
	  able to receive UPDATEs having to do with connected line changes,
	  but the amount of effort involved in properly supporting RFC 3311
	  was staggering. This commit represents a compromise. First, it
	  was decided that it is important to only send a SIP UPDATE to an
	  endpoint that is able to handle one. So, now we have added
	  parsing of the Allow header into SIP. We store the allowed
	  methods on SIP peers so that when we communicate with them, we
	  already will know what we can and cannot send to them. We will
	  parse the peer's allowed methods when he registers with us. If
	  the peer is not the type to register with us, but the qualify
	  option is enabled, then we will use the response to the OPTIONS
	  request we send the peer to determine the peer's allowed methods.
	  When the peer's registration expires, or when qualify deems the
	  peer to be unreachable, we clear the allowed methods from the
	  peer. For an actual call, we will copy the peer's allowed methods
	  to the sip_pvt representing the call leg. If we are communicating
	  with an endpoint which is not a peer, then we will just parse the
	  Allow header from the first message we receive during the call
	  and store the information in the sip_pvt. If, during
	  communication with a peer, we receive a 501 response, then we
	  will make sure to save the fact that we cannot use that method
	  when communicating with that peer. Now, with all that
	  infrastructure in place, the only actual place we use this
	  information currently is when attempting to send a connected line
	  change using an UPDATE request. If we cannot send the change
	  immediately using an UPDATE, we will set the SIP_NEEDREINVITE
	  flag so that we can send a REINVITE as soon as it is allowed. The
	  second part of the changes here is for Asterisk to accept UPDATE
	  requests that have connected line changes. Since we are not fully
	  supporting RFC 3311, Asterisk will NOT place the UPDATE method in
	  Allow headers it sends. Instead, if you are communicating with
	  what you know to be another Asterisk box, you may set the
	  rpid_update parameter in sip.conf so that we will send UPDATEs to
	  that Asterisk box. When we send a connected line update, we set a
	  custom header called "X-Asterisk-rpid-update." On the receiving
	  end, if Asterisk receives an UPDATE that does not have the
	  "X-Asterisk-rpid-update" header present, then Asterisk will
	  respond with a 501 since media-changing UPDATEs are not
	  supported. We should never get such UPDATEs, since as was stated
	  earlier, Asterisk does not put UPDATE in its Allow header. If the
	  custom header is present in the received UPDATE, though, then we
	  will check the incoming request for connected line updates and
	  queue the update on the channel where the change occurred.
	  ABE-1840 ABE-1822

2009-05-19 20:16 +0000 [r195521]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 195520 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r195520 | tilghman | 2009-05-19 15:12:20 -0500 (Tue, 19
	  May 2009) | 7 lines Ensure thread keys are initialized before
	  attempting to access them. (closes issue #14889) Reported by:
	  jaroth Patches: app_voicemail.c.patch uploaded by msirota
	  (license 758) Tested by: msirota, BlargMaN ........

2009-05-19 14:43 +0000 [r195449]  Joshua Colp <jcolp@digium.com>

	* /, channels/chan_sip.c: Merged revisions 195448 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r195448 | file | 2009-05-19 11:41:45 -0300 (Tue, 19 May 2009) | 7
	  lines Fix a bug where direct RTP setup would partially occur even
	  when disabled if the calling channel was answered. (issue #13545)
	  Reported by: davidw (issue #14244) Reported by: mbnwa ........

2009-05-18 20:52 +0000 [r195370]  Tilghman Lesher <tlesher@digium.com>

	* res/res_smdi.c, /, include/asterisk/monitor.h, apps/app_queue.c,
	  include/asterisk/smdi.h, res/res_monitor.c, apps/app_voicemail.c:
	  Recorded merge of revisions 195366 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r195366 | tilghman | 2009-05-18 15:24:13 -0500 (Mon, 18 May 2009)
	  | 8 lines Add a similar dependency on SMDI for voicemail as
	  already exists for ADSI. (closes issue #14846) Reported by: pj
	  Patches: 20090413__bug14846__1.4.diff.txt uploaded by tilghman
	  (license 14) 20090507__issue14846__1.6.0.diff.txt uploaded by
	  tilghman (license 14) 20090507__issue14846__1.6.1.diff.txt
	  uploaded by tilghman (license 14) ........

2009-05-18 20:49 +0000 [r195365-195369]  Eliel C. Sardanons <eliels@gmail.com>

	* main/manager.c: Fix the CLI command 'manager show command'
	  documentation and functionality. The CLI command 'manager show
	  command' supports passing multiple action names in the same line,
	  but it was not allowing that because of a incorrect check in the
	  argumentes counter. Also the documentation was updated to show
	  that this usage of the command is possible.

	* main/manager.c: Rollback commit 195367. The CLI command 'manager
	  show command' supports passing multiple AMI actions at a time.
	  The issue with this command was in another place.

	* main/manager.c: Avoid autocompleting passed the action name
	  argument in the CLI command. When running the autocomplete of the
	  CLI command 'manager show command <action>' it was autocompleting
	  everything else after the <action> argument, giving an error,
	  because this command doesn't support multiple AMI action names at
	  a time.

	* res/res_agi.c: Move AGI documentation from static to the XML
	  form. Move the AGI commands 'receive text', 'receive char' and
	  'record' static documentation to XML docs.

2009-05-18 19:17 +0000 [r195320]  Tilghman Lesher <tlesher@digium.com>

	* main/asterisk.c: Move the spawn of astcanary down, until after
	  the call to daemon(3). This avoids possible conflicts with the
	  internal implementation of daemon(3). (closes issue #15093)
	  Reported by: tzafrir Patches: 20090513__issue15093__2.diff.txt
	  uploaded by tilghman (license 14) Tested by: tzafrir

2009-05-18 18:58 +0000 [r195316]  Mark Michelson <mmichelson@digium.com>

	* apps/app_externalivr.c: Fix externalivr's setvariable command so
	  that it properly sets multiple variables. The command had a for
	  loop that was guaranteed to only execute once since the
	  continuation operation of the loop would set the input buffer
	  NULL. I rewrote the loop so that its operation was more obvious,
	  and it would set multiple variables correctly. I also reduced
	  stack space required for the function, constified the input
	  string, and modified the function so that it would not modify the
	  input string while I was at it. (closes issue #15114) Reported
	  by: chris-mac Patches: 15114.patch uploaded by mmichelson
	  (license 60) Tested by: chris-mac

2009-05-18 17:08 +0000 [r195279]  Sean Bright <sean@malleable.com>

	* cdr/cdr_custom.c: Remove some unused code.

2009-05-18 16:29 +0000 [r195266]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: The facilityenable parameter does not have
	  anything to do with pritimer parameters.

2009-05-18 15:55 +0000 [r195210]  Sean Bright <sean@malleable.com>

	* cdr/cdr_custom.c: Const-ify a string, fix a log message, and use
	  the correct signature for the load_module function.

2009-05-18 15:53 +0000 [r195207]  Joshua Colp <jcolp@digium.com>

	* main/frame.c, /: Merged revisions 195206 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r195206 | file | 2009-05-18 12:51:22 -0300 (Mon, 18 May 2009) | 7
	  lines Fix a typo which caused loss of audio when using G729 in
	  some scenarios with a smoother present. (closes issue #15105)
	  Reported by: bamby Patches: process-vad-correctly.diff uploaded
	  by bamby (license 430) ........

2009-05-18 14:54 +0000 [r195165]  Sean Bright <sean@malleable.com>

	* configs/cdr_custom.conf.sample, CHANGES, cdr/cdr_custom.c: Allow
	  cdr_custom to write to multiple files instead of just one. Up to
	  now, cdr_custom would only accept a single filename/format from
	  cdr_custom.conf. This change allows you to specify multiple
	  filename & format directives.

2009-05-18 14:45 +0000 [r195162]  Eliel C. Sardanons <eliels@gmail.com>

	* apps/app_dial.c, main/pbx.c, apps/app_macro.c: Warn about the use
	  of the application WaitExten() within a Macro(). Update
	  applications documentation to warn the user about the use of the
	  WaitExten() application within a Macro(). Recommend the use of
	  Read() instead. (closes issue #14444) Reported by: ewieling

2009-05-18 13:56 +0000 [r195089-195096]  Joshua Colp <jcolp@digium.com>

	* main/rtp_engine.c, /: Merged revisions 195095 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r195095 | file | 2009-05-18 10:53:39 -0300 (Mon, 18 May 2009) | 5
	  lines Fix a bug where the codecs of the called party leg were not
	  properly sent back to the caller call leg when reinvited. (closes
	  issue #13569) Reported by: bkw918 ........

	* channels/chan_sip.c: Fix a bug where specifying an empty
	  outboundproxy would cause packets to get sent to ourself. (closes
	  issue #15106) Reported by: timeshell

2009-05-18 13:30 +0000 [r195075]  Eliel C. Sardanons <eliels@gmail.com>

	* main/xml.c: Do not avoid loading the XML documentation if not
	  XInclude substitution is done.

2009-05-18 12:59 +0000 [r195021]  Russell Bryant <russell@digium.com>

	* /: Recorded merge of revisions 195020 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r195020 | russell | 2009-05-18 07:57:46 -0500 (Mon, 18 May 2009)
	  | 5 lines Don't try to unlock a bogus channel. (closes issue
	  #15144) Reported by: cristiandimache ........

2009-05-16 20:01 +0000 [r194945-194982]  Eliel C. Sardanons <eliels@gmail.com>

	* Makefile, main/xml.c, doc/appdocsxml.dtd: Allow to include
	  sections of other parts of the xml documentation. Avoid
	  duplicating xml documentation by allowing to include other parts
	  of the xml documentation using XInclude. Example: <xi:include
	  xpointer="xpointer(/docs/function[@name='CHANNEL']/synopsis)" />
	  (Insert this line to include the synopsis of the CHANNEL function
	  xml documentation). It is also possible to include documentation
	  from other files in the 'documentation/' directory using the
	  href="" attribute inside a xinclude element. (closes issue
	  #15107) Reported by: lmadsen (issue #14444) Reported by: ewieling

	* main/pbx.c: Fix a missing unlock in case of error, and a missing
	  free(). Always free the allocated memory for a string field,
	  because we are always using it (not only when xmldocs are
	  enabled). Also if there is an error allocating memory for the
	  string field remember to unlock the list of registered
	  applications, before returning.

2009-05-15 22:44 +0000 [r194833-194874]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 194873 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r194873 | dvossel | 2009-05-15 17:43:13 -0500 (Fri, 15
	  May 2009) | 17 lines IAX2 REGAUTH loop IAX was not sending REGREJ
	  to terminate invalid registrations. Instead it sent another
	  REGAUTH if the authentication challenge failed. This caused a
	  loop of REGREQ and REGAUTH frames. (Related to Security fix
	  AST-2009-001) (closes issue #14867) Reported by: aragon Tested
	  by: dvossel (closes issue #14717) Reported by: mobeck Patches:
	  regauth_loop_update_patch.diff uploaded by dvossel (license 671)
	  Tested by: dvossel ........

	* channels/iax2-parser.h, /, channels/iax2.h, channels/chan_iax2.c,
	  channels/iax2-parser.c: Merged revisions 194557,194685 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r194557 | dvossel | 2009-05-14 17:59:43 -0500 (Thu, 14 May 2009)
	  | 10 lines IAX2 "Ghost" Channels There is a bug tracker issue
	  where people are reporting "Ghost" channels in their 'iax2 show
	  channels' output. The confusion is caused by channels being
	  listed as "(NONE)" with format "unknown". These are not channels
	  of coarse. They are usually just pending registration or poke
	  requests, but it is confusing output. To help make sense of this
	  I have added two columns to 'iax2 show channels'. One shows the
	  first message which started the transaction, and the second shows
	  the last message sent by either side of the call. This helps
	  diagnose why the entry exists and why it may not go away. (closes
	  issue #14207) Reported by: clive18 Review:
	  https://reviewboard.asterisk.org/r/246/ ........ r194685 |
	  dvossel | 2009-05-15 10:40:37 -0500 (Fri, 15 May 2009) | 6 lines
	  Update to previous IAX2 "Ghost" Channels patch. Fixed some
	  comments made on reviewboard for the previous patch. (issue
	  #14207) ........

2009-05-15 18:43 +0000 [r194714-194765]  Russell Bryant <russell@digium.com>

	* /, configs/logger.conf.sample: Merged revisions 194764 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r194764 | russell | 2009-05-15 13:43:18 -0500 (Fri, 15 May 2009)
	  | 2 lines Fix some spelling fail. ........

	* codecs/g722/g722_encode.c, codecs/g722/g722_decode.c: Shuttle
	  some bits around to address some gain issues with G.722. (closes
	  AST-209)

	* codecs/Makefile, codecs/g722/Makefile (removed): Further simplify
	  codec_g722 build.

	* codecs/Makefile: Actually force running make for g722.

2009-05-15 13:43 +0000 [r194649]  Michiel van Baak <michiel@vanbaak.info>

	* CREDITS: add eliel

2009-05-15 13:23 +0000 [r194635]  Eliel C. Sardanons <eliels@gmail.com>

	* doc/appdocsxml.dtd, main/xmldoc.c: Allow to specify an enumlist
	  inside an enum. It was not possible to use an enumlist inside an
	  enum: <enumlist> <enum name="aa"> <enumlist> ... </enumlist>
	  </enum> </enumlist> Now we will be able to insert as many levels
	  as we want. (closes issue #15112) Reported by: lmadsen

2009-05-15 13:13 +0000 [r194520-194610]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk/logger.h, tests/test_logger.c (added),
	  main/logger.c: Add ability for modules to dynamically register
	  logger levels This patch adds the ability for modules to
	  dynamically create logger levels for their own use; these are
	  named levels just like the built-in levels, and can be directed
	  to any destination that the logger can send any level to, by
	  including their names in logger.conf. Review:
	  https://reviewboard.asterisk.org/r/244/

	* /: Merged revisions 194509 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r194509 | kpfleming | 2009-05-14 17:23:49 -0500 (Thu, 14 May
	  2009) | 1 line Update URL to Reviewboard ........

2009-05-14 22:20 +0000 [r194496]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 194484 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r194484 | mmichelson | 2009-05-14 17:17:55 -0500 (Thu, 14 May
	  2009) | 24 lines Fix a race condition where a reinvite could
	  trigger a 482 response. The loop detection/spiral detection code
	  in chan_sip used the owner channel's state as a criterion for
	  determining if the incoming INVITE is a looped request. The
	  problem with this is that the INVITE-handling code happens in a
	  different thread than the thread that marks the owner channel as
	  being up. As a result, if a reinvite were to come in very
	  quickly, say from another Asterisk on the same LAN, it was
	  possible for the reinvite to arrive before the owner channel had
	  been set to the up state. This patch corrects the problem by
	  using the invitestate of the sip_pvt instead, since that can be
	  guaranteed to be set correctly by the time the reinvite arrives.
	  Since there is a switch statement further in the INVITE-handling
	  code, the AST_STATE_RINGING state also checks the invitestate of
	  the sip_pvt in case we should actually be treating the channel as
	  if it were up already. (closes issue #12215) Reported by: jpyle
	  Patches: 12215_confirmed.patch uploaded by mmichelson (license
	  60) Tested by: lmadsen ........

2009-05-14 22:03 +0000 [r194479]  Richard Mudgett <rmudgett@digium.com>

	* channels/misdn/isdn_lib.h, channels/chan_misdn.c,
	  channels/misdn/chan_misdn_config.h,
	  channels/misdn/isdn_msg_parser.c, configs/misdn.conf.sample,
	  CHANGES, channels/misdn/isdn_lib.c, channels/misdn_config.c: Add
	  outgoing_colp misdn.conf port parameter. Select what to do with
	  outgoing COLP information on this port. 0 - Send out COLP
	  information unaltered. (default) 1 - Force COLP to restricted on
	  all outgoing COLP information. 2 - Do not send COLP information.
	  outgoing_colp=0 Also fixed sending the EctInform message so it
	  always has the required redirectionNumber parameter when the
	  status is active. JIRA ABE-1853

2009-05-14 21:24 +0000 [r194477]  Russell Bryant <russell@digium.com>

	* main/features.c: Fix a typo where an equality check should be an
	  assignment. (closes issue #15103) Reported by: lmsteffan Patches:
	  transfer_crash.patch uploaded by lmsteffan (license 779)

2009-05-14 17:05 +0000 [r194434]  Joshua Colp <jcolp@digium.com>

	* apps/app_meetme.c: Fix a bug where the 'T' option to Meetme did
	  not work. (closes issue #15031) Reported by: Stochastic (closes
	  issue #13801) Reported by: justdave

2009-05-14 16:22 +0000 [r194430]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: If the timing ended on a zero, then we would loop
	  forever. (closes issue #14983) Reported by: teox Patches:
	  20090513__issue14983.diff.txt uploaded by tilghman (license 14)
	  Tested by: teox

2009-05-13 15:02 +0000 [r194283]  Eliel C. Sardanons <eliels@gmail.com>

	* main/manager.c: Do not lock the 'sessions' container, lock the
	  allocated 'session'. There was a typo in the structure being
	  locked, and we were locking the 'sessions' container instead of
	  the 'session' structure thar we are modifying. Reported by
	  seanbright on #asterisk-dev, thanks!

2009-05-13 13:39 +0000 [r194209]  Joshua Colp <jcolp@digium.com>

	* res/res_rtp_asterisk.c, /: Merged revisions 194208 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r194208 | file | 2009-05-13 10:38:01 -0300 (Wed, 13 May
	  2009) | 11 lines Fix RFC2833 issues with DTMF getting duplicated
	  and with duration wrapping over. (closes issue #14815) Reported
	  by: geoff2010 Patches: v1-14815.patch uploaded by dimas (license
	  88) Tested by: geoff2010, file, dimas, ZX81, moliveras (closes
	  issue #14460) Reported by: moliveras Tested by: moliveras
	  ........

2009-05-13 00:52 +0000 [r194101-194138]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c, /: Merged revisions 194137 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r194137 | tilghman | 2009-05-12 19:52:03 -0500 (Tue, 12 May 2009)
	  | 7 lines Fix logic for how to proceed with a single digit
	  extension. (closes issue #15091) Reported by: andrew Patches:
	  20090512__issue15091.diff.txt uploaded by tilghman (license 14)
	  Tested by: andrew ........

	* main/pbx.c, main/logger.c: Two fixes found while debugging with
	  ast_backtrace(): 1) If MALLOC_DEBUG is used when concurrently
	  using ast_backtrace, the free() used in that routine will trigger
	  an error, because the memory was allocated internally to libc,
	  where we could not intercept that call to wrap it. Therefore,
	  it's not memory we knew about, and the free is reported as an
	  error. 2) Now that channels are objects, the old hack of
	  initializing a channel to all zeroes no longer works, since we
	  may try to call something like ast_channel_lock() within a
	  function on that reference. In that case, it's reported as an
	  error, because the pointer isn't an object reference.

2009-05-12 22:49 +0000 [r194060]  Eliel C. Sardanons <eliels@gmail.com>

	* main/manager.c: Fix a crash when logging out from the AMI and
	  avoid astobj2 warning messages. When the user logout the session
	  was being destroyed twice and the file descriptor was being
	  closed twice. The sessions reference counter wasn't used in a
	  proper way. The 'mansession' structure was being treated as an
	  astobj2 and we were calling ao2_lock/ao2_unlock causing astobj2
	  report a warning message and not locking the structure. Also we
	  were using an ugly naming convention 'destroy_session',
	  'session_destroy', 'free_session', ... all this "duplicated" code
	  was merged. (closes issue #14974) Reported by: pj Patches:
	  manager.diff2 uploaded by eliel (license 64) Tested by: dhubbard,
	  eliel, mnicholson (closes issue #15088) Reported by: eliel
	  Review: http://reviewboard.asterisk.org/r/248/

2009-05-12 22:32 +0000 [r194057]  Matthew Nicholson <mnicholson@digium.com>

	* /, apps/app_queue.c: Merged revisions 194028 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r194028 | mnicholson | 2009-05-12 17:15:45 -0500 (Tue, 12 May
	  2009) | 16 lines This change modifies app_queue to properly
	  generate CDR records in failure situations. This involves setting
	  a proper cdr disposition coresponding to the given failure
	  condition and ensuring the proper information is stored in the
	  cdr record. (closes issue #13691) Reported by: dferrer Tested by:
	  mnicholson (closes issue #13637) Reported by: atis Tested by:
	  atis ........

2009-05-12 20:40 +0000 [r193956]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 193955 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r193955 | tilghman | 2009-05-12 15:39:21 -0500 (Tue, 12
	  May 2009) | 6 lines Avoid initializing routines if the
	  authentication fails. Fixes a crash (RR) issue. (closes issue
	  #14508) Reported by: tiziano Patches:
	  20090221_2_wrongmailbox.diff.txt uploaded by tiziano (license
	  377) ........

2009-05-12 20:28 +0000 [r193954]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Update spiral support in trunk and 1.6.X to
	  match what is in 1.4. In 1.4, a SIP spiral is treated the same
	  way as a call forward. This works much better than what is
	  currently in trunk and 1.6.X. The code in trunk and 1.6.X did not
	  create a new call to the recipient of the spiral, instead trying
	  to continue the same call. In addition to just being plain wrong,
	  this also had the side effect of only being able to spiral calls
	  to other SIP channels. With this in place, as long as call
	  forwards are honored, SIP spirals will work properly. This means
	  that it will work for outbound calls made by the Queue, Dial, and
	  Page applications. For originated calls and spool calls, however,
	  the spiral will not work properly until a generic call forward
	  mechanism is introduced into Asterisk. (relates to issue #13630)

2009-05-12 17:29 +0000 [r193870]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Convert a THREADSTORAGE object into a
	  simple malloc'd object (as suggested by Russell on -dev)

2009-05-12 13:59 +0000 [r193832]  Kevin P. Fleming <kpfleming@digium.com>

	* apps/app_dial.c, main/pbx.c, apps/app_meetme.c, apps/app_page.c,
	  main/devicestate.c, apps/app_queue.c, apps/app_transfer.c,
	  apps/app_playback.c, apps/app_controlplayback.c, main/term.c,
	  channels/chan_dahdi.c, channels/chan_misdn.c, funcs/func_curl.c,
	  apps/app_sendtext.c, apps/app_directed_pickup.c,
	  channels/console_gui.c, main/features.c, apps/app_confbridge.c,
	  apps/app_externalivr.c, apps/app_chanspy.c,
	  apps/app_mixmonitor.c, apps/app_stack.c, res/res_odbc.c,
	  apps/app_voicemail.c: add 'const' qualifiers in various places
	  where they should have been

2009-05-11 23:04 +0000 [r193756-193757]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Found and fixed a memory leak

	* /: Recorded merge of revisions 193755 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r193755 | tilghman | 2009-05-11 17:48:20 -0500 (Mon, 11 May 2009)
	  | 18 lines Move 300 bytes around on the stack, to make more room
	  for an extension buffer. This allows more concurrent extensions
	  to be copied for a single voicemail, without creating a
	  possibility of upsetting existing users, where a dialplan could
	  run out of stack space where it had run fine before.
	  Alternatively, we could have allocated off the heap, but that is
	  a larger change and would have increased the chance for
	  instability introduced by this change. This is really solved
	  starting in 1.6.0.11, as the use of an ast_str buffer allows an
	  unlimited number of extensions (up to available memory). We
	  additionally create a new warning message when the buffer length
	  is exceeded, permitting administrators to see an issue after the
	  fact, whereas previously the list was silently truncated. (closes
	  issue #14739) Reported by: p_lindheimer Patches:
	  20090417__bug14739.diff.txt uploaded by tilghman (license 14)
	  Tested by: p_lindheimer ........

2009-05-11 22:04 +0000 [r193718]  Russell Bryant <russell@digium.com>

	* res/res_timing_timerfd.c: Fix some timer state corruption. In
	  res_timer_timerfd, handle the case that set_rate gets called
	  while a timer is still in continuous mode. In this case, we want
	  to remember the configured rate, but not actually set it until
	  continuous mode has been disabled. Thanks to dvossel for finding
	  and helping to debug the problem. (closes issue #15080) Reported
	  by: dvossel Tested by: dvossel

2009-05-11 19:32 +0000 [r193678]  Tilghman Lesher <tlesher@digium.com>

	* apps/app_voicemail.c: Don't nullify an ast_str pointer. (closes
	  issue #15061) Reported by: alecdavis

2009-05-11 19:11 +0000 [r193614]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, /: Merged revisions 193613 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r193613 | rmudgett | 2009-05-11 14:09:00 -0500 (Mon, 11
	  May 2009) | 12 lines Sent wrong message to clear a call we
	  started if the other end has not responed yet. In the state
	  MISDN_CALLING (i.e. SETUP was sent but no answer has arrived
	  yet), it is not allowed to clear the call with RELEASE_COMPLETE.
	  It must be cleared with DISCONNECT. A RELEASE_COMPLETE is only
	  allowed as an answer to a SETUP. (See Q.931 ch. 5.3.2, 5.3.2.a,
	  5.3.2.b) Patches: chan-misdn-ccstate7.patch uploaded by customer.
	  JIRA ABE-1862 ........

2009-05-11 18:01 +0000 [r193545]  Leif Madsen <lmadsen@digium.com>

	* /, funcs/func_channel.c: Recorded merge of revisions 193544 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r193544 | lmadsen | 2009-05-11 13:35:17 -0400 (Mon, 11 May 2009)
	  | 7 lines Document CHANNEL(transfercapability) in CLI
	  documentation. (issue #15073) Reported by: pkempgen Patches:
	  20090511__issue15073.diff.txt uploaded by tilghman (license 14)
	  ........

2009-05-10 17:07 +0000 [r193502]  Joshua Colp <jcolp@digium.com>

	* main/bridging.c: Fix a bug where receiving a control frame of
	  subclass -1 would cause certain channels to get hung up.

2009-05-09 11:33 +0000 [r193459-193461]  Russell Bryant <russell@digium.com>

	* include/asterisk/event.h: Minor documentation update for
	  ast_event_queue().

	* main/channel.c: Declare private data as static.

2009-05-08 20:32 +0000 [r193387]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: TCP not matching valid peer. find_peer()
	  does not find a valid peer when using pvt->recv as the
	  sockaddr_in argument. Because of the way TCP works, the port
	  number in pvt->recv is not what we're looking for at all. There
	  is currently only one place that find_peer searches for a peer
	  using the sockaddr_in argument. If the peer is not found after
	  using pvt->recv (works for UDP since the port number will be
	  correct), a temp sockaddr_in struct is made using the Contact
	  header in the sip_request. This has the correct port number in
	  it. Review: http://reviewboard.digium.com/r/236/

2009-05-08 19:50 +0000 [r193349]  Mark Michelson <mmichelson@digium.com>

	* apps/app_queue.c: Reset the members' call counts when resetting
	  queue statistics. This helps to prevent odd scenarios where a
	  queue will claim to have taken 0 calls, but the members appear to
	  have taken a non-zero amount. (closes issue #15068) Reported by:
	  sum Patches: patchreset.patch uploaded by sum (license 766)
	  Tested by: sum

2009-05-08 15:18 +0000 [r193274]  Sean Bright <sean@malleable.com>

	* funcs/func_devstate.c: Fix the spelling of UNAVAILABLE in
	  func_devstate CLI completion.

2009-05-08 14:52 +0000 [r193263]  David Vossel <dvossel@digium.com>

	* /, channels/misdn_config.c: Merged revisions 193262 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r193262 | dvossel | 2009-05-08 09:51:09 -0500 (Fri, 08
	  May 2009) | 9 lines "misdn show config" segfaults asterisk, if no
	  MSN lists (closes issue #14976) Reported by: alecdavis Patches:
	  misdn_config.diff.txt uploaded by alecdavis (license 585) Tested
	  by: alecdavis, FabienToune ........

2009-05-08 14:06 +0000 [r193194]  Kevin P. Fleming <kpfleming@digium.com>

	* /, main/logger.c, configs/logger.conf.sample: Merged revisions
	  193193 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r193193 | kpfleming | 2009-05-08 09:03:28 -0500 (Fri, 08 May
	  2009) | 7 lines Make absolute paths for logger channels work
	  properly (Note: This is not a new feature, it was previously
	  undocumented and broken.) The Asterisk logger has a feature to
	  support absolute pathnames for logger channels, but the code
	  implementing the feature was broken. This has been fixed, and the
	  absolute path feature is now documented in the sample
	  logger.conf. ........

2009-05-07 23:42 +0000 [r193120]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c, /: Merged revisions 193119 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r193119 | tilghman | 2009-05-07 18:41:11 -0500 (Thu, 07 May 2009)
	  | 19 lines Fix Background within a Macro for FreePBX. If the
	  single digit DTMF is an extension in the specified context, then
	  go there and signal no DTMF. Otherwise, we should exit with that
	  DTMF. If we're in Macro, we'll exit and seek that DTMF as the
	  beginning of an extension in the Macro's calling context. If
	  we're not in Macro, then we'll simply seek that extension in the
	  calling context. Previously, someone complained about the
	  behavior as it related to the interior of a Gosub routine, and
	  the fix (#14011) inadvertently broke FreePBX (#14940). This
	  change should fix both of these situations, but with the possible
	  incompatibility that if a single digit extension does not exist
	  (but a longer extension COULD have matched), it would have
	  previously gone immediately to the "i" extension, but will now
	  need to wait for a timeout. (closes issue #14940) Reported by:
	  p_lindheimer Patches: 20090420__bug14940.diff.txt uploaded by
	  tilghman (license 14) Tested by: p_lindheimer ........

2009-05-07 22:24 +0000 [r193077]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, /: Merged revisions 193050 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r193050 | rmudgett | 2009-05-07 17:17:06 -0500 (Thu, 07
	  May 2009) | 5 lines Give a more helpful message when an incoming
	  call's dialed extension does not match. Added the dialed
	  extension and context to the chan_misdn messages warning that the
	  dialed number cannot be matched in the dialplan. ........

2009-05-07 17:51 +0000 [r192933-193006]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_odbc.c: Second result should not contain data from the
	  first result. (closes issue #15039) Reported by: jims Patches:
	  20090506__issue15039.diff.txt uploaded by tilghman (license 14)
	  Tested by: jims

	* channels/chan_unistim.c: Send DTMF frame before playing back
	  audio. (closes issue #14858) Reported by: barryf Patches:
	  20090507__bug14858.diff.txt uploaded by tilghman (license 14)

	* /, channels/chan_sip.c: Merged revisions 192932 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r192932 | tilghman | 2009-05-07 11:29:08 -0500 (Thu, 07 May 2009)
	  | 10 lines Eliminate repetition of fullcontact during
	  reconstruction. If the fullcontact field appears in both the
	  sippeers and the sipregs table, then during reconstruction of the
	  field, it will otherwise be doubled. (closes issue #14754)
	  Reported by: Alexei Gradinari Patches:
	  20090506__bug14754.diff.txt uploaded by tilghman (license 14)
	  Tested by: lmadsen ........

2009-05-06 22:17 +0000 [r192853-192861]  Jeff Peeler <jpeeler@digium.com>

	* /, main/features.c: Merged revisions 192858 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r192858 | jpeeler | 2009-05-06 17:15:19 -0500 (Wed, 06 May 2009)
	  | 10 lines Make ParkedCall application stop execution of the
	  dialplan after hang up Just changed park_exec to always return
	  non-zero. I really wasn't entirely sure at first if this was a
	  bug. Decided it was since it would be surprising when not using
	  ParkedCall in the dialplan to hang up and have dialplan execution
	  continue. (closes issue #14555) Reported by: francesco_r ........

	* main/pbx.c: If no extension was found in the pattern tree, don't
	  crash.

2009-05-06 17:38 +0000 [r192808]  Joshua Colp <jcolp@digium.com>

	* channels/chan_iax2.c: Fix a bug where a timer would be created
	  but not acknowledged. This scenario crept up if chan_iax2 was
	  loaded with no configuration file present. It would create a
	  timer and tell it to go at an interval but the thread that
	  normally acknowledges it would not be created because no
	  configuration file was present. The timer will now be closed if
	  no configuration file is present. (closes issue #15014) Reported
	  by: madkins

2009-05-06 16:28 +0000 [r192772]  Tilghman Lesher <tlesher@digium.com>

	* main/say.c, doc/lang/urdu.ods (added): Add numbers in Urdu, the
	  national language of Pakistan (closes issue #15034) Reported by:
	  nasirq Patches: ast_say_number_full_ur-patch.c uploaded by nasirq
	  (license 772) urdu.ods uploaded by nasirq (license 772)

2009-05-06 16:09 +0000 [r192634-192736]  Joshua Colp <jcolp@digium.com>

	* res/res_clialiases.c: Make the code that prevents an infinite
	  loop from happening into a case insensitive check. (thanks eliel)

	* res/res_clialiases.c: Fix an infinite loop with tab completion of
	  CLI aliases that reference themselves. (closes issue #15020)
	  Reported by: junky

	* /, channels/chan_sip.c: Merged revisions 192633 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r192633 | file | 2009-05-06 10:30:51 -0300 (Wed, 06 May 2009) | 7
	  lines Update some old logic to stop both begin and end DTMF
	  frames from reaching the core if rfc2833 is not enabled. (closes
	  issue #15036) Reported by: dimas Patches: v1-15036.patch uploaded
	  by dimas (license 88) ........

2009-05-05 20:54 +0000 [r192590]  Richard Mudgett <rmudgett@digium.com>

	* apps/app_dial.c, channels/chan_sip.c, apps/app_directed_pickup.c,
	  main/features.c, apps/app_queue.c: Fixed crashes from issue8824
	  review board channel locking changes. The local struct
	  ast_party_connected_line connected_caller variable was
	  uninitialized when the copy function was called.

2009-05-05 19:57 +0000 [r192525]  Sean Bright <sean@malleable.com>

	* /, static-http/astman.js: Merged revisions 192524 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r192524 | seanbright | 2009-05-05 15:56:11 -0400 (Tue,
	  05 May 2009) | 11 lines Fix Javascript error when using astman.js
	  in Internet Explorer. Internet Explorer (tested with 7.0) does
	  not like trailing commas on constructs like object initializers,
	  so get rid of them to avoid some errors. (closes issue #15026)
	  Reported by: rajnishgiri Patches: bug15026.patch uploaded by
	  seanbright (license 71) Tested by: seanbright ........

2009-05-05 18:23 +0000 [r192430-192462]  Joshua Colp <jcolp@digium.com>

	* /, main/features.c: Merged revisions 192454 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r192454 | file | 2009-05-05 15:22:27 -0300 (Tue, 05 May 2009) | 8
	  lines Fix an incorrect assumption that certain values on the
	  channel will always exist when they may not. The CDR code
	  involved with bridges wrongly assumed that the currently
	  executing application and data values will always exist. It is
	  possible for this to be false when call forwarding is involved.
	  (closes issue #14984) Reported by: gincantalupo ........

	* /, apps/app_followme.c: Merged revisions 192429 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r192429 | file | 2009-05-05 14:43:30 -0300 (Tue, 05 May 2009) | 5
	  lines Fix a bug where the followme application would continue
	  trying numbers after the caller hung up. (closes issue #13624)
	  Reported by: sgenyuk ........

2009-05-05 17:33 +0000 [r192427]  Matthew Fredrickson <creslin@digium.com>

	* channels/chan_dahdi.c: Revert CPC patch for now, until I decide
	  whether or not it all should be merged into libss7/1.0 (It's
	  still in the bug13495 branch and in libss7/trunk)

2009-05-05 14:22 +0000 [r192387]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug with setting t38pt_udptl at the
	  user or peer level. If an incoming call authenticated as a user
	  or peer and t38pt_udptl was not set to yes in general then no
	  UDPTL session would be present and any T38 related things would
	  fail. This commit changes it so that if after authenticating T38
	  is enabled but no UDPTL session is present one will be created.
	  (issue AST-215)

2009-05-05 14:17 +0000 [r192279-192362]  Kevin P. Fleming <kpfleming@digium.com>

	* main/utils.c, include/asterisk/stringfields.h: Add a more
	  efficient way of allocating structures that use stringfields This
	  commit adds an API call that can be used to allocate a structure
	  along with this stringfield storage in a single allocation.

	* main/utils.c, main/astobj2.c, include/asterisk/stringfields.h:
	  Correct some flaws in the memory accounting code for stringfields
	  and ao2 objects Under some conditions, the memory allocation for
	  stringfields and ao2 objects would not have supplied valid
	  file/function names for MALLOC_DEBUG tracking, so this commit
	  corrects that.

	* main/channel.c, include/asterisk/astobj2.h,
	  include/asterisk/datastore.h, include/asterisk/channel.h,
	  main/astobj2.c, main/datastore.c: Properly account for memory
	  allocated for channels and datastores As in previous commits,
	  when channels are allocated (with ast_channel_alloc) or
	  datastores are allocated (with ast_datastore_alloc) properly
	  account for the memory being owned by the caller, instead of the
	  allocator function itself.

	* main/utils.c, include/asterisk/stringfields.h: Ensure that string
	  pools allocated to hold stringfields are properly accounted in
	  MALLOC_DEBUG mode This commit modifies the stringfield pool
	  allocator to remember the 'owner' of the stringfield manager the
	  pool is being allocated for, and ensures that pools allocated in
	  the future when fields are populated are owned by that
	  file/function.

2009-05-04 22:44 +0000 [r192214]  David Vossel <dvossel@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 192213 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r192213 | dvossel | 2009-05-04 17:37:31 -0500 (Mon, 04
	  May 2009) | 11 lines global mohinterpret setting is ignored
	  mohinterpret and mohsuggest global variables were not copied over
	  during build_users and build_peers. (closes issue #14728)
	  Reported by: dimas Patches: v1-14728.patch uploaded by dimas
	  (license 88) Tested by: dimas, dvossel ........

2009-05-04 19:29 +0000 [r192132-192171]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/autoconfig.h.in, res/res_agi.c: Restore
	  'asyncagi break' command to 1.6.1 and higher. (closes issue
	  #14985) Reported by: nikkk Patches: 20090428__bug14985.diff.txt
	  uploaded by tilghman (license 14)
	  20090429__bug14985__1.6.1.diff.txt uploaded by tilghman (license
	  14) Tested by: nikkk

	* autoconf/ast_ext_tool_check.m4: Pass libraries in LIBS, not
	  LDFLAGS. (closes issue #14671) Reported by: Chainsaw Patches:
	  asterisk-1.6.0.6-toolcheck-libs-not-ldflags.patch uploaded by
	  Chainsaw (license 723)

2009-05-04 17:42 +0000 [r192096]  Leif Madsen <lmadsen@digium.com>

	* apps/app_forkcdr.c: Commit documentation changes related to issue
	  #14801. (issue #14801)

2009-05-04 16:24 +0000 [r192059]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk/astobj2.h, main/astobj2.c: Ensure that astobj2
	  memory allocations are properly accounted for when MALLOC_DEBUG
	  is used This commit ensures that all astobj2 allocated objects
	  are properly accounted for in MALLOC_DEBUG mode by passing down
	  the file/function/line information from the module/function that
	  actually called the astobj2 allocation function.

2009-05-04 15:35 +0000 [r192032]  Eliel C. Sardanons <eliels@gmail.com>

	* main/xml.c: Do not re-define _POSIX_C_SOURCE if it was already
	  defined.

2009-05-04 12:52 +0000 [r191919-191997]  Kevin P. Fleming <kpfleming@digium.com>

	* tests/test_skel.c, tests/test_sched.c: Minor changes in test
	  modules Correct command description in test_sched.c and include
	  asterisk/cli.h in test_skel.c, since it's highly unlikely that a
	  test module will *not* want to provide CLI commands to execute
	  the tests

	* configs/modules.conf.sample: Ensure that by default only one
	  console channel driver is loaded This configuration file was
	  changed to ensure that only one console channel driver (chan_oss)
	  is loaded by default, but the change would only work if
	  chan_console was not built. Now it will work as expected; if
	  chan_alsa or chan_console are built and installed, they will not
	  be loaded unless explicity requested.

	* include/asterisk/event.h, include/asterisk/event_defs.h,
	  main/event.c: Add 'bitflags'-style information elements to event
	  framework This patch add a new payload type for information
	  elements, a set of bit flags. The payload is transported as a
	  32-bit unsigned integer but when matching is performed between
	  events and subscribers, the matching is done by using a bitwise
	  AND instead of numeric value comparison. Review:
	  http://reviewboard.asterisk.org/r/242/

2009-05-03 14:05 +0000 [r191848-191884]  Russell Bryant <russell@digium.com>

	* Makefile: Remove unnecessary compiler flag

	* main/event.c: Do a bit of code cleanup. - convert handling of IE
	  PLTYPEs to switch statements - add braces to various small blocks
	  - remove a bit of trailing whitespace - remove a couple of
	  unnecessary ast_strdupa() uses

2009-05-02 19:02 +0000 [r191775-191785]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk/logger.h, main/manager.c, pbx/pbx_spool.c,
	  main/logger.c, apps/app_sms.c, CHANGES, apps/app_verbose.c,
	  configs/logger.conf.sample: Remove rarely-used
	  event_log/LOG_EVENT support In discussions today at the Europe
	  Asterisk Developer Meet-Up, we determined that the event_log was
	  used in only 9 places in the entire tree, and really was not
	  needed at all. The users have been converted to use LOG_NOTICE,
	  or the messages have been removed since other messages were
	  already in place that provided the same information.

	* main/logger.c: Fix an error in queue_log file rotation
	  optimization code This code was copy-and-pasted without properly
	  changing references to event_rotate into queue_rotate, so under
	  some conditions the log rotation would rotate queue_log even
	  though it was not necessary.

2009-05-02 16:43 +0000 [r191700-191739]  Sean Bright <sean@malleable.com>

	* channels/chan_dahdi.c: Conditional include ioctl's to change EC
	  policy based on DAHDI caps. This feels like a sane change
	  (wouldn't compile without this addition), but I'm not intimately
	  familiar with this code.

	* main/asterisk.c: Update copyright year to 2009

2009-05-01 20:01 +0000 [r191494-191560]  Tilghman Lesher <tlesher@digium.com>

	* /, channels/chan_sip.c: Merged revisions 191559 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r191559 | tilghman | 2009-05-01 15:00:23 -0500 (Fri, 01 May 2009)
	  | 6 lines SIP Response 410 maps to cause code 22 (or 23), not 1.
	  (closes issue #14993) Reported by: BigJimmy Patches: causepatch
	  uploaded by BigJimmy (license 371) ........

	* channels/chan_iax2.c: Set debug message back to DEBUG level.
	  (closes issue #15007) Reported by: hulber

2009-05-01 18:09 +0000 [r191489]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, /: Merged revisions 191488 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r191488 | jpeeler | 2009-05-01 12:40:46 -0500 (Fri, 01 May 2009)
	  | 9 lines Fix DTMF not being sent to other side after a partial
	  feature match This fixes a regression from commit 176701. The
	  issue was that ast_generic_bridge never exited after the feature
	  digit timeout had elapsed, which prevented the queued DTMF from
	  being sent to the other side. This issue was reported to me
	  directly. ........

2009-05-01 14:58 +0000 [r191419]  Joshua Colp <jcolp@digium.com>

	* main/audiohook.c: Drop my IRC nickname.

2009-05-01 09:50 +0000 [r191418]  TransNexus OSP Development <support@transnexus.com>

	* configs/osp.conf.sample, apps/app_osplookup.c: Made security
	  features optional.

2009-04-30 21:42 +0000 [r191411]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_dahdi.c, configure,
	  include/asterisk/autoconfig.h.in, configure.ac, CHANGES: Add
	  buffer and echo canceller control to CHANNEL() dialplan function
	  for DAHDI channels Adds ability for CHANNEL() dialplan function,
	  when used on DAHDI channels, to temporarily change the number of
	  buffers and/or the buffer policy, and also to enable, disable, or
	  switch the echo canceller between FAX/data and voice modes.

2009-04-30 17:40 +0000 [r191367]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  main/asterisk.c: Detect eaccess (or euidaccess) before using it.
	  Reported by Andrew Lindh via the -dev list.

2009-04-30 09:11 +0000 [r191300-191332]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c: Added routing number support.

	* apps/app_osplookup.c: Fixed not report source network ID and not
	  export destination network ID issues.

2009-04-30 06:47 +0000 [r191219-191283]  Tilghman Lesher <tlesher@digium.com>

	* main/asterisk.c: Change working directory to / under certain
	  conditions. If backgrounding and no core will be produced, then
	  changing the directory won't break anything; likewise, if the CWD
	  isn't accessible by the current user, then a core wasn't possible
	  anyway. (closes issue #14831) Reported by: chris-mac Patches:
	  20090428__bug14831.diff.txt uploaded by tilghman (license 14)
	  20090430__bug14831.diff.txt uploaded by tilghman (license 14)
	  Tested by: chris-mac

	* /: Recorded merge of revisions 191220 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r191220 | tilghman | 2009-04-29 18:10:54 -0500 (Wed, 29 Apr 2009)
	  | 2 lines Allow H.323 to compile with FDLEAK checking enabled.
	  ........

	* channels/h323/ast_h323.cxx, channels/chan_h323.c: Make H.323
	  compile with FDLEAK detection code enabled

2009-04-29 22:56 +0000 [r191213]  Jeff Peeler <jpeeler@digium.com>

	* res/res_phoneprov.c: fix typos

2009-04-29 22:23 +0000 [r191211]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Part of the merge did not happen correctly, which
	  resulted in a compile error

2009-04-29 21:13 +0000 [r191177]  David Vossel <dvossel@digium.com>

	* main/tcptls.c, configs/sip.conf.sample,
	  include/asterisk/tcptls.h, CHANGES: SIP option to specify
	  outbound TLS/SSL client protocol. chan_sip allows for outbound
	  TLS connections, but does not allow the user to specify what
	  protocol to use (default was SSLv2, and still is if this new
	  option is not specified). This patch lets the user pick the
	  SSL/TLS client method for outbound connections in sip. (closes
	  issue #14770) Reported by: TheOldSaint (closes issue #14768)
	  Reported by: TheOldSaint Review:
	  http://reviewboard.digium.com/r/240/

2009-04-29 21:07 +0000 [r191175]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, CHANGES: Outgoing PTP redirected calls did
	  not wait for the COLR from the redirected-to party. For outgoing
	  PTP redirected calls, you now need to use the inhibit(i) option
	  on all of the REDIRECTING statements before dialing the
	  redirected-to party. You still have to set the
	  REDIRECTING(to-xxx,i) and the REDIRECTING(from-xxx,i) values. The
	  PTP call will update the redirecting-to presentation when it
	  becomes available and queue the redirecting update to the calling
	  channel.

2009-04-29 18:53 +0000 [r191140]  Tilghman Lesher <tlesher@digium.com>

	* tests/test_substitution.c (added), funcs/func_base64.c,
	  funcs/func_rand.c, funcs/func_speex.c, funcs/func_md5.c,
	  funcs/func_module.c, include/asterisk/autoconfig.h.in,
	  funcs/func_env.c, funcs/func_strings.c, res/res_phoneprov.c,
	  funcs/func_sysinfo.c, funcs/func_vmcount.c, funcs/func_sha1.c,
	  funcs/func_logic.c, apps/app_exec.c, funcs/func_groupcount.c,
	  configure, funcs/func_aes.c, main/ast_expr2f.c, res/res_agi.c,
	  apps/app_minivm.c, include/asterisk/ast_expr.h, cdr/cdr_custom.c,
	  main/strings.c, main/pbx.c, funcs/func_dialplan.c,
	  funcs/func_db.c, funcs/func_timeout.c, funcs/func_lock.c,
	  funcs/func_cut.c, funcs/func_extstate.c, res/res_config_curl.c,
	  funcs/func_curl.c, funcs/func_blacklist.c, apps/app_macro.c,
	  include/asterisk/pbx.h, funcs/func_callerid.c,
	  apps/app_voicemail.c: Merge str_substitution branch. This branch
	  adds additional methods to dialplan functions, whereby the result
	  buffers are now dynamic buffers, which can be expanded to the
	  size of any result. No longer are variable substitutions limited
	  to 4095 bytes of data. In addition, the common case of needing
	  buffers much smaller than that will enable substitution to only
	  take up the amount of memory actually needed. The existing
	  variable substitution routines are still available, but users of
	  those API calls should transition to using the dynamic-buffer
	  APIs. Reviewboard: http://reviewboard.digium.com/r/174/

2009-04-29 18:32 +0000 [r191136]  David Brooks <dbrooks@digium.com>

	* pbx/pbx_config.c: Removing crufty code that is no longer
	  necessary. Code cleanup.

2009-04-29 14:39 +0000 [r191028]  David Vossel <dvossel@digium.com>

	* main/tcptls.c, main/manager.c, channels/chan_sip.c, main/http.c,
	  configs/manager.conf.sample, include/asterisk/tcptls.h, CHANGES,
	  configs/http.conf.sample: Consistent SSL/TLS options across conf
	  files ast_tls_read_conf() is a new api call for handling SSL/TLS
	  options across all conf files. Before this change, SSL/TLS
	  options were not consistent. http.conf and manager.conf required
	  the 'ssl' prefix while sip.conf used options with the 'tls'
	  prefix. While the options had different names in different conf
	  files, they all did the exact same thing. Now, instead of mixing
	  'ssl' or 'tls' prefixes to do the same thing depending on what
	  conf file you're in, all SSL/TLS options use the 'tls' prefix.
	  For example. 'sslenable' in http.conf and manager.conf is now
	  'tlsenable' which matches what already existed in sip.conf. Since
	  this has the potential to break backwards compatibility, previous
	  options containing the 'ssl' prefix still work, but they are no
	  longer documented in the sample.conf files. The change is noted
	  in the CHANGES file though. Review:
	  http://reviewboard.digium.com/r/237/

2009-04-29 08:58 +0000 [r190989-190993]  Russell Bryant <russell@digium.com>

	* main/indications.c: Log an error message if indications.conf is
	  not found. (closes issue #14990) Reported by: tzafrir Patches:
	  indications_err.diff uploaded by tzafrir (license 46)

	* apps/app_queue.c: Fix app_queue XML documentation. I think it
	  would behoove us to force "make validate-docs" to be run after
	  the XML documentation has been generated if dev-mode is enabled.
	  (closes issue #14989) Reported by: tzafrir Patches:
	  app_queue_xml.diff uploaded by tzafrir (license 46)

	* main/rtp_engine.c, include/asterisk/channel.h: Resolve Solaris
	  build issues and add some API documentation. (issue #14981)
	  Reported by: snuffy

2009-04-28 22:07 +0000 [r190946-190947]  Matthew Fredrickson <creslin@digium.com>

	* channels/chan_dahdi.c: Add support setting CPC from channel
	  variable

	* channels/chan_dahdi.c: Make sure that we do not clear the down
	  flag on the BRI during PTMP link transients

2009-04-28 17:31 +0000 [r190904]  Tilghman Lesher <tlesher@digium.com>

	* doc/tex/cdrdriver.tex: UniqueID column has a maximum size of 150

2009-04-28 14:15 +0000 [r190861-190865]  Kevin P. Fleming <kpfleming@digium.com>

	* Makefile: Build XML documention from *only* the source files that
	  have docs in them Change the build process so that
	  doc/core-en_US.xml is dependent solely on the source files that
	  have documentation in them, not on all source files.

	* Makefile.rules: Remove Makefile rules for bison and flex sources
	  We never, ever want these files to processed automatically,
	  because we store the output files in Subversion and users should
	  never need to rebuild them.

2009-04-28 09:10 +0000 [r190830]  TransNexus OSP Development <support@transnexus.com>

	* apps/app_osplookup.c: Updated for OSP Toolkit 3.5.

2009-04-27 21:22 +0000 [r190735-190797]  Richard Mudgett <rmudgett@digium.com>

	* main/channel.c: Fix a small memory leak on error in
	  ast_channel_alloc().

	* channels/misdn/isdn_lib.h, channels/chan_misdn.c, CHANGES,
	  channels/misdn/isdn_lib.c, funcs/func_redirecting.c: Make PTP
	  DivertingLegInformation3 message behavior closer to the
	  specifications. * Wait for a DivertingLegInformation3 message
	  after receiving a DivertingLegInformation1 message to complete
	  the redirecting-to information before queuing a redirecting
	  update to the other channel. * A DivertingLegInformation2 message
	  should be responded to with a DivertingLegInformation3 when the
	  COLR is determined. If the call could or does experience another
	  redirection, you should manually determine the COLR to send to
	  the switch by setting REDIRECTING(to-pres) to the COLR and
	  setting REDIRECTING(to-num) = ${EXTEN}. * A
	  DivertingLegInformation2 message must have an original called
	  number if the redirection count is greater than one. Since
	  Asterisk does not keep track of this information, we can only
	  indicate that the number is not available due to interworking.

2009-04-27 19:34 +0000 [r190726]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Don't warn on pipe in the System call. (closes issue
	  #14979) Reported by: pj

2009-04-27 19:30 +0000 [r190725]  Kevin P. Fleming <kpfleming@digium.com>

	* /, configure, include/asterisk/autoconfig.h.in: Merged revisions
	  190721 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r190721 | kpfleming | 2009-04-27 14:29:46 -0500 (Mon, 27 Apr
	  2009) | 7 lines Fix 'inconsistent line endings' when autoconf
	  2.63 is used Attempt to make configure script regeneration 'safe'
	  using autoconf 2.63, which embeds a bare CR into the script, thus
	  making Subversion complain about inconsistent line endings This
	  commit changes the MIME type of the configure script to be
	  'binary' thus making Subversion no longer inspect line endings,
	  and as a bonus 'svn diff' will no longer try to generate diff
	  output for it, which is not generally useful anyway. ........

2009-04-27 19:08 +0000 [r190663]  Russell Bryant <russell@digium.com>

	* res/res_smdi.c, /: Merged revisions 190661-190662 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r190661 | russell | 2009-04-27 14:00:54 -0500 (Mon, 27
	  Apr 2009) | 9 lines Resolve a crash in res_smdi when used with
	  chan_dahdi. When chan_dahdi goes to get an SMDI message, it
	  provides no search criteria. It just grabs the next message that
	  arrives. This code was written with the SMDI dialplan functions
	  in mind, since that is now the preferred method of using SMDI.
	  However, this broke support of it being used from chan_dahdi.
	  (closes AST-212) ........ r190662 | russell | 2009-04-27 14:03:59
	  -0500 (Mon, 27 Apr 2009) | 2 lines Fix a typo from 190661.
	  ........

2009-04-27 16:37 +0000 [r190622-190626]  Mark Michelson <mmichelson@digium.com>

	* doc/tex/channelvariables.tex, apps/app_queue.c: Allow for a
	  position to be specified when entering a queue. This would allow
	  for one to add a caller to a specific place in the queue instead
	  of just placing the caller in the back every time. To help
	  facilitate some interesting manipulations, a new channel variable
	  called QUEUEPOSITION has been added. When a caller is removed
	  from a queue, his position in that queue is stored in the
	  QUEUEPOSITION variable. One such strategy an administrator can
	  employ is to allow for the removal of a caller from one queue
	  followed by the insertion of the same caller into a separate
	  queue in the same position. Review:
	  http://reviewboard.digium.com/r/189

	* apps/app_queue.c: Update warning message to not have pipes and
	  contain all options.

2009-04-27 15:18 +0000 [r190586]  Joshua Colp <jcolp@digium.com>

	* main/manager.c: Fix a bug where we tried to send events out when
	  no sessions container was present. This commit stops a warning
	  message (user_data is NULL) from getting output when manager
	  events get sent before manager is initialized. This happens
	  because manager is initialized *after* modules are loaded and the
	  act of loading modules triggers manager events. (issue #14974)
	  Reported by: pj

2009-04-27 14:46 +0000 [r190577]  Mark Michelson <mmichelson@digium.com>

	* configs/sip.conf.sample: Remove nonexistent option from
	  sip.conf.sample. The option to choose which connected line header
	  to use is not 'rpid_header' but 'sendrpid'

2009-04-24 21:22 +0000 [r190545]  David Vossel <dvossel@digium.com>

	* main/tcptls.c, main/manager.c, channels/chan_sip.c, main/http.c,
	  configs/manager.conf.sample, configs/sip.conf.sample,
	  include/asterisk/tcptls.h, CHANGES, configs/http.conf.sample:
	  TLS/SSL private key option Adds option to specify a private key
	  .pem file when configuring TLS or SSL in AMI, HTTP, and SIP.
	  Before this, the certificate file was used for both the public
	  and private key. It is possible for this file to hold both, but
	  most configurations allow for a separate private key file to be
	  specified. Clarified in .conf files how these options are to be
	  used. The current conf files do not explain how the private key
	  is handled at all, so without knowledge of Asterisk's TLS
	  implementation, it would be hard to know for sure what was going
	  on or how to set it up. Review:
	  http://reviewboard.digium.com/r/234/

2009-04-24 17:59 +0000 [r190516-190517]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, funcs/func_connectedline.c: There is no
	  need to use the struct ast_party_connected_line.source update
	  values. The messages sent by a technology when a connected line
	  update is received are best determined by the current call state
	  of the channel. The struct ast_party_connected_line.source value
	  is really only useful as a possible tracing aid.

	* include/asterisk/channel.h: Update comment.

2009-04-24 15:26 +0000 [r190423-190484]  Russell Bryant <russell@digium.com>

	* include/asterisk/channel.h: Add \since tag for new API calls.

	* channels/chan_misdn.c: Fix a build error.

	* channels/chan_unistim.c, channels/chan_local.c,
	  apps/app_dahdiscan.c (removed), main/devicestate.c,
	  main/autochan.c (added), funcs/func_logic.c,
	  channels/chan_gtalk.c, channels/chan_iax2.c, main/cli.c,
	  main/channel.c, build_tools/cflags.xml, channels/chan_dahdi.c,
	  main/manager.c, funcs/func_odbc.c, apps/app_minivm.c,
	  main/features.c, res/res_agi.c, main/logger.c,
	  channels/chan_mgcp.c, res/res_clioriginate.c, main/pbx.c,
	  channels/chan_sip.c, include/asterisk/autochan.h (added),
	  channels/chan_bridge.c, main/Makefile, apps/app_softhangup.c,
	  channels/chan_agent.c, UPGRADE.txt, include/asterisk/channel.h,
	  CHANGES, funcs/func_global.c, res/res_monitor.c,
	  apps/app_channelredirect.c, channels/chan_misdn.c,
	  apps/app_directed_pickup.c, funcs/func_channel.c,
	  res/snmp/agent.c, include/asterisk/lock.h, apps/app_senddtmf.c,
	  apps/app_mixmonitor.c, apps/app_chanspy.c, apps/app_voicemail.c:
	  Convert the ast_channel data structure over to the astobj2
	  framework. There is a lot that could be said about this, but the
	  patch is a big improvement for performance, stability, code
	  maintainability, and ease of future code development. The channel
	  list is no longer an unsorted linked list. The main container for
	  channels is an astobj2 hash table. All of the code related to
	  searching for channels or iterating active channels has been
	  rewritten. Let n be the number of active channels. Iterating the
	  channel list has gone from O(n^2) to O(n). Searching for a
	  channel by name went from O(n) to O(1). Searching for a channel
	  by extension is still O(n), but uses a new method for doing so,
	  which is more efficient. The ast_channel object is now a
	  reference counted object. The benefits here are plentiful. Some
	  benefits directly related to issues in the previous code include:
	  1) When threads other than the channel thread owning a channel
	  wanted access to a channel, it had to hold the lock on it to
	  ensure that it didn't go away. This is no longer a requirement.
	  Holding a reference is sufficient. 2) There are places that now
	  require less dealing with channel locks. 3) There are places
	  where channel locks are held for much shorter periods of time. 4)
	  There are places where dealing with more than one channel at a
	  time becomes _MUCH_ easier. ChanSpy is a great example of this.
	  Writing code in the future that deals with multiple channels will
	  be much easier. Some additional information regarding channel
	  locking and reference count handling can be found in channel.h,
	  where a new section has been added that discusses some of the
	  rules associated with it. Mark Michelson also assisted with the
	  development of this patch. He did the conversion of ChanSpy and
	  introduced a new API, ast_autochan, which makes it much easier to
	  deal with holding on to a channel pointer for an extended period
	  of time and having it get automatically updated if the channel
	  gets masqueraded. Mark was also a huge help in the code review
	  process. Thanks to David Vossel for his assistance with this
	  branch, as well. David did the conversion of the DAHDIScan
	  application by making it become a wrapper for ChanSpy internally.
	  The changes come from the
	  svn/asterisk/team/russell/ast_channel_ao2 branch. Review:
	  http://reviewboard.digium.com/r/203/

2009-04-24 13:49 +0000 [r190421]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix nat setting on RTP instances. (closes
	  issue #14827) Reported by: pj

2009-04-23 21:13 +0000 [r190357]  Russell Bryant <russell@digium.com>

	* /, channels/chan_sip.c: Merged revisions 190356 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r190356 | russell | 2009-04-23 16:07:07 -0500 (Thu, 23 Apr 2009)
	  | 2 lines Remove a bogus ast_channel_unlock(). ........

2009-04-23 20:42 +0000 [r190349-190352]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: Labels are sometimes (most of the time?) NULL for
	  extensions. (closes issue #14895) Reported by: chris-mac Patches:
	  20090423__bug14895__2.diff.txt uploaded by tilghman (license 14)
	  Tested by: lmadsen

	* include/asterisk/http.h, include/asterisk/utils.h,
	  main/manager.c, res/res_phoneprov.c, main/http.c, main/utils.c,
	  res/res_http_post.c, main/astobj2.c: Support HTTP digest
	  authentication for the http manager interface. (closes issue
	  #10961) Reported by: ys Patches: digest_auth_r148468_v5.diff
	  uploaded by ys (license 281) SVN branch
	  http://svn.digium.com/svn/asterisk/team/group/manager_http_auth
	  Tested by: ys, twilson, tilghman Review:
	  http://reviewboard.digium.com/r/223/ Reviewed by:
	  tilghman,russellb,mmichelson

2009-04-23 19:15 +0000 [r190287]  Joshua Colp <jcolp@digium.com>

	* channels/chan_local.c, /: Merged revisions 190286 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r190286 | file | 2009-04-23 16:13:18 -0300 (Thu, 23 Apr
	  2009) | 6 lines Fix a bug in chan_local glare hangup detection.
	  If both sides of a Local channel were hung up at around the same
	  time it was possible for one thread to destroy the local private
	  structure and have the other thread immediately try to remove the
	  already freed structure from the local channel list. ........

2009-04-23 17:45 +0000 [r190250]  Mark Michelson <mmichelson@digium.com>

	* apps/app_queue.c: Fix reversed behavior of leavewhenempty option
	  in queues.conf. (closes issue #14650) Reported by: alecdavis
	  Patches: 14650.patch uploaded by mmichelson (license 60) Tested
	  by: mmichelson, lmadsen

2009-04-23 16:55 +0000 [r190217]  Joshua Colp <jcolp@digium.com>

	* apps/app_directed_pickup.c: Fix a double free issue with the
	  Pickup dialplan application. As part of the pickup process the
	  connected line information is updated. Part of this process does
	  a shallow copy of the target channel's connected line information
	  to a local structure. Once complete the structure contents are
	  freed. As a result any information in the target channel's
	  connected line information structure is no longer valid. This
	  change will now set the contents back to a clean state so that
	  the freeing of the target channel's connected line information
	  structure when the channel is destroyed will no longer try to
	  double free things. (closes issue #14839) Reported by: lmsteffan

2009-04-23 00:44 +0000 [r190154]  Terry Wilson <twilson@digium.com>

	* funcs/func_strings.c: Fix example that could fail in certain
	  circumstances

2009-04-22 21:38 +0000 [r190093]  Tilghman Lesher <tlesher@digium.com>

	* configure, include/asterisk/autoconfig.h.in, configure.ac,
	  include/asterisk/lock.h: Merged revisions 190092 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r190092 | tilghman | 2009-04-22 16:35:03 -0500 (Wed, 22
	  Apr 2009) | 7 lines Detect availability of
	  pthread_rwlock_timedwrlock() before using it. (closes issue
	  #14930) Reported by: tilghman Patches:
	  20090420__bug14930.diff.txt uploaded by tilghman (license 14)
	  Tested by: mvanbaak, tilghman ........

2009-04-22 21:15 +0000 [r190057]  Jeff Peeler <jpeeler@digium.com>

	* funcs/func_groupcount.c, main/app.c, include/asterisk/channel.h,
	  main/cli.c: Fix building of chan_h323 with gcc-3.3 There seems to
	  be a bug with old versions of g++ that doesn't allow a structure
	  member to use the name list. Rename list member to group_list in
	  ast_group_info and change the few places it is used. (closes
	  issue #14790) Reported by: stuarth

2009-04-22 20:07 +0000 [r190000]  Terry Wilson <twilson@digium.com>

	* funcs/func_strings.c: Add funcs for manipulating delimited lists
	  in the dialplan Adds PUSH and POP for appending to and
	  retrieving/removing from the end of a list and UNSHIFT and SHIFT
	  for insert to and retrieiving/ removing from the beginning of a
	  list. Review: http://reviewboard.digium.com/r/230

2009-04-22 19:23 +0000 [r189993]  Jeff Peeler <jpeeler@digium.com>

	* channels/h323/ast_h323.cxx, channels/chan_h323.c,
	  channels/h323/chan_h323.h: Make chan_h323 respect packetization
	  settings and fix small reload issue. Previously, packetization
	  settings were ignored and now they are not. A new config option
	  'autoframing' has been added to mirror the way chan_sip handles
	  it. Turning on the autoframing option (available both as a global
	  option or per peer) overrides the local settings with the remote
	  packetization settings. Testing was performed with varying
	  packetization levels with the following codecs: ulaw, alaw, gsm,
	  and g729. Also, an unrelated config reload issue has been fixed
	  in the case of the config file not changing. (closes issue
	  #12415) Reported by: pj Patches:
	  2009012200_h323packetization.diff.txt uploaded by mvanbaak
	  (license 7), modified by me

2009-04-22 16:56 +0000 [r189951]  Russell Bryant <russell@digium.com>

	* main/features.c: Fix call parking callback. Pipes -> Commas.

2009-04-22 16:01 +0000 [r189911]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_unistim.c: Do not continue to receive DTMF, when
	  the channel is hungup and about to be destroyed. (closes issue
	  #14858) Reported by: barryf Patches: 20090421__bug14858.diff.txt
	  uploaded by tilghman (license 14) Tested by: barryf

2009-04-22 14:30 +0000 [r189850]  Michiel van Baak <michiel@vanbaak.info>

	* /, contrib/scripts/get_ilbc_source.sh: Merged revisions 189849
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189849 | mvanbaak | 2009-04-22 16:29:28 +0200 (Wed, 22 Apr 2009)
	  | 12 lines replace sed with tr to remove \r from downloaded file
	  On some systems, sed does not recognize \r in the pattern the way
	  it was used here. Use tr instead because this works the same
	  across systems. (closes issue #14936) Reported by: leobrown
	  Patches: 2009042201_14936.diff.txt uploaded by mvanbaak (license
	  7) Tested by: leobrown, mvanbaak ........

2009-04-22 06:33 +0000 [r189813]  Tilghman Lesher <tlesher@digium.com>

	* configure, configure.ac: Detect liblua on SuSE, and add libm for
	  linking for Fedora. (Reported via the -dev list, Subject:
	  Compiling Asterisk with LUA)

2009-04-21 20:28 +0000 [r189771]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: Fixes segfault when switching UDP to TCP in
	  sip.conf after reload. If transport in sip.conf is switched from
	  UDP to TCP, Asterisk segfaults right after issuing a sip reload.
	  The problem is the socket type is changed to TCP but the fd may
	  still be present for UDP. Later, when the TCP session should be
	  created or set using an existing one, it isn't because the old
	  file descriptor is still present. Now every time transport is
	  changed during a sip.conf reload, the file descriptor is set to
	  -1, signifying it must be created or found. (closes issue #14727)
	  Reported by: pj Tested by: dvossel Review:
	  http://reviewboard.digium.com/r/229/

2009-04-21 17:44 +0000 [r189735]  Richard Mudgett <rmudgett@digium.com>

	* channels/misdn/isdn_lib_intern.h, channels/misdn/isdn_lib.h,
	  channels/chan_misdn.c, channels/misdn/chan_misdn_config.h,
	  channels/misdn/ie.c, channels/misdn/isdn_msg_parser.c,
	  configs/misdn.conf.sample, CHANGES, channels/misdn/isdn_lib.c,
	  channels/misdn_config.c: Added CCBS/CCNR Party A support and
	  enhanced COLP support. This change adds the following features to
	  chan_misdn: * CCBS/CCNR Party A support for PTMP and PTP modes. *
	  Enhances COLP support for call diversion and explicit call
	  transfer. These enhanced features require a modified version of
	  mISDN. The latest modified mISDN v1.1.x based version is
	  available at: http://svn.digium.com/svn/thirdparty/mISDN/trunk
	  http://svn.digium.com/svn/thirdparty/mISDNuser/trunk Taged
	  versions of the modified mISDN code are available under:
	  http://svn.digium.com/svn/thirdparty/mISDN/tags
	  http://svn.digium.com/svn/thirdparty/mISDNuser/tags Review:
	  http://reviewboard.digium.com/r/218/ Merged from
	  team/rmudgett/misdn_facility branch.

2009-04-21 15:54 +0000 [r189629-189665]  Doug Bailey <dbailey@digium.com>

	* utils/muted.c, /: Merged revisions 189664 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189664 | dbailey | 2009-04-21 10:52:13 -0500 (Tue, 21 Apr 2009)
	  | 2 lines Remove daemon call on systems that do not support
	  forking. ........

	* /, configure, include/asterisk/autoconfig.h.in,
	  include/asterisk/compat.h, configure.ac: Merged revisions 189601
	  via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189601 | dbailey | 2009-04-21 09:00:55 -0500 (Tue, 21 Apr 2009)
	  | 3 lines Add check in configure script to check for GLOB_NOMAGIC
	  and GLOB_BRACE in glob.h This allows config.c to compile when
	  linked against uclibc that does not support these parameters
	  ........

2009-04-20 22:10 +0000 [r189539]  Tilghman Lesher <tlesher@digium.com>

	* main/stdtime/localtime.c: Use nanosleep instead of poll. This is
	  not just because mmichelson suggested it, but also because Mac OS
	  X puked on my poll().

2009-04-20 21:29 +0000 [r189495-189516]  Terry Wilson <twilson@digium.com>

	* apps/app_dial.c, /: Merged revisions 189465 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189465 | twilson | 2009-04-20 16:10:27 -0500 (Mon, 20 Apr 2009)
	  | 2 lines Update CDR appropriately when AST_CAUSE_NO_ANSWER is
	  set ........

	* apps/app_dial.c, /: Merged revisions 189463 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189463 | twilson | 2009-04-20 16:00:52 -0500 (Mon, 20 Apr 2009)
	  | 2 lines Don't treat a NOANSWER like a CHANUNAVAIL ........

2009-04-20 21:09 +0000 [r189464]  Sean Bright <sean@malleable.com>

	* /, res/ael/ael.tab.c, res/ael/ael.y: Merged revisions 189462 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189462 | seanbright | 2009-04-20 16:58:39 -0400 (Mon, 20 Apr
	  2009) | 13 lines Properly handle @s within hints in AEL. AEL was
	  not handling the case of a device hint containing an @ symbol,
	  which caused parking hints (e.g. hint(park:exten@context)) to
	  error out the parser. This patch makes AEL treat the @ the same
	  way it treats colon and ampersand now, meaning the characters are
	  included in verbatim. (closes issue #14941) Reported by: bpgoldsb
	  Patches: bug14941.patch uploaded by seanbright (license 71)
	  Tested by: bpgoldsb ........

2009-04-20 19:28 +0000 [r189419]  Doug Bailey <dbailey@digium.com>

	* main/manager.c, /, main/db1-ast/recno/rec_open.c,
	  channels/chan_iax2.c: Merged revisions 189391 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189391 | dbailey | 2009-04-20 14:10:56 -0500 (Mon, 20 Apr 2009)
	  | 4 lines Clean up problem with manager implementation of mmap
	  where it was not testing against MAP_FAILED response. Got rid of
	  shadowed variable used in processign the mmap results. Change
	  test of mmap results to compare against MAP_FAILED ........

2009-04-20 17:05 +0000 [r189350]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug with non-UDP connections that
	  caused dialogs to not get freed. This issue crept up because of a
	  reference count issue on non-UDP based dialogs. The dialog
	  reference count was increased when transmitting a packet reliably
	  but never decreased. This caused the dialog structure to hang
	  around despite being unlinked from the dialogs container. (closes
	  issue #14919) Reported by: vrban

2009-04-20 14:05 +0000 [r189278]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c, /: Merged revisions 189277 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189277 | mmichelson | 2009-04-20 09:04:41 -0500 (Mon, 20 Apr
	  2009) | 12 lines Move the check for chan->fdno == -1 to after the
	  zombie/hangup check. Many users were finding that their hung up
	  channels were staying up and causing 100% CPU usage. (issue
	  #14723) Reported by: seadweller Patches: 14723_1-4-tip.patch
	  uploaded by mmichelson (license 60) Tested by: falves11, bamby
	  ........

2009-04-18 01:28 +0000 [r189204]  David Vossel <dvossel@digium.com>

	* /, channels/chan_agent.c: Merged revisions 189203 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r189203 | dvossel | 2009-04-17 20:27:19 -0500 (Fri, 17
	  Apr 2009) | 12 lines Fixed autologoff in agents.conf not working
	  when agent logs in via AgentLogin app An agent logs in by calling
	  an extension that calls the AgentLogin app. In agents.conf
	  ackcall=always is set, so when they get a call they have the
	  choice to either acknowledge it or ignore it. autologoff=10 is
	  set as well, so if the agent ignores the call over 10sec one may
	  assume that the agent should be logged out (and in this case
	  hungup on as well), but this was not happening. (closes issue
	  #14091) Reported by: evandro Patches: autologoff.diff uploaded by
	  dvossel (license 671) Review:
	  http://reviewboard.digium.com/r/225/ ........

2009-04-17 21:48 +0000 [r189137]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, /, channels/misdn/isdn_lib.c: Merged
	  revisions 188833,189134 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r188833 | rmudgett | 2009-04-16 16:37:58 -0500 (Thu, 16 Apr 2009)
	  | 4 lines Only disable mISDN DSP if Asterisk DSP is enabled.
	  Leave jitter setting alone. JIRA ABE-1835 ........ r189134 |
	  rmudgett | 2009-04-17 16:27:55 -0500 (Fri, 17 Apr 2009) | 4 lines
	  Modifed/added some debug messages. JIRA ABE-1835 ........

2009-04-17 20:20 +0000 [r189097]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Prevent a crash when SIP blonde transferring
	  an unbridged call. If one attempts to use the attended transfer
	  button on a SIP phone to transfer an unbridged call (such as a
	  call to an IVR) but hangs up while the target of the transfer is
	  still ringing, we need to not crash. The problem was that
	  ast_hangup was called from outside the channel thread. AST-211

2009-04-17 19:36 +0000 [r189077]  Sean Bright <sean@malleable.com>

	* main/asterisk.c: Fix copy/paste error with 'transmit silence'
	  flag.

2009-04-17 15:44 +0000 [r189010]  Matthew Nicholson <mnicholson@digium.com>

	* main/pbx.c, /: Merged revisions 189009 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r189009 | mnicholson | 2009-04-17 10:43:09 -0500 (Fri, 17 Apr
	  2009) | 5 lines Make Busy() application set the CDR disposition
	  to BUSY. (closes issue #14306) Reported by: cristiandimache
	  ........

2009-04-17 14:44 +0000 [r188947]  Joshua Colp <jcolp@digium.com>

	* /, channels/chan_sip.c: Merged revisions 188946 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r188946 | file | 2009-04-17 11:41:25 -0300 (Fri, 17 Apr 2009) |
	  15 lines Fix a bug where a value used to create the channel name
	  was bogus. This commit fixes the scenario where an incoming call
	  is authenticated using a peer entry. Previously the channel name
	  was created using either the username setting from the sip.conf
	  entry or the IP address that the call came from. Now the channel
	  name will be created using the peer name itself. This commit will
	  not change the way the channel name is generated for users or
	  friends. (closes issue #14256) Reported by: Nick_Lewis Patches:
	  chan_sip.c-chname.patch uploaded by Nick (license 657) Tested by:
	  Nick_Lewis, file ........

2009-04-17 14:33 +0000 [r188942]  Mark Michelson <mmichelson@digium.com>

	* main/pbx.c: Fix a spacing issue that I claimed I would when I
	  committed this code. Nothing major though.

2009-04-17 14:26 +0000 [r188938]  Joshua Colp <jcolp@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 188937 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r188937 | file | 2009-04-17 11:25:57 -0300 (Fri, 17 Apr
	  2009) | 4 lines Fix a situation where the DAHDI channel private
	  structure lock was not unlocked when it should have been. (issue
	  AST-210) ........

2009-04-17 13:29 +0000 [r188901]  Mark Michelson <mmichelson@digium.com>

	* main/pbx.c: Several fixes to the extenpatternmatchnew logic. 1.
	  Differentiate between literal characters in an extension and
	  characters that should be treated as a pattern match. Prior to
	  these fixes, an extension such as NNN would be treated as a
	  pattern, rather than a literal string of N's. 2. Fixed the logic
	  used when matching an extension with a bracketed expression, such
	  as 2[5-7]6. 3. Removed all areas of code that were executed when
	  NOT_NOW was #defined. The code in these areas had the potential
	  to crash, for one thing, and the actual intent of these blocks
	  seemed counterproductive. 4. Fixed many many coding guidelines
	  problems I encountered while looking through the corresponding
	  code. 5. Added failure cases and warning messages for when
	  duplicate extensions are encountered. 6. Miscellaneous fixes to
	  incorrect or redundant statements. (closes issue #14615) Reported
	  by: steinwej Tested by: mmichelson Review:
	  http://reviewboard.digium.com/r/194/

2009-04-16 21:57 +0000 [r188774-188836]  Tilghman Lesher <tlesher@digium.com>

	* /, channels/chan_sip.c: Merged revisions 188835 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r188835 | tilghman | 2009-04-16 16:41:13 -0500 (Thu, 16 Apr 2009)
	  | 7 lines Only update realtime, if global option rtupdate !=
	  false (closes issue #14885) Reported by: deepesh Patches:
	  20090413__bug14885.diff.txt uploaded by tilghman (license 14)
	  Tested by: deepesh ........

	* /, apps/app_voicemail.c: Merged revisions 188773 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r188773 | tilghman | 2009-04-16 16:02:29 -0500 (Thu, 16
	  Apr 2009) | 4 lines Umask should not be exported into global
	  namespace. (closes issue #14912) Reported by: jcapp ........

2009-04-16 19:30 +0000 [r188742]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c: SIP state notify reorganization What I've
	  done here is simply break up how a state NOTIFY is built.
	  Originally both the XML and sip header information were built
	  within the same function. While this does work, it does not allow
	  for the creation of multipart/related message bodies that can
	  contain multiple XML entries with only one sip header. Now a
	  separate function builds the XML for each notify. This patch also
	  makes maintaining and modifying state notifications in the future
	  much less of a pain. Review: http://reviewboard.digium.com/r/224/

2009-04-16 13:42 +0000 [r188705]  Joshua Colp <jcolp@digium.com>

	* channels/chan_dahdi.c: Fix a bug with the dahdi_setoption
	  callback in chan_dahdi. This function incorrectly reported
	  success even if the option was unsupported. This was exposed by
	  the options to change the underlying channel format. The function
	  now returns a failure if the option is unsupported.

2009-04-15 22:10 +0000 [r188647]  David Vossel <dvossel@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 188646 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r188646 | dvossel | 2009-04-15 17:08:40 -0500 (Wed, 15
	  Apr 2009) | 12 lines National prefix inserted even when caller ID
	  not available When the caller ID is restricted, the expected
	  behavior is for the caller id to be blank. In chan_dahdi, the
	  national prefix is placed onto the callers number even if its
	  restricted (empty) causing the caller id to be the national
	  prefix rather than blank. (closes issue #13207) Reported by:
	  shawkris Patches: national_prefix.diff uploaded by dvossel
	  (license 671) Review: http://reviewboard.digium.com/r/220/
	  ........

2009-04-15 20:17 +0000 [r188544-188585]  Mark Michelson <mmichelson@digium.com>

	* /, main/file.c: Merged revisions 188582 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r188582 | mmichelson | 2009-04-15 15:04:20 -0500 (Wed, 15 Apr
	  2009) | 7 lines Update ast_readvideo_callback to match
	  ast_readaudio_callback. This fixes potential refcount errors that
	  may occur on ast_filestreams. AST-208 ........

	* apps/app_dial.c: Make the cancellation of the dial timeout on a
	  call forward optional. This introduces the 'z' option to
	  app_dial. With it set, a call forward will cancel any timeout
	  originally set for this instance of the Dial application. AST-207

2009-04-15 14:57 +0000 [r188515]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c: Don't try to do anything in
	  pri_check_restart with service messages unless libpri supports
	  it.

2009-04-14 23:28 +0000 [r188470]  Mark Michelson <mmichelson@digium.com>

	* apps/app_queue.c: Fix a couple of queue member reference leaks.

2009-04-14 17:40 +0000 [r188413]  Joshua Colp <jcolp@digium.com>

	* res/res_rtp_asterisk.c: Fix an incorrect clock rate when sending
	  T140 text. (closes issue #14029) Reported by: epicac

2009-04-14 16:49 +0000 [r188342-188378]  Jeff Peeler <jpeeler@digium.com>

	* channels/chan_dahdi.c, CHANGES: change some capitalization

	* channels/chan_dahdi.c, configs/chan_dahdi.conf.sample, configure,
	  include/asterisk/autoconfig.h.in, configure.ac, CHANGES: Add
	  service maintenance message support This is the companion commit
	  to libpri r732. Service messages are now supported for switch
	  types 4ess/5ess. A new option service_message_support has been
	  added to chan_dahdi.conf and is noted in the sample config file.
	  The service message support is turned off by default. The current
	  implementation relies on AstDB to keep track of channel state,
	  which allows the statuses to be preserved across Asterisk
	  restarts. Below is a description of the storage format. The state
	  and reason for the service state are in the form
	  <state>:<reason>, where: <state> ::= { 'O' } // 'O' – Out Of
	  Service <reason> ::= { '0' | '1' | '2' | '3' }, where: '0' – No
	  reason (backwards compatibility) '1' – NEAR END '2' – FAR END '3'
	  – both NEAR and FAR END The new CLI commands to handle channel
	  service state are: pri service disable channel <chan> pri service
	  enable channel <chan> Many people contributed to the development
	  of this functionality. Because I entered at the very end I do not
	  know the exact history. Special thanks to all who moved the bug
	  forward one way or another: cmaj, PCadach, markster, mattf,
	  drmac, MikeJ, serge-v, murf, kanelbullar, Seb7, tilghman,
	  lmadsen, and especially dhubbard (he answered lots of my
	  questions and did a large portion of the work) (closes issue
	  #3450) Reported by: cmaj

2009-04-14 14:22 +0000 [r188283-188284]  Olle Johansson <oej@edvina.net>

	* doc/manager_1_1.txt: New actions should go under "New Actions",
	  not "new events"

	* main/xmldoc.c, apps/app_jack.c: Making sure we have references to
	  external libraries. Note: Update h.323 with the recent changes
	  too

2009-04-14 13:14 +0000 [r188247]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug with the change I made yesterday
	  to outbound proxy support. Per discussion with oej on IRC we need
	  the actual IP address, not the outbound proxy IP address, in the
	  sa field. This change matches the already existing code for all
	  other uses of the outbound proxy setting.

2009-04-14 05:45 +0000 [r188206-188210]  Tilghman Lesher <tlesher@digium.com>

	* main/pbx.c: As suggested by Russell, warn users when their
	  dialplan arguments contain pipes, but not commas.

	* utils/smsq.c: Application delimiter is ',', not '|'. (closes
	  issue #14881) Reported by: stegro Patches: smsq.patch uploaded by
	  stegro (license 752)

2009-04-13 19:31 +0000 [r188102]  Mark Michelson <mmichelson@digium.com>

	* res/res_musiconhold.c: Fix another crash related to cached
	  realtime music on hold. This was another off-by-one problem
	  caused by moh_register.

2009-04-13 16:28 +0000 [r188067]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix a bug where using an outbound proxy
	  would cause the local address to be 127.0.0.1. Copy the outbound
	  proxy IP address into the SIP dialog structure as the IP address
	  we will be sending to. This has to be done because the logic that
	  determines what local IP address to use in the SIP messages is
	  not aware of an outbound proxy being in place. It only knows what
	  IP address we are sending to. (closes issue #12006) Reported by:
	  mnicholson

2009-04-13 14:17 +0000 [r188032]  Mark Michelson <mmichelson@digium.com>

	* apps/app_queue.c: Set all queue variables on both the caller and
	  member channels. This allows for the variables to be accessed if
	  a member macro is run. Thanks to Grigoriy Puzankin for bringing
	  this up on the -dev list.

2009-04-10 20:26 +0000 [r187906]  Jeff Peeler <jpeeler@digium.com>

	* channels/Makefile: Fix module embedding for chan_h323. Include
	  libchanh323.a in the modules.link file so that all the symbols
	  can be resolved at link time. (closes issue #11966) Reported by:
	  dome Patches: issue_11966.patch uploaded by kpfleming (license
	  421) Tested by: jpeeler

2009-04-10 18:56 +0000 [r187830]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_local.c: Indicating connected line or redirecting
	  updates were missing a call to lock the local_pvt.

2009-04-10 18:14 +0000 [r187772-187773]  Joshua Colp <jcolp@digium.com>

	* res/res_rtp_asterisk.c, main/rtp_engine.c: Change how we set the
	  local and remote address. The code will now only change the
	  address and port. It will not overwrite any other values.

	* channels/chan_jingle.c, channels/chan_unistim.c,
	  res/res_rtp_asterisk.c, main/rtp_engine.c, channels/chan_sip.c,
	  channels/chan_skinny.c, channels/chan_h323.c,
	  channels/chan_gtalk.c, channels/chan_mgcp.c: Fix some
	  uninitialized memory notices that appeared under valgrind.

2009-04-10 17:32 +0000 [r187770]  Mark Michelson <mmichelson@digium.com>

	* apps/app_dial.c: Make sure tc is unlocked before calling ast_call
	  since calling a Local channel could result in a deadlock.

2009-04-10 17:29 +0000 [r187764]  Tilghman Lesher <tlesher@digium.com>

	* contrib/scripts/realtime_pgsql.sql, /,
	  contrib/scripts/sip-friends.sql: Merged revisions 187763 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r187763 | tilghman | 2009-04-10 12:28:46 -0500 (Fri, 10 Apr 2009)
	  | 2 lines Add lastms column to the contributed table designs
	  ........

2009-04-10 16:51 +0000 [r187721]  Kevin P. Fleming <kpfleming@digium.com>

	* build_tools/embed_modules.xml: clean up some patterns for files
	  to remove add embedding support for bridge and test modules

2009-04-10 16:26 +0000 [r187680-187714]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_local.c: ast_strdup failures aren't really failures
	  if the original value was NULL.

	* main/channel.c: Don't let ast_channel_alloc fail if explicitly
	  passed NULL cid_name or cid_number. This also fixes a small
	  memory leak.

2009-04-10 16:00 +0000 [r187675]  Russell Bryant <russell@digium.com>

	* tests/test_heap.c, tests/test_sched.c: Disable test modules by
	  default.

2009-04-10 15:59 +0000 [r187674]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Ensure pvt is not NULL before dereferencing
	  it. (closes issue #14784) Reported by: pj

2009-04-10 15:49 +0000 [r187673]  David Vossel <dvossel@digium.com>

	* apps/app_dial.c: Even more changes concerning r187426. Revised
	  where locks are placed yet once again. ast_call() should not be
	  called with a channel locked. could cause deadlock issues with
	  local channels.

2009-04-10 15:11 +0000 [r187636]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk/logger.h, main/logger.c, apps/app_verbose.c,
	  configs/logger.conf.sample: revert addition of LOG_SECURITY log
	  channel; after further discussion, a much better solution will be
	  used

2009-04-10 14:53 +0000 [r187634-187635]  Richard Mudgett <rmudgett@digium.com>

	* channels/misdn/isdn_lib.h, channels/chan_misdn.c,
	  channels/misdn/isdn_lib.c: Miscellaneous minor changes to
	  chan_misdn. * Miscellaneous spacing and comment changes. * Minor
	  code rearangements. * Miscellaneous doxygen comments.

	* channels/chan_misdn.c: Make chan_misdn_log() avoid generating the
	  log message if logging is disabled.

2009-04-10 03:55 +0000 [r187599]  Tilghman Lesher <tlesher@digium.com>

	* main/channel.c, main/pbx.c, main/manager.c,
	  include/asterisk/linkedlists.h, main/features.c, main/http.c,
	  main/app.c, include/asterisk/lock.h, main/audiohook.c,
	  main/bridging.c: Modify headers and macros, according to
	  Russell's suggestions on the -dev list

2009-04-09 21:06 +0000 [r187560]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample: Add a new option,
	  mwi_from, to sip.conf. This allows for you to change the From
	  header for outgoing MWI NOTIFY requests. Prior to this, the best
	  you could do was to set a callerid in the general section of
	  sip.conf. The problem was that this was used for all outbound
	  requests, not just MWI NOTIFY requests. AST-201

2009-04-09 20:40 +0000 [r187556]  David Vossel <dvossel@digium.com>

	* apps/app_dial.c: More changes concerning r187426. Revised where
	  locks are placed.

2009-04-09 19:10 +0000 [r187491]  Jeff Peeler <jpeeler@digium.com>

	* apps/app_dial.c, main/pbx.c, include/asterisk/pbx.h, CHANGES: Add
	  ability for dialplan execution to continue when caller hangs up.
	  The F option to app_dial has been modified to accept no
	  parameters and perform the above functionality. I don't see
	  anywhere else that is doing function overloading, but this really
	  is the best place for this operation because: - It makes it close
	  to the 'g' option in the argument list which provides similar
	  functionality. - The existing code to support the current F
	  option provides a very convienient location to add this new
	  feature. (closes issue #12381) Reported by: michael-fig

2009-04-09 18:58 +0000 [r187488]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 187484 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r187484 | mmichelson | 2009-04-09 13:51:20 -0500 (Thu, 09 Apr
	  2009) | 18 lines Handle a SIP race condition (reinvite before an
	  ACK) properly. RFC 5047 explains the proper course of action to
	  take if a reINVITE is received before the ACK from a previous
	  invite transaction. What we are to do is to treat the reINVITE as
	  if it were both an ACK and a reINVITE and process it normally.
	  Later, when we receive the ACK we had been expecting, we will
	  ignore it since its CSeq is less than the current iseqno of the
	  sip_pvt representing this dialog. (closes issue #13849) Reported
	  by: klaus3000 Patches: 13849_v2.patch uploaded by mmichelson
	  (license 60) Tested by: mmichelson, klaus3000 ........

2009-04-09 18:40 +0000 [r187483]  Tilghman Lesher <tlesher@digium.com>

	* main/manager.c, /, include/asterisk/linkedlists.h,
	  include/asterisk/lock.h: Merged revisions 187428 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r187428 | tilghman | 2009-04-09 13:08:20 -0500 (Thu, 09
	  Apr 2009) | 8 lines Race condition between ast_cli_command() and
	  'module unload' could cause a deadlock. Add lock timeouts to
	  avoid this potential deadlock. (closes issue #14705) Reported by:
	  jamessan Patches: 20090320__bug14705.diff.txt uploaded by
	  tilghman (license 14) Tested by: jamessan ........

2009-04-09 17:39 +0000 [r187426]  David Vossel <dvossel@digium.com>

	* apps/app_dial.c: Fixes deadlock caused by calling get_cid_name
	  with chan locked. get_cid_name should not be called with a
	  channel lock. get_cid_name calls ast_get_hint which eventually
	  calls pbx_find_extension. pbx_find_extension starts and stops
	  autoservice which should not be done with a channel lock, so
	  get_cid_name should not be called with one.

2009-04-09 17:34 +0000 [r187421-187424]  Mark Michelson <mmichelson@digium.com>

	* res/res_musiconhold.c: Use safe macro practices even though they
	  really aren't necessary.

	* res/res_musiconhold.c: Fix a crash in res_musiconhold when using
	  cached realtime moh. The moh_register function links an mohclass
	  and then immediately unrefs the class since the container now has
	  a reference. The problem with using realtime music on hold is
	  that the class is allocated, registered, and started in one fell
	  swoop. The refcounting logic resulted in the count being off by
	  one. The same problem did not happen when using a static config
	  because the allocation and registration of an mohclass is a
	  separate operation from starting moh. This also did not affect
	  non-cached realtime moh because the classes are not registered at
	  all. I also have modified res_musiconhold to use the _t_ variants
	  of the ao2_ functions so that more info can be gleaned when
	  attempting to trace the refcounts. I found this to be incredibly
	  helpful for debugging this issue and there's no good reason to
	  remove it. (closes issue #14661) Reported by: sum

2009-04-09 17:20 +0000 [r187363-187381]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Allow '/' in username portion of register;
	  this is a regression. (closes issue #14668) Reported by: Netview

	* /, channels/chan_sip.c, apps/app_sendtext.c: Merged revisions
	  187362 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r187362 | tilghman | 2009-04-09 11:38:37 -0500 (Thu, 09 Apr 2009)
	  | 3 lines Permit zero-length text messages in SIP. (Related to an
	  issue posted to the -users list, subject "AEL2, BASE64_DECODE and
	  hexadecimal") ........

2009-04-09 16:27 +0000 [r187360-187361]  Joshua Colp <jcolp@digium.com>

	* channels/chan_iax2.c: Do not try to send the format read/format
	  write/make compatible options over IAX2.

	* main/channel.c, channels/chan_sip.c, include/asterisk/frame.h:
	  Add support for allowing the channel driver to handle
	  transcoding. This was accomplished using a set of options and the
	  setoption channel callback. The core calls into the channel
	  driver using these options and the channel driver either returns
	  success or failure.

2009-04-09 04:59 +0000 [r187302]  Tilghman Lesher <tlesher@digium.com>

	* agi/Makefile, build_tools/cflags.xml, utils/Makefile,
	  include/asterisk.h, /, main/Makefile, main/file.c, main/astfd.c
	  (added), main/asterisk.c: Merged revisions 187300-187301 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r187300 | tilghman | 2009-04-08 23:31:38 -0500 (Wed, 08 Apr 2009)
	  | 3 lines Add debugging mode for diagnosing file descriptor
	  leaks. (Related to issue #14625) ........ r187301 | tilghman |
	  2009-04-08 23:32:40 -0500 (Wed, 08 Apr 2009) | 2 lines Oops,
	  missed this file in the last commit. ........

2009-04-09 02:44 +0000 [r187269]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk/logger.h, main/logger.c, apps/app_verbose.c,
	  configs/logger.conf.sample: add a dedicated log channel for
	  modules to be able report security-related events, so that they
	  can be fed into external processes for analysis and possible
	  mitigation efforts (inspired by this evening's Toronto Asterisk
	  Users Group meeting and previous dicussions amongst various
	  community members)

2009-04-08 21:00 +0000 [r187211]  Jeff Peeler <jpeeler@digium.com>

	* main/channel.c, main/features.c, include/asterisk/channel.h: Add
	  timer for features so that backup bridge config can go away The
	  biggest change done here was elimination of the backup_config for
	  use with features. Previously, the bridging code upon detecting a
	  feature would set the start time of the bridge to the start time
	  of the feature. Then after the feature had either expired or
	  timed out the start time would be reset to the true bridge start
	  time from the backup_config. Now, the time differences are
	  calculated with respect to the newly added feature_start_time
	  timeval instead. There should be no behavior changes from the
	  previous functionality aside from the bridge timing being
	  unaffected by either valid or partial feature matches. Previously
	  the timing would be increased by the length of time configured
	  for featuredigittimeout, which was probably never noticed.
	  (closes issue #14503) Reported by: KNK Tested by: jpeeler Review:
	  http://reviewboard.digium.com/r/179/

2009-04-08 20:39 +0000 [r187210]  Tilghman Lesher <tlesher@digium.com>

	* /: Recorded merge of revisions 187209 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r187209 | tilghman | 2009-04-08 15:39:13 -0500 (Wed, 08 Apr 2009)
	  | 4 lines Backport resolution for file descriptor leak in 1.6.0
	  to 1.4. This fixes short reads in http manager sessions, such as
	  those done by the ast-gui branch. (Fixes AST-198) ........

2009-04-08 19:59 +0000 [r187179]  Russell Bryant <russell@digium.com>

	* include/asterisk/doxyref.h,
	  include/asterisk/doxygen/reviewboard.h (added): Add documentation
	  for reviewboard usage and guidelines.

2009-04-08 18:12 +0000 [r187108]  Joshua Colp <jcolp@digium.com>

	* main/rtp_engine.c: Fix a bug where we would native bridge when we
	  did not want to.

2009-04-08 17:51 +0000 [r187105]  Russell Bryant <russell@digium.com>

	* channels/chan_sip.c: Remove duplicate prototype for temp_peer().

2009-04-08 17:08 +0000 [r187050]  Tilghman Lesher <tlesher@digium.com>

	* funcs/func_odbc.c: If the first column is empty, output a
	  delimiter anyway. (closes issue #14848) Reported by: john8675309
	  Patches: 20090408__bug14848.diff.txt uploaded by tilghman
	  (license 14) Tested by: john8675309

2009-04-08 16:52 +0000 [r187046]  Mark Michelson <mmichelson@digium.com>

	* /, res/res_musiconhold.c: Merged revisions 187045 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r187045 | mmichelson | 2009-04-08 11:52:03 -0500 (Wed,
	  08 Apr 2009) | 10 lines Fix a small logical error when loading
	  moh classes. We were unconditionally incrementing the number of
	  mohclasses registered. However, we should actually only increment
	  if the call to moh_register was successful. While this probably
	  has never caused problems, I noticed it and decided to fix it
	  anyway. ........

2009-04-08 16:27 +0000 [r187036]  Joshua Colp <jcolp@digium.com>

	* res/res_rtp_asterisk.c, main/rtp_engine.c: Turn a warning message
	  into a debug message and do not treat two situations as errors
	  when they are not.

2009-04-08 15:27 +0000 [r186985]  Mark Michelson <mmichelson@digium.com>

	* main/channel.c, /: Merged revisions 186984 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186984 | mmichelson | 2009-04-08 10:26:46 -0500 (Wed, 08 Apr
	  2009) | 24 lines Make a couple of changes with regards to a new
	  message printed in ast_read(). "ast_read() called with no
	  recorded file descriptor" is a new message added after a bug was
	  discovered. Unfortunately, it seems there are a bunch of places
	  that potentially make such calls to ast_read() and trigger this
	  error message to be displayed. This commit does two things to
	  help to make this message appear less. First, the message has
	  been downgraded to a debug level message if dev mode is not
	  enabled. The message means a lot more to developers than it does
	  to end users, and so developers should take an effort to be sure
	  to call ast_read only when a channel is ready to be read from.
	  However, since this doesn't actually cause an error in operation
	  and is not something a user can easily fix, we should not spam
	  their console with these messages. Second, the message has been
	  moved to after the check for any pending masquerades. ast_read()
	  being called with no recorded file descriptor should not
	  interfere with a masquerade taking place. This could be seen as a
	  simple way of resolving issue #14723. However, I still want to
	  try to clear out the existing ways of triggering this message,
	  since I feel that would be a better resolution for the issue.
	  ........

2009-04-08 13:38 +0000 [r186928-186957]  Russell Bryant <russell@digium.com>

	* include/asterisk/doxygen/releases.h: Add some additional notes on
	  release numbering.

	* Makefile, include/asterisk/doxygen/releases.h (added),
	  include/asterisk/doxyref.h, contrib/asterisk-ng-doxygen,
	  include/asterisk/doxygen (added),
	  include/asterisk/doxygen/commits.h (added),
	  include/asterisk/doxygen/licensing.h (added), main/asterisk.c:
	  Start splitting up miscellaneous doxygen documentation into
	  separate files. doxyref.h was created to hold miscellaneous
	  documentation that was not specific to a part of the code. This
	  file has grown quite a bit so I decided to start splitting parts
	  of it out into new files. Now, you can drop a new file into
	  include/asterisk/doxygen/ and it will be processed by doxygen.

	* channels/chan_sip.c: Update some comments and resolve potential
	  memory corruption in chan_sip. While browsing chan_sip the other
	  day, I noticed this dangerous code in dialog_needdestroy(). This
	  function is an ao2_callback. It is absolutely _not_ okay to
	  unlock the container from within this function. It's also not
	  clear why it was useful. Given that it could cause memory
	  corruption, I have removed it. There was also a TODO comment left
	  describing a potential implementation of an improvement to the
	  needdestroy handling. I'm not convinced that what was described
	  is the best choice here, so I have briefly described the way that
	  this function is used today that could be improved.

2009-04-08 05:06 +0000 [r186899]  Tilghman Lesher <tlesher@digium.com>

	* channels/chan_sip.c: Add lastms to the require API call.

2009-04-08 00:09 +0000 [r186833-186842]  Mark Michelson <mmichelson@digium.com>

	* /, formats/format_wav.c, formats/format_wav_gsm.c: Merged
	  revisions 186841 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186841 | mmichelson | 2009-04-07 19:09:04 -0500 (Tue, 07 Apr
	  2009) | 8 lines Fix a few typos of the word "frequency." (closes
	  issue #14842) Reported by: jvandal Patches: frequency-typo.diff
	  uploaded by jvandal (license 413) ........

	* channels/chan_sip.c: Fix bad merge from fix for issue 13867.
	  (closes issue #14686) Reported by: davidw

	* main/channel.c, /: Merged revisions 186832 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186832 | mmichelson | 2009-04-07 18:49:49 -0500 (Tue, 07 Apr
	  2009) | 8 lines Set the AST_FEATURE_WARNING_ACTIVE flag when a
	  p2p bridge returns AST_BRIDGE_RETRY. Without this flag set,
	  warning sounds will not be properly played to either party of the
	  bridge. (closes issue #14845) Reported by: adomjan ........

2009-04-07 22:23 +0000 [r186799]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_macro.c: Merged revisions 186775 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186775 | tilghman | 2009-04-07 17:16:50 -0500 (Tue, 07 Apr 2009)
	  | 3 lines Fix Macro documentation to match current (and intended)
	  behavior. (See -dev mailing list) ........

2009-04-07 20:46 +0000 [r186720]  Mark Michelson <mmichelson@digium.com>

	* main/manager.c, /: Merged revisions 186719 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186719 | mmichelson | 2009-04-07 15:43:49 -0500 (Tue, 07 Apr
	  2009) | 6 lines Ensure that \r\n is printed after the ActionID in
	  an OriginateResponse. (closes issue #14847) Reported by: kobaz
	  ........

2009-04-06 23:11 +0000 [r186624-186687]  Joshua Colp <jcolp@digium.com>

	* res/res_rtp_asterisk.c: Fix a log message getting output when it
	  should not have been.

	* channels/chan_sip.c: Fix problem when authenticating a non-RTP
	  dialog.

	* channels/chan_sip.c, doc/tex/channelvariables.tex, CHANGES: Add
	  support for changing the outbound codec on a SIP call using a
	  dialplan variable. This adds a dialplan variable
	  (SIP_CODEC_OUTBOUND) which controls the codec offered for an
	  outgoing SIP call. This is much like the SIP_CODEC dialplan
	  variable and has the same restrictions. The codec set must be one
	  that is configured for the call. (closes issue #13243) Reported
	  by: samdell3 Patches: 13243.diff uploaded by file (license 11)

2009-04-06 16:06 +0000 [r186620]  Mark Michelson <mmichelson@digium.com>

	* funcs/func_connectedline.c (added), funcs/func_redirecting.c
	  (added): Silly svn. These files didn't get merged over in the
	  merge of the issue8824 branch.

2009-04-06 13:23 +0000 [r186563]  Joshua Colp <jcolp@digium.com>

	* main/rtp_engine.c: Pass the correct value to sizeof when copying
	  address information. (issue #14827) Reported by: pj Patches:
	  14827.diff uploaded by file (license 11) Tested by: pj

2009-04-04 00:13 +0000 [r186537]  Richard Mudgett <rmudgett@digium.com>

	* /: Remove merged branch properties accidentally merged to trunk.

2009-04-03 22:41 +0000 [r186525]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_unistim.c, channels/misdn/isdn_lib_intern.h,
	  channels/chan_local.c, main/rtp_engine.c, /,
	  channels/misdn/isdn_msg_parser.c, channels/chan_iax2.c,
	  channels/misdn/isdn_lib.c, channels/misdn_config.c,
	  include/asterisk/callerid.h, main/channel.c, main/dial.c,
	  channels/misdn/isdn_lib.h, channels/chan_dahdi.c,
	  channels/chan_phone.c, channels/chan_skinny.c, main/features.c,
	  configs/sip.conf.sample, include/asterisk/frame.h,
	  include/asterisk/rtp_engine.h, channels/chan_mgcp.c,
	  apps/app_dial.c, res/res_rtp_asterisk.c, main/stun.c,
	  channels/chan_sip.c, channels/chan_agent.c,
	  configs/misdn.conf.sample, include/asterisk/channel.h, CHANGES,
	  apps/app_queue.c, channels/chan_misdn.c,
	  apps/app_directed_pickup.c, channels/misdn/chan_misdn_config.h,
	  channels/chan_h323.c, main/callerid.c, include/asterisk/stun.h:
	  This commit introduces COLP/CONP and Redirecting party
	  information into Asterisk. The channel drivers which have been
	  most heavily tested with these enhancements are chan_sip and
	  chan_misdn. Further work is being done to add Q.SIG support and
	  will be introduced in a later commit. chan_skinny has code added
	  to it here, but according to user pj, the support on chan_skinny
	  is not working as of now. This will be fixed in a later commit. A
	  special thanks goes out to bugtracker user gareth for getting the
	  ball rolling and providing the initial support for this work.
	  Without his initial work on this, this would not have been nearly
	  as painless as it was. This functionality has been tested by
	  Digium's product quality department, as well as a customer site
	  running thousands of calls every day. In addition, many many many
	  many bugtracker users have tested this, too. (closes issue #8824)
	  Reported by: gareth Review: http://reviewboard.digium.com/r/201

2009-04-03 20:20 +0000 [r186461]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 186458 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r186458 | kpfleming | 2009-04-03 15:19:20 -0500 (Fri, 03
	  Apr 2009) | 5 lines Fix a bug where DAHDI/Zaptel channels would
	  not properly switch formats when requested Don't offer
	  AST_FORMAT_SLINEAR on DAHDI/Zaptel channels... while it could
	  provide a slight performance benefit, the translation core in
	  Asterisk has some flaws when a channel driver offers multiple raw
	  formats. this fix is much simpler than fixing the translation
	  core to solve that issue (although that will be done later).
	  ........

2009-04-03 19:59 +0000 [r186444-186447]  Tilghman Lesher <tlesher@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 186445 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r186445 | tilghman | 2009-04-03 14:56:48 -0500 (Fri, 03
	  Apr 2009) | 2 lines Found a conflict in the last commit, due to
	  multiple targets ........

	* /, configs/voicemail.conf.sample, apps/app_voicemail.c: Merged
	  revisions 186415 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186415 | tilghman | 2009-04-03 14:06:58 -0500 (Fri, 03 Apr 2009)
	  | 7 lines Distinguish in a sent email between simple sends and
	  forwards. (closes issue #11678) Reported by: jamessan Patches:
	  20090330__bug11678.diff.txt uploaded by tilghman (license 14)
	  Tested by: tilghman, lmadsen ........

2009-04-03 16:47 +0000 [r186382]  Joshua Colp <jcolp@digium.com>

	* main/channel.c, channels/chan_sip.c, channels/chan_iax2.c,
	  include/asterisk/frame.h: Add better support for relaying success
	  or failure of the ast_transfer() API call. This API call now
	  waits for a special frame from the underlying channel driver to
	  indicate success or failure. This allows the return value to
	  truly convey whether the transfer worked or not. In the case of
	  the Transfer() dialplan application this means the value of the
	  TRANSFERSTATUS dialplan variable is actually true. (closes issue
	  #12713) Reported by: davidw Tested by: file

2009-04-03 16:29 +0000 [r186379]  David Vossel <dvossel@digium.com>

	* main/audiohook.c: audio_audiohook_write_list() did not correctly
	  update sample size after ast_translate.
	  audio_audiohook_write_list() did not take into account that the
	  sample size may change after translation depending on if the
	  original frame is is 8khz or 16khz. the sample size is now
	  updated after translating to reflect this possibility. This
	  caused the audio on the receiving end to sound terrible. Thanks
	  to jcolp and mmichelson for helping me work this out. (issue
	  AST-197)

2009-04-03 15:52 +0000 [r186321]  Joshua Colp <jcolp@digium.com>

	* include/asterisk/crypto.h, /: Merged revisions 186320 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186320 | file | 2009-04-03 12:48:56 -0300 (Fri, 03 Apr 2009) | 5
	  lines Fix a problem with the crypto variable definitions not
	  actually being defined properly. (closes issue #14804) Reported
	  by: jvandal ........

2009-04-03 15:18 +0000 [r186297]  Tilghman Lesher <tlesher@digium.com>

	* main/stdtime/localtime.c: Compatibility fix for glibc 2.4 (Closes
	  issue #14820) Reported by: phsultan

2009-04-03 14:32 +0000 [r186286]  Mark Michelson <mmichelson@digium.com>

	* apps/app_voicemail.c: Fix the ability to retrieve voicemail
	  messages from IMAP. A recent change made interactive vm_states no
	  longer get added to the list of vm_states and instead get stored
	  in thread-local storage. In trunk and all the 1.6.X branches, the
	  problem is that when we search for messages in a voicemail box,
	  we would attempt to update the appropriate vm_state struct by
	  directly searching in the list of vm_states instead of using the
	  get_vm_state_by_imap_user function. This meant we could not find
	  the interactive vm_state that we wanted. (closes issue #14685)
	  Reported by: BlargMaN Patches: 14685.patch uploaded by mmichelson
	  (license 60) Tested by: BlargMaN, qualleyiv, mmichelson

2009-04-03 02:03 +0000 [r186230]  Russell Bryant <russell@digium.com>

	* /, cdr/cdr_radius.c: Merged revisions 186229 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186229 | russell | 2009-04-02 20:57:44 -0500 (Thu, 02 Apr 2009)
	  | 21 lines Fix a memory leak in cdr_radius. I came across this
	  while doing some testing of my ast_channel_ao2 branch. After
	  running a test overnight that generated over 5 million calls,
	  Asterisk had taken up about 1 GB of my system memory. So, I
	  re-ran the test with MALLOC_DEBUG turned on. However, it showed
	  no leaks in Asterisk during the test, even though Asterisk was
	  still consuming it somehow. Instead, I turned to valgrind, which
	  when run with --leak-check=full, told me exactly where the leak
	  came from, which was from allocations inside the radiusclient-ng
	  library. This explains why MALLOC_DEBUG did not report it. After
	  a bit of analysis, I found that we were leaking a little bit of
	  memory every time a CDR record was passed to cdr_radius. I don't
	  actually have a radius server set up to receive CDR records.
	  However, I always have my development systems compile and install
	  all modules. In addition to making sure there are not build
	  errors across modules, always loading modules helps find bugs
	  like this, too, so it is strongly recommend for all developers.
	  ........

2009-04-02 21:56 +0000 [r186175]  Mark Michelson <mmichelson@digium.com>

	* /, configs/features.conf.sample: Merged revisions 186174 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r186174 | mmichelson | 2009-04-02 16:55:34 -0500 (Thu, 02 Apr
	  2009) | 5 lines Fix instructions in one-step parking comment to
	  make more sense. Changed a capital K to a lowercase k. ........

2009-04-02 17:26 +0000 [r186101]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 186081 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r186081 | kpfleming | 2009-04-02 12:21:29 -0500 (Thu, 02
	  Apr 2009) | 3 lines ensure that the buffer passed to
	  DAHDI_SET_BUFINFO is fully initialized ........

2009-04-02 17:20 +0000 [r186078]  Joshua Colp <jcolp@digium.com>

	* res/res_rtp_asterisk.c (added), channels/chan_unistim.c,
	  apps/app_dial.c, main/stun.c (added), main/rtp_engine.c (added),
	  channels/chan_local.c, channels/chan_sip.c,
	  channels/chan_bridge.c, main/Makefile, channels/chan_agent.c,
	  include/asterisk/rtp.h (removed), UPGRADE.txt,
	  channels/chan_gtalk.c, include/asterisk/_private.h, main/rtp.c
	  (removed), main/loader.c, channels/chan_jingle.c,
	  channels/chan_skinny.c, channels/chan_h323.c,
	  configs/sip.conf.sample, include/asterisk/stun.h (added),
	  include/asterisk/rtp_engine.h (added), main/asterisk.c,
	  channels/chan_mgcp.c: Merge in the RTP engine API. This API
	  provides a generic way for multiple RTP stacks to be integrated
	  into Asterisk. Right now there is only one present,
	  res_rtp_asterisk, which is the existing Asterisk RTP stack.
	  Functionality wise this commit performs the same as previously.
	  API documentation can be viewed in the rtp_engine.h header file.
	  Review: http://reviewboard.digium.com/r/209/

2009-04-02 17:10 +0000 [r186021-186060]  Tilghman Lesher <tlesher@digium.com>

	* /, channels/chan_sip.c, configs/sip.conf.sample: Merged revisions
	  186059 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ................ r186059 | tilghman | 2009-04-02 12:09:13 -0500
	  (Thu, 02 Apr 2009) | 9 lines Merged revisions 186056 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.2
	  ........ r186056 | tilghman | 2009-04-02 12:02:18 -0500 (Thu, 02
	  Apr 2009) | 2 lines Fix for AST-2009-003 ........
	  ................

	* main/strings.c: Missed a common case for needing to extend the
	  buffer. (closes issue #14716) Reported by: sum Patches:
	  20090402__bug14716.diff.txt uploaded by tilghman (license 14)
	  Tested by: sum

2009-04-02 13:51 +0000 [r185953]  Kevin P. Fleming <kpfleming@digium.com>

	* channels/chan_dahdi.c, /: Merged revisions 185952 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r185952 | kpfleming | 2009-04-02 08:43:43 -0500 (Thu, 02
	  Apr 2009) | 5 lines the DAHDI_GETCONF, DAHDI_SETCONF and
	  DAHDI_GET_PARAMS ioctls were recently corrected to show that they
	  do, in fact, read data from userspace as part of their work. due
	  to this fix, valgrind now reports a number of cases where
	  chan_dahdi passed an uninitialized (or partially) buffer to these
	  ioctls, which could lead to unexpected behavior. this patch
	  corrects chan_dahdi to ensure that buffers passed to these ioctls
	  are always fully initialized. ........

2009-04-01 20:13 +0000 [r185912]  Tilghman Lesher <tlesher@digium.com>

	* include/asterisk/res_odbc.h, include/asterisk.h, main/strings.c,
	  main/manager.c, main/tdd.c, include/asterisk/astobj2.h,
	  main/ast_expr2f.c, include/asterisk/pbx.h,
	  include/asterisk/strings.h, main/taskprocessor.c, res/res_odbc.c:
	  Merge changes from str_substitution that are unrelated to that
	  branch. Included is a small bugfix to an ast_str helper, but most
	  of these changes are simply doxygen fixes.

2009-04-01 19:03 +0000 [r185846]  David Vossel <dvossel@digium.com>

	* /, channels/chan_sip.c: Merged revisions 185845 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r185845 | dvossel | 2009-04-01 14:02:00 -0500 (Wed, 01 Apr 2009)
	  | 10 lines Fixes issue with dropped calles due to re-Invite glare
	  and re-Invites never executing after a 491 Acknowledgement for
	  491 responses were never being processed because it didn't match
	  our pending invite's seqno. Since the ACK was never processed,
	  the 491 frame would continue to be retransmitted until eventually
	  the call was dropped due to max retries. Now during a pending
	  invite, if we receive another invite, we send an 491 and hold on
	  to that glare invite's seqno in the "glareinvite" variable for
	  that sip_pvt struct. When ACK's are received, we first check to
	  see if it is in response to our pending invite, if not we check
	  to see if it is in response to a glare invite. In this case, it
	  is in response to the glare invite and must be dealt with or the
	  call is dropped. I've changed the wait time for resending the
	  re-Invite after receving a 491 response to comply with RFC 3261.
	  Before this patch the scheduled re-Invite would only change a
	  flag indicating that the re-Invite should be sent out, now it
	  actually sends it out as well. (closes issue #12013) Reported by:
	  alx Review: http://reviewboard.digium.com/r/213/ ........

2009-04-01 13:59 +0000 [r185777]  Mark Michelson <mmichelson@digium.com>

	* main/manager.c: Address Russell's comments regarding rev 185704.
	  Use ast_debug and ast_softhangup_nolock.

2009-04-01 13:48 +0000 [r185741-185772]  Russell Bryant <russell@digium.com>

	* main/channel.c, /: Merged revisions 185771 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r185771 | russell | 2009-04-01 08:47:30 -0500 (Wed, 01 Apr 2009)
	  | 6 lines Fix a case where DTMF could bypass audiohooks. This
	  change fixes a situation where an audiohook that wants DTMF would
	  not actually get it. This is in the code path where we end DTMF
	  digit length emulation while handling a NULL frame. ........

	* include/asterisk/stringfields.h: Fix dev-mode build on my box.

2009-04-01 00:39 +0000 [r185704]  Mark Michelson <mmichelson@digium.com>

	* main/manager.c, CHANGES: Allow the AMI Hangup command to accept a
	  Cause header. (closes issue #14695) Reported by: mneuhauser
	  Patches: cause-for-hangup-manager-action.patch uploaded by
	  mneuhauser (license 425)

2009-03-31 22:35 +0000 [r185664]  Kevin P. Fleming <kpfleming@digium.com>

	* utils: ignore copied (generated) file

2009-03-31 22:12 +0000 [r185600-185604]  Mark Michelson <mmichelson@digium.com>

	* apps/app_queue.c: Fix trunk's compilation.

	* /, apps/app_queue.c: Merged revisions 185599 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r185599 | mmichelson | 2009-03-31 17:00:01 -0500 (Tue, 31 Mar
	  2009) | 6 lines Fix crash that would occur if an empty member was
	  specified in queues.conf. (closes issue #14796) Reported by: pida
	  ........

2009-03-31 21:29 +0000 [r185581]  Kevin P. Fleming <kpfleming@digium.com>

	* main/utils.c, include/asterisk/stringfields.h: Optimizations to
	  the stringfields API This patch provides a number of
	  optimizations to the stringfields API, focused around saving (not
	  wasting) memory whenever possible. Thanks to Mark Michelson for
	  inspiring this work and coming up with the first two
	  optimizations that are represented here: Changes: - Cleanup of
	  some code, fix incorrect doxygen comments - When a field is
	  emptied or replaced with a new allocation, decrease the amount of
	  'active' space in the pool it was held in; if that pool reaches
	  zero active space, and is not the current pool, then free it as
	  it is no longer in use - When allocating a pool, try to allocate
	  a size that will fit in a 'standard' malloc() allocation without
	  wasting space - When allocating space for a field, store the
	  amount of space in the two bytes immediately preceding the field;
	  this eliminates the need to call strlen() on the field when
	  overwriting it, and more importantly it 'remembers' the amount of
	  space the field has available, even if a shorter string has been
	  stored in it since it was allocated - Don't automatically double
	  the size of each successive pool allocated; it's wasteful
	  http://reviewboard.digium.com/r/165/

2009-03-31 19:46 +0000 [r185469]  Mark Michelson <mmichelson@digium.com>

	* /, apps/app_voicemail.c: Merged revisions 185468 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r185468 | mmichelson | 2009-03-31 14:45:30 -0500 (Tue,
	  31 Mar 2009) | 8 lines Fix Russian voicemail intro to say the
	  word "messages" properly. (closes issue #14736) Reported by:
	  chappell Patches: voicemail_no_messages.diff uploaded by chappell
	  (license 8) ........

2009-03-31 19:07 +0000 [r185432]  Russell Bryant <russell@digium.com>

	* channels/chan_iax2.c: Improve performance of the code handling
	  the frame queue in chan_iax2. In my tests that exercised full
	  frame handling in chan_iax2, the version with these changes took
	  30% to 40% of the CPU time compared to the same test of Asterisk
	  trunk before these modifications. While doing some profiling for
	  <http://reviewboard.digium.com/r/205/>, one function that caught
	  my eye was network_thread() in chan_iax2.c. After the things that
	  I was working on there, it was the next target for analysis and
	  optimization. I used oprofile's source annotation functionality
	  and found that the loop traversing the frame queue in
	  network_thread() was to blame for the excessive CPU cycle
	  consumption. The frame_queue in chan_iax2 previously held all
	  frames that either were pending transmission or had been
	  transmitted and are still pending acknowledgment. In
	  network_thread(), the previous code would go back through the
	  main for loop after reading a single incoming frame or after
	  being signaled because a frame had been queued up for initial
	  transmission. In each iteration of the loop, it traverses the
	  entire frame queue looking for frames that need to be
	  transmitted. On a busy server, this could easily be quite a few
	  entries. This patch is actually quite simple. The frame_queue has
	  become only a list of frames pending acknowledgment. Frames that
	  need to be transmitted are queued up to a dedicated transmit
	  thread via the taskprocessor API. As a result, the code in
	  network_thread() becomes much simpler, as its only job is to read
	  incoming frames. In addition to the previously described changes,
	  this patch includes some additional changes to the frame_queue.
	  Instead of one big frame_queue, now there is a list per call
	  number to further reduce wasted list traversals. The biggest
	  impact of this change is in socket_process(). For additional
	  details on testing and test results, see the review request.
	  Review: http://reviewboard.digium.com/r/212/

2009-03-31 16:46 +0000 [r185363]  David Brooks <dbrooks@digium.com>

	* /, channels/chan_gtalk.c: Merged revisions 185362 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r185362 | dbrooks | 2009-03-31 11:37:12 -0500 (Tue, 31
	  Mar 2009) | 35 lines Fix incorrect parsing in chan_gtalk when
	  xmpp contains extra whitespaces To drill into the xmpp to find
	  the capabilities between channels, chan_gtalk calls iks_child()
	  and iks_next(). iks_child() and iks_next() are functions in the
	  iksemel xml parsing library that traverse xml nodes. The bug here
	  is that both iks_child() and iks_next() will return the next
	  iks_struct node *regardless* of type. chan_gtalk expects the next
	  node to be of type IKS_TAG, which in most cases, it is, but in
	  this case (a call being made from the Empathy IM client), there
	  exists iks_struct nodes which are not IKS_TAG data (they are
	  extraneous whitespaces), and chan_gtalk doesn't handle that case,
	  so capabilities don't match, and a call cannot be made.
	  iks_first_tag() and iks_next_tag(), on the other hand, will not
	  return the very next iks_struct, but will check to see if the
	  next iks_struct is of type IKS_TAG. If it isn't, it will be
	  skipped, and the next struct of type IKS_TAG it finds will be
	  returned. This assures that chan_gtalk will find the iks_struct
	  it is looking for. This fix simply changes all calls to
	  iks_child() and iks_next() to become calls to iks_first_tag() and
	  iks_next_tag(), which resolves the capability matching. The
	  following is a payload listing from Empathy, which, due to the
	  extraneous whitespace, will not be parsed correctly by iksemel:
	  <iq from='dbrooksjab@235-22-24-10/Telepathy'
	  to='astjab@235-22-24-10/asterisk' type='set' id='542757715704'>
	  <session xmlns='http://www.google.com/session'
	  initiator='dbrooksjab@235-22-24-10/Telepathy' type='initiate'
	  id='1837267342'> <description
	  xmlns='http://www.google.com/session/phone'> <payload-type
	  clockrate='16000' name='speex' id='96'/> <payload-type
	  clockrate='8000' name='PCMA' id='8'/> <payload-type
	  clockrate='8000' name='PCMU' id='0'/> <payload-type
	  clockrate='90000' name='MPA' id='97'/> <payload-type
	  clockrate='16000' name='SIREN' id='98'/> <payload-type
	  clockrate='8000' name='telephone-event' id='99'/> </description>
	  </session> </iq> Review: http://reviewboard.digium.com/r/181/
	  ........

2009-03-31 14:53 +0000 [r185261]  Russell Bryant <russell@digium.com>

	* apps/app_queue.c: Don't free() an astobj2 object. (closes issue
	  #14672) Reported by: makoto

2009-03-31 14:07 +0000 [r185197]  Joshua Colp <jcolp@digium.com>

	* /, main/audiohook.c: Merged revisions 185196 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r185196 | file | 2009-03-31 11:06:39 -0300 (Tue, 31 Mar 2009) | 8
	  lines Fix crash when moving audiohooks between channels. Handle
	  the scenario where we are called to move audiohooks between
	  channels and the source channel does not actually have any on it.
	  (closes issue #14734) Reported by: corruptor ........

2009-03-30 20:42 +0000 [r185122-185123]  Richard Mudgett <rmudgett@digium.com>

	* /, configs/misdn.conf.sample, channels/misdn_config.c: Merged
	  revisions 185121 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r185121 | rmudgett | 2009-03-30 15:40:11 -0500 (Mon, 30 Mar 2009)
	  | 1 line Update the channel allocation method documentation.
	  ........

	* /, channels/misdn/isdn_lib.c: Merged revisions 185120 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r185120 | rmudgett | 2009-03-30 15:38:11 -0500 (Mon, 30 Mar 2009)
	  | 19 lines Make chan_misdn BRI TE side normally defer channel
	  selection to the NT side. Channel allocation collisions are not
	  handled by chan_misdn very well. This patch simply avoids the
	  problem for BRI only. For PRI, allocation collisions are still
	  possible but less likely since there are simply more channels
	  available and each end could use a different allocation strategy.
	  misdn.conf options available: te_choose_channel - Use to force
	  the TE side to allocate channels. method - Specify the channel
	  allocation strategy. (closes issue #13488) Reported by:
	  Christian_Pinedo Patches: isdn_lib.patch.txt uploaded by crich
	  Tested by: crich, siepkes, festr ........

2009-03-30 16:26 +0000 [r185072]  Mark Michelson <mmichelson@digium.com>

	* /, apps/app_queue.c: Merged revisions 185031 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r185031 | mmichelson | 2009-03-30 11:17:35 -0500 (Mon, 30 Mar
	  2009) | 39 lines Fix queue weight behavior so that calls in
	  low-weight queues are not inappropriately blocked. (This is
	  copied and pasted from the review request I made for this patch)
	  Asterisk has some odd behavior when queue weights are used. The
	  current logic used when potentially calling a queue member is: If
	  the member we are going to call is part of another queue and
	  _that other queue has any callers in it_ and has a higher weight
	  than the queue we are calling from, then don't try to contact
	  that member. The issue here is what I have marked with
	  underscores. If the higher-weighted queue has any callers in it
	  at all, then the queue member will be unreachable from the
	  lower-weighted queue. This has the potential to be really really
	  bad if using a queue strategy, such as leastrecent or
	  fewestcalls, with the potential to call the same member
	  repeatedly. The fix proposed by garychen on issue 13220 is very
	  simple and, as far as I can see, works well for this situation.
	  With this set of changes, the logic used becomes: If the member
	  we are going to call is part of another queue, the other queue
	  has a higher weight than the queue we are calling from, and the
	  higher weight queue has at least as many callers as available
	  members, then do not try to contact the queue member. If the
	  higher weighted queue has fewer callers than available members,
	  then there is no reason to deny the call to this member since the
	  other queue can afford to spare a member. Since the fix involved
	  writing a generic function for determining the number of
	  available members in the queue, I also modified the is_our_turn
	  function to make use of the new num_available_members function to
	  determine if it is our turn to try calling a member. There is one
	  small behavior change. Before writing this patch, if you had
	  autofill disabled, then if you were the head caller in a queue,
	  you would automatically be told that it was your turn to try
	  calling a member. This did not take into account whether there
	  were actually any queue members available to take the call. Now
	  we actually make sure there is at least one member available to
	  take the call if autofill is disabled. (closes issue #13220)
	  Reported by: garychen Review:
	  http://reviewboard.digium.com/r/202/ ........

2009-03-30 14:37 +0000 [r184948]  Joshua Colp <jcolp@digium.com>

	* /, channels/chan_sip.c: Merged revisions 184947 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r184947 | file | 2009-03-30 11:35:47 -0300 (Mon, 30 Mar 2009) |
	  14 lines Improve our handling of T38 in the initial INVITE from a
	  device. We now answer with matching media streams to what is
	  requested. If an INVITE is received with both a T38 and RTP media
	  stream this means we answer with both. For any outgoing calls
	  created as a result of this inbound one no T38 is requested in
	  the initial INVITE. Instead if we start receiving udptl packets
	  we trigger a reinvite on the outbound side. (closes issue #12437)
	  Reported by: marsosa Tested by: pinga-fogo, okrief, file, afu
	  Review: http://reviewboard.digium.com/r/208/ ........

2009-03-30 13:55 +0000 [r184910]  Russell Bryant <russell@digium.com>

	* channels/h323/Makefile.in: Fix build error when chan_h323 is not
	  being built. (reported by cai1982 in #asterisk-dev)

2009-03-29 05:52 +0000 [r184838-184843]  Russell Bryant <russell@digium.com>

	* /, apps/app_followme.c: Merged revisions 184842 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r184842 | russell | 2009-03-29 00:51:55 -0500 (Sun, 29 Mar 2009)
	  | 5 lines Ensure targs variable is fully initialized. (closes
	  issue #14758) Reported by: tim_ringenbach ........

	* channels/Makefile: Simplify chan_h323 build to not require a
	  second run of "make". (closes issue #14715) Reported by: jthurman
	  Patches: h323-makefile-1.6.2.0-beta1.patch uploaded by jthurman
	  (license 614) Tested by: tzafrir, russell

2009-03-27 20:08 +0000 [r184798-184801]  Leif Madsen <lmadsen@digium.com>

	* apps/app_ices.c: Fix a typo in app_ices. (closes issue #14765)
	  Reported by: timeshell Patches: app_ices.svn-1.6.0.diff uploaded
	  by timeshell (license 399)

	* include/asterisk/doxyref.h: Update commit message guidelines in
	  re: to punctuation. The doxygen documentation has now been
	  updated to state explicitly that I want punctuation atthe end of
	  the first sentence in a commit message. :).

2009-03-27 19:10 +0000 [r184762]  Kevin P. Fleming <kpfleming@digium.com>

	* main/channel.c, bridges/bridge_softmix.c,
	  include/asterisk/timing.h, include/asterisk/channel.h,
	  channels/chan_iax2.c, main/timing.c: Improve timing interface to
	  remember which provider provided a timer The ability to
	  load/unload timing interfaces is nice, but it means that when a
	  timer is allocated, it may come from provider A, but later
	  provider B becomes the 'preferred' provider. If this happens, all
	  timer API calls on the timer that was provided by provider A will
	  actually be handed to provider B, which will say WTF and return
	  an error. This patch changes the timer API to include a pointer
	  to the provider of the timer handle so that future operations on
	  the timer will be forwarded to the proper provider. (closes issue
	  #14697) Reported by: moy Review:
	  http://reviewboard.digium.com/r/211/

2009-03-27 18:04 +0000 [r184693-184726]  Russell Bryant <russell@digium.com>

	* main/manager.c, apps/app_minivm.c: Use ast_random() instead of
	  rand() to ensure we use the best RNG available.

	* include/asterisk/app.h, apps/app_dumpchan.c, main/app.c,
	  apps/app_queue.c, apps/app_voicemail.c, main/cli.c: Change
	  global_app_buf to ast_str_thread_global_buf.

2009-03-27 15:57 +0000 [r184639-184677]  Joshua Colp <jcolp@digium.com>

	* bridges/bridge_softmix.c: Fix a potential timer leak in
	  bridge_softmix. It is possible for a bridge to be created without
	  actually being used. In that scenario a timing file descriptor
	  would be opened and not closed. To fix this the timing file
	  descriptor is now closed in the destroy callback, not the thread
	  function.

	* res/res_agi.c: Fix speech structure leak in the AGI speech
	  recognition integration. The AGI dialplan applications did not
	  destroy the speech structure automatically if it was not
	  destroyed by the running AGI script. They will now do this.
	  (issue LUMENVOX-15)

	* bridges/bridge_softmix.c: Remove a cast that is not needed.

2009-03-27 14:00 +0000 [r184630]  Russell Bryant <russell@digium.com>

	* include/asterisk/utils.h, main/pbx.c, res/ais/evt.c,
	  main/event.c, pbx/pbx_dundi.c, main/asterisk.c: Change g_eid to
	  ast_eid_default.

2009-03-27 13:57 +0000 [r184566-184628]  Joshua Colp <jcolp@digium.com>

	* bridges/bridge_softmix.c: Fix a potential race condition when
	  creating a software based mixing bridge. It was possible for no
	  timer to become available between creating the bridge and
	  starting it. We now open a timer when creating it and keep it
	  open until the bridge is destroyed.

	* /, channels/chan_sip.c: Merged revisions 184565 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r184565 | file | 2009-03-27 10:06:45 -0300 (Fri, 27 Mar 2009) | 9
	  lines Fix an issue where nat=yes would not always take effect for
	  the RTP session on outgoing calls. If calls were placed using an
	  IP address or hostname the global nat setting was copied over but
	  was not set on the RTP session itself. This caused the RTP stack
	  to not perform symmetric RTP actions. (closes issue #14546)
	  Reported by: acunningham ........

2009-03-27 02:20 +0000 [r184512-184531]  Russell Bryant <russell@digium.com>

	* include/asterisk/lock.h: Fix some issues with rwlock corruption
	  that caused deadlock like symptoms. When dvossel and I were doing
	  some load testing last week, we noticed that we could make
	  Asterisk trunk lock up instantly when we started generating a
	  bunch of calls. The backtraces of locked threads were bizarre,
	  and many were stuck on an _unlock_ of an rwlock. The changes are:
	  1) Fix a number of places where a backtrace would be loaded into
	  an invalid index of the backtrace array. It's an off by one
	  error, which ends up writing over the rwlock itself. 2) Ensure
	  that in the array of held locks, we NULL out an index once it is
	  not being used so that it's not confusing when analyzing its
	  contents. 3) Remove a bunch of logging referring to an rwlock
	  operating being done with "deep reentrancy". It is normal for
	  _many_ threads to hold a read lock on an rwlock.

	* main/file.c: Don't act surprised if we get a -1 indication.

	* main/heap.c, include/asterisk/heap.h: Pass more useful
	  information through to lock tracking when DEBUG_THREADS is on.

2009-03-26 22:18 +0000 [r184448]  Kevin P. Fleming <kpfleming@digium.com>

	* /, sounds/Makefile: Merged revisions 184447 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r184447 | kpfleming | 2009-03-26 17:17:32 -0500 (Thu, 26 Mar
	  2009) | 3 lines use new, improved 8kHz prompts ........

2009-03-26 21:09 +0000 [r184389]  David Vossel <dvossel@digium.com>

	* /, apps/app_test.c: Merged revisions 184388 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r184388 | dvossel | 2009-03-26 16:07:32 -0500 (Thu, 26 Mar 2009)
	  | 8 lines pri loop TestClient/TestServer fails: server SEND DTMF
	  8 app_test was failing when sending the last DTMF digit, 8,
	  because of the 100ms pause issued after DTMF is sent. During this
	  pause the other side would hang up causing the test to look like
	  it failed. Now the other side waits a second before hanging up.
	  (closes issue #12442) Reported by: tzafrir ........

2009-03-25 22:11 +0000 [r184339-184344]  Russell Bryant <russell@digium.com>

	* main/event.c: Remove unneeded AST_LIST_ENTRY() and comment on the
	  purpose of ast_event_ref.

	* channels/chan_unistim.c, channels/chan_dahdi.c,
	  include/asterisk/devicestate.h, include/asterisk/event.h,
	  channels/chan_sip.c, apps/app_minivm.c, res/ais/evt.c,
	  main/devicestate.c, main/event.c, include/asterisk/_private.h,
	  include/asterisk/strings.h, channels/chan_iax2.c,
	  main/asterisk.c, channels/chan_mgcp.c, apps/app_voicemail.c:
	  Improve performance of the ast_event cache functionality. This
	  code comes from svn/asterisk/team/russell/event_performance/.
	  Here is a summary of the changes that have been made, in order of
	  both invasiveness and performance impact, from smallest to
	  largest. 1) Asterisk 1.6.1 introduces some additional logic to be
	  able to handle distributed device state. This functionality comes
	  at a cost. One relatively minor change in this patch is that the
	  extra processing required for distributed device state is now
	  completely bypassed if it's not needed. 2) One of the things that
	  I noticed when profiling this code was that a _lot_ of time was
	  spent doing string comparisons. I changed the way strings are
	  represented in an event to include a hash value at the front. So,
	  before doing a string comparison, we do an integer comparison on
	  the hash. 3) Finally, the code that handles the event cache has
	  been re-written. I tried to do this in a such a way that it had
	  minimal impact on the API. I did have to change one API call,
	  though - ast_event_queue_and_cache(). However, the way it works
	  now is nicer, IMO. Each type of event that can be cached (MWI,
	  device state) has its own hash table and rules for hashing and
	  comparing objects. This by far made the biggest impact on
	  performance. For additional details regarding this code and how
	  it was tested, please see the review request. (closes issue
	  #14738) Reported by: russell Review:
	  http://reviewboard.digium.com/r/205/

2009-03-25 19:22 +0000 [r184280]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Fix issue with a T38 reinvite being sent
	  even if not configured to do so. If we receive a T38 request
	  negotiate control frame we should only attempt to do so if the
	  option is enabled on the dialog.

2009-03-25 14:38 +0000 [r184220]  Eliel C. Sardanons <eliels@gmail.com>

	* /, main/asterisk.c: Merged revisions 184188 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r184188 | eliel | 2009-03-25 10:12:54 -0400 (Wed, 25 Mar 2009) |
	  13 lines Avoid destroying the CLI line when moving the cursor
	  backward and trying to autocomplete. When moving the cursor
	  backward and pressing TAB to autocomplete, a NULL is put in the
	  line and we are loosing what we have already wrote after the
	  actual cursor position. (closes issue #14373) Reported by: eliel
	  Patches: asterisk.c.patch uploaded by eliel (license 64) Tested
	  by: lmadsen ........

2009-03-25 14:33 +0000 [r184147-184219]  Russell Bryant <russell@digium.com>

	* main/timing.c: Include poll-compat.h

	* main/timing.c: Change poll() to ast_poll().

	* utils/Makefile, include/asterisk/compat.h: Fix build issues on
	  Mac OSX. (closes issue #14714) Reported by: ygor

2009-03-24 22:40 +0000 [r184079]  Mark Michelson <mmichelson@digium.com>

	* /, apps/app_senddtmf.c: Merged revisions 184078 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r184078 | mmichelson | 2009-03-24 17:34:45 -0500 (Tue, 24 Mar
	  2009) | 9 lines Change NULL pointer check to be ast_strlen_zero.
	  The 'digit' variable is guaranteed to be non-NULL, so the if
	  statement could never evaluate true. Changing to ast_strlen_zero
	  makes the logic correct. This was found while reviewing
	  ast_channel_ao2 code review. ........

2009-03-24 22:00 +0000 [r184037-184043]  Russell Bryant <russell@digium.com>

	* main/channel.c: Put siren7 and siren14 in ast_best_codec() just
	  so they're in there somewhere.

	* channels/chan_iax2.c: Exclude slin16, siren7, and siren14 from
	  bandwidth=low and =medium The default codec configuration for
	  chan_iax2 is bandwidth=low. I noticed slin16 being negotiated as
	  the codec in some test calls, but that no longer happens after
	  this change.

2009-03-24 20:01 +0000 [r183995]  David Vossel <dvossel@digium.com>

	* channels/chan_sip.c, configs/sip.conf.sample, CHANGES: SIP
	  preferred codec only feature Added an option to respond to a SIP
	  invite with only the single most preferred joint codec. This
	  limits the options of what codecs the other side can use. (closes
	  issue #12485) Reported by: bamby Review:
	  http://reviewboard.digium.com/r/206/

2009-03-24 15:26 +0000 [r183865-183914]  Tilghman Lesher <tlesher@digium.com>

	* /, configs/voicemail.conf.sample: Merged revisions 183913 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r183913 | tilghman | 2009-03-24 10:25:42 -0500 (Tue, 24 Mar 2009)
	  | 3 lines Additionally note that the operator option needs an 'o'
	  extension. (Related to issue #14731) ........

	* main/http.c: Allow browsers to cache images and other static
	  content.

2009-03-23 22:35 +0000 [r183831]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_misdn.c, channels/misdn/Makefile,
	  channels/misdn/chan_misdn_config.h, channels/misdn/ie.c,
	  channels/misdn/isdn_msg_parser.c, channels/misdn/portinfo.c,
	  channels/misdn/isdn_lib.c, channels/misdn_config.c: Removed
	  trailing whitespace in chan_misdn files.

2009-03-23 18:58 +0000 [r183766]  Mark Michelson <mmichelson@digium.com>

	* /, res/res_monitor.c: Merged revisions 183700 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r183700 | mmichelson | 2009-03-23 12:59:28 -0500 (Mon, 23 Mar
	  2009) | 7 lines Fix a memory leak in res_monitor.c The only way
	  that this leak would occur is if Monitor were started using the
	  Manager interface and no File: header were given. Discovered
	  while reviewing the ast_channel_ao2 review request. ........

2009-03-23 18:06 +0000 [r183701]  Leif Madsen <lmadsen@digium.com>

	* channels/chan_dahdi.c: Fixes a documentation error introduced
	  during the CLI cleanup at AstriDevCon 2008. (closes issue #14655)
	  Reported by: ulogic Patches: chan_dahdi.patch uploaded by ulogic
	  (license 728) Tested by: lmadsen

2009-03-22 21:00 +0000 [r183652]  Joshua Colp <jcolp@digium.com>

	* main/bridging.c: Fix a minor logic flaw with the bridge generic
	  thread. We only want to move the channel pointers that are
	  actually present.

2009-03-20 17:00 +0000 [r183560]  Russell Bryant <russell@digium.com>

	* /, channels/chan_iax2.c: Merged revisions 183559 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r183559 | russell | 2009-03-20 11:53:25 -0500 (Fri, 20
	  Mar 2009) | 2 lines Fix a crash in IAX2 registration handling
	  found during load testing with dvossel. ........

2009-03-20 16:25 +0000 [r183553-183555]  Mark Michelson <mmichelson@digium.com>

	* channels/chan_sip.c: Fix chan_sip so it builds.

	* include/asterisk/rtp.h, main/rtp.c, main/asterisk.exports: Remove
	  symbols I just added to main/asterisk.exports and instead rename
	  the functions.

	* main/asterisk.exports: Add some missing symbols to
	  main/asterisk.exports Hey! chan_sip.so loads now!

2009-03-20 12:12 +0000 [r183511]  Eliel C. Sardanons <eliels@gmail.com>

	* channels/chan_dahdi.c: Remove duplicate <description> inside the
	  xml documentation.

2009-03-19 20:30 +0000 [r183436]  David Vossel <dvossel@digium.com>

	* apps/app_dial.c, /, main/features.c, include/asterisk/features.h:
	  Merged revisions 183386 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r183386 | dvossel | 2009-03-19 14:40:07 -0500 (Thu, 19 Mar 2009)
	  | 6 lines Cleaning up a few things in detect disconnect patch
	  Initialized ast_call_feature in detect_disconnect to avoid
	  accessing uninitialized memory. Cleaned up /param tags in
	  features.h. No longer send dynamic features in
	  ast_feature_detect. issue #11583 ........

2009-03-19 19:22 +0000 [r183321-183345]  Tilghman Lesher <tlesher@digium.com>

	* /: Recorded merge of revisions 183342 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r183342 | tilghman | 2009-03-19 14:21:30 -0500 (Thu, 19 Mar 2009)
	  | 2 lines Reordering, to change prior to unlocking ........

	* channels/chan_dahdi.c, /: Merged revisions 183319 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r183319 | tilghman | 2009-03-19 14:15:33 -0500 (Thu, 19
	  Mar 2009) | 8 lines Delay signalling progress until a PRI channel
	  really signals progress. (closes issue #13034) Reported by:
	  klaus3000 Patches: 20090316__bug13034.diff.txt uploaded by
	  tilghman (license 14) patch_trunk_183progress_klaus3000.txt
	  uploaded by klaus3000 (license 65) Tested by: klaus3000 ........

2009-03-19 18:34 +0000 [r183312]  Jason Parker <jparker@digium.com>

	* /, main/asterisk.exports: Merged revisions 183291 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r183291 | qwell | 2009-03-19 13:28:16 -0500 (Thu, 19 Mar
	  2009) | 1 line Export some more required symbols. ........

2009-03-19 18:10 +0000 [r183244]  Mark Michelson <mmichelson@digium.com>

	* apps/app_queue.c: Fix a memory leak associated with queues. For
	  every attempt that app_queue made to place an outbound call to a
	  queue member, we would allocate a queue_end_bridge structure.
	  When the bridge for the call had completed, we would free the
	  structure. Unfortunately not all call attempts actually end up
	  bridged to a member, so we need to be more selective of when to
	  allocate the structure. With this change, the allocation occurs
	  in an area where we can guarantee that the call will be bridged.
	  (closes issue #14680) Reported by: caspy Patches: 14680.patch
	  uploaded by mmichelson (license 60) Tested by: caspy

2009-03-19 18:00 +0000 [r183239-183242]  Russell Bryant <russell@digium.com>

	* /, configure, include/asterisk/autoconfig.h.in, configure.ac,
	  main/loader.c: Merged revisions 183241 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r183241 | russell | 2009-03-19 12:52:52 -0500 (Thu, 19 Mar 2009)
	  | 2 lines Remove the use of RTLD_NOLOAD, as it is not behaving
	  like expected. ........

	* /, main/asterisk.exports: Merged revisions 183238 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r183238 | russell | 2009-03-19 12:41:39 -0500 (Thu, 19
	  Mar 2009) | 1 line Allow the AES API to work. ........

2009-03-19 17:00 +0000 [r183196]  Tilghman Lesher <tlesher@digium.com>

	* res/res_odbc.exports: 2 symbols defined when DEBUG_THREADS

2009-03-19 16:28 +0000 [r183172]  David Vossel <dvossel@digium.com>

	* apps/app_dial.c, /, main/features.c, include/asterisk/features.h:
	  Merged revisions 183126 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r183126 | dvossel | 2009-03-19 11:15:16 -0500 (Thu, 19 Mar 2009)
	  | 17 lines Allow disconnect feature before a call is bridged
	  feature.conf has a disconnect option. By default this option is
	  set to '*', but it could be anything. If a user wishes to
	  disconnect a call before the other side answers, only '*' will
	  work, regardless if the disconnect option is set to something
	  else. This is because features are unavailable until bridging
	  takes place. The default disconnect option, '*', was hardcoded in
	  app_dial, which doesn't make any sense from a user perspective
	  since they may expect it to be something different. This patch
	  allows features to be detected from outside of the bridge, but
	  not operated on. In this case, the disconnect feature can be
	  detected before briding and handled outside of features.c.
	  (closes issue #11583) Reported by: sobomax Patches:
	  patch-apps__app_dial.c uploaded by sobomax (license 359)
	  11583.latest-patch uploaded by murf (license 17)
	  detect_disconnect.diff uploaded by dvossel (license 671) Tested
	  by: sobomax, dvossel Review: http://reviewboard.digium.com/r/195/
	  ........

2009-03-19 16:22 +0000 [r183124-183148]  Russell Bryant <russell@digium.com>

	* /, main/asterisk.exports: Merged revisions 183145 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r183145 | russell | 2009-03-19 11:21:56 -0500 (Thu, 19
	  Mar 2009) | 1 line Add missing semicolon in exports script.
	  ........

	* /, main/asterisk.exports: Merged revisions 183123 via svnmerge
	  from https://origsvn.digium.com/svn/asterisk/branches/1.4
	  ........ r183123 | russell | 2009-03-19 11:13:18 -0500 (Thu, 19
	  Mar 2009) | 2 lines Allow the CallerID API to work again.
	  ........

2009-03-19 16:07 +0000 [r183117]  Mark Michelson <mmichelson@digium.com>

	* /, channels/chan_sip.c: Merged revisions 183115 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r183115 | mmichelson | 2009-03-19 11:04:02 -0500 (Thu, 19 Mar
	  2009) | 14 lines Fix an issue where cancelled outgoing SIP calls
	  would erroneously report the device as "in use." A user was
	  having an issue where if an outgoing SIP call was canceled, the
	  SIP device would remain in use if we had not received any
	  response to the initial INVITE we sent out. The SIP device would
	  remain in use until the autocongestion timer was exhausted. I
	  tracked down the cause of this to be the section of code I am
	  removing here. I asked several people what the purpose of this
	  code was meant to be, but no one could give me any sort of answer
	  as to why this was here. The person who was having this issue has
	  been using this patch for several months and it has stopped the
	  problems they have had. AST-196 ........

2009-03-19 15:37 +0000 [r183057-183108]  Joshua Colp <jcolp@digium.com>

	* channels/chan_sip.c: Improve our triggering of a T38 switchover
	  internally when triggered by a received reinvite. Previously we
	  reached across the channel bridge to get the other party's SIP
	  dialog structure in order to trigger an outgoing reinvite. This
	  is extremely dangerous to do and only works if bridged to another
	  SIP channel. This patch changes this to use the T38 control frame
	  method of requesting a switchover. This change also causes the
	  SIP channel driver to propogate back whether the switchover
	  worked or not instead of blindly accepting the incoming T38
	  reinvite. Review: http://reviewboard.digium.com/r/200/

	* main/channel.c: Fix an issue where a T38 control frame would get
	  dropped. If two channels were bridged together using a generic
	  bridge the T38 control frame would get passed up instead of being
	  indicated on the other channel.

2009-03-18 21:28 +0000 [r183032]  Kevin P. Fleming <kpfleming@digium.com>

	* res/res_ael_share.exports (added): allow this module to export
	  everything for now

2009-03-18 21:18 +0000 [r183028]  Jeff Peeler <jpeeler@digium.com>

	* channels/h323/ast_h323.cxx: Add some code removed by mistake from
	  commit 182722 that works around a file descriptor leak in
	  versions of PWLib prior to 1.12.0.

2009-03-18 19:41 +0000 [r182960]  Tilghman Lesher <tlesher@digium.com>

	* main/asterisk.exports: Fixing a lost symbol in manager.c

2009-03-18 11:40 +0000 [r182848-182883]  Kevin P. Fleming <kpfleming@digium.com>

	* include/asterisk/callerid.h, channels/chan_dahdi.c, /,
	  main/callerid.c: Merged revisions 182882 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r182882 | kpfleming | 2009-03-18 06:31:41 -0500 (Wed, 18 Mar
	  2009) | 3 lines fix another symbol namespace issue (reported by
	  Andrew on asterisk-dev) ........

	* res/res_phoneprov.c, res/res_config_ldap.c, res/res_curl.c,
	  res/res_config_sqlite.c, res/res_jabber.exports, res/res_odbc.c,
	  res/res_odbc.exports: a few more namespace updates...
	  res_ael_share still needs some work before this can be merged to
	  other release branches

2009-03-18 02:28 +0000 [r182847]  Russell Bryant <russell@digium.com>

	* apps/app_nbscat.c, /, main/Makefile,
	  include/asterisk/autoconfig.h.in, configure.ac, main/utils.c,
	  include/asterisk/io.h, include/asterisk/channel.h, main/poll.c,
	  main/io.c, main/channel.c, channels/chan_skinny.c, configure,
	  apps/app_mp3.c, res/res_agi.c, channels/chan_alsa.c,
	  include/asterisk/poll-compat.h, main/asterisk.c: Merged revisions
	  182810 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r182810 | russell | 2009-03-17 21:09:13 -0500 (Tue, 17 Mar 2009)
	  | 44 lines Fix cases where the internal poll() was not being used
	  when it needed to be. We have seen a number of problems caused by
	  poll() not working properly on Mac OSX. If you search around,
	  you'll find a number of references to using select() instead of
	  poll() to work around these issues. In Asterisk, we've had poll.c
	  which implements poll() using select() internally. However, we
	  were still getting reports of problems. vadim investigated a bit
	  and realized that at least on his system, even though we were
	  compiling in poll.o, the system poll() was still being used. So,
	  the primary purpose of this patch is to ensure that we're using
	  the internal poll() when we want it to be used. The changes are:
	  1) Remove logic for when internal poll should be used from the
	  Makefile. Instead, put it in the configure script. The logic in
	  the configure script is the same as it was in the Makefile.
	  Ideally, we would have a functionality test for the problem, but
	  that's not actually possible, since we would have to be able to
	  run an application on the _target_ system to test poll()
	  behavior. 2) Always include poll.o in the build, but it will be
	  empty if AST_POLL_COMPAT is not defined. 3) Change uses of poll()
	  throughout the source tree to ast_poll(). I feel that it is good
	  practice to give the API call a new name when we are changing its
	  behavior and not using the system version directly in all cases.
	  So, normally, ast_poll() is just redefined to poll(). On systems
	  where AST_POLL_COMPAT is defined, ast_poll() is redefined to
	  ast_internal_poll(). 4) Change poll() in main/poll.c to be
	  ast_internal_poll(). It's worth noting that any code that still
	  uses poll() directly will work fine (if they worked fine before).
	  So, for example, out of tree modules that are using poll() will
	  not stop working or anything. However, for modules to work
	  properly on Mac OSX, ast_poll() needs to be used. (closes issue
	  #13404) Reported by: agalbraith Tested by: russell, vadim
	  http://reviewboard.digium.com/r/198/ ........

2009-03-18 02:21 +0000 [r182826]  Kevin P. Fleming <kpfleming@digium.com>

	* res/res_config_pgsql.c, /, res/res_snmp.c, res/res_smdi.exports
	  (added), main/Makefile, include/asterisk/astobj2.h,
	  res/res_agi.exports (added), Makefile.rules, main/astobj2.c,
	  main/asterisk.exports (added), res/res_odbc.exports (added),
	  res/res_speech.exports (added), res/res_config_odbc.c,
	  res/res_features.exports (added), build_tools/strip_nonapi
	  (removed), res/res_adsi.exports (added), default.exports (added),
	  makeopts.in, res/res_jabber.exports (added),
	  res/res_monitor.exports (added): Merged revisions 182808 via
	  svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r182808 | kpfleming | 2009-03-17 20:55:22 -0500 (Tue, 17 Mar
	  2009) | 5 lines Improve the build system to *properly* remove
	  unnecessary symbols from the runtime global namespace. Along the
	  way, change the prefixes on some internal-only API calls to use a
	  common prefix. With these changes, for a module to export symbols
	  into the global namespace, it must have *both* the
	  AST_MODFLAG_GLOBAL_SYMBOLS flag and a linker script that allows
	  the linker to leave the symbols exposed in the module's .so file
	  (see res_odbc.exports for an example). ........

2009-03-17 21:28 +0000 [r182762]  Russell Bryant <russell@digium.com>

	* funcs/func_channel.c, CHANGES: Add support for the "name" option
	  in the CHANNEL() function. Review:
	  http://reviewboard.digium.com/r/199/

2009-03-17 20:47 +0000 [r182722]  Jeff Peeler <jpeeler@digium.com>

	* channels/h323/compat_h323.cxx, channels/h323/ast_h323.cxx,
	  configure, autoconf/ast_check_openh323.m4,
	  channels/h323/compat_h323.h, channels/chan_h323.c,
	  channels/h323/ast_h323.h, channels/h323/chan_h323.h: Allow H.323
	  Plus library to be used in addition to the OpenH323 library
	  Chan_h323 can now be compiled against both the previously
	  supported versions of OpenH323 as well as the current H.323 Plus
	  (version 1.20.2). The configure script has been modified to look
	  in the default install location of h323 to hopefully help avoid
	  using the environment variables OPENH323DIR and PWLIBDIR. Also,
	  the CLI command "h323 show version" has been added which
	  indicates which version of h323 is in use. (closes issue #11261)
	  Reported by: vhatz Patches: asterisk-1.6.0.6-h323plus.patch
	  uploaded by jthurman (license 614)

2009-03-17 18:06 +0000 [r182596-182607]  David Vossel <dvossel@digium.com>

	* CHANGES: Fixing CHANGES in rev 182596. Progress DTMF was added
	  into app_dial's D() option. In CHANGES it should have been
	  updated under 1.6.3 rather than 1.6.2.

	* apps/app_dial.c, CHANGES: Option to send DTMF when receiving
	  PROGRESS status The D() option in app_dial is only able to send
	  DTMF after the call has been answered. A progress option has been
	  added to D() to allow DTMF to be sent upon receiving PROGRESS.
	  This allows DTMF to be sent before the call is answered. (closes
	  issue #12123) Reported by: VoipForces Patches:
	  app_dial.c_patch_trunk_valid uploaded by VoipForces (license 419)
	  dtmf_progress.patch uploaded by dvossel (license 671) Tested by:
	  VoipForces, dvossel

2009-03-17 15:22 +0000 [r182553]  Russell Bryant <russell@digium.com>

	* main/channel.c: Tweak the handling of the frame list inside of
	  ast_answer(). This does not change any behavior, but moves the
	  frames from the local frame list back to the channel read queue
	  using an O(n) algorithm instead of O(n^2).

2009-03-17 14:59 +0000 [r182525-182530]  Kevin P. Fleming <kpfleming@digium.com>

	* main/channel.c: correct logic flaw in ast_answer() changes in
	  r182525

	* main/channel.c, main/features.c, include/asterisk/channel.h:
	  Improve behavior of ast_answer() to not lose incoming frames
	  ast_answer(), when supplied a delay before returning to the
	  caller, use ast_safe_sleep() to implement the delay.
	  Unfortunately during this time any incoming frames are discarded,
	  which is problematic for T.38 re-INVITES and other sorts of
	  channel operations. When a delay is not passed to ast_answer(),
	  it still delays for up to 500 milliseconds, waiting for media to
	  arrive. Again, though, it discards any control frames, or
	  non-voice media frames. This patch rectifies this situation, by
	  storing all incoming frames during the delay period on a list,
	  and then requeuing them onto the channel before returning to the
	  caller. http://reviewboard.digium.com/r/196/

2009-03-17 14:24 +0000 [r182521]  Sean Bright <sean@malleable.com>

	* autoconf/ast_ext_lib.m4: Don't include a space before the
	  optional extra text that may follow a help string.

2009-03-17 05:51 +0000 [r182450]  Tilghman Lesher <tlesher@digium.com>

	* /, main/db.c: Merged revisions 182449 via svnmerge from
	  https://origsvn.digium.com/svn/asterisk/branches/1.4 ........
	  r182449 | tilghman | 2009-03-17 00:50:52 -0500 (Tue, 17 Mar 2009)
	  | 7 lines Fix race in astdb The underlying db1 implementation
	  does not fully isolate the pages retrieved from astdb, so the
	  lock protecting accesses needs to be extended until the copy from
	  the shared memory structure is done. (closes issue #14682)
	  Reported by: makoto ........

2009-03-17 01:54 +0000 [r182408]  Richard Mudgett <rmudgett@digium.com>

	* channels/chan_dahdi.c: OPENR2 uses an incorrect string value if
	  the extension delimiter is not present. * Fixed OPENR2 using an
	  incorrect string value if the extension delimiter is not present
	  in the Dial() function. This was fixed for SS7 and PRI in trunk
	  -r172400. * Made OPENR2 stripmsd behavior the same as the SS7,
	  PRI, and others. * Removed trailing whitespace that appeared with
	  OPENR2.

2009-03-16 20:53 +0000 [r182362]  Russell Bryant <russell@digium.com>

	* UPGRADE.txt, CHANGES: Update UPGRADE.txt and CHANGES for 1.6.3