mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-19 04:27:46 +00:00
user restriction
This commit is contained in:
@@ -31,7 +31,7 @@ async function register(logger, req, res) {
|
|||||||
contactHdr = contactHdr.replace(/expires=\d+/, `expires=${expires}`);
|
contactHdr = contactHdr.replace(/expires=\d+/, `expires=${expires}`);
|
||||||
const {lookupClientByAccountAndUsername} = req.srf.locals.dbHelpers;
|
const {lookupClientByAccountAndUsername} = req.srf.locals.dbHelpers;
|
||||||
const {account_sid} = req.locals;
|
const {account_sid} = req.locals;
|
||||||
const client = await lookupClientByAccountAndUsername(account_sid, uri.user);
|
const [client] = await lookupClientByAccountAndUsername(account_sid, uri.user);
|
||||||
const opts = {
|
const opts = {
|
||||||
contact: req.getParsedHeader('Contact')[0].uri,
|
contact: req.getParsedHeader('Contact')[0].uri,
|
||||||
sbcAddress: req.server.hostport,
|
sbcAddress: req.server.hostport,
|
||||||
|
|||||||
Reference in New Issue
Block a user