diff options
author | Abyss777 <abyss@fox5.ru> | 2018-06-26 09:22:22 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2018-06-26 09:22:22 +0500 |
commit | aba402226403f8b3eb58cc01e8f536eb4104d35a (patch) | |
tree | ec884994ad90365fa9b385465a80391606f6d970 /src/org/traccar/BaseProtocol.java | |
parent | c700bfdb66071ba224ddf01e9827e721562fed7a (diff) | |
parent | 575deac9e2df1cbd0601328f7ea7a9f22029fa43 (diff) | |
download | trackermap-server-aba402226403f8b3eb58cc01e8f536eb4104d35a.tar.gz trackermap-server-aba402226403f8b3eb58cc01e8f536eb4104d35a.tar.bz2 trackermap-server-aba402226403f8b3eb58cc01e8f536eb4104d35a.zip |
Merge remote-tracking branch 'ivanfmartinez/notifications'
# Conflicts:
# src/org/traccar/Context.java
Diffstat (limited to 'src/org/traccar/BaseProtocol.java')
-rw-r--r-- | src/org/traccar/BaseProtocol.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/BaseProtocol.java b/src/org/traccar/BaseProtocol.java index 1729edd54..62ee99946 100644 --- a/src/org/traccar/BaseProtocol.java +++ b/src/org/traccar/BaseProtocol.java @@ -91,18 +91,18 @@ public abstract class BaseProtocol implements Protocol { @Override public void sendTextCommand(String destAddress, Command command) throws Exception { - if (Context.getSmppManager() != null) { + if (Context.getSmsManager() != null) { if (command.getType().equals(Command.TYPE_CUSTOM)) { - Context.getSmppManager().sendMessageSync(destAddress, command.getString(Command.KEY_DATA), true); + Context.getSmsManager().sendMessageSync(destAddress, command.getString(Command.KEY_DATA), true); } else if (supportedTextCommands.contains(command.getType()) && textCommandEncoder != null) { - Context.getSmppManager().sendMessageSync(destAddress, + Context.getSmsManager().sendMessageSync(destAddress, (String) textCommandEncoder.encodeCommand(command), true); } else { throw new RuntimeException( "Command " + command.getType() + " is not supported in protocol " + getName()); } } else { - throw new RuntimeException("SMPP client is not enabled"); + throw new RuntimeException("SMS is not enabled"); } } |