support trunk register with account sip realm if available (#107)

* support trunk register with account sip realm if available

* wip

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu
2025-06-23 19:34:39 +07:00
committed by GitHub
parent 1ef25e2c7f
commit 3cfa0a94aa
3 changed files with 26 additions and 3 deletions

2
app.js
View File

@@ -58,6 +58,7 @@ const {
lookupCarrierBySid,
lookupSystemInformation,
updateCarrierBySid,
lookupAccountBySid
} = require('@jambonz/db-helpers')({
host: JAMBONES_MYSQL_HOST,
user: JAMBONES_MYSQL_USER,
@@ -95,6 +96,7 @@ srf.locals = {
addToSet, removeFromSet, isMemberOfSet, retrieveSet,
registrar: new Registrar(logger, client),
dbHelpers: {
lookupAccountBySid,
lookupAuthHook,
lookupAllVoipCarriers,
lookupSipGatewaysByCarrier,