1. You need to check if kannel started before starting sqlbox

2. When you inject MT into send_sms table set sms_type=2

i.e.

INSERT INTO send_sms SET sms_type=2, receiver="...", sender="..."

so store won't be corrupted upon restart or kannel's abnormal termination.

2012/10/9 spameden <[email protected]>

> Can you read again what I replied back before ?
>
>
> 2012/10/9 sudhir meena <[email protected]>
>
>> Good Noon,
>>
>>        The Problem is not yet Solved. I have a problem in Restarting
>> Bearerbox after add store location in kannel.conf.
>>
>> =======================
>>
>> kannel.conf
>>
>> group = core
>> admin-port = 14000
>> admin-password = Kannel@123
>> status-password = status
>> smsbox-port = 13007
>> dlr-storage = mysql
>> box-deny-ip = "*.*.*.*"
>> box-allow-ip = "127.0.0.1;192.168.1.*"
>> store-type = file
>> #store-location = "/backup/kannel"
>> store-location = "/backup/kannel22"
>> sms-incoming-queue-limit = -1
>> log-level = 0
>> access-log = /var/log/kannel/bearerbox.
>> access
>> log-file = /var/log/kannel/bearerbox.log
>>
>>
>>
>> group = smsbox
>> smsbox-id = sqlbox
>> bearerbox-host = localhost
>> bearerbox-port = 13007
>> sendsms-port = 13131
>> log-file = "/var/log/kannel/smsbox.log"
>> access-log = /var/log/kannel/smsbox.access
>> log-level = 0
>>
>> #include = "Normal.conf"
>> #include = "smsc2.conf"
>> #include = "dnd.conf"
>> #include = "smsc1.conf"
>> #include = "bal.conf"
>> #include = "Priority.conf"
>> #include = "Pritalna.conf"
>> #include = "TM.conf"
>> #include = "dndspecial.conf"
>> #include = "lnpl.conf"
>> #include = "PMU.conf"
>> #include = "PM1.conf"
>> #include = "TM1.conf"
>> #include = "TM.conf"
>> #include = "TMU.conf"
>> include = "smsc.conf"
>>
>> group = sendsms-user
>> #dlr_url = "http://leads.emailservice.co.in/dlr.aspx?id=1&status=4";
>> username = "doza"
>> password = "india"
>> max-messages = 5
>>
>> group = mysql-connection
>> id = sqlbox-db
>> host = localhost
>> username = root
>> password = redhat
>> database = sms_dlr
>> max-connections = 15
>>
>> group = dlr-db
>> id = sqlbox-db
>> table = kannel_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
>>
>> group = sms-service
>> keyword = default
>> #keyword-regex = .*
>> catch-all = true
>> max-messages = 0
>> text = "No service specified"
>>
>> group = modems
>> id = wavecom
>> name = "Wavecom"
>> detect-string = "wavecom"
>> init-string = "ATZ"
>> init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
>> message-storage = "SM"
>>
>> ======================================================
>>
>> [root@kannel201 sbin]# ./bearerbox kannel.conf &>/dev/null &
>> 2012-10-09 22:55:59 [31694] [0] INFO: Added logfile
>> `/var/log/kannel/bearerbox.log' with level `0'.
>> 2012-10-09 22:55:59 [31694] [0] INFO: Started access logfile
>> `/var/log/kannel/bearerbox.access'.
>> 2012-10-09 22:55:59 [31694] [0] INFO: SSL not supported, no SSL
>> initialization done.
>> 2012-10-09 22:55:59 [31694] [0] INFO: HTTP: Opening server at port 14000.
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 1
>> (gwlib/fdset.c:poller)
>> 2012-10-09 22:55:59 [31694] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
>> maps to pid 31694.
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 2
>> (gwlib/http.c:server_thread)
>> 2012-10-09 22:55:59 [31694] [2] DEBUG: Thread 2
>> (gwlib/http.c:server_thread) maps to pid 31694.
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 3
>> (gw/bb_http.c:httpadmin_run)
>> 2012-10-09 22:55:59 [31694] [3] DEBUG: Thread 3
>> (gw/bb_http.c:httpadmin_run) maps to pid 31694.
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: starting smsbox connection module
>> 2012-10-09 22:55:59 [31694] [0] INFO: BOXC: 'smsbox-max-pending' not set,
>> using default (100).
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 4
>> (gw/bb_boxc.c:sms_to_smsboxes)
>> 2012-10-09 22:55:59 [31694] [4] DEBUG: Thread 4
>> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 31694.
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 5
>> (gw/bb_boxc.c:smsboxc_run)
>> 2012-10-09 22:55:59 [31694] [5] DEBUG: Thread 5
>> (gw/bb_boxc.c:smsboxc_run) maps to pid 31694.
>> 2012-10-09 22:55:59 [31694] [0] INFO: Set SMS resend frequency to 60
>> seconds.
>> 2012-10-09 22:55:59 [31694] [0] INFO: SMS resend retry set to unlimited.
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: smsbox MO concatenated message
>> handling enabled
>> 2012-10-09 22:55:59 [31694] [0] INFO: DLR rerouting for smsc id <TM>
>> disabled.
>> 2012-10-09 22:55:59 [31694] [0] INFO: AT2[TM]: configuration shows
>> modemtype <wavecom>
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: AT2[TM]: Reading modem definitions
>> from <kannel.conf>
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: Loading include file `smsc.conf'
>> (on line 43 of file kannel.conf).
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: AT2[TM]: Found <1> modems in config
>> 2012-10-09 22:55:59 [31694] [0] INFO: AT2[TM]: read modem definition for
>> <Wavecom>
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 6
>> (gw/smsc/smsc_at.c:at2_device_thread)
>> 2012-10-09 22:55:59 [31694] [6] DEBUG: Thread 6
>> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 31694.
>> 2012-10-09 22:55:59 [31694] [6] INFO: AT2[TM]: trying to use speed <9600>
>> from modem definition
>> 2012-10-09 22:55:59 [31694] [6] INFO: AT2[TM]: opening device
>> 2012-10-09 22:55:59 [31694] [0] INFO: DLR rerouting for smsc id <TM>
>> disabled.
>> 2012-10-09 22:55:59 [31694] [0] INFO: AT2[TM]: configuration shows
>> modemtype <wavecom>
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: AT2[TM]: Reading modem definitions
>> from <kannel.conf>
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: Loading include file `smsc.conf'
>> (on line 43 of file kannel.conf).
>> 2012-10-09 22:55:59 [31694] [6] DEBUG: AT2[TM]: device opened. Telnet
>> mode = 0
>> 2012-10-09 22:55:59 [31694] [6] DEBUG: AT2[TM]: device opened
>> 2012-10-09 22:55:59 [31694] [6] INFO: AT2[TM]: speed set to 9600
>> 2012-10-09 22:55:59 [31694] [6] DEBUG: AT2[TM]: --> ^M
>> 2012-10-09 22:55:59 [31694] [0] DEBUG: AT2[TM]: Found <1> modems in config
>> .
>> .
>> .
>> .
>> 2012-10-09 22:56:00 [31694] [69] DEBUG: Thread 69
>> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 31694.
>> 2012-10-09 22:56:00 [31694] [69] INFO: AT2[AT]: trying to use speed
>> <9600> from modem definition
>> 2012-10-09 22:56:00 [31694] [0] DEBUG: Started thread 70
>> (gw/bb_smscconn.c:sms_router)
>> 2012-10-09 22:56:00 [31694] [70] DEBUG: Thread 70
>> (gw/bb_smscconn.c:sms_router) maps to pid 31694.
>> 2012-10-09 22:56:00 [31694] [69] INFO: AT2[AT]: opening device
>> 2012-10-09 22:56:00 [31694] [0] INFO:
>> ----------------------------------------
>> 2012-10-09 22:56:00 [31694] [0] INFO: Kannel bearerbox II version 1.4.3
>> starting
>> 2012-10-09 22:56:00 [31694] [0] INFO: Loading store file `/backup/kannel'
>> 2012-10-09 22:56:00 [31694] [0] INFO: Store-file size 5707, starting to
>> unpack
>> 2012-10-09 22:56:00 [31694] [0] INFO: Retrieved 18 messages,
>> non-acknowledged messages: 18
>> 2012-10-09 22:56:00 [31694] [0] PANIC: Not handled sms_type within store!
>> 2012-10-09 22:56:00 [31694] [0] PANIC: ./bearerbox(gw_panic+0x147)
>> [0x479e07]
>> 2012-10-09 22:56:00 [31694] [0] PANIC: ./bearerbox() [0x416366]
>> 2012-10-09 22:56:00 [31694] [0] PANIC: ./bearerbox(main+0x710) [0x40d530]
>> 2012-10-09 22:56:00 [31694] [0] PANIC:
>> /lib64/libc.so.6(__libc_start_main+0xfd) [0x35bb81ecdd]
>> 2012-10-09 22:56:00 [31694] [0] PANIC: ./bearerbox() [0x40c109]
>>
>
>

Reply via email to