salix/db/routines/pbx/procedures/sip_setPassword.sql

12 lines
276 B
MySQL
Raw Normal View History

DELIMITER $$
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `pbx`.`sip_setPassword`(
vUser VARCHAR(255),
vPassword VARCHAR(255)
)
BEGIN
UPDATE sip SET
md5Secret = MD5(CONCAT(extension, ':asterisk:', vPassword))
WHERE user_id = vUser;
END$$
DELIMITER ;