You probably mean to insert an empty line before the first group = smsc and
right after the commented out group = wapbox ;-)
Nikos
----- Original Message -----
From: Rene Kluwen
To: 'Amrit Pal Pathak' ; users@kannel.org
Sent: Tuesday, August 02, 2011 7:55 PM
Subject: RE: Group does not contain variable 'group'.
Delete the empty line in your first group = smsc.
== Rene
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
Of Amrit Pal Pathak
Sent: Monday, 25 July, 2011 09:29
To: users@kannel.org
Subject: Group does not contain variable 'group'.
when i start bearerbox it gives the following error.
2011-07-25 12:56:05 [29476] [0] INFO: Debug_lvl = 1, log_file = <none>,
log_lvl = 0
2011-07-25 12:56:05 [29476] [0] ERROR: Group does not contain variable
'group'.
2011-07-25 12:56:05 [29476] [0] ERROR: Error found on line 43 of file
`kannel/kannel.conf'.
2011-07-25 12:56:05 [29476] [0] PANIC: Couldn't read configuration from
`kannel/kannel.conf'.
2011-07-25 12:56:05 [29476] [0] PANIC: bearerbox(gw_panic+0xcd) [0x80d088d]
2011-07-25 12:56:05 [29476] [0] PANIC: bearerbox(main+0xdc8) [0x80543b8]
2011-07-25 12:56:05 [29476] [0] PANIC:
/lib/libc.so.6(__libc_start_main+0xe7) [0x9d7ce7]
2011-07-25 12:56:05 [29476] [0] PANIC: bearerbox() [0x80528b1]
kannel.conf file looks like:
#Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#
# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.
group = core
admin-port = 13015
admin-password = hard2guess
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
dlr-storage = internal
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 = 0
#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"
group = smsc
smsc-id = Nokia 5800 XpressMusic
smsc = at
modemtype = auto
device= /dev/ttyUSB1
my-number = +919855225007
connect-allow-ip = 127.0.0.1
sim-buffering = true
log-level = 0
#log-file = "/var/log/kannel/smsc.log"
# DLR with MySQL support configuration
#group = mysql-connection
#id = mydlr
#host = localhost
#username = root
#password = GndeC
#database = adbook
#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 = auto
name = "Nokia"
detect-string = "Nokia"
init-string = "ATZ"
#init-string = "AT+CMEE=1"
#init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT+CNMI=2,1,2,2,0;+CMEE=1"
#message-storage = SM
message-start = 0
#speed = 460800
#message-start = 0
group = smsbox
smsbox-id = mysmsc
bearerbox-host = localhost
#bearerbox-port = 13018
sendsms-port = 13018
global-sender = +919855225007
access-log = "/var/log/kannel/smsbox-access.log"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
mo-recode = true
group = smsbox-route
smsbox-id = mysmsc
smsc-id = Nokia 5800 XpressMusic
group = sendsms-user
username = gndec
password = hard2guess
concatenation= true
max-messages = 10000
group = sms-service
keyword-regex = .*
text = "Thanks for sending SMS"
catch-all = true
accepted-smsc = Nokia 5800 XpressMusic
max-messages = 3
#get-url = "http://202.164.53.116/~harbhag/test.php?phone=%p&text=%r"
Please somebody help
Thank you
amritpalpathak.blogspot.comm