private async void recive_UDP()
        {
            byte[] receive_byte_array;

            Console.WriteLine("Test");

            try {
                AllocConsole();

                Thread viewerThread = new Thread(delegate() {
                    var callWindow = new CallWindow();
                    callWindow.Show();
                    System.Windows.Threading.Dispatcher.Run();
                });

                viewerThread.SetApartmentState(ApartmentState.STA); // needs to be STA or throws exception
                viewerThread.Start();
                var waudio = new Thread(new ThreadStart(recive_audio));
                waudio.Start();
            }
            catch (Exception e) {
                Console.WriteLine(e.ToString());
            }
        }
        private void openCallWindow()
        {
            CallWindow callWindow = new CallWindow();

            callWindow.ShowDialog();
        }