j'ai un projet d'envoi de sms via un modem GSM par java
j'ai utlisé le nokia E7-00
l'envoi des sms n'est pas stable car parfois il envoi et parfois pas
le programme est le suivant
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/

package snedmessage;

/**
*
* @author tlilichokri
*/
import org.smslib.AGateway;
import org.smslib.IOutboundMessageNotification;
import org.smslib.Library;
import org.smslib.OutboundMessage;
import org.smslib.Service;
import org.smslib.modem.SerialModemGateway;
import org.smslib.modem.ModemGateway;
import org.smslib.*;

public class Sendmessage {

public void preparation() throws Exception

{

OutboundNotification outboundNotification = new OutboundNotification();
System.out.println("envoi de sms via un modem GSM");
System.out.println(Library.getLibraryDescription());
System.out.println("Version: " + Library.getLibraryVersion());
SerialModemGateway gateway = new SerialModemGateway("modem.com4", "COM4", 115200, "Nokia", "Nokia E7-00");//régler le port comm à utiliser
gateway.setInbound(true);
gateway.setOutbound(true);
//gateway.setSimPin("0000");//

gateway.setSmscNumber("+21621732785");//numéro de destinataire
Service.getInstance().setOutboundMessageNotification(outboundNotification);
Service.getInstance().addGateway(gateway);
Service.getInstance().startService();
System.out.println();
System.out.println("information sur modem");
System.out.println(" constructeur " + gateway.getManufacturer());
System.out.println(" modèle " + gateway.getModel());
System.out.println(" numéro de série " + gateway.getSerialNo());//les informations sur le modem GSM telles que le modèle le IMSI...
System.out.println(" IMSI de la SIM " + gateway.getImsi());
System.out.println(" puissance du signal " + gateway.getSignalLevel() + " dBm");
System.out.println(" niveau batterie " + gateway.getBatteryLevel() + "%");
System.out.println();
// procédure d'envoi de sms synchronisé
OutboundMessage msg = new OutboundMessage("+21621732785", "essai envoi sms");//le numéro du destinataire et le message
Service.getInstance().sendMessage(msg);
System.out.println(msg);
System.out.println("cliquer <entrer> à la terminaison");
System.in.read();
Service.getInstance().stopService();


}



public class OutboundNotification implements IOutboundMessageNotification
{

public void process(AGateway gateway, OutboundMessage msg)
{
System.out.println("Outbound handler called from Gateway: " + gateway.getGatewayId());
System.out.println(msg);

}


}


public static void main(String[] args) {
{
Sendmessage app = new Sendmessage();
try
{
app.preparation();
}
catch (Exception e)
{
e.printStackTrace();
}

}
}

}


********
et le run donne
**********
run:
envoi de sms via un modem GSM
SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
Version: 3.5.4
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

information sur modem
constructeur Nokia
modèle Nokia E7-00
numéro de série 354864045280683
IMSI de la SIM ** MASKED **
puissance du signal -105 dBm
niveau batterie 71%


===============================================================================
<< OutboundMessage >>
-------------------------------------------------------------------------------
Gateway Id: *
Message Id: 0
Message UUID: a51def23-7c7a-42b8-8de8-d6705ad4db12
Encoding: 7-bit
Date: Mon May 12 11:20:14 CEST 2014
SMSC Ref No:
Recipient: +21621732785
Dispatch Date: null
Message Status: FAILED
Failure Cause: GATEWAY_FAILURE
Validity Period (Hours): -1
Status Report: false
Source / Destination Ports: -1 / -1
Flash SMS: false
Text: essai envoi sms
PDU data: E5F93C9C0695DDF6771A346FCF01
Scheduled Delivery: null
===============================================================================

cliquer <entrer> à la terminaison

BUILD SUCCESSFUL (total time: 2 minutes 13 seconds)


*******
et parfois
**********
run:
envoi de sms via un modem GSM
SMSLib: A Java API library for sending and receiving SMS via a GSM modem or other supported gateways.
This software is distributed under the terms of the Apache v2.0 License.
Web Site: http://smslib.org
Version: 3.5.4
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

information sur modem
constructeur Nokia
modèle Nokia E7-00
numéro de série 354864045280683
IMSI de la SIM ** MASKED **
puissance du signal -83 dBm
niveau batterie 71%


===============================================================================
<< OutboundMessage >>
-------------------------------------------------------------------------------
Gateway Id: modem.com4
Message Id: 0
Message UUID: 98e09331-a3ac-48b9-9a04-ba2c3c02a6cd
Encoding: 7-bit
Date: Sat May 03 10:52:20 CEST 2014
SMSC Ref No: 83
Recipient: +21694005092
Dispatch Date: Sat May 03 10:52:23 CEST 2014
Message Status: SENT
Failure Cause: NO_ERROR
Validity Period (Hours): -1
Status Report: false
Source / Destination Ports: -1 / -1
Flash SMS: false
Text: hi
PDU data: E834
Scheduled Delivery: null
===============================================================================

cliquer entrer à la terminaison

BUILD SUCCESSFUL (total time: 28 seconds)



qu'est ce que c'est que ce gateway failure et pourqoui???????????????s'il vous plait aidez moi,c'est dans le cadre de mon pfe,s'il vous plait et merci d'avance