Example #1
0
        private void Process()
        {
            DEBUGLogger.WriteThreadInfo("Process");

            _handleDelta2Event = DevLink_Received_CallBack;

            /*This routine may return:-
             *      0 = DEVLINK_SUCCESS
             *      1 = DEVLINK_UNSPECIFIEDFAIL - Returned in the event of an error.
             *      2 = DEVLINK_LICENCENOTFOUND - If no CTI license is activated on the IP Office system. */
            long iRet = DLRegisterType2CallDeltas((uint)_iPOID, _handleDelta2Event // DLCALLLOGEVENT

                                                                                   /*	(pbxh, rawDevLink) => {	lock (thisLock)
                                                                                    *                                                      if (default(EventHandler<DevLinkEventArgs>) != DevLinkRecieved)
                                                                                    *                                                      {
                                                                                    *                                                              DevLinkRecieved(this, new DevLinkEventArgs(pbxh, rawDevLink));
                                                                                    *                                                      } }  */
                                                  );

            DEBUGLogger.WriteLine("DLRegisterType2CallDeltas return value = " + iRet);
        }
Example #2
0
 private static extern int DLRegisterType2CallDeltas(uint pbxh, DLCALLLOGEVENT cb);