Hello all,

 

I am using kannel 1.4.1 on a CentOS system. I have to use kannel to
receive/send turkish and Russian characters. 

I am able to receive successfully the message in bearbox where the character
are received into their respective hexadecimal values ( no issue in that).

But when kannel give this message to my php file, I am getting converted
message which I am not able to process because now the value has change from
the hexadecimal value. Why kannel is converting the message while submitting
it to php file???

Is it because of the alt-charset I am using (HPROMAN8)?

 

Here is my smskannel.conf 

group = core

admin-port = 13000

smsbox-port = 13002

#wapbox-port = 13004

status-password = foo

#admin-deny-ip = ""

#admin-allow-ip = ""

#wdp-interface-name = "*"

log-level = 0

box-deny-ip = "*.*.*.*"

box-allow-ip = "127.0.0.1"

#unified-prefix = "+358,00358,0;+,00"

dlr-storage = internal

#store-file = "kannel.store"

#ssl-server-cert-file = "cert.pem"

#ssl-server-key-file = "key.pem"

#ssl-certkey-file = "mycertandprivkeyfile.pem"

 

 

 

#---------------------------------------------

# SMSC CONNECTIONS

#

# SMSC connections are created in bearerbox and they handle SMSC specific

# protocol and message relying. You need these to actually receive and send

# messages to handset, but can use GSM modems as virtual SMSCs

 

 

# This is a fake smsc connection, _only_ used to test the system and
services.

# It really cannot relay messages to actual handsets!

group = smsc

smsc = smpp

#smsc-id = FAKE

smsc-id = xxxxxx

host = xxxxxxxx

port = xxxxxxx

transceiver-mode = yes

#port = 13015

#msg-id-type=0x01

system-type = ""

smsc-username = xxxxxxxxxx

smsc-password = xxxxxxxxxxxx

keepalive = 30

interface-version = 34

address-range = ""

enquire-link-interval = 50

#bind-addr-ton = 0

#bind-addr-npi = 0

source-addr-ton = 0

source-addr-npi = 1

dest-addr-ton = 1

dest-addr-npi = 1

source-addr-autodetect = no

#denied-smsc-id = aircel

alt-charset = HPROMAN8

connect-allow-ip = 127.0.0.1

 

 

 

 

#---------------------------------------------

# SMSBOX SETUP

#

# Smsbox(es) do higher-level SMS handling after they have been received from

# SMS centers by bearerbox, or before they are given to bearerbox for
delivery

group = smsbox

bearerbox-host = 127.0.0.1

sendsms-port = 13014

#sendsms-chars = "0123456789 +-"

log-level = 0

mo-recode = true                    

#sendsms-chars = "0123456789 +-"

#log-file = "/tmp/smsbox.log"

#log-level = 0

#access-log = "/tmp/access.log"

 

#---------------------------------------------

# SEND-SMS USERS

#

# These users are used when Kannel smsbox sendsms interface is used to

# send PUSH sms messages, i.e. calling URL like

#
http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar.
..

group = sendsms-user

username = xxxxx

password = xxxxxx

#forced-smsc =

#user-allow-ip = ""

 

 

 

 

#---------------------------------------------

# SERVICES

#

# These are 'responses' to sms PULL messages, i.e. messages arriving from

# handsets. The response is based on message content. Only one sms-service
is

# applied, using the first one to match.

 

 

# There should be always a 'default' service. This service is used when no

# other 'sms-service' is applied.

 

group = sms-service

keyword = default

omit-empty = ture

#text = "You asked nothing and I did it!"

url = "http://127.0.0.1/check.php?msisdn=%p&message=%b&shortcode=%Q";

 

 

Here are the bearbox and access log which shows the message conversion
(message part in bold)

Bearbox log

2007-08-01 07:04:52 [29129] [6] DEBUG:      data: 00 43 00 20 00 32 00 30 00
36 00 38 00 36 00 34   

2007-08-01 07:04:52 [29129] [6] DEBUG:      data: 00 39 00 20 04 34 04 51 04
36 00 20 00 43 00 57   

2007-08-01 07:04:52 [29129] [6] DEBUG:      data: 00 4d 00 40  

 

 

 

27.0.0.1- - [01/Aug/2007:07:04:52 +0500] "GET
/check.php?msisdn=%2B994502068649&message=C+2068649+%D0%B4%D1%91%D0%B6+CWM%4
0&shortcode=9600 HTTP/1.1" 200 -

 

Check as message has been converted...why is it happening??

 

Please help me as I am struck here..

 

Thanks in advance

 

 

Ashwani Kumar

 

 

 

 

 

 

Reply via email to