Jump to content
Tom Wellige

How to filter SwyxWare traces for call routing output of single call

Recommended Posts

By using PBXScript.OutputTrace you can write what ever you want/need directly into the SwyxWare trace. So how to find it back afterwards?

 

As the SwyxWare call routing is executed by the SwyxServer, the related traces are written into the server trace file

  • C:\ProgramData\Swyx\Traces\IpPbxSrv-xxx-yyy.log

 

All you need to do is to filter all the stuff away you are not interested in and a proper text editor (with search/filter capabilities) and then follow these steps:

  • filter the call in question from the trace file
  • filter the call routing trace output from the single call traces

 

In the past I suggested to use UltraEdit, but as this is payware and another free and quite strong editor became available I suggest using Notepad++.

 

Just follow these steps:

 

  1. Open the server trace file in Notepad++.
     
  2. Identify the call in question in the trace.
    This is done by the unique call id every call gets within tracing.
    Do not mistake this call id with the call id showing up in the Call Detail Records (CDR). The trace call id will be reset to 0 when restarting the server service, the CDR call id will not be reset.
    You will find the call id in column 7 of the trace. By having a timestamp of the call in question and e.g. the caller number you should be able to identify a trace line of the call and get its call id.image.png
     
  3. Once you have the call id you can double click it and the picture changes already a little bit:
    image.png
     
  4. To search for all occurrences of the call id in the trace file press Ctrl-F (Search - Find...), paste the call id into the "Find what" field and click on "Find in Current Document"
    image.png
     
  5. You will now get all trace lines containing the call id listed in the lower part of the Notepad++ window:
    image.png
     
  6. Select any line in the lower part of the window and press Ctrl-A and Ctrl-C. This will copy all trace lines into the Windows clipboard.
     
  7. Right click the first line in the lower window and select "Clear All"
    image.png
     
  8. Press Ctrl-N (File - New) to open a new and empty editor window.
     
  9. Press Ctrl-V to paste the content of the Windows clipboard into it, i.e. all trace lines of the call in question
    image.png
     
  10. The next step is to filter for all call routing trace output. The server consists of lots of different modules, and each module generates trace output. The responsible module name is stated 2 columns left to the call id. The module which is responsible for call routing is called "SrvScript":
    image.png
     
  11. You can now repeat Step 4 to Step 9 to filter for call routing trace output. As the first columns of the trace are not of too much interest anymore, I suggest to scroll the editor window to the right to just the the trace comments. Here you can follow the call through the call routing script relatively easy:
    image.png

     

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

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