As requested here is the config.. The config file for sqlbox is separate.

# Kannel Configuration

# ----------
# BEARERBOX (Single Group)
# ----------
group = core
admin-port  = 10777
smsbox-port = 10778
#wapbox-port = 10779
admin-password = xxxx
admin-allow-ip = "127.0.0.1"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-file = "/home/daemon/kannel/log/kannel-box.log"
log-level = 0
access-log = "/home/daemon/kannel/log/kannel-access.log"
store-file = "/home/daemon/kannel/log/kannel-insms-tmp"
dlr-storage=mysql
access-log-format="[SMSC:%i] [from:%p] [to:%P] [msg:%L:%b] [udh:%U:%u]"
#wdp-interface-name = "*"

# -------- SMSBOX ------- (Single Group)
# -----------------------
group = smsbox
smsbox-id = dlrbox
bearerbox-host=127.0.0.1
sendsms-port=10780
sendsms-url = "/sendsms"
http-request-retry  = 1024
http-queue-delay    = 600
mo-recode           = true
log-file="/home/daemon/kannel/log/logsmsbox.log"
log-level=0

# ------- SMSC BULK CONNECTION --------- (Multi Group)

##--Connection--##
group = smsc
smsc  = smpp
smsc-id = smsc_2_1
allowed-smsc-id = smsc_2_1
#msg-id-type = 0x01
host = xxxx
port = xxxx
# receive-port = 2775
transceiver-mode=true
smsc-username = xxxx
smsc-password = xxxx
enquire-link-interval=30
system-type="HLR"
interface-version=34
bind-addr-ton=1
bind-addr-npi=1
source-addr-ton=5
source-addr-npi=1
#source-addr-autodetect=yes
#dest-addr-ton=1
#dest-addr-npi=1
throughput=25
wait-ack-expire=0x02

##--Connection
group = smsc
smsc  = smpp
smsc-id = smsc_1_2
allowed-smsc-id = smsc_1_2
host = xxxx
port = xxxx
# receive-port = 2775
transceiver-mode=true
smsc-username = xxxx
smsc-password = xxxx
enquire-link-interval=30
system-type="SMPP SERVER"
interface-version=34
bind-addr-ton=1
bind-addr-npi=1
source-addr-ton=5
source-addr-npi=1
#dest-addr-ton=1
#dest-addr-npi=1
throughput=50
wait-ack-expire=0x02



# ------- SEND-SMS USERS --------
# Needed to enable SMS Push
# -------------------------------
group    = sendsms-user
max-messages=10
concatenation=true
username = xxxx
password = xxxx
user-deny-ip  = "*.*.*.*"
user-allow-ip = "127.0.0.1"
default-sender = xxxx
omit-empty = true
default-smsc = "smsc_2_1"


# --- SMS SERVICE --
# ------------------
group = sms-service
accepted-smsc=smsc_2_1
max-messages=0
concatenation = true
keyword = default
catch-all= true
omit-empty=true
get-url = "
http://127.0.0.1:81/smshandler/reg_sms_bulksms.php?msisdn=%p&sms=%a&trx_date=%t&dest=%P&operator=DEFAULT
"

# ------ SMS BOX ROUTE ---
#------------------------
group = smsbox-route
smsbox-id = dlrbox
smsc-id = "smsc_1_2;smsc_2_1"

# MySQL Connection for External Delivery Report
# ---------------------------------------------
group = mysql-connection
id = mydlr
host = 127.0.0.1
username = xxxx
password = xxxx
database = xxxx
max-connections = 4

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

#########################################
##Sqlbox config (separate file)

##--SQLBOX CONFIG--##
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
global-sender = "xxxx"
bearerbox-host = localhost
bearerbox-port = 10778
smsbox-port = 10781
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = "/home/daemon/kannel/log/sqlbox.log"
log-level = 0
#ssl-client-certkey-file = ""
#ssl-server-cert-file = ""
#ssl-server-key-file = ""
#ssl-trusted-ca-file = ""

group = mysql-connection
id = sqlbox-db
host = localhost
username = xxxx
password = xxxx
database = xxxx




2010/11/11 Nikos Balkanas <nbalka...@gmail.com>

