mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-10-04 02:04:19 +00:00
Fix/transport in contact (#190)
* use the req transport param in the From and Contact headers if set. * Update call-session.js
This commit is contained in:
@@ -497,16 +497,19 @@ class CallSession extends Emitter {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
const uri = parseUri(this.req.uri);
|
||||||
hdrs = {
|
hdrs = {
|
||||||
...hdrs,
|
...hdrs,
|
||||||
'From': createBLegFromHeader({
|
'From': createBLegFromHeader({
|
||||||
logger: this.logger,
|
logger: this.logger,
|
||||||
req: this.req,
|
req: this.req,
|
||||||
|
transport: uri.params.transport,
|
||||||
...(private_network && {host: this.privateSipAddress})
|
...(private_network && {host: this.privateSipAddress})
|
||||||
}),
|
}),
|
||||||
'Contact': createBLegFromHeader({
|
'Contact': createBLegFromHeader({
|
||||||
logger: this.logger,
|
logger: this.logger,
|
||||||
req: this.req,
|
req: this.req,
|
||||||
|
transport: uri.params.transport,
|
||||||
...(private_network && {host: this.privateSipAddress})
|
...(private_network && {host: this.privateSipAddress})
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user