admin interface output means that bearerbox and smsbox were started perfectly fine however bearerbox was unable to connect with your modem smsc.
Now you need to check as to why modem smsc was not on. Enable debug logs after system restart while all boxes are on and see what was causing issue. On Fri, Nov 21, 2014 at 10:38 AM, JAHANZAIB SYED <aaca...@hotmail.com> wrote: > yes when box restarts, i check the processes as follows > > > > ******************************************************************************************************** > *root@rm:~# ps aux |grep kannel* > > kannel 989 0.0 0.0 7424 724 ? Ss 10:04 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid > --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf > > kannel 991 0.0 0.2 101084 2828 ? Sl 10:04 0:00 > /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf > > kannel 1176 0.0 0.0 7424 724 ? Ss 10:04 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid > --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf > > kannel 1180 0.0 0.0 7424 720 ? Ss 10:04 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid > --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf > > kannel 1183 0.0 0.2 80284 2680 ? Sl 10:04 0:00 > /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf > > ******************************************************************************************************** > > *and when i see the status via web i can see the following* > > ********************************************************************************************************Kannel > bearerbox version `1.4.3'. Build `Apr 6 2010 13:16:08', compiler `4.4.3'. > System Linux, release 2.6.32-33-generic, version #70-Ubuntu SMP Thu Jul 7 > 21:09:46 UTC 2011, machine i686. Hostname rm, IP 127.0.1.1. Libxml version > 2.7.6. Using OpenSSL 0.9.8k 25 Mar 2009. Compiled with MySQL 5.1.41, using > MySQL 5.1.73. Using native malloc. > Status: running, uptime 0d 0h 1m 26s > WDP: received 0 (0 queued), sent 0 (0 queued) > SMS: received 0 (0 queued), sent 0 (0 queued), store size -1 > SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec > DLR: 0 queued, using internal storage > Box connections: > smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 20s) > > SMSC connections: > *unknown* AT2[/dev/ttyACM0] (connecting, rcvd 0, sent 0, failed 0, > queued 0 msgs) > > ******************************************************************************************************** > > And when i try to send sms i see following > > *3: Queued for later delivery* > > > > *Regards, * > *SYED JAHANZAIB* > > > > > ------------------------------ > Date: Fri, 21 Nov 2014 10:30:31 +0530 > Subject: Re: Kannel bearerbox and smsbox startup issue > From: tapan.thapa2...@gmail.com > To: aaca...@hotmail.com > CC: cornejo.alv...@gmail.com; users@kannel.org > > > Once system is restarted, have you checked that kannel is working? > > Have you checked if bearerbox and smsbox were working? > > On Fri, Nov 21, 2014 at 10:19 AM, JAHANZAIB SYED <aaca...@hotmail.com> > wrote: > > Not working, when I do system reboot, and try to send messages, they goes > to queue, and when i kill the kannel processes and start bearerbox and > smsbox in separate panel, sms starts to work. > > This is my */etc/default/kannel* file. > ************************************************************ > root@testbox:~# cat /etc/default/kannel > START_WAPBOX=1 > START_SMSBOX=1 > ************************************************************ > > > This is my > */etc/init.d/kannel* > ************************************************************ > root@rm:~# cat /etc/init.d/kannel > #!/bin/sh > . /lib/lsb/init-functions > BOXPATH=/usr/sbin > PIDFILES=/var/run/kannel > CONF=/etc/kannel/kannel.conf > > PATH=$BOXPATH:$PATH > > test -x $BOXPATH/bearerbox || exit 0 > test -r /etc/default/kannel && . /etc/default/kannel > > if [ ! -d $PIDFILES ] > then > mkdir $PIDFILES > chown kannel:root $PIDFILES > fi > > case "$1" in > start) > log_daemon_msg "Starting WAP gateway by zaib" > log_progress_msg "bearerbox" > start-stop-daemon --start --quiet \ > --pidfile $PIDFILES/kannel_bearerbox.pid \ > --chuid kannel \ > --exec $BOXPATH/run_kannel_box \ > -- \ > --pidfile $PIDFILES/kannel_bearerbox.pid \ > --no-extra-args \ > $BOXPATH/bearerbox -v 4 -- $CONF > sleep 1 # Wait for bearerbox > test ! -z $START_WAPBOX && ( > log_progress_msg "wapbox" > start-stop-daemon --start --quiet \ > --pidfile $PIDFILES/kannel_wapbox.pid \ > --chuid kannel \ > --exec $BOXPATH/run_kannel_box \ > -- \ > --pidfile $PIDFILES/kannel_wapbox.pid \ > --no-extra-args \ > $BOXPATH/wapbox -v 4 -- $CONF > ) > test ! -z $START_SMSBOX && ( > log_progress_msg "smsbox" > start-stop-daemon --start --quiet \ > --pidfile $PIDFILES/kannel_smsbox.pid \ > --chuid kannel \ > --exec $BOXPATH/run_kannel_box \ > -- \ > --pidfile $PIDFILES/kannel_smsbox.pid \ > --no-extra-args \ > $BOXPATH/smsbox -v 4 -- $CONF > ) > log_end_msg 0 > ;; > > stop) > log_daemon_msg "Stopping WAP gateway by zaib" > test ! -z $START_SMSBOX && ( > log_progress_msg "smsbox" > start-stop-daemon --stop --retry 5 --quiet \ > --pidfile $PIDFILES/kannel_smsbox.pid \ > --exec $BOXPATH/run_kannel_box > ) > test ! -z $START_WAPBOX && ( > log_progress_msg "wapbox" > start-stop-daemon --stop --retry 5 --quiet \ > --pidfile $PIDFILES/kannel_wapbox.pid \ > --exec $BOXPATH/run_kannel_box > ) > log_progress_msg "bearerbox" > start-stop-daemon --stop --retry 5 --quiet \ > --pidfile $PIDFILES/kannel_bearerbox.pid \ > --exec $BOXPATH/run_kannel_box > log_end_msg 0 > ;; > > reload) > # We don't have support for this yet. > exit 1 > ;; > > restart|force-reload) > $0 stop > sleep 1 > $0 start > ;; > > *) > echo "Usage: $0 {start|stop|restart|force-reload}" > exit 1 > > esac > exit 0 > ************************************************************ > > > > This are processes when sms goes in queue > ************************************************************ > root@rm:~# ps aux |grep kannel > kannel 2964 0.0 0.0 7424 720 ? Ss 09:47 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid > --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf > kannel 2966 0.0 0.2 82652 2784 ? Sl 09:47 0:00 > /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf > kannel 2975 0.0 0.0 7424 720 ? Ss 09:47 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid > --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf > kannel 2978 0.0 0.0 7424 724 ? Ss 09:47 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid > --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf > kannel 2980 0.0 0.2 65948 2644 ? Sl 09:47 0:00 > /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf > root 2993 0.0 0.0 3328 876 pts/2 S+ 09:47 0:00 grep > --color=auto kannel > ************************************************************ > > > Sorry for long messages, but i wanted to provide more info to troubleshoot > easily > > *Regards, * > *SYED JAHANZAIB* > > > ------------------------------ > Date: Thu, 20 Nov 2014 09:49:14 -0500 > Subject: Re: Kannel bearerbox and smsbox startup issue > From: cornejo.alv...@gmail.com > To: aaca...@hotmail.com > CC: tapan.thapa2...@gmail.com; users@kannel.org > > > check contrib folder for init files. Adjust as necessary and place them in > \etc\init.d or as needed by your OS > > > |-----------------------------------------------------------------------------------------------------------------| > Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier > celular y Nextel > en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS > y GPRS online > Visitenos en www.perusms.com > > On Thu, Nov 20, 2014 at 9:26 AM, JAHANZAIB SYED <aaca...@hotmail.com> > wrote: > > my problem is that when I start bearerbox and smsbox in terminal (separate > terminal for each command) like > > *bearerbox -v 0 /etc/kannel/kannel.conf* > > > *smsbox -v 0 /etc/kannel/kannel.conf* > sms via web works fine. > but when i reboot , the SMS via web goes in Queue. > > > *Regards, * > *SYED JAHANZAIB* > > > > > ------------------------------ > From: tapan.thapa2...@gmail.com > Date: Thu, 20 Nov 2014 06:15:21 -0800 > Subject: RE: Kannel bearerbox and smsbox startup issue > To: aaca...@hotmail.com; users@kannel.org > > > Start bearerbox and smsbox with & sign and than test. > > Sent from my Windows Phone > ------------------------------ > From: JAHANZAIB SYED <aaca...@hotmail.com> > Sent: 20-11-2014 19:33 > To: users@kannel.org > Subject: Kannel bearerbox and smsbox startup issue > > I have configured *Kannel *(bearerbox+smsbox) in Ubuntu 12.04. If i start > kannel via following commands (in separate terminals) *bearerbox -v 0 > /etc/kannel/kannel.conf* > *smsbox -v 0 /etc/kannel/kannel.conf* > > > Then the SMS delivery via webhttp works fine. Example: > > > http://10.0.0.1:13013/cgi-bin/sendsms?username=kannel&password=kannel&to=03333021909&am................... > <http://10.0.0.1:13013/cgi-bin/sendsms?username=kannel&password=kannel&to=03333022222&am...> > > but I want to make it auto start on system reboot, but messages go in > queue like > > Queued for later delivery > > > I can see the processes here > > BASH > > ps aux |grep kannel > kannel 1246 0.0 0.0 7424 720 ? Ss 16:01 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid > --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf > kannel 1248 0.0 0.2 101084 2832 ? Sl 16:01 0:00 > /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf > kannel 1268 0.0 0.0 7424 720 ? Ss 16:01 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid > --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf > kannel 1270 0.0 0.0 7424 720 ? Ss 16:01 0:00 > /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid > --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf > kannel 1273 0.0 0.2 80284 2680 ? Sl 16:01 0:00 > /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf > root 1813 0.0 0.0 3328 880 pts/0 S+ 16:07 0:00 grep > --color=auto kannel > > . > What could be wrong? > > > *Regards, * > *SYED JAHANZAIB* > > > >