How to solved "No Device" error message on client start with Dynamics AX 2009

Recently I wanted to avoid that the infolog pops-up with several

'No Device'

error messages when opening the AX client with ConfigKey Telephony Integration enabled.

This error message is caused by the ActiveX component for the phone integration on form smmPhone which returns an error for each phone device which is offline.

I did the following code changes to prevent the error message:

AOT\Forms\smmPhone\Designs\Design\ActiveX:axPhone\Methods\onEvent_TapiError 

// AOSRunMode::Client
void onEvent_TapiError(int errorCode)
{
;
if(errorCode != -2147483582) // Added by Jimmy 2011-07-19 Avoid 'No Device' Error

error(
this.errorMsg(errorCode));
}
原文地址:https://www.cnblogs.com/Fandyx/p/2111069.html