18 lines
302 B
MySQL
18 lines
302 B
MySQL
|
DELIMITER $$
|
||
|
CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `pbx`.`sip_getExtension`(vUserId INT(10))
|
||
|
BEGIN
|
||
|
|
||
|
/*
|
||
|
* Devuelve la extensión pbx del usuario
|
||
|
*
|
||
|
* @param vUserId Id del usuario
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
SELECT extension
|
||
|
FROM sip s
|
||
|
WHERE s.user_id = vUserId;
|
||
|
|
||
|
END$$
|
||
|
DELIMITER ;
|