You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/10287.down

18 lines
692 B

USE provisioning;
DELETE FROM language_strings WHERE code in (
'Client.Syntax.InvalidE164Number',
'Client.Syntax.InvalidSipUsernamePattern',
'Client.Syntax.InvalidSipUsername'
);
-- cli-preferences should again be sipuris, not just sipusernames
UPDATE voip_usr_preferences
SET value=CONCAT('sip:+', value, '@', (SELECT domain FROM voip_domains WHERE id=(SELECT domain_id FROM voip_subscribers WHERE id=subscriber_id)))
WHERE attribute_id=(SELECT id from voip_preferences WHERE attribute='cli');
-- reset '+' in sipuris
UPDATE voip_cf_destinations
SET destination=REPLACE(destination, 'sip:', 'sip:+')
WHERE destination NOT LIKE 'sip:vmu%' AND destination NOT LIKE 'sip:conf%';