Dear Zeko,

>From the error message, it seems that your config file is incomplete,
i.e. can't find "group" of some service entry. Each group entry should
begin with group definition, 

group=core
#other definition
...

group=smsbox
#other definition
...

group=smsc
#other definition
...

group=sms-service
#other definition
...

group=sendsms-user
#other definition
...

and so on
....

As Navjot said from earlier post, start with bare minimum config. For
sms sending purposes, just an example, you could start with group=core,
group=smsbox, group=fakesms, and group=sendsms-user. And sample config
file is a good thing to start.

hope this helps you to start diging userguide...

--tjatur

On Mon, 2005-09-19 at 09:54 +0100, zeko mbumwae wrote:
> I am wondering what causes Kannel not to fin the
> config file.What should i do to make kannel read the
> config file.I need help urgently pliz.
> Thanking yu for your help.
> My config file and the errors I am getting when i
> start the bearerbox are below.
> 
> [EMAIL PROTECTED] ~]#
> /usr/local/src/gateway-1.4.0/gw/bearerbox 
> /usr/local/src/gateway-1.4.0/gw/project.conf
> 2005-09-19 10:53:25 [4013] [0] INFO: Debug_lvl = -1,
> log_file = <none>, log_lvl = 0
> 2005-09-19 10:53:25 [4013] [0] ERROR: Group does not
> contain variable 'group'.
> 2005-09-19 10:53:25 [4013] [0] ERROR: Error found on
> line 35 of file
> `/usr/local/src/gateway-1.4.0/gw/project.conf'.
> 2005-09-19 10:53:25 [4013] [0] PANIC: Couldn't read
> configuration from
> `/usr/local/src/gateway-1.4.0/gw/project.conf'.
> 2005-09-19 10:53:25 [4013] [0] PANIC:
> /usr/local/src/gateway-1.4.0/gw/bearerbox(gw_panic+0x174)
> [0x80c70b8]
> 2005-09-19 10:53:25 [4013] [0] PANIC:
> /usr/local/src/gateway-1.4.0/gw/bearerbox(main+0x17d)
> [0x80526aa]
> 2005-09-19 10:53:25 [4013] [0] PANIC:
> /lib/tls/libc.so.6(__libc_start_main+0xe3) [0x2c9e33]
> 2005-09-19 10:53:25 [4013] [0] PANIC:
> /usr/local/src/gateway-1.4.0/gw/bearerbox [0x8051739]
> 
> #Config file
> #
> # THIS IS A SAMPLE CONFIGURATION FOR KANNEL
> #
> # For any modifications to this file, see Kannel User
> Guide 
> # If that does not help, send email to
> [email protected]
> #
> 
> group=core
> admin-port = 13004
> #smbox-port=13002
> admin-password = blessed
> status-password =blessed
> #admin-deny-ip = ""
> admin-allow-ip ="*.*.*.*" 
> log-file = "/var/log/bearerbox.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> access-log = ""/var/log/bearerbox.access.log"
> http-proxy-host = "127.0.0.1"
> #http-proxy-port = 8080
> #http-proxy-exceptions = "127.0.0.1"
> #http-proxy-username = "user"
> #http-proxy-password = "password"
> #ssl-certkey-file = ""
> 

In this entry, GW expected smsbox group definition that should look like
this (more or less):

