Hello,

I got some issue with the transmission of sms via kannel and sms service
feature. The original sms is in 7 bit but it is raw data (not ascii one).

When they arrive on kannel, I have the following log in the kannel.log


2008-05-10 09:29:40 [8869] [6] DEBUG: AT2[GSM0]: 1 messages waiting in
memory
2008-05-10 09:29:40 [8869] [6] DEBUG: AT2[GSM0]: --> AT+CMGR=1^M
2008-05-10 09:29:41 [8869] [6] DEBUG: AT2[GSM0]: <-- +CMGR: 0,,159
2008-05-10 09:29:41 [8869] [6] DEBUG: AT2[GSM0]: <--
07913366003000F0240B913366496236F9000080500190629280A01354005068000000000000
000000004006600A230A8A44A5124810D469B3986C469BC351200FE6B1381086026110000000
0000000000000202000000000000000000000000000000000000000000C0A0C1280800000000
0000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000
2008-05-10 09:29:41 [8869] [6] DEBUG: AT2[GSM0]: received message from SMSC:
+33660003000
2008-05-10 09:29:41 [8869] [6] DEBUG: AT2[GSM0]: Numeric sender
(international) <+33669426639>
2008-05-10 09:29:41 [8869] [6] DEBUG: AT2[GSM0]: User data length read as
(160)
2008-05-10 09:29:41 [8869] [6] DEBUG: AT2[GSM0]: Udh decoding done len=160
udhi=0 udhlen=0 udh=''
2008-05-10 09:29:41 [8869] [12] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2008-05-10 09:29:41 [8869] [12] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2008-05-10 09:29:41 [8869] [11] DEBUG: boxc_receiver: got ack
200

Here what I got in access.log :

2008-05-10 09:29:41 Receive SMS [SMSC:GSM0] [SVC:] [ACT:] [BINF:]
[from:+33669426639] [to:0033669359427] [flags:-1:0:-1:0:-1]
[msg:160:?([EMAIL PROTECTED]@@@@@@@@@@@@?@&aòé
Ç??£ÇèjifbdfhfaQ¡<0ß?Åòùé襣@@@@@@@@@@£$@@@@@@@@@@@@@@@@@@@@@@@@@¥øé$@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@] [udh:0:]

And so this sms is transmit to an externat web site/
Here on the web site (please don't care on the hour because time are not
accuratly synchronized between the 2 machines)

2008-05-10 09:26:40          QueryString:
t=2008-05-10+07:26:29&q=%2B43669426638&a=%3F(%A3%40%E9+%40%40%40%40%40%40%40
%40%40%40%40%40%3F%40%26a%F2%E9+%C7%3F%3F%A3%C7%E8jifbdfhfaQ%A1%3C0%DF%3F%C5
%F2%F9%E9%E8%A5%A3%40%40%40%40%40%40%40%40%40%40%A3%24%40%40%40%40%40%40%40%
40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%A5+%F8%E9%24%40%40%40%
40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%4
0%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40
%40%40%40%40%40%40%40%40%40%40%40&i=GSM0&bin=%3F(%A3%40%E9%0D%40%40%40%40%40
%40%40%40%40%40%40%40%3F%40%26a%F2%E9%0A%C7%3F%3F%A3%C7%E8jifbdfhfaQ%A1%3C0%
DF%3F%C5%F2%F9%E9%E8%A5%A3%40%40%40%40%40%40%40%40%40%40%A3%24%40%40%40%40%4
0%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%A5%0D%F8%E9%24
%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%
40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%4
0%40%40%40%40%40%40%40%40%40%40%40%40%40%40&coding=0&charset=ISO-8859-1
2008-05-10 09:26:40       Request Params:
2008-05-10 09:26:40              a = ?([EMAIL PROTECTED] @@@@@@@@@@@@?@&a??
??????jifbdfhfaQ?<0?????????@@@@@@@@@@?$@@@@@@@@@@@@@@@@@@@@@@@@@?
??$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@?@&a??0              bin = ?([EMAIL PROTECTED]
??$@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
2008-05-10 09:26:40              i = GSM0
2008-05-10 09:26:40              t = 2008-05-10 07:26:29
2008-05-10 09:26:40              q = +34669426638

I tried to use the %b parameters in the sms service url but without success.

I tried to convert it with bin2hex php code but it  appears like :

3f28a340e90a4040404040404040404040403f405c5c5c27a3f2e90ac7e940a3c7e86a686662
646667673a3f2d3e5a63bf4f323fc7e8a3a3a3a3404040404040404040404040404040404040
4040404040404040404040a3a340404040a3f2ec244040404040404040404040404040404040
4040404040404040404040404040404040404040404040404040404040404040404040404040
4040404040404040404040

My issue is the format in the http request is not understandable.



How I could get the original raw data as it appears in the kannel log? 
How to tell Kannel to convert in the correct format in the sms service ?

Does someone got some experience on it ?

Regards


Reply via email to