0 Replies Latest reply: Apr 16, 2007 9:16 AM by 807596 RSS

    jSMS errors

    807596
      hello there
      i really need your help guys,
      i wanna send an SMS to mobiles i followed many ways like WMA...ext
      but what i need now : how to send sms with jSMS . i worked with this source code but still an errors
      //*******************************************************
      this is the source code :
      try{
      Properties props=new Properties();
      props.put("sms.gsm.connector","SERIAL");
      props.put("connector.serial.port","COM1");
      props.put("connector.serial.bps","19200");
      props.put("gsm.license.company","cmos");
      props.put("gsm.license.user","maghzaoui jalal");
      props.put("gsm.license.version","2.2.0");
      props.put("gsm.license.type","TRIAL LICENSE");
      props.put("gsm.license.not-before","1306598");
      props.put("gsm.license.not-after","1308518");
      props.put("gsm.license.sig","YhIGfsR2DvoijCwzvm15i0Np8e5wbSZBHk7idUw5hLFit8xE+NT9y+ZNLPZ/WDfxDMaf8R6Rk5uFtSY7ez38/w==");

      File config=new File("C:/jSMS-2.2.0/bin/jsms.conf");
      SmsService service=new GsmSmsService();
      service.init(props);
      service.init(config);
      Message msg=new Message();
      msg.setSender("jalal");
      msg.setRecipient("0012XXXXXX");//the phone number
      msg.setMessage("hello there");
      service.connect();
      service.sendMessage(msg);
      if(true){jEditorPane1.setText("ok...");}
      service.disconnect();
      }catch(Exception ok){
      jEditorPane1.setText(""+ok.getMessage());
      }
      }

      the errors after the execution :
      No reply from GSM device. // this appear in my frame (jEditorPane).
      gsm: No license key for this module! // this appear in the messages Area

      i'm using ZTE / ZXDSL 852 (my modem)...
      i hope that u aswer me soon and thankx so much.
      this is my e-mails: djosoft@yahoo.fr
      jalalhard@yahoo.fr