Custom SMS Camel SMPP Port
I am currently trying to send SMS using Camel SMPP, but I cannot send it to a specific destination port. Nothing actually happens on my SMPP server. Here is my current code in my cpu:
exchange.getOut().setHeader("CamelSmppAlphabet", Alphabet.ALPHA_8_BIT.value());
exchange.getOut().setHeader("CamelSmppDataCoding", 4);
short destport = 5000;
short srcport = 0;
Map<java.lang.Short, java.lang.Short> optParameters = new HashMap<java.lang.Short, java.lang.Short>();
optParameters.put(OptionalParameter.Tag.DESTINATION_PORT.code(), destport);
optParameters.put(OptionalParameter.Tag.SOURCE_PORT.code(), srcport);
exchange.getOut().setHeader("CamelSmppOptionalParameter", optParameters);
Am I doing something wrong? If so, how should I send my message to a specific destination port?
thanks for the help
+3
source to share
No one has answered this question yet
Check out similar questions: