From fb62d9f165a4d97f806095fb734df86b32880c87 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 7 Oct 2019 19:09:24 +0900 Subject: [PATCH] Update api.twilio.php --- route/api.twilio.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/route/api.twilio.php b/route/api.twilio.php index 648c434..8dc1716 100644 --- a/route/api.twilio.php +++ b/route/api.twilio.php @@ -18,6 +18,8 @@ $country = get_requested_value("country", array("_JSON", "_ALL")); $is_domestic = array_key_equals("lguplus_country", $config, $country); if(!$is_domestic) { $to = sprintf("+%s%s", $country, $to); +} else { + $to = sprintf("%s%s", (substr($to, 0, 1) == "0" ? "" : "0"), $to); } $response = false;