alter table phonetype add column aastra_audiomode integer not null default '0';
alter table phonetype add column allow_local_forward varchar(3) NOT NULL default 'yes' CHECK (allow_local_forward IN ('yes','no'));
alter table phonetypecontactphone add column aastra_audiomode integer not null default '0';
alter table phonetypecontactphone add column allow_local_forward varchar(3) NOT NULL default 'yes' CHECK (allow_local_forward IN ('yes','no'));
alter table phonetypephone add column allow_local_forward varchar(3) NOT NULL default 'yes' CHECK (allow_local_forward IN ('yes','no'));
alter table profile add column phoneline integer NOT NULL default '1';

