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; }
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); }
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); }
private void CallHandlerOnOnMyPhoneStatusChanged(object sender, MyPhoneStatus Status) { }