Continuously repeating SMS?

Continuously repeating SMS? SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through June 02, 2006 » Continuously repeating SMS? « Previous || Next »
Author Message
Adam Korczynski
New member
Username: Adam_korczynski

Post Number: 1
Registered: 02-2006
Posted on Wednesday, March 01, 2006 - 06:27 am:   

I have NowSMS configured using a phone (Nokia 7210) as an SMSC and I have my own server set up as an SMS user with which I communicate over SMPP using the Java SMPP API.

When I send NowSMS a text message, it in turn passes that message to my server over SMPP, repeatedly. The interval varies but it's usually approx. 10-15 minutes apart. I have no idea what the problem could be. Even when I disconnect my SMSC (the above mentioned mobile phone, Nokia 7210) NowSMS still sends me the same SMS over and over.

Any help? Has anyone else had this problem? Is it the Java API?

The following is the part of my server which receives the SMS.

public class SMSDemo extends Thread implements ConnectionObserver {

public SMSDemo() {
// contructor
}


public void run() {
//pretty standard stuff here
}

public void update(Connection conn, SMPPEvent ev) {
if (ev.getType() == SMPPEvent.RECEIVER_EXIT && ((ReceiverExitEvent)ev).getReason()!=0) {
synchronized(this) {
notify();
}
}
}

public void packetReceived(Connection conn, SMPPPacket pack) {
switch(pack.getCommandId()) {
case SMPPPacket.DELIVER_SM :
try {
processSMS(pack);
} catch (Exception e) {
e.printStackTrace();
}
break;
case SMPPPacket.BIND_TRANSCEIVER_RESP :
if (pack.getCommandStatus() != 0) {
System.out.println("Error binding: " + pack.getCommandStatus());
exit = true;
synchronized(this) {
notify();
}
} else {
System.out.println("Bounded");
}
case SMPPPacket.ENQUIRE_LINK_RESP :
System.out.println("Link is OK");
}
}


private void processSMS(SMPPPacket pack){
// processing here
}
}
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5555
Registered: 10-2002
Posted on Thursday, March 02, 2006 - 05:51 pm:   

I'm guessing that the your SMPP client not sending back the deliver_sm response? Or NowSMS is not seeing it for some reason.

Enable the SMSDEBUG.LOG from the "Serial #" page of the NowSMS config. This will also enable the SMPPDEBUG.LOG. If you post that, I can take a quick look at it to determine if this is the case.

-bn

Login Login / Register Logout Logout Search Last 30 Days Topics Topics