Jump to content
  • PBXScript.OutputTraceEx()


    Lua   → VBScript   SwxWare v13.10


    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(PBXScriptTraceLevel, "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 of type PBXScriptTraceLevel 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:

    PBXScript.TraceError = 2
    PBXScript.TraceWarn  = 3
    PBXScript.TraceInfo  = 4
    PBXScript.TraceInfo2 = 5
    PBXScript.TraceInfo3 = 6


    This function provides the ability to write trace output on any trace level, e.g. Warn or Error, instead of the default level TraceInfo3 which is used by the PBXScript.OutputTrace() function.


    The following blog article provides some general hints about tracing within call routing:




    The following article explains how to filter one single call from a SwyxServer  trace file, and from that call only the call routing relevant trace lines:



    Tom Wellige


  • 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.