diff --git a/lib/call-session.js b/lib/call-session.js index 70d9386..e4d633d 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -33,7 +33,7 @@ class CallSession extends Emitter { this.logger.info('No available feature servers, rejecting call!'); return this.res.send(480); } - debug(`using feature server ${featureServer}`); + this.logger.debug(`using feature server ${featureServer}`); this.rtpEngineOpts = makeRtpEngineOpts(this.req, isWSS(this.req), false); this.rtpEngineResource = {destroy: this.del.bind(null, this.rtpEngineOpts.common)}; @@ -43,7 +43,7 @@ class CallSession extends Emitter { // replace host part of uri if its an ipv4 address, leave it otherwise if (/\d{1-3}\.\d{1-3}\.\d{1-3}\.\d{1-3}/.test(obj.host)) { host = obj.host; - proxy = featureServer; + proxy = `sip:${featureServer}`; } else { host = featureServer; diff --git a/lib/fs-tracking.js b/lib/fs-tracking.js index debc27c..9f267ef 100644 --- a/lib/fs-tracking.js +++ b/lib/fs-tracking.js @@ -10,7 +10,7 @@ module.exports = (srf, logger) => { srf.options((req, res) => { res.send(200); if (req.has('X-FS-Status')) { - const uri = `sip:${req.source_address}:${req.source_address}`; + const uri = `${req.source_address}:${req.source_address}`; const status = req.get('X-FS-Status'); const calls = req.has('X-FS-Calls') ? parseInt(req.get('X-FS-Calls')) : 0; if (status === 'open') {