onlinecity / php-smpp

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

smpp receiver #25

Closed gobisn closed 10 years ago

gobisn commented 10 years ago

i send more sms using transmitter.but while read sms it display sms(bool) false.

yukimi88 commented 10 years ago

I have the same problem. I can successfully send out sms but using readSMS or queryStatus, I'm always getting bool(false) for readSMS and NULL for queryStatus. I tried to catch the exception but no exception is thrown. What could be wrong here? Can someone please advise? Thanks.

gobisn commented 10 years ago

better us kannel server for receive the sms. some receiver end mode may support only in transceiver mode.

cypres commented 10 years ago

To read a SMS or DeliveryReceipt you need a separate process bound as a receiver. If you want to do this using PHP you would need to use pcntl - however this is too complicated to explain in a github comment. See for instance http://www.tuxradar.com/practicalphp/16/1/3 . If you are up for it, you can take a look at our php-smpp-worker for an example implementation.

Using turnkey software such as kannel is obviously also a possibility, this project provides the protocol implementation only and a basic socket wrapper.

gobisn commented 10 years ago

most of the online server pctnl (signal handling) is disabled for security reason. so i switch over to kannel server. thank you for your reply.