-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
105 lines (71 loc) · 3.35 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
SMPP Test Tools
===============
1. Introduction
---------------
SMPP stands for Short Message Peer-to-peer Protocol.
This repository contains the Java source for a pair of simple test
tools, designed to allow the sending and receiving of SMPP PDUs. These
tools are based on the OpenSMPP API.
One tool is GUI based and allows the entry of PDU data via a series of
data entry screens. The other is a batch tool that sends a scripted
sequence of PDUs, as specified in an XML file.
2. Licensing
------------
This software is released under the GNU General Public License version
2.0 (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html) or later
(https://www.gnu.org/licenses/licenses.html).
3. Requirements
---------------
These tools require Java6, ant, OpenSMPP
(https://www.gnu.org/licenses/licenses.html) and JDOM
(http://www.jdom.org/).
4. Building
-----------
A build.xml file is provided to build these tools with ant. Suitable
paths to jdom.jar and OpenSMPP.jar will need to be set.
5. The GUI test tool
--------------------
Usage: java -cp "/path/to/OpenSMPP.jar:/path/to/jdom.jar" \
uk.org.youngman.smpp.test.gui.TestClient
This launches a simple window. Clicking the "Connect" button launches
the connect dialog. Filling in the server details and clicking the
"Confirm" button connects to the SMSC. Once connected the "Send PDU"
and "Disconnect" buttons are activated.
The GUI tool can read default connection and login (bind) details from
file Test.properties, if that is on the class path.
The "Send PDU" button launches a PDU composition dialog. After
selecting a PDU type the fields can be filled in as required. Sequence
numbers increment automatically, but can be altered if required.
On the main window there are 2 checkboxes that control whether
ENQUIRE_LINK and DELIVER_SM PDUs are automatically acknowledged. While
these checkboxes are selected those PDUs will be acknowledged with the
status ESME_ROK.
All PDUs sent and received are logged in the log pane in the centre of
the main window. Double clicking on a PDU entry opens up a read only
PDU dialog to display the Contents of the PDU as sent or received.
6. The Batch test tool
----------------------
Usage: java -cp "/path/to/OpenSMPP.jar:/path/to/jdom.jar" \
uk.org.youngman.smpp.test.batch.BatchClient \
batch_file.xml batch.log
The batch test tool supports scripted SMPP testing. It reads an XML
file with instructions on where to connect, what PDUs to send, whether
or not to automatically acknowledge ENQUIRE_LINK and DELIVER_SM PDUs
and pauses. It writes details of all PDUs sent and received to a log
file.
If it detects any errors while parsing the XML, it will not try to
continue. The XML is not validated against a schema, so not all
errors will be detected.
A simple batch example is provided, which will need to be edited to
your requirements. It is not documented, but I hope it is resonably
self explanatory, given a basic familiarity with SMPP.
7. Limitations
--------------
These tools do not currently provide any way to change the character
sets used from the OpenSMPP defaults without code changes.
There is no way to alter automated responses where these are used or
to make the response conditional on the contents of the received
PDU. Automated responses are currently only available for ENQUIRE_LINK
and DELIVER_SM PDUs.
Neil Youngman, 20th January 2011.
smpp@youngman.org.uk