Hello,
I try to configure Kannel for reiceving and storing the SMSes in mysql
database by my PhP script.
After a lot of test I configure my GPRS modem (BenQ) with Kannel, but I
don't understand why when I reiceve a sms, kannel replay with a black
SMS to the sender !!
My configuration file:
#
# Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#
# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.
# group = core
# admin-port = 13000
# admin-password = bar
# admin-deny-ip = "*.*.*.*"
# admin-allow-ip = ""
# wapbox-port = 13002
# wdp-interface-name = "*"
# log-file = "/var/log/kannel/bearerbox.log"
# box-deny-ip = "*.*.*.*"
# box-allow-ip = "127.0.0.1"
# group = wapbox
# bearerbox-host = localhost
# log-file = "/var/log/kannel/wapbox.log"
#include = /etc/kannel/modems.conf
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
log-file = "/etc/kannel/log/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"
#dlr-storage = internal
#---------------------------------------------
# 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 = fake
smsc-id = FAKE
port = 10000
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 = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
log-file = "/etc/kannel/log/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...
#
http://127.0.0.1:13013/cgi-bin/sendsms?username=tester&password=foobar&to=3921776176&text=ciccio
group = sendsms-user
username = tester
password = foobar
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"
#---------------------------------------------
# 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 =
#keyword-regex = .*
catch-all = true
#max-messages = 10
get-url = "http://localhost/sms.php?phone=%p&text=%a"
group = modems
id = generic
name = "Generic Modem"
#reset-string = "AT+CFUN=1"
keepalive-cmd = "AT+CSQ"
init-string = "AT+CNMI=2,0,0,0,0"
#init-string = "AT+CMEE=1"
#penna usb
group = smsc
smsc=at
modemtype = auto
#speed = 19200
device=/dev/ttyUSB0
#device=/dev/ttyACM0
my-number=3475914291
log-level=0
#log-file = "/etc/kannel/log/modem.log"
sim-buffering = true
Thank You
Bye