feat: lcr

This commit is contained in:
Quan HL
2023-04-24 21:50:02 +07:00
parent 381eee9bcb
commit 6c4c5b6ba8

View File

@@ -168,7 +168,7 @@ module.exports = (logger, srf) => {
if (matcher.test(toNumber)) {
const [entries] = await pp.query(sqlQueryLcrCarrierSetEntryByLcrRouteSid, [r.lcr_route_sid]);
// Currently just support first entry;
if(entries.length) {
if (entries.length) {
return entries[0].voip_carrier_sid;
}
}