mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
bugfix #14 - incorrect from when PAI differs from From header
This commit is contained in:
@@ -242,18 +242,6 @@ class TaskDial extends Task {
|
||||
const {getSBC} = srf.locals;
|
||||
const sbcAddress = getSBC();
|
||||
|
||||
/*
|
||||
if (CallDirection.Inbound === cs.direction) {
|
||||
const contact = req.getParsedHeader('Contact');
|
||||
const uri = parseUri(contact[0].uri);
|
||||
this.logger.debug({contact}, 'outdialing with contact');
|
||||
sbcAddress = `${uri.host}:${uri.port || 5060}`;
|
||||
//sbcAddress = `${req.source_address}:${req.source_port}`;
|
||||
}
|
||||
else {
|
||||
sbcAddress = getSBC();
|
||||
}
|
||||
*/
|
||||
if (!sbcAddress) throw new Error('no SBC found for outbound call');
|
||||
const opts = {
|
||||
headers: req && req.has('X-CID') ? Object.assign(this.headers, {'X-CID': req.get('X-CID')}) : this.headers,
|
||||
|
||||
Reference in New Issue
Block a user