How that can happen?

I downloaded freepbx-2.5.1, but web page shows “2.2.0beta3” … and, indeed

jane# cd /usr/local/www/apache22/data/
jane# cd freepbx-2.5.1
jane# find . -type f -exec grep 2.2.0beta3 {} ‘;’ -print
INSERT INTO admin VALUES (‘version’,‘2.2.0beta3’);
INSERT INTO admin VALUES (‘version’,‘2.2.0beta3’);

what could that mean ? why “newinstall.sql” holds that version ?

What web page are you referring to the main download page does not have any 2.2 references.

From time to time there are new additions to the FreePBX mysql tables. The scripts are written to attempt to determine and update only those things that are needed so that errors don’t show up on the screen. As of version 2.2.0beta3 there was a change in at least one of the mysql tables and this is why.