VBScript → Lua
This function can be used to write trace out into the 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.OutputTrace "Hello World"
This function returns an integer value of PBXSuccess (0) on success. See list of defined return values.
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.
Call routing traces will be written by the SrvScript module of IpPbxSrv to Info3 level.
To create trace output on any trace level you can use PBXScript.OutputTraceEx.
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:
By Tom Wellige