Windows v18 provisioning link

Status
Not open for further replies.

Parslej

Forum User
Joined
Jun 16, 2021
Messages
62
Reaction score
18
Can someone please advice how provisioning link in v18 is constructed ?

In v.16 it was like that:
HTTPS://MY_PBX_IP:5001/P/xxxxxxxxx/AUTH_ID

Im working on some automation installing and provisioning app
In version 18 user has to login to web and then click 'install' & 'provision' buttons
I know how to automate installation, but not sure what is being fired after 'provision' click
 
  • Like
Reactions: kathrin
  • Like
Reactions: ChrisC_3CX
Technically you could use the same mechanism the browser uses to launch the app.
What the browser does is invoke the EXE and pass as argument the HTTP/S link that the QR code resolves to.

To be more precise, you could load a config like this:
Code:
3CXDesktopApp.exe tcx+app:<HTTP/S link of QR code>
DesktopApp_prov.gif

I suppose you could get the QR codes of the users from the Management Console and via GPO, also have a CMD script run on startup doing this.

I haven't tried it and this was not the intended way of provisioning the Desktop App, but you could give it a shot.
 
  • Like
Reactions: Parslej
Thanks a lot @SweetAction - this is working as a harm!
One more question - is there any way to automate / set default settings ?

Eg Id like everyone to see by default non registered extensions / hear chat sounds etc
Any cfg file I can edit or settings in Mgmnt console ?
 
Eg Id like everyone to see by default non registered extensions / hear chat sounds etc
Any cfg file I can edit or settings in Mgmnt console ?
I'm afraid not, these settings are stored in the user's roaming folder when using the 3CX Desktop app and are stored in the browser cookies when using the 3CX Webclient.
 
I'm afraid not, these settings are stored in the user's roaming folder when using the 3CX Desktop app and are stored in the browser cookies when using the 3CX Webclient.

What a pitty! :(

Hope one day 3cx can add at least some extra params in Mgmnt Console to automate that
My team is setting this up manually user per user (I cant imagine how such deployment might look in bigger company having hundreds non tech ppl on board...)
 
We have a client with a phone whose (broken) camera won't scan the QR. Just now I tried constructing a URL using the info from the Phone Provisioning page, and both server:5001/P/authid/authpassword and server:5001/P/authpassword/authid give me a blank page in my browser. What is the format you used to construct it?
 
Easiest way is save QR code as bitmap and then use one of web pages to translate back to URL
(you can find in google qr decode or something like that)

Disclaimer: of course you must trust this website ...
(From the other hand you might want tu use it to find the rule, then change creds)
 
I actually did try that but couldn't find a site that would work. Any suggestions?
 
it's /p/provisioningdir/somethingIhasvn'tfiguredoutyet

Scan the users barcode with your cell phone using a barcode scanner app.
 
Scan the users barcode with your cell phone using a barcode scanner app.
I tried that too...it offers to download the file in Safari, and does, but I can't figure out how to find out the URL. ٩(͡๏̯͡๏)۶
That one did, thanks.

However I did try to open the downloaded file on my phone, which opens 3CX, but it doesn't add the account, or prompt. (at this point I should probably start another thread I suppose: https://www.3cx.com/community/threads/add-account-to-app-without-camera.84217/) Thanks for your help.
 
I tried that too...it offers to download the file in Safari, and does, but I can't figure out how to find out the URL. ٩(͡๏̯͡๏)۶

That one did, thanks.

However I did try to open the downloaded file on my phone, which opens 3CX, but it doesn't add the account, or prompt. (at this point I should probably start another thread I suppose: https://www.3cx.com/community/threads/add-account-to-app-without-camera.84217/) Thanks for your help.
Might be a silly question, but if we are still talking about provisioning a Mobile with a broken camera, why not use the Welcome Email attachment?
 
  • Like
Reactions: CentrexJ
it's /p/provisioningdir/somethingIhasvn'tfiguredoutyet

@NickD_3CX Do you have any further information on how to gain the QR Codes? Everything in the link until provisioningdir is clear to me.
I am interested in trying the automation you talked about but am stuck on the individual QR Code data. I don't know how to obtain all of them in a somewhat automated way.
 
@NickD_3CX Do you have any further information on how to gain the QR Codes? Everything in the link until provisioningdir is clear to me.
I am interested in trying the automation you talked about but am stuck on the individual QR Code data. I don't know how to obtain all of them in a somewhat automated way.

I asked. The reply was:

It's random and not exposed anywhere in the Management Console or backup file for that matter.
Don't forget, the complexity of the link is part of the security so these files aren't easily downloadeable.

The only way I am aware of is from the QR code.

The automation is in installing the app and you as an admin can scan all the QR codes and get the values, store them, then write a script to provision if you want.
 
  • Like
Reactions: NickD_3CX
@NickD_3CX Do you have any further information on how to gain the QR Codes? Everything in the link until provisioningdir is clear to me.
I am interested in trying the automation you talked about but am stuck on the individual QR Code data. I don't know how to obtain all of them in a somewhat automated way.
Hi!

What was mentioned above really.
As the admin, you could access the 3CX Management Console, edit each extensions and right-click and save each QR code for each of your users. The run each individual QR image though a software that reads the QR, like e.g. https://zxing.org/w/decode.jspx.
 
TBH: All we discussing here is kinda workarounds ..
I think users CSV export should be extended to include also provisioning link
(Currently it contains all auths credencials, I cant see reason to not include that one as well..)
 
TBH: All we discussing here is kinda workarounds ..
I think users CSV export should be extended to include also provisioning link
(Currently it contains all auths credencials, I cant see reason to not include that one as well..)
You are half-right. Yes, export contains the auth credentials, BUT, these can be changed. Having the prov link allows you to always get the fresh set of credentials.
To block that then, you would have to actually delete the extension are recreate it, or use the new regeneration option V18 has.

At the heart of it though, yes, I'll straight out say it, it's a workaround, we did not build this with the intention to be used this way, but it is one of these workarounds that is more or less harmless to the system.
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.

Members Online Now

Forum statistics

Threads
111,832
Messages
589,278
Members
164,662
Latest member
DejanMDS