ok,
 
I will try but it doesn't explain the strange parenthesis :
%3F(%A3%40%E9%24%40%40%40%40%40%40%40 
 
do you have any example of code ?
 
regards
 
 

  _____  

From: Mihai Zsigmond [mailto:[EMAIL PROTECTED] 
Sent: jeudi 8 mai 2008 02:49
To: users@kannel.org
Subject: [Fwd: Re: Receive binary sms]



Dear info.ubichip,
Your problem is in coding of the original message + urlencode or the
message. 
So, use %s to tell you the coding of the message and %r to actually read the
content. Please note that the sequence you see 

%3F(%A3%40%E9%24%40%40%40%40%40%40%40 .... is urlencoded

If the coding is UTF16-BE use iconv routine of your system to convert it to
its actual content.

I'm using this trick to convert SMS containing national characters to plain
ASCII.

Hope it helps.

Regards,
Mihai


info.ubichip wrote: 

Any people got experience of sms service with %b ?



>From the kannel guide, we got :

%b the original SMS message, in a binary form 



I was using it but unfortunelty for me the result was the same as %a !



If someone got some ideas on this issue ?



Regards



 





-----Original Message-----

From: info.ubichip [mailto:[EMAIL PROTECTED] 

Sent: mercredi 7 mai 2008 16:25

To: users@kannel.org

Subject: RE: Receive binary sms



Hello all,



I forget to precise that the originator sms was in hex and it looks like the

folliwng line when I sent it with another modem application :



AT+CMGF=0;+CPMS="ME";+CSCS="HEX";+WMGO=001;+CMGW=154

0031000B913366399524F700008FA0135400500000000000000000000000000060CA210A07CB

ED153010D26873584C369F639042000000000000000000000000000000000000000000000000

0000000000000008148500000000000000000000000000000000004028060000000000000000

0000000000000304210020584092420000000000000000000000000000000000000000000000

000000

 



My need is to get the same hexa result transmit by kannel throug the sms

service to the target web application.



Does someone got any idea ?



Regards







-----Original Message-----

From: info.ubichip [mailto:[EMAIL PROTECTED]

Sent: mercredi 7 mai 2008 13:18

To: users@kannel.org

Subject: Receive binary sms



Hello,



I'm looking to receive binary sms and I would to forward them to an external

application web. 



I'm using sms service but the content of the sms is not I was looking for :



2008-05-07 21:44:45          QueryString:

t=2008-05-07+19:44:34&q=%2B123456789&a=%3F(%A3%40%E9%24%40%40%40%40%40%40%40

%40%40%40%40%40%3F%E8%26Q%F2%E9%EC%3F%25+%A3%EC%E8ihfacegg%3B%3F%F9%A3%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%A3%EC%A5%40%40%40%40%40%40%40%40%40%40%40%40%40%40%4

0%40%40%40%40%40%40%A3%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%40%EC

%3F%C7%24%40%F9%3F%3F%C7%A5%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







Here are the string I received from access.log of kannel :



2008-05-07 21:47:31 Receive SMS [SMSC:GSM0] [SVC:] [ACT:] [BINF:]

[from:+xxxxxxxxxx] [to:yyyyyyy] [flags:-1:0:-1:0:-1]

[msg:160:?([EMAIL PROTECTED]@@@@@@@@@@@@?è&Qòéì?%

£ìèihfacegg;?ù£@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@£ì¥@@@@@@@@@@@@@@@@@@@@@£@

@@@@@@@@@@@@@@@@[EMAIL PROTECTED]@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@]





As you could see there is some tricky characters at the beginning of the

content. How to tell kannel to send them as binary (I already tried to put

&b=%b but with same wrong result).





Hope someone got the answer



Best regards















  


-- 
Mihai Zsigmond
Telemedia Consult srl
tel: +40 21 316 0577
mobil: +40 746 091 360 



-- 
Mihai Zsigmond
Telemedia Consult srl
tel: +40 21 316 0577
mobil: +40 746 091 360 


Reply via email to