Hi, Sorry folks, this was a bit lame... I got my own answer... :) I was using coding=1. When I changed to coding=0 I got the right content delivered to the phone.
Now I have another problem. Characters with accent are received as a question mark or as a blank space. I'm using charset=iso-8859-1. Thanks, ------------------------------------- Eduardo Bobsin Machado On Fri, Jun 5, 2009 at 3:24 PM, Eduardo Bobsin <eduardo.bob...@gmail.com>wrote: > Hi, > > I'm having some trouble sending messages with Kannel. > The message is displayed as a hex string. If "Hi!" is sent, the device > receives "486921" as the text. > This happens always with gsm modems, and depending on the phone the message > arrives decoded. > > I'm connecting to kannel from a java app with httpclient. > Kannel is connected to a gateway like clickatell through SMPP. > I'm using kannel 1.4.3 on CentOS 5. Libxml is 2.6.26. > > What could be wrong? Kannel config parameter? HttpClient parameter? Any > directions? > > Thanks, > > kannel.conf > ------------------------------------------------------------------------ > group = core > admin-port = 13000 > admin-password = ******** > status-password = ******** > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1" > smsbox-port = 13001 > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > wdp-interface-name = "*" > log-file = "/var/log/kannel/bearerbox.log" > log-level = 1 > > include = "/etc/kannel/mysmpp.conf" > > group = smsbox > bearerbox-host = localhost > sendsms-port = 13200 > log-file = "/var/log/kannel/smsbox.log" > log-level = 1 > > group = sendsms-user > username = ******** > password = ******** > user-allow-ip = "127.0.0.1" > max-messages = 1 > > group = sms-service > keyword = default > catch-all = true > max-messages = 0 > omit-empty = true > get-url = " > http://localhost/myapp?from=%P&to=%p&text=%b&smsc=%i&charset=%C&coding=%c" > > > mysmpp.conf > ------------------------------------------------------------------------ > group = smsc > smsc = smpp > smsc-id = mysmpp > allowed-smsc-id = mysmpp > host = mysmpp.com > port = 5555 > receive-port = 5555 > smsc-username = "********" > smsc-password = "********" > system-type = "CMT" > log-file = "/var/log/kannel/mysmpp.log" > log-level = 1 > > > > ------------------------------------- > Eduardo Bobsin Machado >