SMPP client receive sms problem | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through January 23, 2007 ⬆ |
◄ ► |
Author | Message | ||||||
jerry New member Username: Jerryws Post Number: 1 Registered: 11-2006 |
Hi, I can use SMPP client to connect the NOWSMS2006 and send sms to my friend's mobile. But it seems that NOWSMS can not delivery the sms that it received to SMPP client. Although I saw the received sms in SMS-20061114.LOG(This file is located in NowSMS\USERS\jerry) The SMPP client is designed by myself by the use of smpp.jar(you can find it with this link:http://opensmpp.logica.com). And I have tested the smpp client with simulator which is also provided by logica. I can use the smpp client send and receive sms with the simulator. What should I do to let NOWSMS delivery sms that it received to my SMPP client? Or need I change configuration? Thanks.
| ||||||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6822 Registered: 10-2002 |
Hi jerry, It looks like your configuation is correct ... I see that in your "SMSC" definition that defines the connection to the modem, you have configured "Route SMS to local user" = "jerry". This setting routes any messages received via the modem interface to the SMPP client. Or at least it is supposed to. The fact that you see the message in NowSMS\USERS\jerry indicates that this routing is happening correctly. The remaining question would be ... why is the message not being pushed out to the connected SMPP client "jerry"? And as I study your logs in more detail ... the answer is simple. Your SMPP client is binding to the server as a transmitter only. Unless you are bound as a receiver or a transceiver, the server will not deliver any messages to you. Fix your client to either: a.) bind twice ... once as a transmitter and once as a receiver b.) ... or to bind as a transceiver instead of a transmitter. -bn | ||||||
jerry New member Username: Jerryws Post Number: 2 Registered: 11-2006 |
Hi bn, Thanks for you reply. I edit my client code and it bind as a transceiver now. The client can receive sms from Nowsms. But there are two things confuse me. 1. Sms that the client received from Nowsms will received again when the client restart. Everytime I start the client I can receive the total smses in spite of I have received them before. 2. If there are 5 smses received by Nowsms, Nowsms will delivery them to smpp client. But it need 8 minutes to finish this task. I can find "SMPPServerSubmitMessage: SMPP response failed" and "WaitForResponseSMPP: SMPP select timeout" in SMPPDebug.log. Should I send a response when received a request? If I missed response, Nowsms will wait until expire?
| ||||||
Bryce Norwood - NowSMS Support Board Administrator Username: Bryce Post Number: 6846 Registered: 10-2002 |
I'd strongly suggest that you find a copy of the SMPP protocol specification, and study it. You need to return a response back to the SMPP server to acknowledge that you have received the message. Otherwise, the server is just going to hang there waiting for that response, and if it doesn't get it, it is going to assume that the client has died and terminate the connection. |