Patton FXS Not Certificated

Alle CTEC

Silver Partner
Advanced Certified
Joined
Sep 11, 2023
Messages
360
Reaction score
45
Hi, I have a customer with a Patton FXS 4118 that is no longer certified with V18. I could see the authentication ID and password from the user menu and therefore I could configure them with Patton. However, now I notice that they are no longer visible from the user menu, so in the event of a password reset, I would no longer be able to configure the Patton. Is there a way to see them?
 
Is there a way to see them?
Set up a dummy IP phone, where you can see the password.
You can always get the password via the 3CX Configuration API.
 
Set up a dummy IP phone, where you can see the password.
You can always get the password via the 3CX Configuration API.

I like your style, hardcore solution first :cool:

We have an easy one too:
1760013921475.png
 
  • Like
Reactions: fxbastler
or the 3cx-get-all-user-voip-auth-data.ps1 powershell xapi script:
Code:
$tcxurl="mypbx.mydomain.de"     # needs port if not 443

$jsonauthbody = (@{
    Username="100"              # 3CX user, maybe email address
    Password="Super_Secret0815" # 3CX user password
    SecurityCode=""
} | ConvertTo-Json)

$LoginResponse = Invoke-RestMethod -Uri "https://$tcxurl/webclient/api/Login/GetAccessToken" -Body $jsonauthbody -Method POST -ContentType "application/json"

if( $LoginResponse.Status -ne "AuthSuccess" ) {
    Write-Host "abort: authentication not successful"
    exit -1
}

$headers = @{Authorization = "Bearer $($LoginResponse.Token.access_token)"}

$userids = ((Invoke-RestMethod -uri "https://$tcxurl/xapi/v1/Users" -headers $headers -Method GET -ContentType "application/json").Value | sort-object { $_.Number}).Id
$usernrlen = (Invoke-RestMethod -uri "https://$tcxurl/xapi/v1/Users($($userids[0]))" -headers $headers -Method GET -ContentType "application/json").Number.Length

Write-Host $("{0,$usernrlen} | {1,-20} | {2,-20}" -f "Nr", "AuthID", "AuthPassword")
Write-Host "$("-" * $($usernrlen+1))+----------------------+------------------------"
Foreach ($userid in $userids) {
    $ext = (Invoke-RestMethod -uri "https://$tcxurl/xapi/v1/Users($userid)" -headers $headers -Method GET -ContentType "application/json")
    Write-Host $("{0,$usernrlen} | {1,-20} | {2,-20}" -f $ext.Number, $ext.AuthId, $ext.AuthPassword)
}
 
Thanks everyone I hadn't thought about creating a dummy phone anyway I think I'll replace the Patton 4118 with a Grand Stream 8 port certified model for convenience thanks everyone
 

Forum statistics

Threads
111,955
Messages
589,925
Members
164,854
Latest member
uvitas