Change output of siptesterclient.ps1 to 0 or 1

Jurgen Verhelst 331 Reputation points
2020-12-12T18:35:50.48+00:00

Hi,

We use siptesterclient.ps1 to monitor sbc/pstn aivalability in Teams Voice by making a test call from one user in tenant A to the phone number of a teams user in tenant B.

It works great, it outputs true if the test worked, failed if not

But our monitoring software PRTG only understands integer as the result.

In the Microsoft Learn and the script itself, i cannot find how I could change the output to 0 or 1...

Any script guru's here who can?

Script info;
https://video2.skills-academy.com/en-us/microsoftteams/sip-tester-powershell-script

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,268 questions
Skype for Business
Skype for Business
A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.
629 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sharon Zhao-MSFT 25,101 Reputation points Microsoft Vendor
    2020-12-14T07:27:19.4+00:00

    @JurgenVerhelstezNetworking-5458,

    As we are mainly responsible for general issue of Microsoft Teams and Skype for Business, your question which is involved in scripts is not supported by us.

    You can post a new thread in Teams developer forum where you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction. Thank you for your understanding.

    Besides, I find that the last part of the script outputs the test results. You could try to modify the scripts as below:
    47893-image.png

    For more information about the Return keyword, you can refer to this article.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.