diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-02 16:05:31 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-11-02 16:05:31 +1300 |
commit | fb5e953f90f0bf48593feb88138a5ee1706b6989 (patch) | |
tree | c90ca8228c5436fe6f462d8cc5730df4d0388e16 /src/org/traccar/Context.java | |
parent | f6fa77c3e2e63dbfa14884ee8fe448c467c9f592 (diff) | |
download | trackermap-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.java | 3 |
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) { |