public MyCrmPlugin(IMyPhoneCallHandler callHandler) { _callHandler = callHandler; _callHandler.OnCallStatusChanged += CallHandlerOnOnCallStatusChanged; _callHandler.OnMyPhoneStatusChanged += CallHandlerOnOnMyPhoneStatusChanged; _callHandler.CurrentProfileChanged += CallHandlerCurrentProfileChanged; }
public static void Loader(IMyPhoneCallHandler callHandler) { //show busylight Mainform Disabled in final version frmMain frm = new frmMain(); // frm.Show(); _instance = new MyCrmPlugin(callHandler); //start busylight Green on load frm.busylight.Light(Busylight.BusylightColor.Green); // Test button click another form // frm.btnRedWithSound_Click(null, EventArgs.Empty); }
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 Plugin3CX(IMyPhoneCallHandler callHandler) { _callHandler = callHandler; callHandler.OnCallStatusChanged += callHandler_OnCallStatusChanged; _host = new ServiceHost(this); _host.AddServiceEndpoint(typeof(IMakeCallService), new NetNamedPipeBinding(NetNamedPipeSecurityMode.None), "net.pipe://localhost/MakeCallService"); _host.Open(); _incomingCallChannelFactory = new ChannelFactory <IIncomingCallService>(new NetNamedPipeBinding(NetNamedPipeSecurityMode.None), "net.pipe://localhost/IncomingCallService"); IIncomingCallService incomingCallService = _incomingCallChannelFactory.CreateChannel(); incomingCallService.Hello(); incomingCallService.StatusChanged(Status()); }
public CallTriggerCmdPlugin(MyPhonePlugins.IMyPhoneCallHandler callHandler) { try { this.callHandler = callHandler; callHandler.OnCallStatusChanged += callHandler_OnCallStatusChanged; callHandler.OnMyPhoneStatusChanged += callHandler_OnMyPhoneStatusChanged; callHandler.CurrentProfileChanged += callHandler_CurrentProfileChanged; callHandler.ProfileExtendedStatusChanged += callHandler_ProfileExtendedStatusChanged; } catch (Exception exception) { Dispose(); throw exception; } }
private K2MPhoneApi(IMyPhoneCallHandler callhandler) { _callHandler = callhandler; callhandler.OnCallStatusChanged += Callhandler_OnCallStatusChanged; }
public static void Loader(IMyPhoneCallHandler callHandler) { _phoneApiInstance = new K2MPhoneApi(callHandler); }
public static void Loader(IMyPhoneCallHandler callHandler) { _instance = new Plugin3CX(callHandler); }