Hello everyone, this is my first post on the forum. Pleased to meet you.
I'm thinking about a way to clone a domain, I've already read the various posts on the subject. But so far, no solution has been found. The goal would be to have a domain "template", without users or extensions, only a standard configuration (Call flow, group, general voicemail, queue, ....) to save a lot of time when deploying a new client.
Currently, I've managed to automate quite a few tasks using Integromat / Make (like Zappier) by injecting data directly into the database. I make an API call to a service that generates UUIDs for me before injecting the data into a table. I use this to create users / extensions / contact / devices.
But if I have to do it for my template, it becomes too complex, I have too many tables to update for a complete setup.
Do you think it would be possible to develop a script (Bash, php,...) that would do this :
Thank you in advance
I'm thinking about a way to clone a domain, I've already read the various posts on the subject. But so far, no solution has been found. The goal would be to have a domain "template", without users or extensions, only a standard configuration (Call flow, group, general voicemail, queue, ....) to save a lot of time when deploying a new client.
Currently, I've managed to automate quite a few tasks using Integromat / Make (like Zappier) by injecting data directly into the database. I make an API call to a service that generates UUIDs for me before injecting the data into a table. I use this to create users / extensions / contact / devices.
But if I have to do it for my template, it becomes too complex, I have too many tables to update for a complete setup.
Do you think it would be possible to develop a script (Bash, php,...) that would do this :
- We give it the source domain
- It scans the database to retrieve the domain's UUID
- It creates a new domain, and retrieves the new domain's UUID
- It then clones all entries containing the source domain's UUID, but replaces them with the new domain's UUID
Thank you in advance