Beispiel #1
0
        private void btnListen_Click(object sender, EventArgs e)
        {
            h323.Listen();

            btnListen.Enabled = false;
            btnCall.Enabled   = false;
            btnHangup.Enabled = false;
            btnAnswer.Enabled = false;
        }
Beispiel #2
0
        //, Image _remoteImage)  //calling
        //Image remoteImage;
        public VoiceForm(string _localIP, string _remoteSID)
        {
            InitializeComponent();

            localIP = _localIP;
            remoteIP = "";
            remoteSID = _remoteSID;
            //remoteImage = global::chatRoomClient.Properties.Resources.defaultImage;

            //remoteImageBox.BackgroundImage = remoteImage;
            label1.Text = remoteSID;

            h323 = new H323Class();

            h323.EnumSoundRx(); // 檢查語音輸入裝置
            h323.EnumSoundTx(); // 檢查語音輸出裝置
            h323.AutoAnswer = true;         // 自動答話
            h323.SilenceDetection = true;   // 靜音偵測

            h323.RemoteHost = localIP;
            h323.Listen();
        }
Beispiel #3
0
 private void button3_Click(object sender, System.EventArgs e)
 {
     h323.Listen();
 }