mirror of
https://github.com/jambonz/sbc-inbound.git
synced 2026-10-04 02:04:22 +00:00
bugfix: account returned when carrier default routing is used was wrong
This commit is contained in:
+3
-1
@@ -233,13 +233,15 @@ module.exports = (srf, logger) => {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
else if (accountLevelGateways.length === 1) {
|
else if (accountLevelGateways.length === 1) {
|
||||||
|
const [accounts] = await pp.query('SELECT * from accounts where account_sid = ?',
|
||||||
|
accountLevelGateways[0].account_sid);
|
||||||
return {
|
return {
|
||||||
fromCarrier: true,
|
fromCarrier: true,
|
||||||
gateway: accountLevelGateways[0],
|
gateway: accountLevelGateways[0],
|
||||||
service_provider_sid: accountLevelGateways[0].service_provider_sid,
|
service_provider_sid: accountLevelGateways[0].service_provider_sid,
|
||||||
account_sid: accountLevelGateways[0].account_sid,
|
account_sid: accountLevelGateways[0].account_sid,
|
||||||
application_sid: accountLevelGateways[0].application_sid,
|
application_sid: accountLevelGateways[0].application_sid,
|
||||||
account: accountLevelGateways[0]
|
account: accounts[0]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user