Custom UserDataHeader

Post Reply
lorenzo
Posts: 2
Joined: Fri Apr 13, 2018 1:52 pm

Custom UserDataHeader

Post by lorenzo » Tue Dec 15, 2020 11:55 am

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
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Custom UserDataHeader

Post by alt » Tue Dec 15, 2020 6:48 pm

Hi lorenzo,

Could you provide the examples of the different UDHs?
lorenzo
Posts: 2
Joined: Fri Apr 13, 2018 1:52 pm

Re: Custom UserDataHeader

Post by lorenzo » Wed Dec 16, 2020 12:03 pm

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
alt
Site Admin
Posts: 985
Joined: Tue Apr 25, 2006 9:45 am

Re: Custom UserDataHeader

Post by alt » Thu Dec 17, 2020 7:29 pm

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?
Post Reply