void fillCallHandler_1(MyPhonePlugins.IMyPhoneCallHandler source, CallHandler target)
 {
     target.FirstName       = (string)getValueFildDynamicObjectByName(source, "FirstName");
     target.LastName        = (string)getValueFildDynamicObjectByName(source, "LastName");
     target.MakeCallTimeout = (int)getValueFildDynamicObjectByName(source, "MakeCallTimeout");
     target.MakeCallTimeoutCtiUnsupported = (int)getValueFildDynamicObjectByName(source, "MakeCallTimeoutCtiUnsupported");
     target.Number = (string)getValueFildDynamicObjectByName(source, "Number");
     target.Status = source.Status.ToString();
 }
 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;
     }
 }
Beispiel #3
0
        private NodoCRMPluginLoader(MyPhonePlugins.IMyPhoneCallHandler handler)
        {
            this.handler = handler;
            handler.OnCallStatusChanged    += new CallInfoHandler(CallHandlerOnCallStatusChanged);
            handler.OnMyPhoneStatusChanged += new MyPhoneStatusHandler(CallHandlerOnMyPhoneStatusChanged);

            var wsServer = new WebSocketServer(6789);

            // this._voip = new VoIP(handler, this._currentCallStatus, this._currentPhoneStatus);
            wsServer.AddWebSocketService("/voip", () => {
                var voip = new VoIP(handler, _currentCallStatus, this._currentPhoneStatus);
                return(voip);
            });
            wsServer.Start();
            Debug.WriteLine(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Loader finished it job");
        }
Beispiel #4
0
 public static void Loader(MyPhonePlugins.IMyPhoneCallHandler handler)
 {
     instance = new NodoCRMPluginLoader(handler);
 }