aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 8492e4230..d23314c06 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -60,8 +60,8 @@ import org.traccar.notification.EventForwarder;
import org.traccar.notification.NotificatorManager;
import org.traccar.reports.model.TripsConfig;
import org.traccar.schedule.ScheduleManager;
+import org.traccar.sms.HttpSmsClient;
import org.traccar.sms.SmsManager;
-import org.traccar.sms.smpp.SmppClient;
import org.traccar.web.WebServer;
import javax.ws.rs.client.Client;
@@ -326,12 +326,7 @@ public final class Context {
tripsConfig = initTripsConfig();
if (config.getBoolean("sms.enable")) {
- final String smsManagerClass = config.getString("sms.manager.class", SmppClient.class.getCanonicalName());
- try {
- smsManager = (SmsManager) Class.forName(smsManagerClass).newInstance();
- } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
- LOGGER.warn("Error loading SMS Manager class : " + smsManagerClass, e);
- }
+ smsManager = new HttpSmsClient();
}
if (config.getBoolean("event.enable")) {