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* > > >