DebugFile.decIdent();
}
throw new NullPointerException("NullPointerException SMSSender.process() smsprovider property not found at "+getDataBaseBind().getProfileName()+".cnf file");
}
SMSPush oPsh = SMSPushFactory.newInstanceOf(getDataBaseBind().getProperty("smsprovider"));
SMSMessage oMsg = new SMSMessage(SMSMessage.MType.PLAIN_TEXT, Gadgets.generateUUID(),
getDataBaseBind().getProperty("smsaccount"),
oAtm.getString(DB.mov_phone),
getStringNull(DB.tl_job,""),
getParameter("txt"), null, new Date());
Properties oPrp = new Properties();
oPrp.put("from", getParameter("from"));
oPsh.connect(getDataBaseBind().getProperty("smsurl"),
getDataBaseBind().getProperty("smsaccount"),
getDataBaseBind().getProperty("smspassword"),
oPrp);
SMSResponse oRsp = oPsh.push (oMsg);
oPsh.close();
JDCConnection oCon = getDataBaseBind().getConnection("SMSSender");
oCon.setAutoCommit (true);
PreparedStatement oStm = oCon.prepareStatement("INSERT INTO "+DB.k_sms_audit+" (id_sms,gu_workarea,pg_part,nu_msisdn,id_msg,gu_batch,bo_success,nu_error,id_status,dt_sent,gu_writer,gu_address,gu_contact,gu_company,tx_msg,tx_err) "+
"VALUES ('"+oRsp.messageId()+"','"+getString(DB.gu_workarea)+"',1,'"+oAtm.getString(DB.mov_phone)+"',NULL,'"+getString(DB.gu_job)+"',?,?,?,?,'"+getString(DB.gu_writer)+"',?,?,?,?,?)");