<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="../plugin.xsl" type="text/xsl"?>
<plugin name="SmppInjector">
  <object class="org.ow2.isac.plugin.smppinjector.SessionObject">
    <params />
    <help>Handles a client (ESME) SMPP connection with an SMSC and supports sending short messages.</help>
  </object>
  <sample name="connectAndBind" number="0">
    <params>
      <param name="host" type="String" />
      <param name="port" type="String" />
      <param name="bind-type" type="String" />
      <param name="timeout-ms" type="String" />
      <param name="system-id" type="String" />
      <param name="password" type="String" />
      <param name="system-type" type="String" />
      <param name="ton" type="String" />
      <param name="npi" type="String" />
      <param name="comment" type="String" />
    </params>
    <help>Connects to an SMSC and binds an SMPP session.</help>
  </sample>
  <sample name="sendMessage" number="1">
    <params>
      <param name="message" type="String" />
      <param name="sender-address" type="String" />
      <param name="recipient-address" type="String" />
      <param name="comment" type="String" />
      <param name="alphabet" type="String" />
      <param name="class" type="String" />
      <param name="payload-parameter" type="String" />
      <param name="concatenated-message" type="String" />
    </params>
    <help>Sends a short message over current SMPP session. The session must be opened (see sample connectAndBind) in BOUND_TX or BOUND_TRX status.</help>
  </sample>
  <test name="stateIsOneOf" number="3">
    <params>
      <param name="states" type="String" />
    </params>
    <help>Checks if current SMPP session state is one among a list of states.</help>
  </test>
  <test name="stateIsNotOneOf" number="5">
    <params>
      <param name="states" type="String" />
    </params>
    <help>Give test help.</help>
  </test>
  <control name="unbindAndClose" number="4">
    <params />
    <help>Sends Unbind to SMSC and closes connection.</help>
  </control>
</plugin>

