bugfix: outbound calls where carrier was specified in dial verb was losing auth

This commit is contained in:
Dave Horton
2021-12-02 19:20:04 -05:00
parent bd6c39d9ac
commit a1810e577a
3 changed files with 23 additions and 19 deletions

View File

@@ -171,10 +171,10 @@ class CallSession extends Emitter {
diversion: vc.diversion,
hostport
};
if (o.register_username && o.register_password) {
if (vc.register_username && vc.register_password) {
obj.auth = {
username: o.register_username,
password: o.register_password
username: vc.register_username,
password: vc.register_password
};
}
mapGateways.set(u, obj);

34
package-lock.json generated
View File

@@ -1,11 +1,11 @@
{
"name": "sbc-outbound",
"version": "0.6.7-rc5",
"version": "v0.6.7-rc8",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.6.7-rc5",
"version": "v0.6.7-rc8",
"license": "MIT",
"dependencies": {
"@jambonz/db-helpers": "^0.6.14",
@@ -2680,8 +2680,9 @@
}
},
"node_modules/json-schema": {
"version": "0.2.3",
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
"integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="
},
"node_modules/json-schema-traverse": {
"version": "0.4.1",
@@ -2706,16 +2707,17 @@
}
},
"node_modules/jsprim": {
"version": "1.4.1",
"integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
"engines": [
"node >=0.6.0"
],
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz",
"integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==",
"dependencies": {
"assert-plus": "1.0.0",
"extsprintf": "1.3.0",
"json-schema": "0.2.3",
"json-schema": "0.4.0",
"verror": "1.10.0"
},
"engines": {
"node": ">=0.6.0"
}
},
"node_modules/jwa": {
@@ -6244,8 +6246,9 @@
}
},
"json-schema": {
"version": "0.2.3",
"integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM="
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
"integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="
},
"json-schema-traverse": {
"version": "0.4.1",
@@ -6264,12 +6267,13 @@
}
},
"jsprim": {
"version": "1.4.1",
"integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
"version": "1.4.2",
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz",
"integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==",
"requires": {
"assert-plus": "1.0.0",
"extsprintf": "1.3.0",
"json-schema": "0.2.3",
"json-schema": "0.4.0",
"verror": "1.10.0"
}
},

View File

@@ -1,6 +1,6 @@
{
"name": "sbc-outbound",
"version": "0.6.7-rc5",
"version": "v0.6.7-rc8",
"main": "app.js",
"engines": {
"node": ">= 8.10.0"