-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
16bit ref in SmsSubmit #27
Comments
Hi Steve, Andrew |
As described on http://en.wikipedia.org/wiki/Concatenated_SMS... A UDL starting 05 00 03 has a 8bit CSMS reference number (1 octets) This reduces the chance of collisions between references used. A quick glance of the code indicates that receiving this header is supported (UserDataHeader.from_bytes udh.py line 61) but not when sending (SmsSubmit._split_sms_message submit.py line 302) |
Hi Steve, Andrew |
Another option is to automatically use 8bit for 0-255 and 16bit for 256-65535. Which is used is then up to the reference generated by the rand_id or id_list properties (since they appear to set the reference). |
Well I just did some rudimentary check with pduspy and it looks like that @pmarti Pablo. what do you think about replacing this logic with the following: |
16 bit message ID only refers to the Concatenated SMS UDH reference, which is a different reference the Message Reference, which is always 8bit. |
Yep I used the wrong terminology(corrected now). I should have said |
Ok. :o) The same argument goes for the Message Reference too by the way, it's also not random (loops 0-254). It pops 0 before the CSMS pops 1. If you set the ref property it'll loop 0-254 for the CSMS instead. Since the ref is cached by _get_tpmessref_pdu, it (possibly) prevents reuse of the SmsSubmit object unless you modify the ref each time. |
A side effect of using 16bit reference numbers is that the individual message payload is reduced. So 7 bit GSM multipart messages become 152 chars instead of 153, and UCS2 ones become 66 chars instead of 67. I'm not sure if we should have the message length vary based purely on which random id got chosen? |
It would be nice to support encoding 16bit concatenated sms references in SmsSubmit.
The text was updated successfully, but these errors were encountered: