use of com.zx.sms.codec.smpp.msg.SubmitSm in project SMSGate by Lihuanghe.
the class TestBaseSmCodec method testsmpp.
@Test
public /**
* https://smpp.org/
*/
void testsmpp() {
SubmitSm pdu = new SubmitSm();
pdu.setDestAddress(new Address((byte) 1, (byte) 1, "447712345678"));
pdu.setSourceAddress(new Address((byte) 5, (byte) 0, "MelroseLabs"));
pdu.setSmsMsg(new SmsTextMessage("Hello World €$£", SmppSmsDcs.getGeneralDataCodingDcs(SmsAlphabet.GSM, SmsMsgClass.CLASS_UNKNOWN)));
pdu.setRegisteredDelivery((byte) 1);
testlongCodec(pdu);
}
use of com.zx.sms.codec.smpp.msg.SubmitSm in project SMSGate by Lihuanghe.
the class TestBaseSmCodec method testdefaultcode.
@Test
public void testdefaultcode() {
SubmitSm pdu = new SubmitSm();
pdu.setDestAddress(new Address((byte) 0, (byte) 0, "1111"));
pdu.setSourceAddress(new Address((byte) 0, (byte) 0, "2222"));
pdu.setSmsMsg(gsmstr);
testlongCodec(pdu);
}
use of com.zx.sms.codec.smpp.msg.SubmitSm in project SMSGate by Lihuanghe.
the class TestBaseSmCodec method testGSMcode.
@Test
public void testGSMcode() {
SubmitSm pdu = new SubmitSm();
pdu.setDestAddress(new Address((byte) 0, (byte) 0, "1111"));
pdu.setSourceAddress(new Address((byte) 0, (byte) 0, "2222"));
pdu.setSmsMsg(new SmsTextMessage("[@[@[@[@", SmppSmsDcs.getGeneralDataCodingDcs(SmsAlphabet.GSM, SmsMsgClass.CLASS_UNKNOWN)));
testlongCodec(pdu);
}
Aggregations