Hi
Estou tentando enviar um sms usando a biblioteca smsLib http://smslib.org/
Estou usando a ultima versão da biblioteca e estou obtendo o seguinte erro:
28219 [main] WARN org.smslib - CMS Error 50: Retrying...
37531 [main] ERROR org.smslib - CMS Error 50: Quit retrying, message lost...
Alguem sabe porque esta acontecendo isso ?
Segue abaixo o codigo fonte:
public class SendMessage {
private static final Logger logger = Util.startLogger(SendMessage.class);
public static void send() throws SendMessageException{
Service service = new Service();
OutboundNotification outboundNotification = new OutboundNotification();
ModemGateway gateway = new ModemGateway(Config.comId,
Config.comPort,
Config.baudRate,
Config.manufacturer,
Config.model,
service.getLogger());
gateway.setInbound(true);
gateway.setOutbound(true);
gateway.setOutboundNotification(outboundNotification);
service.addGateway(gateway);
try {
service.startService();
OutboundMessage msg = new OutboundMessage(Config.number1, "ok... funciona");
msg.setStatusReport(true);
service.sendMessage(msg);
service.stopService();
} catch (Exception e) {
logger.error("Problemas ao enviar a mensagem");
throw new SendMessageException(e.getMessage());
}
}
}
Desde ja muito obrigado