Jump to content
Tom Wellige


Recommended Posts

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.

Share this post

Link to post
Share on other sites

  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.