Commit f03137636179efcbfae36de868a8426bdc7936f2

Authored by Adhidarma Hadiwinoto
1 parent 1584924d4b
Exists in master

Do not forward to CORE if number less than 8 chars

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/apiserver/index.js
... ... @@ -84,7 +84,7 @@ function onIncomingSms(req, res) {
84 84 origin_label: `IMSI_${req.query.modem_imsi || 'UNKNOWN'}`,
85 85 origin_transport: 'SMS',
86 86 origin_partner: req.query.number,
87   - do_not_forward_to_core: req.query.number.indexOf('+62') !== 0,
  87 + do_not_forward_to_core: (req.query.number.indexOf('+62') !== 0) || (req.query.number.length <= 8),
88 88 });
89 89 }
90 90