質問

I'm Using onlinecity/php-smpp library to create a SMPP client for first time and by running its example,I keep receive an exception which said:

( ! ) 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

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?

UPDATE:

    483     $pdu = new \SMPP\PDU($id, 0, $this->sequence_number, $pduBody);
    484     $this->sendPDU($pdu);
    485     
    486     $response=$this->readPDU_resp($this->sequence_number, $pdu->id);
    487         
    488         if ($response->status != \SMPP\ESME_ROK) throw new SmppException(\SMPP\getStatusMessage($response->status), $response->status);
役に立ちましたか?

解決

I update library to newer (and windows-compatible) version: onlinecity/php-smpp/windows-compatible

Then add a single optional line of code:

SmppClient::$sms_null_terminate_octetstrings = false;

And Boom! Problem solved.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top