Kamailio bug in SMSOPS: body < 3 characters not transmitted (empty)
as per: https://github.com/kamailio/kamailio/issues/3211
seems to me that if cellphone sends an SMS shorter than 3 characters (eg: "aa") it is sent as empty string
this maybe because of some snafu in PDU "payload" management in smsops_impl.c , pointer arithmetic between different characters' coding (ASCII, UTF8, UCS2, etc)
(tested with OnePlus 5t, 6t, Open5GS, SRSLTE, USRP201)
sms.zip in the zip file two SMSs, one with payload "A" and one with payload "ABC"
I see after 5.3 there are at least 3 new commits related to payload management... maybe is already fixed? can you check it out?
https://github.com/kamailio/kamailio/commits/master/src/modules/smsops
I confirm, is fixed in Kamailio 5.6.1 would be nice to backport the fix
@gmaruzz thank you very much for pointing out..will try to backport the fix onto 5.3 in coming days
thanks to you!
It's done. Can you please re-compile kamailio base image and give it a try? Thanks a lot
works very well, thanks!