Need add gsm_sms.tp.user_data_cap_length for measuring the real TP-User-Data length. As gsm_sms.tp.user_data_length is announced value and gsm_sms.tp.user_data_cap_length needs to measure the TP-User-Data. I think this would be a good enhancement. asked 20 May '15, 12:34 Alex Lu |
One Answer:
Yes, I'm looking for the number of bytes, and some server doesn't calculate correctly and will cause the recipient to reject the sms. answered 30 May '15, 21:55 Alex Lu |
gsm_sms.tp.user_data_length is the real TP-User-Data IE length.
What would you like to get exactly? The number of characters of the text string? The number of bytes corresponding to the gsm_sms.tp.user_data_length value minus the User-Data Header length?
Pascal, thanks for comments on the question. Yes, ideally the user data length should match the data length, but this is not perfect world and and user data length sometimes not matches the exactly length which will cause issue especially on delivery side.
Still you have not answered my questions. What are you looking for exactly? A number of bytes? A number of characters? Do you mean that some devices do not compute properly the TP-User-Data length as being the sum of the User-Data Header length + string length, but being longer that what it is in theory?