From 656c8d0ffceb48011619f9dbcde453680f605be3 Mon Sep 17 00:00:00 2001 From: Matthias Van Woensel Date: Thu, 17 May 2018 16:20:29 +0200 Subject: [PATCH 1/2] Adding callr and plivo as sms gateways --- composer.json | 5 +- docs/intro.rst | 2 + src/includes/functions.inc.php | 6 ++ .../Config/Controller/ConfigController.php | 2 + src/psm/Txtmsg/Callr.php | 68 +++++++++++++++++++ src/psm/Txtmsg/Plivo.php | 63 +++++++++++++++++ .../default/module/config/config.tpl.html | 2 + 7 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 src/psm/Txtmsg/Callr.php create mode 100644 src/psm/Txtmsg/Plivo.php diff --git a/composer.json b/composer.json index 30353d62..21ba450b 100755 --- a/composer.json +++ b/composer.json @@ -11,7 +11,10 @@ "symfony/http-foundation": "~3.4", "php-pushover/php-pushover": "dev-master", "paragonie/random_compat": "^2.0", - "twig/twig": "~2.0" + "twig/twig": "~2.0", + "plivo/plivo-php": "^4.0", + "callr/sdk-php": "^0.10" + }, "autoload": { "files": [ diff --git a/docs/intro.rst b/docs/intro.rst index e1d0aa9c..8132855f 100644 --- a/docs/intro.rst +++ b/docs/intro.rst @@ -61,6 +61,8 @@ The following SMS gateways are currently available: * FreeMobile (FR) - * Twilio - * CM Telecom - +* Plivo - +* Callr - Please note: for these gateways you will need an account with sufficient credits. diff --git a/src/includes/functions.inc.php b/src/includes/functions.inc.php index dde0f585..0fcc584c 100644 --- a/src/includes/functions.inc.php +++ b/src/includes/functions.inc.php @@ -578,6 +578,12 @@ function psm_build_sms() { case 'twilio': $sms = new \psm\Txtmsg\Twilio(); break; + case 'plivo': + $sms = new \psm\Txtmsg\Plivo(); + break; + case 'callr': + $sms = new \psm\Txtmsg\Callr(); + break; } // copy login information from the config file diff --git a/src/psm/Module/Config/Controller/ConfigController.php b/src/psm/Module/Config/Controller/ConfigController.php index d0d80e2c..08f9c311 100644 --- a/src/psm/Module/Config/Controller/ConfigController.php +++ b/src/psm/Module/Config/Controller/ConfigController.php @@ -378,6 +378,8 @@ class ConfigController extends AbstractController { 'label_sms_gateway_freemobilesms' => psm_get_lang('config', 'sms_gateway_freemobilesms'), 'label_sms_gateway_clicksend' => psm_get_lang('config', 'sms_gateway_clicksend'), 'label_sms_gateway_twilio' => psm_get_lang('config', 'sms_gateway_twilio'), + 'label_sms_gateway_plivo' => psm_get_lang('config', 'sms_gateway_plivo'), + 'label_sms_gateway_callr' => psm_get_lang('config', 'sms_gateway_callr'), 'label_sms_gateway_username' => psm_get_lang('config', 'sms_gateway_username'), 'label_sms_gateway_password' => psm_get_lang('config', 'sms_gateway_password'), 'label_sms_from' => psm_get_lang('config', 'sms_from'), diff --git a/src/psm/Txtmsg/Callr.php b/src/psm/Txtmsg/Callr.php new file mode 100644 index 00000000..9c91a2d2 --- /dev/null +++ b/src/psm/Txtmsg/Callr.php @@ -0,0 +1,68 @@ +. + * + * @package phpservermon + * @license http://www.gnu.org/licenses/gpl.txt GNU GPL v3 + * @version Release: @package_version@ + * @link http://www.phpservermonitor.org/ + **/ + +namespace psm\Txtmsg; + +class Callr extends Core { + // ========================================================================= + // [ Fields ] + // ========================================================================= + public $gateway = 1; + public $resultcode = null; + public $resultmessage = null; + public $success = false; + public $successcount = 0; + + // ========================================================================= + // [ Methods ] + // ========================================================================= + public function setGateway($gateway) { + $this->gateway = $gateway; + } + + public function sendSMS($message) { + //api stuff here + $api = new \CALLR\API\Client; + $api->setAuth(new CALLR\API\Authentication\LoginPasswordAuth($this->username, $this->password)); + + $options = new stdClass; + $options->force_encoding = 'GSM'; + $options->nature = 'ALERTING'; + $options->flash_message = false;//set to true if you don't want the SMS to be stored on the phone + + try { + foreach($this->recipients as $recipient) { + $api->call('sms.send', [$this->originator, $recipient, $message, $options]); + } + return 1; + } catch(Exception $e){ + if($e->getCode() == 22){ + return "Exception: Authentication failure\r\n"; + } else { + return $e->getMessage(); + } + } + } +} diff --git a/src/psm/Txtmsg/Plivo.php b/src/psm/Txtmsg/Plivo.php new file mode 100644 index 00000000..50889bf3 --- /dev/null +++ b/src/psm/Txtmsg/Plivo.php @@ -0,0 +1,63 @@ +. + * + * @package phpservermon + * @license http://www.gnu.org/licenses/gpl.txt GNU GPL v3 + * @version Release: @package_version@ + * @link http://www.phpservermonitor.org/ + **/ + +namespace psm\Txtmsg; + +class Plivo extends Core { + // ========================================================================= + // [ Fields ] + // ========================================================================= + public $gateway = 1; + public $resultcode = null; + public $resultmessage = null; + public $success = false; + public $successcount = 0; + + // ========================================================================= + // [ Methods ] + // ========================================================================= + public function setGateway($gateway) { + $this->gateway = $gateway; + } + + public function sendSMS($message) { + $authId = $this->username; + $authToken = $this->password; + + $client = new \Plivo\RestClient($authId, $authToken); + /* @var $message_created \Plivo\Resources\Message\MessageCreateResponse */ + $message_created = $client->messages->create( + $this->originator, + $this->recipients, + $message + ); + + if($message_created && count($message_created->getMessageUuid()) ) { + return 1; + } else { + return $message_created->getMessage(); + } + } +} diff --git a/src/templates/default/module/config/config.tpl.html b/src/templates/default/module/config/config.tpl.html index d60eab4c..caf3a31e 100644 --- a/src/templates/default/module/config/config.tpl.html +++ b/src/templates/default/module/config/config.tpl.html @@ -203,6 +203,8 @@ + + From eb64d57497bfa5e01e471705e2895c8a6c350ebb Mon Sep 17 00:00:00 2001 From: Matthias Van Woensel Date: Thu, 17 May 2018 16:44:19 +0200 Subject: [PATCH 2/2] Adding Missing translation on sms gateways --- src/lang/bg_BG.lang.php | 3 +++ src/lang/cs_CZ.lang.php | 3 +++ src/lang/da_DK.lang.php | 3 +++ src/lang/de_DE.lang.php | 3 +++ src/lang/en_US.lang.php | 2 ++ src/lang/es_ES.lang.php | 3 +++ src/lang/et_ET.lang.php | 4 ++++ src/lang/fa_IR.lang.php | 4 ++++ src/lang/fi_FI.lang.php | 4 ++++ src/lang/fr_FR.lang.php | 3 +++ src/lang/it_IT.lang.php | 3 +++ src/lang/ja_JP.lang.php | 3 +++ src/lang/ko_KR.lang.php | 5 ++++- src/lang/nl_NL.lang.php | 3 +++ src/lang/pl_PL.lang.php | 3 +++ src/lang/pt_BR.lang.php | 9 ++++++--- src/lang/ru_RU.lang.php | 3 +++ src/lang/sk_SK.lang.php | 3 +++ src/lang/sl_SI.lang.php | 6 +++++- src/lang/sv_SE.lang.php | 5 ++++- src/lang/tr_TR.lang.php | 5 ++++- src/lang/vi_VN.lang.php | 4 ++++ src/lang/zh_CN.lang.php | 3 +++ 23 files changed, 80 insertions(+), 7 deletions(-) diff --git a/src/lang/bg_BG.lang.php b/src/lang/bg_BG.lang.php index ee5b11c2..9f4aec9a 100644 --- a/src/lang/bg_BG.lang.php +++ b/src/lang/bg_BG.lang.php @@ -216,6 +216,9 @@ $sm_lang = array( 'sms_gateway_smsglobal' => 'SMSGlobal', 'sms_gateway_octopush' => 'Octopush', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Потребител', 'sms_gateway_password' => 'Парола', 'sms_from' => 'Номер на изпращача', diff --git a/src/lang/cs_CZ.lang.php b/src/lang/cs_CZ.lang.php index fd3a8fbf..535313f4 100644 --- a/src/lang/cs_CZ.lang.php +++ b/src/lang/cs_CZ.lang.php @@ -231,6 +231,9 @@ $sm_lang = array( 'sms_gateway_freemobilesms' => 'FreeMobileSMS', 'sms_gateway_clicksend' => 'ClickSend', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Uživatelské jméno brány', 'sms_gateway_password' => 'Heslo brány', 'sms_from' => 'Telefonní číslo odesilatele', diff --git a/src/lang/da_DK.lang.php b/src/lang/da_DK.lang.php index cfa62017..0707d25b 100644 --- a/src/lang/da_DK.lang.php +++ b/src/lang/da_DK.lang.php @@ -213,6 +213,9 @@ $sm_lang = array( 'sms_gateway_octopush' => 'Octopush', 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Gateway brugernavn/apikey', 'sms_gateway_password' => 'Gateway adgangskode', 'sms_from' => 'Afsenderens navn.', diff --git a/src/lang/de_DE.lang.php b/src/lang/de_DE.lang.php index b4094b07..536ce333 100644 --- a/src/lang/de_DE.lang.php +++ b/src/lang/de_DE.lang.php @@ -217,6 +217,9 @@ $sm_lang = array( 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Gateway Benutzername', 'sms_gateway_password' => 'Gateway Passwort', 'sms_from' => 'SMS-Sendernummer', diff --git a/src/lang/en_US.lang.php b/src/lang/en_US.lang.php index 29c0697c..93363698 100644 --- a/src/lang/en_US.lang.php +++ b/src/lang/en_US.lang.php @@ -254,6 +254,8 @@ $sm_lang = array( 'sms_gateway_nexmo' => 'Nexmo', 'sms_gateway_smsgw' => 'SMSgw', 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Gateway username', 'sms_gateway_password' => 'Gateway password', 'sms_from' => 'Sender\'s phone number', diff --git a/src/lang/es_ES.lang.php b/src/lang/es_ES.lang.php index aab8ac56..8f57376e 100644 --- a/src/lang/es_ES.lang.php +++ b/src/lang/es_ES.lang.php @@ -220,6 +220,9 @@ $sm_lang = array( 'sms_gateway_username' => 'Usuario', 'sms_gateway_password' => 'Contraseña', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Gateway username', 'sms_gateway_password' => 'Gateway password', 'sms_from' => 'Número origen del SMS', diff --git a/src/lang/et_ET.lang.php b/src/lang/et_ET.lang.php index f2519f73..6b060cee 100644 --- a/src/lang/et_ET.lang.php +++ b/src/lang/et_ET.lang.php @@ -201,6 +201,10 @@ $sm_lang = array( 'sms_gateway_smsglobal' => 'SMSGlobal', 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', + 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Värava kasutajanimi', 'sms_gateway_password' => 'Värava parool', 'sms_from' => 'Saatja telefoni number', diff --git a/src/lang/fa_IR.lang.php b/src/lang/fa_IR.lang.php index 70639399..5406a354 100644 --- a/src/lang/fa_IR.lang.php +++ b/src/lang/fa_IR.lang.php @@ -201,6 +201,10 @@ $sm_lang = array( 'sms_gateway_smsglobal' => 'SMSGlobal', 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', + 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'نام کاربری Gateway', 'sms_gateway_password' => 'کلمه عبور Gateway', 'sms_from' => 'شماره تلفن ارسال کننده', diff --git a/src/lang/fi_FI.lang.php b/src/lang/fi_FI.lang.php index 74f4de41..b6eeedad 100644 --- a/src/lang/fi_FI.lang.php +++ b/src/lang/fi_FI.lang.php @@ -201,6 +201,10 @@ $sm_lang = array( 'sms_gateway_smsglobal' => 'SMSGlobal', 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', + 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Palvelun käyttäjänimi', 'sms_gateway_password' => 'Palvelun salasana', 'sms_from' => 'Lähettäjän puhelinnumero', diff --git a/src/lang/fr_FR.lang.php b/src/lang/fr_FR.lang.php index ab97767c..a493f91f 100644 --- a/src/lang/fr_FR.lang.php +++ b/src/lang/fr_FR.lang.php @@ -217,6 +217,9 @@ $sm_lang = array( 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_freemobilesms' => 'FreeMobileSMS', 'sms_gateway_username' => 'Nom utilisateur de la passerelle', 'sms_gateway_password' => 'Mot de passe de la passerelle', diff --git a/src/lang/it_IT.lang.php b/src/lang/it_IT.lang.php index 4de13b52..8fa0c8fd 100644 --- a/src/lang/it_IT.lang.php +++ b/src/lang/it_IT.lang.php @@ -216,6 +216,9 @@ $sm_lang = array( 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Nome Utente Gateway', 'sms_gateway_password' => 'Password Gateway', 'sms_from' => 'Numero di telefono del mittente', diff --git a/src/lang/ja_JP.lang.php b/src/lang/ja_JP.lang.php index 4e66fe14..0893e405 100644 --- a/src/lang/ja_JP.lang.php +++ b/src/lang/ja_JP.lang.php @@ -222,6 +222,9 @@ $sm_lang = array( 'sms_gateway_freemobilesms' => 'FreeMobileSMS', 'sms_gateway_clicksend' => 'ClickSend', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_smsgw' => 'SMSgw', 'sms_gateway_username' => 'ゲートウェイのユーザー名', 'sms_gateway_password' => 'ゲートウェイのパスワード', diff --git a/src/lang/ko_KR.lang.php b/src/lang/ko_KR.lang.php index 10341ef0..5d391ecc 100644 --- a/src/lang/ko_KR.lang.php +++ b/src/lang/ko_KR.lang.php @@ -212,7 +212,10 @@ $sm_lang = array( 'sms_gateway_clickatell' => 'Clickatell', 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_nexmo' => 'Nexmo', - 'sms_gateway_textmarketer' => 'Textmarketer', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', + 'sms_gateway_textmarketer' => 'Textmarketer', 'sms_gateway_smsglobal' => 'SMSGlobal', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_octopush' => 'Octopush', diff --git a/src/lang/nl_NL.lang.php b/src/lang/nl_NL.lang.php index 110e4e69..1c787d0e 100644 --- a/src/lang/nl_NL.lang.php +++ b/src/lang/nl_NL.lang.php @@ -216,6 +216,9 @@ $sm_lang = array( 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Gateway gebruikersnaam', 'sms_gateway_password' => 'Gateway wachtwoord', 'sms_from' => 'Telefoonnummer afzender', diff --git a/src/lang/pl_PL.lang.php b/src/lang/pl_PL.lang.php index 853d3f3c..17275b1b 100644 --- a/src/lang/pl_PL.lang.php +++ b/src/lang/pl_PL.lang.php @@ -216,6 +216,9 @@ $sm_lang = array( 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Login do bramki', 'sms_gateway_password' => 'Hasło do bramki', 'sms_from' => 'Numer nadawcy', diff --git a/src/lang/pt_BR.lang.php b/src/lang/pt_BR.lang.php index 26e51f85..8318368e 100644 --- a/src/lang/pt_BR.lang.php +++ b/src/lang/pt_BR.lang.php @@ -219,9 +219,12 @@ $sm_lang = array( 'sms_gateway_password' => 'Senha do Gateway', 'sms_from' => 'Número de telefone de envio', 'sms_gateway_nexmo' => 'Nexmo', - 'sms_gateway_username' => 'Usuário do Gateway', - 'sms_gateway_password' => 'Senha do Gateway', - 'sms_from' => 'Número de telefone de envio', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', + 'sms_gateway_username' => 'Usuário do Gateway', + 'sms_gateway_password' => 'Senha do Gateway', + 'sms_from' => 'Número de telefone de envio', 'pushover_status' => 'Habilitar envio de mensagens Pushover', 'pushover_description' => 'Pushover é um serviço de notificações em tempo real. Veja o website para mais informações.', 'pushover_clone_app' => 'Clique aqui para criar sua app Pushover', diff --git a/src/lang/ru_RU.lang.php b/src/lang/ru_RU.lang.php index 4825e56e..d7e9a46a 100644 --- a/src/lang/ru_RU.lang.php +++ b/src/lang/ru_RU.lang.php @@ -216,6 +216,9 @@ $sm_lang = array( 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Пользователь', 'sms_gateway_password' => 'Пароль', 'sms_from' => 'Номер отправителя', diff --git a/src/lang/sk_SK.lang.php b/src/lang/sk_SK.lang.php index 40cd4d49..4a5f3c09 100644 --- a/src/lang/sk_SK.lang.php +++ b/src/lang/sk_SK.lang.php @@ -217,6 +217,9 @@ $sm_lang = array( 'sms_gateway_freemobilesms' => 'FreeMobileSMS', 'sms_gateway_clicksend' => 'ClickSend', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Užívateľské meno brány', 'sms_gateway_password' => 'Heslo brány', 'sms_from' => 'Telefónne číslo odosielateľa', diff --git a/src/lang/sl_SI.lang.php b/src/lang/sl_SI.lang.php index 42e8266d..22cdcfc7 100644 --- a/src/lang/sl_SI.lang.php +++ b/src/lang/sl_SI.lang.php @@ -197,7 +197,11 @@ $sm_lang = array( 'sms_gateway_clickatell' => 'Clickatell', 'sms_gateway_textmarketer' => 'Textmarketer', 'sms_gateway_smsglobal' => 'SMSGlobal', - 'sms_gateway_smsit' => 'Smsit', + 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', + 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_username' => 'Uporabniško ime SMS prehoda', 'sms_gateway_password' => 'Geslo SMS prehoda', 'sms_from' => 'Telefonska številka pošiljatelja', diff --git a/src/lang/sv_SE.lang.php b/src/lang/sv_SE.lang.php index 9d750e48..45b80ac2 100644 --- a/src/lang/sv_SE.lang.php +++ b/src/lang/sv_SE.lang.php @@ -210,11 +210,14 @@ $sm_lang = array( 'sms_gateway_spryng' => 'Spryng', 'sms_gateway_inetworx' => 'Inetworx', 'sms_gateway_clickatell' => 'Clickatell', - 'sms_gateway_textmarketer' => 'Textmarketer', + 'sms_gateway_textmarketer' => 'Textmarketer', 'sms_gateway_smsglobal' => 'SMSGlobal', 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Gateway användarnamn', 'sms_gateway_password' => 'Gateway lösenord', 'sms_from' => 'Avsändarens telefonnummer', diff --git a/src/lang/tr_TR.lang.php b/src/lang/tr_TR.lang.php index e5e498fd..2ff21779 100644 --- a/src/lang/tr_TR.lang.php +++ b/src/lang/tr_TR.lang.php @@ -215,7 +215,10 @@ $sm_lang = array( 'sms_gateway_octopush' => 'Octopush', 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', - 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Servis kullanıcı adı', 'sms_gateway_password' => 'Servis şifresi', 'sms_from' => 'Gönderen numarası', diff --git a/src/lang/vi_VN.lang.php b/src/lang/vi_VN.lang.php index dea17622..c331e9c2 100644 --- a/src/lang/vi_VN.lang.php +++ b/src/lang/vi_VN.lang.php @@ -198,6 +198,10 @@ $sm_lang = array( 'sms_gateway_textmarketer' => 'Textmarketer', 'sms_gateway_smsglobal' => 'SMSGlobal', 'sms_gateway_smsit' => 'Smsit', + 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'Gateway username', 'sms_gateway_password' => 'Gateway password', 'sms_from' => 'Số điện thoại của người gửi', diff --git a/src/lang/zh_CN.lang.php b/src/lang/zh_CN.lang.php index 0421d8a6..743ea64c 100644 --- a/src/lang/zh_CN.lang.php +++ b/src/lang/zh_CN.lang.php @@ -232,6 +232,9 @@ $sm_lang = array( 'sms_gateway_smsit' => 'Smsit', 'sms_gateway_freevoipdeal' => 'FreeVoipDeal', 'sms_gateway_nexmo' => 'Nexmo', + 'sms_gateway_twilio' => 'Twilio', + 'sms_gateway_callr' => 'Callr', + 'sms_gateway_plivo' => 'Plivo', 'sms_gateway_username' => 'SMS网关用户名', 'sms_gateway_password' => 'SMS网关密码', 'sms_from' => '发信人电话号',