doudu5498 2013-07-17 23:26
浏览 193
已采纳

SMPP'参数长度无效。' 例外

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);
  • 写回答

1条回答 默认 最新

  • douzhushen_9776 2013-07-18 14:08
    关注

    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.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题