mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-07-04 19:32:04 +00:00
only send Sips if it's enabled in outbound gateway configuration (#136)
* only send Sips if it's enabled in outbound gateway configuration * update license
This commit is contained in:
+4
-1
@@ -300,7 +300,10 @@ class CallSession extends Emitter {
|
||||
const hostport = !o.port || 5060 === o.port ? o.ipv4 : `${o.ipv4}:${o.port}`;
|
||||
const prependPlus = vc.e164_leading_plus && !this.req.calledNumber.startsWith('0') ? '+' : '';
|
||||
const transport = `transport=${protocol}`;
|
||||
const scheme = (protocol === 'tls' && !process.env.JAMBONES_USE_BEST_EFFORT_TLS) ? 'sips' : 'sip';
|
||||
const useSipsScheme = protocol === 'tls' &&
|
||||
!process.env.JAMBONES_USE_BEST_EFFORT_TLS &&
|
||||
o.use_sips_scheme;
|
||||
const scheme = useSipsScheme ? 'sips' : 'sip';
|
||||
const u = `${scheme}:${prefix}${prependPlus}${calledNumber}@${hostport};${transport}`;
|
||||
const obj = {
|
||||
name: vc.name,
|
||||
|
||||
Reference in New Issue
Block a user