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.
For details about setting the trace level, see PBXScript.OutputTrace
Back to Server Script API WikiHomePage
Rating
| Average rating: No Ratings Yet
Number of Ratings : 0 |
|
|
|
| View Topic History
|