Hello,

with the extra ordinary helps that you guys here have provided, i was able
to configure kannel for sending sms and also to enter DLR in my mysql
database. so everything is fine, just got stuck in capturing reply. as far
as i understand this is the part where sms-service comes into play. please
correct me if i am wrong. and i am posting my entire kannel.conf here
exactly same as i am using in my test server (only mobile number changed).
someone who knows how the sms reply work, may please let me know if i have
done something wrong in the config level. when i send a SMS to a number, i
receive it in my handset, then if i send a reply from my handset, i am not
getting any activity in kannel for that ( i think, please let me know what
is the best way to be sure). i have a php script that will be called when
the keyword is sent as reply and i am expecting some database entry from
that script, but i never got that, i tested the script by calling it
directly that if it is called then it surely enters some record in the
database.btw, i am using an USB GSM modem for this, but i also confirmed
that it can receive sms if sent from hand set. so here is my config. Thank
in advance.



#---------------------------------------------
# CORE
#
# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'


group = core
admin-port = 12345
smsbox-port = 12346
admin-password = bar
#status-password = foo
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
#log-file = "/tmp/kannel.log"
#log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#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


group = smsc
smsc = at
smsc-id = "GP"
port = 20000
modemtype = auto
device = /dev/ttyUSB0
sms-center = "0170000****"
my-number = "0171757****"
connect-allow-ip = "127.0.0.1"
pin = 1234

group = modems
id = huawei_eg1550
name = "Huawei EG1550"
detect-string = "huawei"
message-storage = sm
speed = 460800


#---------------------------------------------
# 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 = 22222
global-sender = 22222
#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 = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""

group = mysql-connection
id = mydlr
host = localhost
username = root
password = 123456
database = kannel
max-connections = 1

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc



#---------------------------------------------
# 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.
group = sms-service
keyword = complex
get-url = "http://localhost/reply.php?sender=%p&text=%r";
accept-x-kannel-headers = true
max-messages = 3
concatenation = true


group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

group = sms-service
keyword = default
text = "No service specified"

Reply via email to