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/
