Dialogic Voice Cards - How To Enable PDK Logging on a JCT series board
Summary
To troubleshoot Dialogic Global Call Software Protocol Development Kit (PDK) issues on Dialogic JCT series Media Boards, it is sometimes desirable to generate a PDK log to help identify the root cause of an issue. This article provides instructions on how to enable and view logs for PDK.
Environment
This article applies only to the Windows environment. The application must also be using a PDK Global Call protocol with a JCT series Media Board.
Enable PDK logging in Windows NT
Save a copy of your existing pdk*.cdp file
Add the following line to your pdk*.cdp file (for example, at the end of pdk_us_mf_io.cdp):
ALL INTEGER_t PSL_TXRX_LOG_ENABLE=1
Save the file
Go to the Control Panel
Double click on System
Go to the Environment tab and add the following variable and value:
Variable: GC_PDK_START_LOG
Value: filename:pdk.log;loglevel:ENABLE_DEBUG;services:ALL_SERVICES;
cachedump:WHEN_FULL|THREAD_OFF;cachesize:1;maxfilesize:200;mindiskfree:200
Click on Set and make sure that the Variable and Value you added in step 3 show in the list
Click Apply and then Ok
Enable PDK logging in Windows® 2000/XP/2003
Save a copy of your existing pdk*.cdp file
Add the following line to your pdk*.cdp file (for example, at the end of pdk_us_mf_io.cdp):
ALL INTEGER_t PSL_TXRX_LOG_ENABLE=1
Go to the Control Panel
Double click on System
Go to the Advanced tab
Click on the Environment Variables option and add the following variable and value under the Systems Variables section:
Variable: GC_PDK_START_LOG Value: filename:pdk.log;loglevel:ENABLE_DEBUG;services:ALL_SERVICES;
cachedump:WHEN_FULL|THREAD_OFF;cachesize:1;maxfilesize:200;mindiskfree:200
Click on Set and make sure that the Variable and Value you added in step 4 show in the list.
Click Apply and then OK
Enable PDK logging in Windows® 7/2008
Save a copy of your existing pdk*.cdp file
Add the following line to your pdk*.cdp file (for example, at the end of pdk_us_mf_io.cdp):
ALL INTEGER_t PSL_TXRX_LOG_ENABLE=1
Go to the Control Panel
Double click on System
Click on the Advanced System Settings Option
Click on the Environment Variables option and add the following variable and value under the Systems Variables section:
Variable: GC_PDK_START_LOG Value: filename:pdk.log;loglevel:ENABLE_DEBUG;services:ALL_SERVICES;
cachedump:WHEN_FULL|THREAD_OFF;cachesize:1;maxfilesize:200;mindiskfree:200
Click on Set and make sure that the Variable and Value you added in step 4 show in the list.
Click Apply and then Ok
In the Value of the argument added above, notice that the user has the option to do the following:
Specify the name of the log file via filename:pdk.log
Specify the maximum size of a log file via maxfilesize:200 (MB)
Check if there is available disk space for the log via mindiskfree:200 (MB)
Viewing the PDK log
After logging is enabled and after running an application, use the LogView application( ) to view the generated PDK log. The log file will generally be found in the folder where the application was run from. However, if the application is running as a service, the log will be generated in ..\WinNT\System32\ directory. Also note that the log file name is specified in the key you add to the environment . In the example above, it's called pdk.log.
Note: Remember to disable logging if not needed afterwards. To disable logging, do the following:
Go to the control panel and delete the key you added
Replace your cdp file with the original one or just delete the line that you added