TommyTeaVee / boghe

Automatically exported from code.google.com/p/boghe
0 stars 0 forks source link

SMS Reception not working #201

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Send binary SMS to Boghe.
2.
3.

What is the expected output? What do you see instead?
Should receive a message dialog pop-up

What version of the product are you using? On what operating system?
latest - SVN

Please provide any additional information below.

Proposed patch 

Index: branches/2.0/boghe/boghe-core/Services/Impl/SipService.Callback.cs
===================================================================
--- 
branches/2.0/boghe/boghe-core/Services/Impl/SipService.Callback.cs  (revision 
192)
+++ branches/2.0/boghe/boghe-core/Services/Impl/SipService.Callback.cs  (working 
copy)
@@ -265,8 +265,8 @@
                                 /* ==== 3GPP SMSIP  === */
                                byte[] buffer = (bytes.Clone() as byte[]);
                                 IntPtr ptr = Marshal.AllocHGlobal(buffer.Length);
+                                Marshal.Copy(buffer, 0, ptr, buffer.Length);
                                 SMSData smsData = SMSEncoder.decode(ptr, (uint)buffer.Length, false);
-                                Marshal.Copy(ptr, buffer, 0, buffer.Length);
                                 Marshal.FreeHGlobal(ptr);

                                 if (smsData != null){

Original issue reported on code.google.com by jason.penton@gmail.com on 15 May 2014 at 10:17

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 15 May 2014 at 1:19

GoogleCodeExporter commented 9 years ago
Check r193

Original comment by boss...@yahoo.fr on 15 May 2014 at 10:33