Upgrade Issues or Bugs

PHP:
        if (is_uuid($uuid)) {
            $sql = "update v_xml_cdr set ";
            $sql .= "record_path = '".$record_path."', ";
            $sql .= "record_name = '".$record_name."' ";
            $sql .= "where uuid = '".$uuid."';\n";
            if ($execute_sql) {
                $db->exec($sql);
            }
            echo $sql."\n";
Should be

PHP:
        if (is_uuid($uuid)) {
            $sql = "update v_xml_cdr set ";
            $sql .= "record_path = '".$record_path."', ";
            $sql .= "record_name = '".$record_name."' ";
            $sql .= "where xml_cdr_uuid = '".$uuid."';\n";
            if ($execute_sql) {
                $db->exec($sql);
            }
            echo $sql."\n";
 
also i am not sure that this is a SQL issue

the recording it self is not happening
please set some information var in script /usr/src/record_path.php

//settings
$domain_name = '*';
$year = '2019';
$type = 'mp3'; //wav or mp3
$execute_sql = true;
$document_root = '/var/www/fusionpbx';


edit line: $sql .= "where uuid = '".$uuid."';\n"; --> $sql .= "where xml_cdr_uuid = '".$uuid."';\n";