Thanks, first method ("Using UDH") works fine!

I use OutboundBinaryMessage (dataBytes vs string message), 
not OutboundMessage, but OutboundBinaryMessage hasn't method "getText"..

Some minor fixes in JSMPPGateway:

           * //Need to set UDHI*
*            ESMClass esm = new ESMClass(64);*
 String msgId=session.submitShortMessage(bindAttributes.getSystemType(),
TypeOfNumber.valueOf(sourceAddress.getTypeOfNumber().value()),
NumberingPlanIndicator.valueOf(sourceAddress.getNumberingPlanIndicator().value()),
(msg.getFrom()!=null)?msg.getFrom():getFrom(),
TypeOfNumber.valueOf(destinationAddress.getTypeOfNumber().value()),
NumberingPlanIndicator.valueOf(destinationAddress.getNumberingPlanIndicator().value()),
msg.getRecipient(),
*esm,*
(byte)0,
(byte)msg.getPriority(),
null,
formatTimeFromHours(msg.getValidityPeriod()),
registeredDelivery,
(byte)0,
dataCoding,
(byte)0,
*                    (msg instanceof OutboundBinaryMessage 
)?((OutboundBinaryMessage) msg).getDataBytes():msg.getText().getBytes()*
            );


среда, 3 октября 2012 г., 0:55:05 UTC+6 пользователь Bassam написал:
>
> Check this http://code.google.com/p/smslib/issues/detail?id=448
>

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/smslib/-/I4OqcYi5Ic4J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to