Hi, What I'm doing is sending data from a Midlet to my server using SMS, hence why the message looks the way it is. Kannel will extract this message from a GSM modem (Teltonika G10), and forwards it to my server defined by post-url in the configuration file.
In my test, I left the multipart SMS in the SIM and viewed it in the mobile phone. The messages was displayed correctly as one SMS. I then tried using Kannel to extract the messages and forwards it to my server, and the result is as what I have shown previously. This happens on Kannel 1.4.1 and also CVS head. Right now I'm leaning more towards it being a kannel bug since the mobile phone can handle the PDUs correctly, but Kannel can't. Any ideas? On Thu, 2007-08-16 at 11:28 +1000, Iain Dooley wrote: > hi riza, > > are you url encoding the message? ~ would be %7E > > cheers > > iain > > On Wed, 15 Aug 2007, Riza Shaharudin wrote: > > > Hi, > > I've had Kannel working to receive Multipart SMS for quite some > > time > > now, but I seem to have a problem when the character '~' is the > > cut off > > point. > > > > For example, my message > > > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL > > PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@0~ > > > > should be cut up into two pieces > > > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL > > PROTECTED]@[EMAIL PROTECTED]@0~ > > > > and > > > > [EMAIL PROTECTED]@0~ > > > > What I received instead is this:- > > > > [EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL > > PROTECTED]@[EMAIL PROTECTED]@0?ü > > > > and > > > > [EMAIL PROTECTED]@0~p > > > > Notice the extra characters found at the end. This does not > > appear when viewed using a mobile phone. The PDU received is a > > seen below. > > > > > > 07910691930000F0440B910691620882F1000070804101336223A0050003010201E4693280282C0A859B1E3D4D06CC36BD7A9A0C20CBED69753AECDEF4E0773260D3DBF4CCECF778ED7C03849B1EFA5D9F979D6F006DD3A3BFE961F6B0CE6637C3ECB2302D27CF01B24D8FFEA687D9C33A9B6D2CB7C3ECB2302D27CF01B24D8FFEA687D9C47298DC0CB3CBC2B49C3C07C0363DFA9B1E6613CB61B2B1DC0EB3CBC2B49C3C07C036 > > and > > > > 07910691930000F0440B910691620882F100007080410133122333050003010202E86F7A985D94CBDFF26919DF0CB3CB00D8A6477FD3C3ECA25CFE964FCB7863B91D669701B04D0F > > > > This is the log from kannel.access > > > > 2007-08-15 19:56:28 SMS HTTP-request sender:+60192680281 > > request: '' url: > > > > 'http://localhost:8080/mobileconnector/servlet/KannelServlet?message=totalErrorSexMale%400~totalErrorSexFemale%400~p&encoding=0&charset=ISO-8859-1&binary=totalErrorSexMale%400~totalErrorSexFemale%400~p' > > reply: 200 '<< successful >>' > > 2007-08-15 19:56:35 SMS HTTP-request sender:+60192680281 > > request: '' url: > > > > 'http://localhost:8080/mobileconnector/servlet/KannelServlet?message=rid%40DBEBB~tid%403~uid%40drvijian~pwd%40~~flockNo%40B~houseNo%404~totalCullMaleBirds%402~totalCullFemaleBirds%402~totalDeadMaleBirds%400~totalDeadFemaleBirds%400%3F%C3%BC&encoding=0&charset=ISO-8859-1&binary=rid%40DBEBB~tid%403~uid%40drvijian~pwd%40~~flockNo%40B~houseNo%404~totalCullMaleBirds%402~totalCullFemaleBirds%402~totalDeadMaleBirds%400~totalDeadFemaleBirds%400%3F%C3%BC' > > reply: 200 '<< successful >>' > > > > Anyone has any ideas what's going on? > > > > > > > > > > > >
