SOLVED

Siptesterclient.ps1 change output to 0 or 1

%3CLINGO-SUB%20id%3D%22lingo-sub-2003886%22%20slang%3D%22en-US%22%3ESiptesterclient.ps1%20change%20output%20to%200%20or%201%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2003886%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EWe%20use%20siptesterclient.ps1%20to%20monitor%20sbc%2Fpstn%20availability%20in%20Teams%20Voice%20by%20making%20a%20test%20call%20from%20one%20user%20in%20tenant%20A%20to%20the%20phone%20number%20of%20a%20teams%20user%20in%20tenant%20B.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20works%20great%2C%20it%20outputs%20true%20if%20the%20test%20worked%2C%20failed%20if%20not%3C%2FP%3E%3CP%3EBut%20our%20monitoring%20software%20PRTG%20only%20understands%20integer%20as%20the%20result.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20microsoft%20docs%20and%20the%20script%20itself%2C%20i%20cannot%20find%20how%20I%20could%20change%20the%20output%20to%200%20or%201...%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20script%20guru's%20here%20who%20can%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EScript%20info%3B%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fsip-tester-powershell-script%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fsip-tester-powershell-script%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2003886%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECalling%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2003957%22%20slang%3D%22en-US%22%3ERe%3A%20Siptesterclient.ps1%20change%20output%20to%200%20or%201%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2003957%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%40SharonZhao-MSFT%20at%20MS%20Q%26amp%3BA%20had%20given%20me%20the%20answer%20and%20now%20it%20works%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehere%20is%20how%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fanswers%2Fquestions%2F196242%2Fchange-output-of-siptesterclientps1-to-0-or-1.html%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EChange%20output%20of%20siptesterclient.ps1%20to%200%20or%201%20-%20Microsoft%20Q%26amp%3BA%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

We use siptesterclient.ps1 to monitor sbc/pstn availability 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 docs 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://docs.microsoft.com/en-us/microsoftteams/sip-tester-powershell-script

 

thanks

1 Reply
Best Response confirmed by ezJurgen (Occasional Contributor)
Solution

Hi All,

 

@SharonZhao-MSFT at MS Q&A had given me the answer and now it works

 

here is how

Change output of siptesterclient.ps1 to 0 or 1 - Microsoft Q&A