SEGMENT INFORMATION, REVENUES BY GEOGRAPHY AND SIGNIFICANT CUSTOMERS - Revenues by geography (Details) - USD ($)
$ in Thousands
3 Months Ended 12 Months Ended
Jun. 30, 2020
Mar. 31, 2020
Dec. 31, 2019
Sep. 30, 2019
Jun. 30, 2019
Mar. 31, 2019
Dec. 31, 2018
Sep. 30, 2018
Jun. 30, 2020
Jun. 30, 2019
Jun. 30, 2018
Segment Reporting Information [Line Items]                      
Total revenues $ 315,522 $ 337,417 $ 308,284 $ 323,277 $ 286,641 $ 284,911 $ 307,276 $ 282,905 $ 1,284,500 $ 1,161,733 $ 1,016,861
Revenue                      
Segment Reporting Information [Line Items]                      
Percentage of revenues                 100.00% 100.00% 100.00%
Service Provider Technology                      
Segment Reporting Information [Line Items]                      
Total revenues                 $ 442,023 $ 428,490 $ 446,600
Service Provider Technology | Revenue                      
Segment Reporting Information [Line Items]                      
Percentage of revenues                 34.00% 37.00% 44.00%
United States                      
Segment Reporting Information [Line Items]                      
Total revenues                 $ 539,000 $ 469,800 $ 390,600
Geographical location | North America                      
Segment Reporting Information [Line Items]                      
Total revenues                 $ 571,901 $ 497,218 $ 410,378
Geographical location | North America | Revenue                      
Segment Reporting Information [Line Items]                      
Percentage of revenues                 45.00% 43.00% 40.00%
Geographical location | Europe, the Middle East and Africa                      
Segment Reporting Information [Line Items]                      
Total revenues                 $ 517,132 $ 477,332 $ 411,388
Geographical location | Europe, the Middle East and Africa | Revenue                      
Segment Reporting Information [Line Items]                      
Percentage of revenues                 40.00% 41.00% 41.00%
Geographical location | Europe, the Middle East and Africa (EMEA)                      
Segment Reporting Information [Line Items]                      
Total revenues                 $ 112,121 $ 108,460 $ 102,844
Geographical location | Europe, the Middle East and Africa (EMEA) | Revenue                      
Segment Reporting Information [Line Items]                      
Percentage of revenues                 9.00% 9.00% 10.00%
Geographical location | South America                      
Segment Reporting Information [Line Items]                      
Total revenues                 $ 83,346 $ 78,723 $ 92,251
Geographical location | South America | Revenue                      
Segment Reporting Information [Line Items]                      
Percentage of revenues                 6.00% 7.00% 9.00%