Hi Hamza At first sight it doesn't seems to be the log for the same message.
However more in detail %001 seems being translated to 0031 (ASCII 1) and %002 to 0032 (ASCII 2). It looks like a 16bits charset since it is using 2 octets. But before them there is "005600420020"... --in ascii =BV -- that is not shown in the text field... Do you know what is the original message? What about bearerbox and your modem log? Can you post the MO PDU? As told you, there is a variable you can add in your get-url link so kannel will tell you what the charset is. So your url should looks like: http://127.0.0.1/sms-receive.php?sender=%P&text=%a&charset=%xxx (I didn't remeber the code for charset. Hope helps Regards Alvaro On 9/7/12, [email protected] <[email protected]> wrote: > This is becoming confusing for me. Here are the logs for the same message: > > kannel access log: > 2012-09-07 00:53:02 Receive SMS [SMSC:Handset] [SVC:] [ACT:] [BINF:] [FID:] > [META:] [from:xxxxxxx] [to:xxxxxxx] [flags:-1:2:-1:0:-1] [msg:34: > 00560042002000310032003100320031003200310032003100320031003200310032] > [udh:0:] > smsbox debug: > 2012-09-07 00:53:03 SMS HTTP-request sender:xxxxxxx request: 'Send SMS > Message Sent OK 0' url: ' > http://127.0.0.1/sms-receive.php?sender=%2Bxxxxxxx&text= > %001%002%001%002%001%002%001%002%001%002%001%002%001%002' reply: 200 '<< > successful >>' > My questions: > - Which charset/encoding is this? > - How to fix it, so that kannel could call the correct URL (smsbox logs)? > - If kannel cannot fix this and I have to use some php script/function, > which one should I be using? > > Regards, > > > > On Thu, Sep 6, 2012 at 7:41 PM, Alvaro Cornejo > <[email protected]>wrote: > >> Hi >> >> If I do remember well; there is a parameter you can include in your >> get-url link where kannel will tell you wich charset the MO is comming >> encoded with. Then, in your script you can handle it with something >> like iconv() or other charset converter. >> >> Regards >> >> Alvaro >> >> On 9/6/12, [email protected] <[email protected]> wrote: >> > Hi, >> > >> > I have setup kannel with a sony ericsson hanset. The incoming SMS (only >> > from few numbers) are coming as HEX values. Rest of the incoming >> > messages >> > are fine. How come its happening so, for the same configuration of >> kannel? >> > How can I handle HEX value traffic? >> > >> > Regards, >> > >> >> >> -- >> >> |-----------------------------------------------------------------------------------------------------------------| >> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier >> celular y Nextel >> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via >> SMS y GPRS online >> Visitenos en www.perusms.NET www.smsglobal.com.mx y >> www.pravcom.com >> > -- |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com
