Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Jul 24, 2024
1 parent dd2f89d commit a7a9bff
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ class CallSession extends Emitter {
/* only now can we set Contact & From header since they depend on transport and scheme of gw */
const gw = mapGateways.get(uri);
if (gw) {
const {scheme, transport} = gw;
this.logger.info({gw}, `sending INVITE to ${uri} via carrier ${gw.name}`);
hdrs = {
...hdrs,
Expand All @@ -436,22 +437,22 @@ class CallSession extends Emitter {
logger: this.logger,
req: this.req,
register_from_domain: gw.register_from_domain,
scheme: gw.scheme,
transport: gw.transport,
scheme,
transport,
...(private_network && {host: this.privateSipAddress})
}) :
createBLegFromHeader({
logger: this.logger,
req: this.req,
scheme: gw.scheme,
transport: gw.transport,
scheme,
transport,
...(private_network && {host: this.privateSipAddress})
}),
Contact: createBLegFromHeader({
logger: this.logger,
req: this.req,
scheme: gw.scheme,
transport: gw.transport,
scheme,
transport,
...(private_network && {host: this.privateSipAddress})
}),
...(gw.diversion && {
Expand Down

0 comments on commit a7a9bff

Please sign in to comment.