diff --git a/adapters/GammuAdapter.php b/adapters/GammuAdapter.php index da42b49..884da1f 100644 --- a/adapters/GammuAdapter.php +++ b/adapters/GammuAdapter.php @@ -195,7 +195,7 @@ namespace adapters; 'sendsms', 'TEXT', escapeshellarg($destination), - '-textutf8', + '-text', escapeshellarg($text), '-validity', 'MAX', @@ -338,9 +338,7 @@ namespace adapters; { return true; } - - // The command returns 123 on failed execution (even if SIM is already unlocked), and returns 0 if unlock was successful - // We can directly return true if command was succesful + $command_parts = [ 'LC_ALL=C', 'gammu', @@ -352,13 +350,8 @@ namespace adapters; ]; $result = $this->exec_command($command_parts); - if (0 === $result['return']) - { - return true; - } //Check security status - // The command returns 0 regardless of the SIM security state $command_parts = [ 'LC_ALL=C', 'gammu',