문제

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