title: SMPP 'Invalid Parameter Length.' Exception
body: <p>I'm Using <a href="https://github.com/onlinecity/php-smpp" rel="nofollow">onlinecity/php-smpp</a> library to create a SMPP client for first time and by running its example,I keep receive an exception which said: </p>
  
  <blockquote>
    <p>( ! ) Fatal error: Uncaught exception 'gateway\protocol\SmppException' with message 'Invalid Parameter Length.' in C:\wamp\www\html\gateway\protocol\smppclient.class.php on line 488</p>
  </blockquote>
  
  <p>Now, my question is that is this message related to the SMPP server configuration or I'm missing something in my client code?
  If this is related to server, how can I trace and troubleshoot that?</p>
  
  <p>UPDATE:</p>
  
  <pre><code>    483     $pdu = new \SMPP\PDU($id, 0, $this-&gt;sequence_number, $pduBody);
      484     $this-&gt;sendPDU($pdu);
      485     
      486     $response=$this-&gt;readPDU_resp($this-&gt;sequence_number, $pdu-&gt;id);
      487         
      488         if ($response-&gt;status != \SMPP\ESME_ROK) throw new SmppException(\SMPP\getStatusMessage($response-&gt;status), $response-&gt;status);
  </code></pre>