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 ;
