• Your Cart Is Empty!
Your address will show here +12 34 56 78
API command for developers
Looking for telecom solutions without needing a developer? Our user portal has you covered! 
  • Text Hover
Managing a QuBe Server
The QuBe server management commands are similar to the commands that regulate FreePBX servers. They have the same functionality but are applied to QuBe systems.
To add a new server you will use the serverQubeAdd() function that takes two parameters:
    type:"dedicated" or "virtual"
    note(string): a note about the server

You can list your ordered virtual servers by type with the serverQubeList() function. It takes a single parameter: type ("virtual or "dedicated")
To add allowed IPs to the PBX use the serverIpAdd() function which takes three parameters:
    id: the number assigned to the server, can be found using serverList()
    IP_address: the IP you wish to add to the firewall
    note(string): optional comment

serverQubeIpRemove() will remove an allowed Ip from the PBX. It functions and takes the same parameters as serverQubeIpAdd() minus the note.

To see all Ips that are allowed to access the PBX, use serverQubeIpList(). This takes one parameter: ID.

To remove a server, use serverQubeRemove(). The only parameter is the ID.
$api = new QBapi();
$result = $api->serverQubeAdd("virtual","test Qube");
$result = $api->serverQubeList("virtual");
$result = $api->serverQubeIpAdd("754","XXX.XXX.XXX.XXX");
$result = $api->serverQubeIpList("754");
$result = $api->serverQubeIpRemove("754","XXX.XXX.XXX.XXX");
$result = $api->serverQubeRemove("754");
echo '<pre>';