Hi,

Seems you didn't have the mysql libraries at configure/compile time. Therefore 
configure disabled that feature. With that feature disabled bearerbox doesn't 
know wht to do with the dlrs. If in configuration you change dlr-storage to 
internal, it will work.

But I suspect you want mysql. Therefore

make distclean
install mysql
configure --with-mysql --with-mysql-dir = /path/to/mysql
make
make install

BR,
Nikos
  ----- Original Message ----- 
  From: narendra reddy 
  To: [email protected] ; Nikos Balkanas 
  Sent: Friday, January 23, 2009 12:30 PM
  Subject: Fwd: mysql -database





  g

    Hi 

    >
    > group = core
    > admin-port = 13000
    > admin-password = bar
    > log-file = "log/bearer.log"
    > log-level = 0
    > access-log = "log/beareraccess.log"
    > smsbox-port = 13003
    > store-file = "log/kannelqueue.log"
    >  dlr-storage=mysql
    >
    >
    >
    > # SMSC SMPP
    > group = smsc
    > smsc =  smpp
    > smsc-id =pyro
    > host = localhost
    > port = 2775
    > transceiver-mode=1
    > log-file = "log/kannel.log"
    > alt-dcs = true
    > smsc-username =smppclient
    > smsc-password = password
    > system-type = "VMS"
    > address-range ="555"
    > source-addr-ton = 1
    > source-addr-npi = 1
    > dest-addr-ton = 1
    > dest-addr-npi = 1
    > msg-id-type = 0x01
    > throughput = 50
    > max-pending-submits = 10
    > enquire-link-interval= 60
    >
    > # SMSBOX SETUP
    > group = smsbox
    > bearerbox-host = localhost
    > sendsms-port = 13001
    > log-file = "log/smsbox.log"
    > log-level = 0
    > access-log = "log/smsboxaccess.log"
    >
    > # SEND-SMS USERS
    > group = sendsms-user
    > username =pyro
    > password = pyro
    > max-messages = 5
    > concatenation = true
    >
    > #SMS-Service
    > group = sms-service
    > keyword = default
    > text = "Reply from ESME"
    >
    >  group = mysql-connection
    > id = mydlr
    > host = localhost
    > username = foo
    > password = bar
    > database = dlr
    > # max count of connections that will be opened for dbpool
    > # default is 1
    > max-connections = 1
    >
    > #
    > # Create the required table for the DLR support in the database
    > # with something similar like this:
    > #
    > #   CREATE TABLE dlr (
    > #     smsc varchar(40),
    > #     ts varchar(40),
    > #     destination varchar(40),
    > #     source varchar(40),
    > #     service varchar(40),
    > #     url varchar(255),
    > #     mask int(10),
    > #     status int(10),
    > #     boxc varchar(40)
    > #   )
    > #
    >
    > group = dlr-db
    > id = mydlr
    > table = 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
    >
    >
    >
    >                         i  added  above config-file and after i  run the
    > bearerbox     it is showing the below error in bearer box . can you tell 
me
    > what is the error in my config -file .  right now mysql is not there in
    > laptop .may be that is the error? . after  i install mysql what i can do .
    > i am new to this kannel -gateway.
    >
    >
    >
    >
    >  2009-01-22 21:41:10 [4278] [0] INFO: Debug_lvl = 1, log_file = <none>,
    > log_lvl = 0
    > 2009-01-22 21:41:10 [4278] [0] PANIC: DLR: storage type 'mysql' is not
    > supported!
    > 2009-01-22 21:41:10 [4278] [0] PANIC: ./bearerbox(gw_panic+0x182) 
[0x46d9f2]
    > 2009-01-22 21:41:10 [4278] [0] PANIC: ./bearerbox(dlr_init+0x1e7) 
[0x414977]
    > 2009-01-22 21:41:10 [4278] [0] PANIC: ./bearerbox(main+0xdc) [0x40bbcc]
    > 2009-01-22 21:41:10 [4278] [0] PANIC:
    > /lib64/libc.so.6(__libc_start_
    main+0xf4) [0x2b76e083b154]
    > 2009-01-22 21:41:10 [4278] [0] PANIC: ./bearerbox [0x40ae39]
    >
    >  Regards,
    > Narendra.









  -- 
  Narendra Reddy

Reply via email to