> # Smsbox related
group = smsbox
bearerbox-host = 127.0.0.1
> smsbox-port = 13001
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> #unified-prefix = "00358,0"
> #white-list = "http://127.0.0.1/white-list.txt";
> #black-list = "http://127.0.0.1/black-list.txt";
> #store-file = "kannel.store"
> 
> # Wapbox related
> #wapbox-port = 13002
> #udp-deny-ip = "*.*.*.*"
> #udp-allow-ip = "127.0.0.1"
> #wdp-interface-name = "*"
> 
> 
> # SMSC CONNECTIONS - GLOBAL FIELDS
> #group =smsc
> #smsc=at
> #smsc-id ="+260971911200"
> #denied-smsc-id = "X;Y"
> #allowed-smsc-id = "Z"
> #preferred-smsc-id = "W"
> #allowed-prefix = "040;050"
> #denied-prefix = "060;070"
> #alt-charset = 
> 
> 
> # SMSC Nokia CIMD2
> group = smsc
> smsc = cimd2
> #host = 
> #port = 
> #smsc-username =
> #smsc-password =
> #keepalive = 
> #sender-prefix =
> 
> 
> # SMSC EMI
> group = smsc
> smsc = emi2 
> smsc = emi_ip to use the old implementation
> #host =
> #port =
> #smsc-username =
> #smsc-password =
> #device = /dev/
> #phone = 
> #our-port =
> #receive-port =
> #connect-allow-ip =
> #keepalive = 
> #flow-control =
> 
> 
> # SMSC SMPP
> #group = smsc
> #smsc = smpp
> #host =
> #port =
> #receive-port =
> #smsc-username =
> #smsc-password =
> #system-type =
> #address-range =
> 
> 
> # SMSC SEMA
> group = smsc
> smsc = sema
> device = /dev/ttySO
> smsc_nua = (X121 smsc address)
> home_nua = (x121 radio pad address)
> wait_report = 0/1 (0 means false, 1 means true)
> 
> 
> # SMSC OIS
> group = smsc
> smsc = ois
> host = 103.102.101.100
> port = 10000
> receive-port = 10000
> #ois-debug-level =-1
> 
> 
> # SMSC GSM
> group = modems
> id=motorola
> name=wavecom
> detect -string="taichi series"
> keepalive-cmd="AT+CBC;+CSQ"
> init-string="ATEO+CNMI=2,1,0,1,1"
> message-storage="SM"
> enable-hwhs="AT+IFC=2,2"
> smsc = wavecom
> modemtype = motorola 
> device =/dev/ttyS0
> speed=9600
> #pin = 2345
> validityperiod = 169
> 
> #another modem
> group = modems
> id=motorola
> name="taichi"
> detect -string="taichi series"
> keepalive-cmd="AT+CBC;+CSQ"
> init-string="AT+CNMI=1,2,0,1,1"
> enable-hwhs="AT\\Q3"
> modemtype = auto 
> device =/dev/ttya01
> speed=9600
> #pin = 2345
> validityperiod = 169
> 
> # SMSC Fake
> #group = smsc
> #smsc = fake
> #host =
> #port =
> #connect-allow-ip = 
> 
> 
> # VIRTUAL SMSC FOR CELTEL
> group = smsc
> smsc = at
> smsc-id=celtel
> my-number=SMS PROJECT
> modemtype=auto
> device=/dev/ttySO
> speed=9600
> sms-center="+260971911200"
> validityperiod=169
> keepalive=6
> #system-type = kannel
> #send-url = 
> #port = 
> #connect-allow-ip = 
> #username = 
> #password = 
> 
> 
> # SMSBOX SETUP
> 
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> sendsms-chars = "0123456789 +-"
> global-sender = 13013
> log-file = "/var/log/smsbox.log"
> log-level = 0
> access-log = "/var/log/access.log"
> #white-list =
> #black-list =
> reply-couldnotfetch = "try again"
> reply-couldnotrepresent = "try again for yu to get
> want yu want sorry"
> reply-requestfailed ="you request invalid"
> reply-emptymessage = ""
> 
> 
> # SEND-SMS USERS
> 
> group = sendsms-user
> username = blessed
> password = blessed
> max-messages = 3
> concatenation = true
> #user-deny-ip = ""
> #user-allow-ip = ""
> 
> # this sender is for Kannel relay testing (http_smsc)
> 
> #group = sendsms-user
> #username = kannel
> #password = rL4y
> #user-deny-ip = "*.*.*.*"
> #user-allow-ip = "127.0.0.1"
> #name = service_kannel
> #forced-smsc = ID
> #default-smsc = ID
> #faked-sended =
> #max-messages = 1
> #concatenation = 1
> #split-chars = 
> #split-suffix = 
> #omit-empty = 
> #header =
> #footer =
> #allowed-prefix =
> #denied-prefix =
> #white-list =
> #black-list =
> 
> 
> 
> # SMS SERVICES
> 
> group = sms-service
> name = nothing
> keyword = nop
> aliases = "noppy;niente"
> text = "You asked nothing and I did it!"
> get-url = "http:localhost/test.php/"
> #post-url = "http://";
> #file = "/tmp/"
> #accepted-smsc = ID
> #allowed-prefix = 
> #denied-prefix = 
> catch-all = false
> send-sender = false
> strip-keyword = false
> faked-sender = 
> max-messages = 1
> accept-x-kannel-headers = false
> assume-plain-text = false
> concatenation =true
> #split-chars = 
> #split-suffix = "+"
> #omit-empty = true
> #header =
> #footer =
> #prefix = 
> #suffix =
> #white-list =
> #black-list =
> 
> 
> # SMS SERVICE GET-URL EXAMPLE
> #group = sms-service
> #keyword = relay
> get-url =
> "http://localhost/service?phone=%p&text=%r&binary=%b&smsc=$i&time=%t
> 
> 
> # SMS SERVICE black-list
> #group = sms-service
> #keyword = black-list
> #text = "You are not alowed to use this service, Go
> away!"
> 
> 
> # SMS SERVICE Default
> # there should be default always
> group = sms-service
> keyword = default
> text = "No service specified"
> 
> 
>               
> ___________________________________________________________ 
> How much mail storage do you get for free? Yahoo! Mail 
> gives you 1GB! 
> Get Yahoo! Mail http://uk.mail.yahoo.com
> 


Reply via email to