Zakari Mohammed - 2020-12-28

Hello,

Please assist me, this have took me over 3weeks trying to send a message that contain the character "|" vertical bar.

i tried to send the message without any encoding but got "?" when i inspect traffic in wireshark.

if i use DefaultAlphabetEncoding to encode the string, i get "@." when i inspect traffic in wireshark

Note:
i noticed the datacoding sent by the smsc from deliverSM is 0x0f (when inspect in wireshark)

My code to send text beblow:


        SubmitSM rsp = (SubmitSM) conn.newInstance(4);
        DefaultAlphabetEncoding enc = new DefaultAlphabetEncoding();
        String response = "come | lets | have | a party";

        //response = new String(enc.encodeString(response));

        //byte[] encodedMessage = enc.encodeString(response);
        //byte[] packedMessage = enc.pack(encodedMessage);
        //response = new String(packedMessage, "UTF-8");

        rsp.setDestination(new Address(1, 1, destination));
        rsp.setSource(new Address(1, 1, source));
        rsp.setMessageText(new String(packedMessage));
        rsp.setServiceType(this.serviceType);

        //rsp.setMessageText(new String(packedMessage));
        //rsp.setMessageEncoding(enc);
        //rsp.setDataCoding(0);

        conn.sendRequest(rsp);

I have really tried everything I could but no joy..

Secondly, Receiving messages with the same character has been a problem too. the only work around was for me to decodeString and replace "?" with "|".

I seriously need help on this.

Thank you.