Jump to content
Gold Sponsor: Data-Way IT-Consulting, Austria

  • PBXScript.OutputTraceEx

    PBXScript.OutputTraceEx

    VBScript   → Lua   SwxWare v6.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 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
    

     

    This function provides the ability to write trace output on any trace level, e.g. Warn or Error, instead of the default level Info3 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
     Share


     Share




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