Thanks, this helped a lotUse this at your own risk - not recommended to tinker in these settings.
Go to Advanced > Parameters > Change "DEVELOPMENT_DNTABLE_EXPOSE" to 1.
This will expose DN Properties tab and you can get EXTGUID here.
Thanks, got everything I neededyou could extract the XML file from your ZIP backup and then do something clever to extract the data this way.
Can an API read the values and output them into a file? That would really accelerate my job
$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)"}
$usernrs = (Invoke-RestMethod -uri "https://$tcxurl/xapi/v1/Users" -headers $headers -Method GET -ContentType "application/json").Value.Number | Sort-Object
$usernrlen = $usernrs[0].Length
Foreach ($usernr in $usernrs) {
$extguid = ((Invoke-RestMethod -uri "https://$tcxurl/xapi/v1/DNProperties/Pbx.GetPropertiesByDn(dnNumber='$usernr')?`$search=`"EXTGUID`"" -headers $headers -Method GET -ContentType "application/json").value).value
Write-Host $("{0,$usernrlen} | {1}" -f $usernr, $extguid)
}
Founded in 2005, when VoIP was an emerging technology, 3CX has gone on to establish itself as a global leader in business communications.