From f083fdbdbb3249780ae2a5d7c5e92dbe1bf6b70e Mon Sep 17 00:00:00 2001 From: Adhidarma Hadiwinoto <adhisimon@gmail.com> Date: Wed, 10 Feb 2021 15:29:29 +0700 Subject: [PATCH] config.do_not_forward_direct_response_rc68 --- config.sample.json | 2 ++ lib/transport.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config.sample.json b/config.sample.json index e52b109..d174acc 100644 --- a/config.sample.json +++ b/config.sample.json @@ -12,12 +12,14 @@ "ignore_prefix": false, "number_suffix": "", "send_on_process_msg": false, + "do_not_forward_direct_response_rc68": false, "sender": { "url": "http://192.168.0.181:59194/service/sendsms", "username": "app1", "password": "1234" }, + "modems": [ { "name": "SENDER-AS13", diff --git a/lib/transport.js b/lib/transport.js index 654695d..bbcf637 100644 --- a/lib/transport.js +++ b/lib/transport.js @@ -84,7 +84,9 @@ exports.send = async (partner, msg) => { if (typeof partner !== 'string' || !partner.trim()) return; if (typeof msg !== 'string' || !msg.trim()) return; - if (!config.send_on_process_msg && (msg.trim().search(/PROSES$/) >= 0)) return; + if ( + (!config.send_on_process_msg && (msg.trim().search(/PROSES$/) >= 0)) + ) return; const xid = uniqid(); -- 1.9.0