Hello, Have you "swapped" the lines? Does it work correctly?
I remember there was an issue with the identification of the international numbers... But for the last couple of days I've been trying very hard to remember what it was, that's why I hesitate to comment on this. On Wed, May 6, 2015 at 6:22 PM, David Resnick via SMSLib Discussion Group < smslib+apn2wqeiza-xpnquvjc73hkg1q8lvvsqucmu1027nq-py2zcsk6nw5...@googlegroups.com > wrote: > I noticed that PDUs parsed by this method have an incorrect address type. > The address type is set twice: > > pdu.setAddressType(addressType); <<< set correctly here to the > value read from the PDU > pdu.setAddress(destinationAddress); <<< set incorrectly as a > side-effect in this method > > pdu.setAddress internally invokes addressType. It depends on the presence > of a leading "+" character to determine that a number is internationally > formatted rather than depending on the value read from the message. I > don't believe that is correct. > > Quick and dirty fix is to swap the above two lines. Any thoughts? > > -- > You received this message because you are subscribed to the Google Groups > "SMSLib Discussion Group" group. > To view this discussion on the web visit > https://groups.google.com/d/msgid/smslib/74629b14-761d-4ba5-8f74-49a17dfc0111%40googlegroups.com > <https://groups.google.com/d/msgid/smslib/74629b14-761d-4ba5-8f74-49a17dfc0111%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "SMSLib Discussion Group" group. To view this discussion on the web visit https://groups.google.com/d/msgid/smslib/CALHRsHsjZaG77S4Zuz1UOpJUzKCoRnivpqpeoL8sq2vWQ3Au%2Bg%40mail.gmail.com.
