Search in sources :

Example 1 with SmppSmsDcs

use of org.marre.sms.SmppSmsDcs in project SMSGate by Lihuanghe.

the class BaseSm method doGenerateFrame.

protected LongMessageFrame doGenerateFrame() {
    LongMessageFrame frame = new LongMessageFrame();
    frame.setTppid(getProtocolId());
    // udhi bit : x1xxxxxx 表示要处理长短信
    frame.setTpudhi(getTpUdhI());
    frame.setMsgfmt(new SmppSmsDcs(getDataCoding()));
    frame.setMsgContentBytes(getShortMessage());
    frame.setMsgLength((short) getMsglength());
    frame.setSequence(getSequenceNo());
    return frame;
}
Also used : LongMessageFrame(com.zx.sms.codec.cmpp.wap.LongMessageFrame) SmppSmsDcs(org.marre.sms.SmppSmsDcs)

Aggregations

LongMessageFrame (com.zx.sms.codec.cmpp.wap.LongMessageFrame)1 SmppSmsDcs (org.marre.sms.SmppSmsDcs)1