Someone can help me detecting the cause of multiplicity when receiving messages.
I have configured several SMSC's with several services (smsbox) at a time.
This is the behavor:

1. It first happens receiving 2 or three repeated messages from one only user 
in one service in one SMSC.

2. After a couple of days several senders(users) appear to send me repeated 
messages on the same service and SMSC.
3. A week later another SMSC shows the same behavior. What suggests to me a 
kannel missconfiguration.

I have recently installed the 1.5 version
Im using sqlbox, inserting in a send table for sending messages

These are my confs:
------------
kannel.conf
------------

group = core
admin-port = 13000
admin-password = bar
log-file = "/var/log/kannel/core.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
box-allow-ip = "127.0.0.1,10.27.*,10.10.10.*"
unified-prefix = "+502,00502,00,0"
dlr-storage = mysql
#store-type = "file"
#store-location = "/var/log/kannel/kannel.store"
sms-resend-freq = 15
sms-resend-retry = 0 
sms-combine-concatenated-mo = 1
sms-combine-concatenated-mo-timeout = 150


### Here I supressed the store-location and the resend in the search or solving 
this issue

group = mysql-connection
id = mydlr
host = localhost
username = *****l
password = *****
database = sms
max-connections = 50

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


include = "/etc/kannel/smsbox.conf"


group = smsc
smsc-id= aaa
smsc = smpp
host= x.x.x.x
port = yyyy
smsc-username= "smsgc"
smsc-password= "smsgc"
system-type = ""
wait-ack-expire = 1
source-addr-ton= 2
source-addr-npi= 1
dest-addr-ton= 0
dest-addr-npi= 0
transceiver-mode= true
msg-id-type = 0x01
throughput = 20
allowed-smsc-id = "aaa"
denied-smsc-id = "bbb;ccc"

alt-charset = ISO-8859-1
#interface-version = 0x34
#enquire-link-interval = 10
reconnect-delay = 60
validityperiod = 1000
log-file = "/var/log/kannel/aaa.log"
log-level = 3


group = smsbox-route
smsbox-id = smsbox1
smsc-id = "aaa;bbb;ccc"

-------------

smsbox.conf

-------------
group = smsbox
smsbox-id= smsbox1
bearerbox-host = localhost
bearerbox-port = 13003
sendsms-port = 13200
#sendsms-chars = "0123456789 +-"
#global-sender = 12345
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "access.log"
#white-list =
#black-list =
reply-couldnotfetch = "Content not Available"
#reply-couldnotrepresent = 
reply-requestfailed = "Not recognized"
reply-emptymessage = "Empty"
mo-recode = 1
http-request-retry = 100
http-queue-delay = 18


# SEND-SMS USERS

group = sendsms-user
username = xxxx
password = xxxx
user-deny-ip = "*.*.*.*"
user-allow-ip = "i.i.i.i;j.j.j.j"
concatenation = true
max-messages = 10



group = sms-service
keyword-regex = .*
allowed-receiver-prefix = "7171;+7171;3377;3399"
catch-all = true
get-url = http://w.w.w.w/incoming.php?numero=%p&destino=%P&mensaje=%a&smsc=%i
accepted-smsc = "aaa;bbb"
omit-empty = true
accept-x-kannel-headers = true
max-messages = 3
concatenation = true


# SMS SERVICE black-list
group = sms-service
keyword = black-list
text = "You are not alowed to use this service, Go away!"

# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
text = "No service specified"


----------
Insert STATEMENT
----------
$SMSC="aaa";
$DLR=31;
$URL="http://v.v.v.v/dlr.php?src=\%p&type=\%d&dst=\%P&smsc=\%i&id=".$row2[0]."&msg=\%a&smsid=\%I";;

$sql = "INSERT INTO 
sms.send_sms(momt,sender,receiver,msgdata,time,smsc_id,dlr_mask,dlr_url, 
coding, sms_type) 
VALUES 
('".$row2[1]."','".$row2[2]."','".$row2[3]."','".$row2[4]."',".$row2[5].",'".$SMSC."',".$DLR.",'".$URL."',
 '0', '2')";



 
G. Daniel Camacho S. 
ECE # 203135336
Tel. +502- 53781298 / 40275496

Reply via email to