aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-03-24 10:21:56 -0700
committerGitHub <noreply@github.com>2021-03-24 10:21:56 -0700
commit75ec3fa275b350edfa9f4dce67e2cc098e684b70 (patch)
tree9dc25bf0aff2b74cf9b5e3499fd8195311a7e748 /src/main/java/org/traccar/Context.java
parentbe87b57c22b385bfc317d4e3e18e43877f46ca9b (diff)
parentf10dabf49aa78c8277680d787837cfe74b9e653c (diff)
downloadtrackermap-server-75ec3fa275b350edfa9f4dce67e2cc098e684b70.tar.gz
trackermap-server-75ec3fa275b350edfa9f4dce67e2cc098e684b70.tar.bz2
trackermap-server-75ec3fa275b350edfa9f4dce67e2cc098e684b70.zip
Merge pull request #4650 from subodhranadive/feature-sns-integration
Amazon SNS integration
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 3ba8843f0..fe494dabf 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -60,6 +60,7 @@ 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.SnsSmsClient;
import org.traccar.web.WebServer;
import javax.ws.rs.client.Client;
@@ -317,6 +318,8 @@ public final class Context {
if (config.hasKey(Keys.SMS_HTTP_URL)) {
smsManager = new HttpSmsClient();
+ } else if (config.hasKey(Keys.SMS_AWS_REGION)) {
+ smsManager = new SnsSmsClient();
}
initEventsModule();