Page 1 of 1

SourceAddress encoding issue

Posted: Tue May 25, 2021 3:16 pm
by Misha3739
Unfortunately, when I use underscore in SourceAddress it is being passed as "\021" over network so the SourceAddress becomes invalid on server.
As example, ALROSA_MED changes to ALROSA\021MED while SMPP request preparing.
I have used WireShark to investigate the issue, the screenshot is attached.

Re: SourceAddress encoding issue

Posted: Tue May 25, 2021 4:18 pm
by alt
Hello

you need to set correct encoding for the property _client.EncodingMapper.AddressEncoding

Re: SourceAddress encoding issue

Posted: Tue May 25, 2021 4:39 pm
by Misha3739
Oh, that's working! Thank you!

Re: SourceAddress encoding issue

Posted: Wed Oct 19, 2022 1:20 pm
by Yechiel
Hi I ran into the same problem, how do I set the _client.EncodingMapper.AddressEncoding?
Thank you

Re: SourceAddress encoding issue

Posted: Wed Oct 19, 2022 7:22 pm
by alt
for example:

Code: Select all

_client.EncodingMapper.AddressEncoding = Encoding.ASCII;