Tom Wellige 60 Report post Posted November 29, 2015 This function can be used to write trace outout into SwyxServer's trace file. Tracing can be used for debugging of realtime systems and is highly recommended to be used within own script code. PBXScript.OutputTraceEx PBXTraceLevelInfo, "Hello World" This function can be used at any time within a call routing script. The string being passed as parameter will be directly written into the SwyxServer trace file. The first parameter defines the trace level. The trace message is logged only if the configured trace level (see below) is higher or equal as the level specified in the trace statement. The following trace levels are defined: PBXTraceLevelFatal = 1 PBXTraceLevelError = 2 PBXTraceLevelWarn = 3 PBXTraceLevelInfo = 4 PBXTraceLevelInfo2 = 5 PBXTraceLevelInfo3 = 6 Example: If you set the SrvScript trace module of IpPbxSrv to 4, all trace messages made with PBXTraceLevelInfo or lower are logged. Trace messages with PBXTraceLevelInfo2 or PBXTraceLevelInfo3 are skipped. This function is available in SwyxWare v6.10 and newer versions. For details about setting the trace level, see PBXScript.OutputTrace. 0 Share this post Link to post Share on other sites