<?php
if ($config['type'] === 'SAAS') {
    $sql_query = 'UPDATE ' . $config['table_prefix'] . 'module_asterisk_servers SET client_host = "' . $config['site_url'] . '" WHERE client_host = ""';
    run_query($sql_query);
}