aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-11-02 16:05:31 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-11-02 16:05:31 +1300
commitfb5e953f90f0bf48593feb88138a5ee1706b6989 (patch)
treec90ca8228c5436fe6f462d8cc5730df4d0388e16 /src/org/traccar/Context.java
parentf6fa77c3e2e63dbfa14884ee8fe448c467c9f592 (diff)
downloadtrackermap-server-fb5e953f90f0bf48593feb88138a5ee1706b6989.tar.gz
trackermap-server-fb5e953f90f0bf48593feb88138a5ee1706b6989.tar.bz2
trackermap-server-fb5e953f90f0bf48593feb88138a5ee1706b6989.zip
Implement universal HTTP SMS manager
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 5b22120d7..3c3dac874 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -85,6 +85,7 @@ import org.traccar.notification.JsonTypeEventForwarder;
import org.traccar.notification.NotificatorManager;
import org.traccar.reports.model.TripsConfig;
import org.traccar.sms.SmsManager;
+import org.traccar.sms.smpp.SmppClient;
import org.traccar.web.WebServer;
import javax.ws.rs.client.Client;
@@ -422,7 +423,7 @@ public final class Context {
tripsConfig = initTripsConfig();
if (config.getBoolean("sms.enable")) {
- final String smsManagerClass = config.getString("sms.manager.class", "org.traccar.smpp.SmppClient");
+ final String smsManagerClass = config.getString("sms.manager.class", SmppClient.class.getCanonicalName());
try {
smsManager = (SmsManager) Class.forName(smsManagerClass).newInstance();
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {