Closed GoogleCodeExporter closed 9 years ago
Can you please tell me if you are using Source / Destination ports in your
message?
Original comment by T.Delenikas
on 1 Dec 2007 at 8:50
No I am not using any source or destination port. Just plain destination MSISDN.
Original comment by ak...@acm.org
on 1 Dec 2007 at 9:24
Hi,
Please **replace** the getPart() method found in OutboundMessage with the
following one:
String getPart(int partNo, int udhLength)
{
int partSize;
if (partNo != 0)
{
partSize = maxSize() - (udhLength / 2);
partSize *= 2;
if (((partSize * (partNo - 1)) + partSize) > getEncodedText().length()) return
getEncodedText().substring(partSize * (partNo - 1));
else return getEncodedText().substring(partSize * (partNo - 1), (partSize * (partNo
- 1)) + partSize);
}
else return getEncodedText();
}
I've tested it with some examples (both 7 and 8 bit) and seem to work ok.
I would appreciate your feedback as well.
Thanks.
Original comment by T.Delenikas
on 1 Dec 2007 at 9:16
Hi,
I have replaced the code that you have provided in my file and the code now
appears
to be working fine. The message size is still divided by 132 to get the total
number
of SMS that the big message will create. And since now the getParts() subtract
the
udhLength/2, which in my case comes out to be 133, so the getParts() will
always be a
bit higher than than total parts, which will fix the things.
I have tested it with my cases, and so far it works. I will test it a bit more
with
some other cases, and will let you know if something pops up. Thank you for the
prompt response.
Thanks,
Akbar.
Original comment by ak...@acm.org
on 4 Dec 2007 at 5:16
Thanks for the confirmation, Akbar.
Feel free to reopen the issue if you find any more problems.
Fix scheduled for RC2.
Original comment by ad...@smslib.org
on 4 Dec 2007 at 6:50
Original comment by T.Delenikas
on 5 Dec 2007 at 7:50
Original issue reported on code.google.com by
ak...@acm.org
on 1 Dec 2007 at 6:38