mirror of
https://github.com/jambonz/sbc-sip-sidecar.git
synced 2025-12-19 04:27:46 +00:00
fix: review comment
This commit is contained in:
@@ -44,7 +44,8 @@ class Regbot {
|
||||
|
||||
async register(srf) {
|
||||
try {
|
||||
const contactAddress = process.env.JAMBONES_REGBOT_CONTACT_USE_IP ? srf.locals.sbcPublicIpAddress : this.aor;
|
||||
const contactAddress = process.env.JAMBONES_REGBOT_CONTACT_USE_IP ?
|
||||
`${this.username}@${srf.locals.sbcPublicIpAddress}` : this.aor;
|
||||
const req = await srf.request(`sip:${this.aor}`, {
|
||||
method: 'REGISTER',
|
||||
proxy: `sip:${this.ipv4}:${this.port}`,
|
||||
|
||||
Reference in New Issue
Block a user