Picture of malinux
Registered 9 years 307 days
malinux Monday, 8 March 2021, 10:35 AM
Automation of v13
Hi all

How does automation of installing v13 pbx and app platform work?

I'm working on automation with Ansible of our VMWare cloud and v13 pbx and app platform .

I can't find any api for this. Could somebody point me to this if it exists?

Cheers Martin

Best Regards

Martin Schiøtz


TDH-Net ApS

Picture of malinux
Registered 9 years 307 days
malinux Monday, 28 September 2020, 04:06 PM
Re: Other: Automation of v13
Hi again

I did try to backward engineer websocket with "mt" commands directly to the App Platform and http request ("/CMD0/mod_cmd.xml.." etc.) directly to the PBX.
This approach worked but installing apps is based on a lot javascript files placed on the PBX and commands changed according to which app that was installing. Also I guess that these javascript could change in future releases.

So I found another approach and this works very nice and uses the current
PBX version and javascript versions. It would also be less work if new input fields appear in future releases.
The approach is to use python selenium headless and simulate what a user would actually do when installing, connecting, upgrading, installing apps etc. on the PBX and App Platform via a webbrowser (beginng from "http://<pbx>/<build>/install.htm")

This seems to be the best approach or does anybody have some other ideas?

Cheers!
Martin

Best Regards

Martin Schiøtz


TDH-Net ApS

Oliver Dawid
Registered 13 years 254 days
Oliver 349 Thursday, 22 April 2021, 03:04 PM
Re: Other: Automation of v13
Hi Martin,

did you succeed to do your automation?

We use JSON communication and it works pretty well (except some stuff with backup, as we need to get an AppLogin via PBX which does not work yet).

We succeeded to generate Database instances, domain in Devices with all configuration etc. It was quite a bunch of work to reverse engineer the websocket communication but it looks pretty well.

Best regards,
Olli
← You can define your color theme preference here