/tool sms send port=usb1 channel=2

This commit is contained in:
Ibnu Maksum
2023-12-11 15:06:21 +07:00
parent 6a0ad7f178
commit 653580722e
2 changed files with 15 additions and 16 deletions

View File

@ -29,6 +29,7 @@ class Message
$mikrotik = Mikrotik::info($config['sms_url']);
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
Mikrotik::sendSMS($client, $phone, $txt);
die("mikrotik");
}catch(Exception $e){
// ignore, add to logs
_log("Failed to send SMS using Mikrotik.\n". $e->getMessage(), 'SMS', 0);