Hi, 1. Run bearerbox first before running smsbox.... something like /usr/local/sbin/bearerbox -v 0 /etc/kannel.conf /usr/local/sbin/smsbox -v 0 /etc/kannel.conf 2. Send us the full log at debug-level zero (/usr/local/sbin/bearerbox -v 0 /etc/kannel.conf) 3. Check that you reach your SMSC at the given port and connection is stable. 4. Also check for file permissions.
@sotandeka +256 716 801 124 Senior Programmer in VAS Mobile services, ERP, Health and Web-based Systems. Experienced Linux System Administrator and Open Source Developer. On Fri, May 2, 2014 at 5:11 PM, MOSES KARIUKI <kariuk...@gmail.com> wrote: > Bendon, > > In Addition, these are the instructions I followed. > > svn co https://svn.kannel.org/gateway/trunk kannel-1.5 > cd kannel-1.5 > ./configure --with-mysql --prefix=/usr/local > make > make install > > > > On Fri, May 2, 2014 at 5:10 PM, MOSES KARIUKI <kariuk...@gmail.com> wrote: > >> # >> # 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 = 13000 >> admin-password = >> admin-deny-ip = "*.*.*.*" >> admin-allow-ip = "" >> #wapbox-port = 13002 >> smsbox-port = 13001 >> wdp-interface-name = "*" >> log-file = "/var/log/kannel/bearerbox.log" >> log-level = 0 >> box-deny-ip = "*.*.*.*" >> box-allow-ip = >> #dlr-storage = pgsql >> >> #group = wapbox >> #bearerbox-host = localhost >> #log-file = "/var/log/kannel/wapbox.log" >> >> group = smsbox >> bearerbox-host = localhost >> sendsms-port = 13013 >> global-sender = 13013 >> smsbox-id = box1 >> log-file = "/var/log/kannel/smsbox.log" >> log-level = 0 >> >> group = sendsms-user >> username = >> password = >> dlr-url = " >> http://localhost/kannel/dlr_status.php?id=%p&mask=%d&message_id=%F" >> >> group = sms-service >> keyword = default >> get-url = " >> http://localhost/kannel/receivesms.php?sender=%p&text=%a&receiverph=%P&smscid=%i >> " >> accept-x-kannel-headers = true >> concatenation = true >> catch-all = true >> >> #group = wapbox >> #bearerbox-host = localhost >> #log-file = "/var/log/kannel/wapbox.log" >> >> group = smsc >> smsc = smpp >> smsc-id = >> host = >> port = 0 >> smsc-username = >> smsc-password = >> system-type = VMA >> transceiver-mode = false >> receive-port = 9000 >> interface-version = 34 >> #connect-allow-ip = 127.0.0.1 >> #msg-id-type = 0x00 >> >> group = pgsql-connection >> id = mydlr >> host = localhost >> port = 5432 >> username = postgres >> password = _123ntGrac0N_ >> database = postgres >> max-connections = 1 >> >> group = dlr-db >> id = mydlr >> table = tbl_dlr >> field-smsc = smsc >> field-timestamp = _timstamp >> field-destination = destination >> field-source = source >> field-service = _service >> field-url = url >> field-mask = mask >> field-status = status >> field-boxc-id = boxc_id >> >> >> >> On Fri, May 2, 2014 at 5:06 PM, Bendon Murgor <bendonmur...@gmail.com>wrote: >> >>> Send in your conf file... >>> You may remove the passwords in it >>> >>> >>> Best Regards, >>> ----------------------------------------- >>> Bendon Murgor >>> Sytems Engineer/IT Systems Auditor >>> +254-720-529868 >>> Sent from my BlackBerry® >>> ------------------------------ >>> *From: * MOSES KARIUKI <kariuk...@gmail.com> >>> *Date: *Fri, 2 May 2014 17:03:53 +0300 >>> *To: *Murgor Bendon<bendonmur...@gmail.com> >>> *Cc: *Kannel Users<users@kannel.org> >>> *Subject: *Re: Kannel 1.5 smsbox error >>> >>> THanks Bendon, >>> >>> I have done that. Below is the new error I am getting. >>> >>> 2014-05-02 14:01:07 [1811] [0] DEBUG: Connecting to <127.0.0.1> >>> 2014-05-02 14:01:07 [1811] [0] INFO: Connected to bearerbox at localhost >>> port 13001. >>> 2014-05-02 14:01:07 [1811] [0] DEBUG: Started thread 8 >>> (gw/heartbeat.c:heartbeat_thread) >>> 2014-05-02 14:01:07 [1811] [8] DEBUG: Thread 8 >>> (gw/heartbeat.c:heartbeat_thread) maps to pid 1811. >>> 2014-05-02 14:01:07 [1811] [0] ERROR: Connection closed by the bearerbox. >>> 2014-05-02 14:01:07 [1811] [0] ERROR: Bearerbox is gone, restarting >>> 2014-05-02 14:01:07 [1811] [0] INFO: Received (and handled?) 0 requests >>> in 0 seconds (-nan per second) >>> 2014-05-02 14:01:07 [1811] [0] INFO: Kannel smsbox terminating. >>> 2014-05-02 14:01:07 [1811] [8] ERROR: Error writing 12 octets to fd 45: >>> 2014-05-02 14:01:07 [1811] [8] ERROR: System error 32: Broken pipe >>> 2014-05-02 14:01:07 [1811] [8] ERROR: Couldn't write Msg to bearerbox. >>> 2014-05-02 14:01:07 [1811] [8] DEBUG: Thread 8 >>> (gw/heartbeat.c:heartbeat_thread) terminates. >>> 2014-05-02 14:01:07 [1811] [0] DEBUG: Waiting for 2 >>> (gwlib/http.c:server_thread) to terminate >>> 2014-05-02 14:01:07 [1811] [3] DEBUG: HTTP: No clients with requests, >>> quitting. >>> 2014-05-02 14:01:07 [1811] [3] DEBUG: Thread 3 >>> (gw/smsbox.c:sendsms_thread) terminates. >>> 2014-05-02 14:01:07 [1811] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) >>> terminates. >>> 2014-05-02 14:01:07 [1811] [2] DEBUG: Thread 2 >>> (gwlib/http.c:server_thread) terminates. >>> 2014-05-02 14:01:07 [1811] [0] DEBUG: Waiting for 5 >>> (gw/smsbox.c:obey_request_thread) to terminate >>> >>> MT >>> >>> >>> On Fri, May 2, 2014 at 5:02 PM, Bendon Murgor <bendonmur...@gmail.com>wrote: >>> >>>> Boss, are you sure that is the correct location of your conf file? >>>> Have you followed the documentation? >>>> Create the kannel.conf in your current working directory and execute >>>> again. >>>> Best Regards, >>>> ----------------------------------------- >>>> Bendon Murgor >>>> Sytems Engineer/IT Systems Auditor >>>> +254-720-529868 >>>> Sent from my BlackBerry® >>>> ------------------------------ >>>> *From: * MOSES KARIUKI <kariuk...@gmail.com> >>>> *Sender: * "users" <users-boun...@kannel.org> >>>> *Date: *Fri, 2 May 2014 16:56:53 +0300 >>>> *To: *Kannel Users<users@kannel.org> >>>> *Subject: *Kannel 1.5 smsbox error >>>> >>>> Hi All, >>>> >>>> I am getting the below error. Please assist. I tried locating the >>>> /etc/default/kannel file but its not there. >>>> root@rzpeiz52m2:/etc/default# /etc/kannel/sbin/smsbox kannel.conf >>>> 2014-05-02 13:46:26 [24447] [0] INFO: Debug_lvl = -1, log_file = >>>> <none>, log_lvl = 0 >>>> 2014-05-02 13:46:26 [24447] [0] ERROR: fopen failed: couldn't open >>>> `kannel.conf' >>>> 2014-05-02 13:46:26 [24447] [0] ERROR: System error 2: No such file or >>>> directory >>>> 2014-05-02 13:46:26 [24447] [0] PANIC: Failed to load main >>>> configuration file `kannel.conf'. Aborting! >>>> 2014-05-02 13:46:26 [24447] [0] PANIC: >>>> /etc/kannel/sbin/smsbox(gw_backtrace+0xae) [0x440fee] >>>> 2014-05-02 13:46:26 [24447] [0] PANIC: >>>> /etc/kannel/sbin/smsbox(gw_panic+0x169) [0x441169] >>>> 2014-05-02 13:46:26 [24447] [0] PANIC: >>>> /etc/kannel/sbin/smsbox(cfg_read+0x5d6) [0x42c826] >>>> 2014-05-02 13:46:26 [24447] [0] PANIC: >>>> /etc/kannel/sbin/smsbox(main+0x101) [0x40ce21] >>>> 2014-05-02 13:46:26 [24447] [0] PANIC: >>>> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f485ec5476d] >>>> 2014-05-02 13:46:26 [24447] [0] PANIC: /etc/kannel/sbin/smsbox() >>>> [0x40e3f5] >>>> >>>> >>>> Please assist. >>>> MK >>>> >>> >>> >> >