Have you read User's Guide?
BR,
Nikos
----- Original Message -----
From: "Harbhag Singh Sohal" <[email protected]>
To: <[email protected]>
Sent: Friday, September 24, 2010 7:00 PM
Subject: Re: sqlbox configuration problem
I am not able to send sms after setting sendsms-port = 13018.
What if I dont start smsbox at all and only run bearerbox and sqlbox.
2010/9/24 Nikos Balkanas <[email protected]>:
Sorry my mistake. In group smsbox change:
sendsms-port = 13018
BR,
Nikos
----- Original Message ----- From: "Harbhag Singh Sohal"
<[email protected]>
To: <[email protected]>
Sent: Thursday, September 23, 2010 10:13 PM
Subject: Re: sqlbox configuration problem
In sqlbox config file I set bearerbox-port = 13016 and smsbox-port =
13017 and in kannel config file i defined new variable bearerbox-port
= 13017 . So now When I start Bearerbox I see the following :
2010-09-24 00:35:08 [15786] [0] INFO: Debug_lvl = 1, log_file =
<none>, log_lvl = 0
2010-09-24 00:35:08 [15786] [0] INFO: MYSQL: Connected to server at
localhost.
2010-09-24 00:35:08 [15786] [0] INFO: MYSQL: server version
5.1.41-3ubuntu12.6, client version 5.1.41.
2010-09-24 00:35:08 [15786] [0] INFO: DLR using storage type: mysql
2010-09-24 00:35:08 [15786] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2010-09-24 00:35:08 [15786] [0] INFO: Started access logfile
`/var/log/kannel/access.log'.
2010-09-24 00:35:08 [15786] [0] INFO: HTTP: Opening server at port
13015.
2010-09-24 00:35:08 [15786] [0] INFO: BOXC: 'smsbox-max-pending' not
set, using default (100).
2010-09-24 00:35:08 [15786] [0] INFO: Set SMS resend frequency to 60
seconds.
2010-09-24 00:35:08 [15786] [0] INFO: SMS resend retry set to unlimited.
2010-09-24 00:35:08 [15786] [0] INFO: DLR rerouting for smsc id
<(null)> disabled.
2010-09-24 00:35:08 [15786] [0] INFO: AT2[/dev/ttyUSB0]: configuration
doesn't show modemtype. will autodetect
2010-09-24 00:35:08 [15786] [0] INFO:
----------------------------------------
2010-09-24 00:35:08 [15786] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2010-09-24 00:35:08 [15786] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-24 00:35:08 [15786] [0] INFO: MAIN: Start-up done, entering
mainloop
2010-09-24 00:35:09 [15786] [6] INFO: AT2[/dev/ttyUSB0]: speed set to
115200
2010-09-24 00:35:11 [15786] [6] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-09-24 00:35:11 [15786] [6] INFO: AT2[/dev/ttyUSB0]: detect speed is
115200
2010-09-24 00:35:11 [15786] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-24 00:35:12 [15786] [6] INFO: AT2[/dev/ttyUSB0]: speed set to
115200
2010-09-24 00:35:14 [15786] [6] INFO: AT2[/dev/ttyUSB0]: Closing device
2010-09-24 00:35:14 [15786] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-24 00:35:14 [15786] [6] INFO: AT2[/dev/ttyUSB0]: Logging in
2010-09-24 00:35:15 [15786] [6] INFO: AT2[/dev/ttyUSB0]: init device
2010-09-24 00:35:15 [15786] [6] INFO: AT2[/dev/ttyUSB0]: speed set to
115200
2010-09-24 00:35:16 [15786] [6] INFO: AT2[/dev/ttyUSB0]: AT SMSC
successfully opened.
2010-09-24 00:35:44 [15786] [5] INFO: Client connected from <127.0.0.1>
And when I start sqlbox I see the following
2010-09-24 00:36:21 [15895] [0] INFO: Debug_lvl = 1, log_file =
<none>, log_lvl = 0
2010-09-24 00:36:21 [15895] [0] INFO: Starting to log to file
/var/log/kannel/kannel-sqlbox.log level 0
2010-09-24 00:36:21 [15895] [0] INFO: Added logfile
`/var/log/kannel/kannel-sqlbox.log' with level `0'.
2010-09-24 00:36:21 [15895] [0] INFO: MYSQL: Connected to server at
localhost.
2010-09-24 00:36:21 [15895] [0] INFO: MYSQL: server version
5.1.41-3ubuntu12.6, client version 5.1.41.
2010-09-24 00:36:21 [15895] [1] INFO: Connected to bearerbox at
localhost port 13016.
And when I start the smsbox I see the following
2010-09-24 00:36:28 [15901] [0] INFO: Debug_lvl = 1, log_file =
<none>, log_lvl = 0
2010-09-24 00:36:28 [15901] [0] INFO: Starting to log to file
/var/log/kannel/smsbox.log level 0
2010-09-24 00:36:28 [15901] [0] INFO: Added logfile
`/var/log/kannel/smsbox.log' with level `0'.
2010-09-24 00:36:28 [15901] [0] INFO: Service global sender set as
'+91*************'
2010-09-24 00:36:28 [15901] [0] INFO: Logging accesses to
'/var/log/kannel/smsbox-access.log'.
2010-09-24 00:36:28 [15901] [0] INFO: Started access logfile
`/var/log/kannel/smsbox-access.log'.
2010-09-24 00:36:28 [15901] [0] INFO: HTTP: Opening server at port
13017.
2010-09-24 00:36:28 [15901] [0] ERROR: bind failed
2010-09-24 00:36:28 [15901] [0] ERROR: System error 98: Address already
in
use
2010-09-24 00:36:28 [15901] [0] PANIC: Failed to open HTTP socket
2010-09-24 00:36:28 [15901] [0] PANIC: smsbox(gw_panic+0xcd) [0x808a33d]
2010-09-24 00:36:28 [15901] [0] PANIC: smsbox(main+0x1344) [0x8055ae4]
2010-09-24 00:36:28 [15901] [0] PANIC:
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x541bd6]
2010-09-24 00:36:28 [15901] [0] PANIC: smsbox() [0x8053ff1]
So basically I am not able to start the smsbox.
2010/9/23 Nikos Balkanas <[email protected]>:
I told you how in my previous email. Read it through.
BR,
Nikos
----- Original Message ----- From: "Harbhag Singh Sohal"
<[email protected]>
To: <[email protected]>
Sent: Thursday, September 23, 2010 8:09 PM
Subject: Re: sqlbox configuration problem
Is it possible to connect to smsbox and bearerbox together at the same
time
?
If not then how can I connect to either bearerbox or smsbox alone ?
On Thu, Sep 23, 2010 at 10:36 PM, Harbhag Singh Sohal
<[email protected]> wrote:
Well yes, that was the reason of segmentation fault.
On Thu, Sep 23, 2010 at 10:35 PM, Harbhag Singh Sohal
<[email protected]> wrote:
Is this because I have commented the smsbox-port variable in my
sqlbox
config file ?
On Thu, Sep 23, 2010 at 10:12 PM, Harbhag Singh Sohal
<[email protected]> wrote:
Now I am not even able to start sqlbox , below is error that I am
getting
2010-09-23 22:09:46 [2090] [0] INFO: Debug_lvl = 1, log_file =
<none>,
log_lvl = 0
2010-09-23 22:09:46 [2090] [0] INFO: Starting to log to file
/var/log/kannel/kannel
-sqlbox.log level 0
2010-09-23 22:09:46 [2090] [0] INFO: Added logfile
`/var/log/kannel/kannel-sqlbox.l
og' with level `0'.
Segmentation fault
2010/9/23 Nikos Balkanas <[email protected]>:
You have problems in your sqlbox configuration.
If you want to connect sqlbox to bearerbox, you should set:
bearerbox-port = 13016
smsbox-port = 13017
If you want to connect smsbox to bearerbox, you are OK.
If you want to connect smsbox to sqlbox, then you should set in
group
smsbox:
bearerbox-port = 13017
BR,
Nikos
----- Original Message ----- From: "Harbhag Singh Sohal"
<[email protected]>
To: <[email protected]>
Sent: Thursday, September 23, 2010 6:13 PM
Subject: sqlbox configuration problem
I dont understand what wrong I am doing. Seems like there is
conflict
between the ports. Bearerbox starts without problem , after
starting
bearerbox I try to start smsbox and it also start fine but after
that
sqlbox dont start. it says port already in use. But if I start
sqlbox
after bearerbox then it starts fine but then smsbox dont start and
it
says error port already in use. Below are my config files.
group = core
admin-port = 13015
admin-password = foo
admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
dlr-storage = mysql
smsbox-port = 13016
#wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/access.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-level = 1
#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"
group = smsc
smsc = at
modemtype = auto
device= /dev/ttyUSB0
my-number = +91946*****
connect-allow-ip = 127.0.0.1
log-level = 0
group = mysql-connection
id = mydlr
host = localhost
username = foo
password = bar
database = foo
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
group = modems
id = huawei
name = "Huawei E220"
detect-string = "huawei"
init-string = "ATZ"
init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
group = smsbox
bearerbox-host = localhost
sendsms-port = 13017
global-sender = +919********
access-log = "/var/log/kannel/smsbox-access.log"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
group = sendsms-user
username = foo
password = bar
concatenation= true
max-messages = 10
group = sms-service
keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://localhost/sms?phone=%p&text=%a"
group = sqlbox
id = sqlbox-db
smsbox-id = sqlbox
global-sender = "+919******"
bearerbox-host = localhost
bearerbox-port = 13017
smsbox-port = 13016
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 = foo
password = bar
database = foo
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/