[sr-dev] [kamailio/kamailio] smsops: fix len calc for a concatenated sms (#2556)

Daniel-Constantin Mierla notifications at github.com
Wed Nov 25 08:12:44 CET 2020


@miconda commented on this pull request.



> @@ -618,6 +627,7 @@ int decode_3gpp_sms(struct sip_msg *msg) {
 					// Coding: 7 Bit
 					if (rp_data->pdu.coding == 0x00) {
 						// We don't care about the extra used bytes here.
+						rp_data->pdu.payload.sm.len = len;
 						rp_data->pdu.payload.sm.len = gsm_to_ascii(&body.s[p], len, rp_data->pdu.payload.sm, fill_bits);

OK, I will merge it. Somehow confusing is that `len` is also explicitly passed as a parameter to that function.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2556#discussion_r530149970
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20201124/eb930ed8/attachment.htm>


More information about the sr-dev mailing list