Page 1 of 1

Custom UserDataHeader

Posted: Tue Dec 15, 2020 11:55 am
by lorenzo
Dear Admin,

Is there a way to send a custom UserDataHeader as full data without passing by the DLL parsing part or changing the DLL source code?
The main problem that I have concatenated messages with different UDH length, for example part 1: length 5, part 2: length:3.

Thank you

Re: Custom UserDataHeader

Posted: Tue Dec 15, 2020 6:48 pm
by alt
Hi lorenzo,

Could you provide the examples of the different UDHs?

Re: Custom UserDataHeader

Posted: Wed Dec 16, 2020 12:03 pm
by lorenzo
Hello,
Hope you are doing well,

format for example to concatenate the message UDH:

first part: 0700035502016000 -- 07 UDH length
second part: 050003550202 -- 05 UDH length

6000 is the added one.

Thank you

Re: Custom UserDataHeader

Posted: Thu Dec 17, 2020 7:29 pm
by alt
You can do it this way:

Code: Select all

UserDataHeaderCollection headers = new UserDataHeaderCollection();
headers.Add(new ConcatenatedShortMessages8bit(0x55,2,1));
headers.Add(new UserDataHeader(0x60, new byte[0]));

submitSm.UserData.Headers = headers;

If you use SMS builder:

Code: Select all

 
 var pduList = SMS.ForSubmit().From(...).To(..).Text(...).Create(_client);
 
 pduList[0].UserData.Headers.Add(new UserDataHeader(0x60, new byte[0]));
  
Could you tell me what means 0x60 identifier in the second UDH element?