Php SMPP错误0xd绑定失败

Php SMPP错误0xd绑定失败,php,smpp,Php,Smpp,我使用SMPP库。这是我的密码: $transport = new SocketTransport(array($smpphost),$smppport,false,'printDebug'); // hostname/ip (ie. localhost) and port (ie. 2775) $transport->setRecvTimeout(10000); $transport->setSendTimeout(10000); $smpp = new SmppClient($t

我使用SMPP库。这是我的密码:

$transport = new SocketTransport(array($smpphost),$smppport,false,'printDebug'); // hostname/ip (ie. localhost) and port (ie. 2775)
$transport->setRecvTimeout(10000);
$transport->setSendTimeout(10000);
$smpp = new SmppClient($transport,'printDebug');

// Activate debug of server interaction
$smpp->debug = true;        // binary hex-output
$transport->debug = true; // also get TSocket debug

// Open the connection
$transport->open();
$smpp->bindTransmitter($systemid,$password);

  // Prepare message
$message = 'H€llo world';
$encodedMessage = GsmEncoder::utf8_to_gsm0338($message);
$from = new SmppAddress(GsmEncoder::utf8_to_gsm0338('SMPP Tést'),SMPP::TON_ALPHANUMERIC);
$to = new SmppAddress($too,SMPP::TON_INTERNATIONAL,SMPP::NPI_E164);

// Send
$smpp->sendSMS($from,$to,$encodedMessage);

// Close connection
$smpp->close();
错误,我得到:

致命错误:第621行的/home/roman/www/jobeet/php smpp master/smppclient.class.php中的未捕获异常“SmppException”和消息“Bind Failed”,SmppException:Bind Failed in/home/roman/www/jobeet/php smpp master/smppclient.class.php位于第621行的调用堆栈:0.0007 345736 1。{main}()/home/roman/www/jobeet/index.php:0


我的代码中可能有错误,或者这只是SMPP服务器的问题?

我猜您的SMSC不支持以发射机+接收机的方式连接,只需要收发器连接,不幸的是,该特定库不支持这种连接。

谢谢您的意见。我会联系SMPP提供商并问这个问题。如果这是真的,是否有用于收发器连接的库?坦白说,我真的不知道,我还没有找到任何用于PHP的开源SMPP库来实现收发器模式。正如文档中所述,SMPP服务器同时支持发射机+接收机和收发器连接。所以问题应该出在其他方面。您能捕获异常并查看错误是什么吗?(我正在阅读库代码,bind命令中的错误状态代码应该出现在异常消息中。在这种情况下,这是非常少的信息。我建议联系您的SMPP提供商并询问他们,他们肯定能比您看到更多关于这方面的信息。这可能很简单,比如没有IP地址被列为白名单,或者在只允许一个连接时使用多个同时连接,或者基本上是任何其他可能阻止连接的原因。