onlinecity / php-smpp

PHP 5 based SMPP client library
232 stars 161 forks source link

smpp connection issue #53

Closed ghost closed 6 years ago

ghost commented 9 years ago

I can't connect to the smpp server, here's the error message :

Fatal error: Uncaught exception 'SocketTransportException' with message 'Could not connect to any of the specified hosts' in /xxxxxxxxxx/www/smpp/sockettransport.class.php:262 Stack trace: #0 /xxxxxxxxxx/www/smpp/receive_sms.php(17): SocketTransport->open() #1 {main} thrown in /xxxxxxxxxx/www/smpp/sockettransport.class.php on line 262

I changed the socket transport to SocketTransport::$forceIpv4=true; still no connection to the server

Shimmi commented 8 years ago

Hi @praxxs, Can you try steps mentioned in this issue/comment If the issue is still valid or close it otherwise?

Thanks!

yerganat commented 6 years ago

Solve the problem by setting $transport->setSendTimeout(30000);