| | |
| | | import javax.annotation.PostConstruct; |
| | | import javax.annotation.PreDestroy; |
| | | import java.io.IOException; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.Date; |
| | | import java.util.concurrent.ExecutorService; |
| | | import java.util.concurrent.Executors; |
| | |
| | | TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN, bnumber, |
| | | new ESMClass(), (byte)0, (byte)1, TIME_FORMATTER.format(new Date()), null, |
| | | new RegisteredDelivery(SMSCDeliveryReceipt.SUCCESS_FAILURE), (byte)0, new GeneralDataCoding(Alphabet.ALPHA_DEFAULT, MessageClass.CLASS1, false), (byte)0, |
| | | message.getBytes()); |
| | | message.getBytes(StandardCharsets.US_ASCII)); |
| | | String messageId = submitSmResult.getMessageId(); |
| | | logger.info("Message submitted, message_id is {}", messageId); |
| | | } catch (PDUException e) { |