Esempio n. 1
0
 private void CallHandlerOnMyPhoneStatusChanged(object sender, MyPhoneStatus status)
 {
     this._currentPhoneStatus = status;
     Debug.WriteLine(">>>>>>>>>>>>>>>>>>> Phone status: " + status);
     Debug.WriteLine(">>>>>>>>>>>>>>>>>>> This Phone status: " + status);
     //this._voip._phoneStatus = status;
 }
Esempio n. 2
0
File: VoIP.cs Progetto: zfis/Call
        private void CallHandlerOnMyPhoneStatusChanged(object sender, MyPhoneStatus status)
        {
            this._phoneStatus = status;

            Debug.WriteLine(">>>>>>>>>>>>>>>>>>>>>>>>>>>> Phone status changed: " + status.ToString());

            var cmd = new BaseCmd();

            cmd.Action = "phone_status_changed";

            SendCommand(cmd);
        }
Esempio n. 3
0
File: VoIP.cs Progetto: zfis/Call
        public VoIP(IMyPhoneCallHandler handler, CallStatus callStatus, MyPhoneStatus phoneStatus)
        {
            this.handler      = handler;
            this._callStatus  = callStatus;
            this._phoneStatus = phoneStatus;

            serializer = new JavaScriptSerializer();

            handler.OnCallStatusChanged    += new CallInfoHandler(CallHandlerOnCallStatusChanged);
            handler.OnMyPhoneStatusChanged += new MyPhoneStatusHandler(CallHandlerOnMyPhoneStatusChanged);
            //Debug.WriteLine(">>>>>>>>>>>>>>>>>>> VoIP handler created.");
            //Debug.WriteLine(">>>>>>>>>>>>>>>>>>> call status: " + callStatus);
            //Debug.WriteLine(">>>>>>>>>>>>>>>>>>> phone status: " + phoneStatus);
        }
Esempio n. 4
0
 private void CallHandlerOnOnMyPhoneStatusChanged(object sender, MyPhoneStatus Status)
 {
 }