OverflowException on the Submit method
Posted: Wed Sep 16, 2015 3:09 pm
Hi All!
We are using your lib to send sms to our clients. Today we met a terrible problem. When we call the SubmitSmResp Submit(SubmitSm pdu) method our service crashes totally.
We investigated it and found out that the problem is in sms longer than 127 symbols. 127 symbols sms is ok.
Then we found this - http://www.inetlab.com/support/alt-sms- ... 28-15.html
This is a part of that link - My SMSC takes 7bit encoding with 8 bit characters (the 8th bit is always 0). As far as I know this is standard.
Maybe that's the reason? We can see that our sms is byte[] here -
sm.UserDataPdu.ShortMessage = client.GetMessageBytes(text, DataCodings.UCS2);
So we just guess - maybe somewhere in your lib you convert byte[] to sbyte[] and this throws our exception?
Please help us to solve the problem. We spent almost the whole day on it.
Thanks!
We are using your lib to send sms to our clients. Today we met a terrible problem. When we call the SubmitSmResp Submit(SubmitSm pdu) method our service crashes totally.
We investigated it and found out that the problem is in sms longer than 127 symbols. 127 symbols sms is ok.
Then we found this - http://www.inetlab.com/support/alt-sms- ... 28-15.html
This is a part of that link - My SMSC takes 7bit encoding with 8 bit characters (the 8th bit is always 0). As far as I know this is standard.
Maybe that's the reason? We can see that our sms is byte[] here -
sm.UserDataPdu.ShortMessage = client.GetMessageBytes(text, DataCodings.UCS2);
So we just guess - maybe somewhere in your lib you convert byte[] to sbyte[] and this throws our exception?
Please help us to solve the problem. We spent almost the whole day on it.
Thanks!