diff options
author | Abyss777 <abyss@fox5.ru> | 2017-03-20 15:04:54 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-03-20 15:04:54 +0500 |
commit | 1455ad6ce058f02d812e23fb275265f105272f4d (patch) | |
tree | 416ebf1a9db496e11632926d0c36abf2b2bea963 /src/org/traccar/smpp | |
parent | 99e16edfd8b29d5ef1b751eefcf87a14df35cb9b (diff) | |
download | trackermap-server-1455ad6ce058f02d812e23fb275265f105272f4d.tar.gz trackermap-server-1455ad6ce058f02d812e23fb275265f105272f4d.tar.bz2 trackermap-server-1455ad6ce058f02d812e23fb275265f105272f4d.zip |
Move handleTextMessage function to separate handler.
Diffstat (limited to 'src/org/traccar/smpp')
-rw-r--r-- | src/org/traccar/smpp/ClientSmppSessionHandler.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/smpp/ClientSmppSessionHandler.java b/src/org/traccar/smpp/ClientSmppSessionHandler.java index f4d40c3eb..77f75273e 100644 --- a/src/org/traccar/smpp/ClientSmppSessionHandler.java +++ b/src/org/traccar/smpp/ClientSmppSessionHandler.java @@ -16,7 +16,7 @@ */ package org.traccar.smpp; -import org.traccar.Context; +import org.traccar.events.TextMessageEventHandler; import org.traccar.helper.Log; import com.cloudhopper.commons.charset.CharsetUtil; @@ -54,7 +54,7 @@ public class ClientSmppSessionHandler extends DefaultSmppSessionHandler { String message = CharsetUtil.decode(((DeliverSm) request).getShortMessage(), smppClient.mapDataCodingToCharset(((DeliverSm) request).getDataCoding())); Log.debug("SMS Message Received: " + message.trim() + ", Source Address: " + sourceAddress); - Context.getDeviceManager().handleTextMessage(sourceAddress, message); + TextMessageEventHandler.handleTextMessage(sourceAddress, message); } } response = request.createResponse(); |