You are right. The startup sequence should be bearerbox first en then smsbox
and sqlbox respectively.

 

The scheme that I gave refers to the message flow.

 

== Rene

 

From: Willy Mularto [mailto:sangpr...@gmail.com] 
Sent: Thursday, 22 March, 2012 15:50
To: Rene Kluwen
Cc: 'Ravindra Gupta // Viva'; users-requ...@kannel.org; users@kannel.org;
users-ow...@kannel.org
Subject: Re: sqlbox issue

 

I usually have bearerbox-sqlbox-smsbox. What's the effect of your startup
scenario Rene?

 

 

 

On Mar 22, 2012, at 9:14 PM, Rene Kluwen wrote:





The usual setup is sqlbox -> smsbox -> bearerbox.

 

In group = smsbox, you need: bearerbox-port = 13005.

 

=+= Rene

 

From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Ravindra Gupta // Viva
Sent: Wednesday, 21 March, 2012 11:59
To: users-requ...@kannel.org; users@kannel.org; users-ow...@kannel.org
Subject: sqlbox issue

 

Hii,

 

I have configured sqlbox to sending the SMS and I am facing bearerbox
connectivity issue.

 

Kindly find the below smskannel.conf file parameters. 

 

sqlbox ---> bearerbox ---->smsbox

 

#

# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL

 

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

# 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 = 13000

smsbox-port = 13001

#smsbox-port = 13003

admin-password = demokannel

status-password =demokannel

#status-password = foo

#admin-deny-ip = ""

#admin-allow-ip = ""

log-file = "/var/log/kannel/bearerbox.log"

log-level = 0

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

box-allow-ip = "127.0.0.1"

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

access-log = "/var/log/kannel/kannel_access.log"

store-file = "/home/kannel.store"

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

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

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

#dlr-storage= sqlbox

sms-resend-freq=60

sms-resend-retry=5

 

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

# 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 = smpp

smsc-id = demo

host= 127.0.0.1

smsc-username= demo

smsc-password= demo

port = 1234

#receive-port= 1234

connect-allow-ip = 127.0.0.1

system-type=""

#address-range=""

#alt-charset=1

#alt-charset="ASCII"

source-addr-ton=1

source-addr-npi=1

dest-addr-ton=1

dest-addr-npi=1

#msg-id-type=0x01

allowed-smsc-id= demo

#transceiver-mode=1

throughput= 10

 

group= smsc

smsc = smpp

smsc-id = demo

host= 127.0.0.1

smsc-username= demo

smsc-password= demo

#port = 1234

receive-port= 1234 

connect-allow-ip = 127.0.0.1

system-type=""

#address-range=""

#alt-charset=1

#alt-charset="ASCII"

source-addr-ton=1

source-addr-npi=1

dest-addr-ton=1

dest-addr-npi=1

#msg-id-type=0x01

allowed-smsc-id= demo

#transceiver-mode=1

throughput= 10

 

 

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

# It really cannot relay messages to actual handsets!

 

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

# 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

smsbox-id=dlrbox

bearerbox-host = 127.0.0.1

sendsms-port = 13013

#sendsms-port = 13003

global-sender = demo

#sendsms-chars = "0123456789 +-"

log-file = "/var/log/kannel/smsbox.log"

log-level = 0

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

http-request-retry=5

http-queue-delay=50

 

 

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

# 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
<http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar
.> &password=foobar...

 

group = sendsms-user

username = tester

password = foobar

#user-deny-ip = ""

#user-allow-ip = ""

concatenation = true

default-smsc = demo

 

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

# 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 = nop

accepted-smsc= demo

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

 

# ------ SMS BOX ROUTE ---

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

group = smsbox-route

smsbox-id = dlrbox

smsc-id = demo

 

 

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

# other 'sms-service' is applied.

 

group = sms-service

keyword = default

text = <480 Characters with spaces>

concatenation = true

max-messages = 5

 

group = mysql-connection

id = mydlr

host = localhost

username = root

password = root

 

database = dlr

group = dlr-db

id = mydlr

table = dlr

field-smsc = smsc

field-timestamp = ts

field-source = source

field-destination = destination

field-service = service

field-url = url

field-mask = mask

field-status = status

field-boxc-id= boxc

 

##############sqlbox .conf#########

 

group = sqlbox

id = sqlbox-db

smsbox-id = sqlbox

#global-sender = ""

bearerbox-host = localhost

bearerbox-port = 13001

smsbox-port = 13005

smsbox-port-ssl = false

sql-log-table = sent_sms

sql-insert-table = send_sms

log-file = "/var/log/kannel/kannel-sqlbox.log"

log-level = 0

#ssl-client-certkey-file = ""

#ssl-server-cert-file = ""

#ssl-server-key-file = ""

#ssl-trusted-ca-file = ""

 

# Database connection examples. Please uncomment as needed

 

# Example MYSQL Connection

group = mysql-connection

id = sqlbox-db

host = localhost

username = root

password = sqladmin

database = smart_kannel

 

 

so kindly let me if any wrong parameters I have mention.

 

Willy Mularto

F300HD+MR18DE (NLC1725)

 

 

 

 

 

 





 

Reply via email to