> Ignore those warnings. They refer to smsc-reroute, which you don't have.
> Please post your configuration
>
>
> BR,
> Nikos
> ----- Original Message ----- From: James E
> To: Nikos Balkanas ; users@kannel.org
> Sent: Thursday, November 11, 2010 10:51 AM
>
> Subject: Re: SQLBox DLR Problem
>
>
> Interesting i see this in the bearerbox log:
>
> 2010-11-11 18:29:36 [3185] [0] DEBUG: Adding smsbox routing to id <dlrbox>
> for smsc id <smsc_1_2>
> 2010-11-11 18:29:36 [3185] [0] DEBUG: Adding smsbox routing to id <dlrbox>
> for smsc id <smsc_2_1>
>
> Few lines down:
>
> 2010-11-11 18:29:36 [3185] [0] INFO: DLR rerouting for smsc id <smsc_2_1>
> disabled.
> 2010-11-11 18:29:36 [3185] [0] INFO: DLR rerouting for smsc id <smsc_1_2>
> disabled.
>
> PS: I removed smsc_1_2 connection.
>
> Is there some way to enable DLR rerouting? I am searching through the UG
> and can not see it.
>
> Regards,
> James
>
>
>
> On Thu, Nov 11, 2010 at 3:31 PM, James E <jam...@gmail.com> wrote:
>
> Thanks Nikos,
>
> I did just that, but still nothing.
>
> Updated Config (simplified):
>
>
> # -------- SMSBOX ------- (Single Group)
> # -----------------------
> group = smsbox
>
> smsbox-id = dlrbox
>
> bearerbox-host=127.0.0.1
> sendsms-port=10780
>
>
> # ------ SMS BOX ROUTE ---
> #------------------------
> group = smsbox-route
> smsbox-id = dlrbox
> smsc-id = "smsc_1_1;smsc_1_2;smsc_2_1"
>
>
> Regards,
> J
>
>
> 2010/11/11 Nikos Balkanas <nbalka...@gmail.com>
>
> Hi,
>
> You need to include an smsbox-route group to route DLRs to your smsbox.
> Read UG about it.
>
>
> BR,
> Nikos
> ----- Original Message ----- From: James E
> To: Nikos Balkanas ; users@kannel.org
>
> Sent: Thursday, November 11, 2010 8:57 AM
>
> Subject: Re: SQLBox DLR Problem
>
>
> Hi Nikos,
>
> Sorry I misunderstood.
>
> SMSBox is connected to Bearerbox
> SQLBox is connected to Bearerbox
>
> Here is the config (simplified)
>
> # ----------
> # BEARERBOX (Single Group)
> # ----------
> group = core
> admin-port  = 10777
> smsbox-port = 10778
> #wapbox-port = 10779
>
> # -------- SMSBOX ------- (Single Group)
> # -----------------------
> group = smsbox
> bearerbox-host=127.0.0.1
> sendsms-port=10780
> sendsms-url = "/sendsms"
>
> ##--SQLBOX CONFIG--##
> group = sqlbox
> id = sqlbox-db
> smsbox-id = sqlbox
> bearerbox-host = localhost
> bearerbox-port = 10778
> smsbox-port = 10781
> smsbox-port-ssl = false
> sql-log-table = sent_sms
> sql-insert-table = send_sms
>
>
> 2010/11/11 Nikos Balkanas <nbalka...@gmail.com>
>
> This doesn't answer my question. Is smsbox connected to sqlbox, or
> bearerbox? Yo also seem to mix up bearerbox logs with smsbox logs.
>
>
> BR,
> Nikos
> ----- Original Message ----- From: James E
>
> To: Nikos Balkanas ; users@kannel.org
> Sent: Thursday, November 11, 2010 8:41 AM
> Subject: Re: SQLBox DLR Problem
>
>
>
> I have:
>
> 1 Bearer box with SQLBox, SMSBox connection and 2x SMSC Connections
> Kannel 1.5.0 with latest SQLBox (including unicode bug patch from Stipe)
>
> I hit the smsbox with this:
>
>
> http://127.0.0.1:10780/sendsms?username=xxx&password=xxx&smsc=smsc_2_1&to=1234&text=test&dlr-mask=31&dlr-url=http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg
>
> In the SMSBox table I insert:
>
> momt: MT
> sender: test
> receiver: 1234
> msgdata: test
> smsc_id: smsc_2_1
> sms_type: 2
> dlr_mask: 31
> dlr_url:
> http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg
>
> --------------
>
> In SQLBox try, everything works as per normal in send_sms and sent_sms
> tables, but the dlr-url is not hit/touched at all.
>
> I looked in the bearer box log, here is one difference i can see
>
> SQLBOX try
> 2010-11-11 16:29:53 [12571] [6] DEBUG: DLR[mysql]: created DLR message for
> URL
> <http%3a%2f%2f127.0.0.1%3a81%2fsmshdlr%2ftest_dlr.php%3fstate%3dstate%26statustext%3dttt%26msisdn%3dsss%26operator%3dDEFAULT%26hlr%3dggg>
>
> SMSBox try (successful)
> 2010-11-11 15:49:35 [12571] [6] DEBUG: DLR[mysql]: created DLR message for
> URL <
> http://127.0.0.1:81/smshdlr/test_dlr.php?state=state&statustext=ttt&msisdn=sss&operator=DEFAULT&hlr=ggg
> >
>
> Regards,
> J
>
>
> 2010/11/11 Nikos Balkanas <nbalka...@gmail.com>
>
> Hi,
>
> Please describe your sqlbox and smsbox connections in your flow.
>
> BR,
> Nikos
>
> ----- Original Message ----- From: James E
> To: users@kannel.org
> Sent: Thursday, November 11, 2010 7:56 AM
> Subject: SQLBox DLR Problem
>
>
>
> Hi,
>
> I have tested for a few days now & read the manual.
>
> Is anyone else having issues with DLRs when sending the sms through SQLBox?
>
> I tested with SMSBOX (sendsms) and it hits the dlr-url no problems. But
> when I send it with SQLBox the dlr-url is never touched.
>
> I am url encoding the dlr-url, and dlr-mask=31
>
> Anyones help would be appreciated.
>
> J
>

Reply via email to