开发者

How to send a WAP Push with jsmpp

开发者 https://www.devze.com 2023-02-13 15:55 出处:网络
I\'m finding it difficult to send a WAP Push via jSMPP. I need to know how to designate the UDH for 开发者_JAVA百科jSMPP, and also how to specify that I\'m sending a binary message.

I'm finding it difficult to send a WAP Push via jSMPP.

I need to know how to designate the UDH for 开发者_JAVA百科jSMPP, and also how to specify that I'm sending a binary message.

Is there anybody with some sample code excerpt? I have tried without success for more some time, and I couldn't find any example by using google ...


to send wap using sms, esmclass to 64 and datacoding to 245 would need to be set. You can try using the example below.

String messageId = session.submitShortMessage("CMT", TypeOfNumber.INTERNATIONAL, NumberingPlanIndicator.UNKNOWN, "55662", TypeOfNumber.ALPHANUMERIC, NumberingPlanIndicator.UNKNOWN, "your_phone_number", new ESMClass(64), (byte)0, (byte)1, timeFormatter.format(new Date()), null, new RegisteredDelivery(SMSCDeliveryReceipt.DEFAULT), (byte)0, new GeneralDataCoding(245), (byte)0, HexUtil.convertHexStringToBytes("0605040B8423F025060803AE81EAAF82B48401056A0045C‌ ​ 60D036578616D706C652E636F6D0007010377656C636F6D6520746F207761702073697465000101")‌ ​); 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号