Hi ,

I am using smslib to send messages.
That method is :

public synchronized  void sendMsg(String mobileNo,String message){
                System.out.println("mobileNo  "+mobileNo);
                System.out.println("message  "+message);
                 outMsg= new OutboundMessage(mobileNo,message);
                try {
                        System.out.println("SENT     
"+getService().sendMessage(outMsg));
                } catch (TimeoutException e1) {
                        e1.printStackTrace();
                } catch (GatewayException e1) {
                        e1.printStackTrace();
                } catch (IOException e1) {
                        e1.printStackTrace();
                } catch (InterruptedException e1) {
                        e1.printStackTrace();
                }
                catch (Exception e1) {
                        e1.printStackTrace();
                }
        }
I am sending  calling this method in for loop.
After few messages send ,i am getting following Exception

org.smslib.GatewayException: Gateway is not responding, max number of
retries reached.
        at org.smslib.modem.athandler.ATHandler.sendMessage(ATHandler.java:
296)
        at org.smslib.modem.ModemGateway.sendMessagePDU(ModemGateway.java:
425)
        at org.smslib.modem.ModemGateway.sendMessage(ModemGateway.java:205)
        at org.smslib.Service.sendMessage(Service.java:567)
        at org.smslib.smsserver.SMSServer.sendMsg(SMSServer.java:366)
        at org.smslib.smsserver.SMSServer$OutboundPollingThread.run
(SMSServer.java:278)

Any one plz give the solution for that
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SMSLib User Group" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/SMSLib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to