Mickael,

Have you read the docs? Kannel is comprised of 3 daemons:

bearebox
smsbox
wapbox (only needed if you want to use the wap gateway, not needed for sms
at all).

bearerbox and smsbox must be running in order to be able to use the sendsms
interface (and most other useful tasks, in fact).

If you've followed the examples or used a "default" installation (a dpk
package probably does that), bearerbox uses ports:

13000 to listen for administrative commands (web interface, for example)
13001 to listen for incoming smsbox connections

On the other hand, smsbox connects (as a client) to bearerbox on port 13001
and listens (as a server) on port 13013 for sendsms connections.

bearerbox 12479       root    8u     IPv4    4336092                   TCP
*:13000 (LISTEN) <-- web interface
bearerbox 12479       root   19u     IPv4    4336098                   TCP
*:13001 (LISTEN) <-- smsbox -> bearebox link
smsbox    12514       root    8u     IPv4    4338104                   TCP
*:13013 (LISTEN) <-- sendsms interface

The fact that smsbox is not running is the reason why you get a "Connection
refused".

Please run the boxes from the command line and/or check the init script.

smsbox must be started _after_ bearerbox or it won't run.

Sometimes putting a "sleep 1" after starting bearerbox does the trick, since
the box may need some time to open the socket and if smsbox starts too soon
it may not be able to connect.

Hope it helps.

Alejandro

On Wed, Apr 2, 2008 at 1:32 AM, Mickael - System Administrator (WebD
Services) <[EMAIL PROTECTED]> wrote:

>
>
> Alejandro Guerrieri a écrit :
>
> Looks like smsbox is not running.
>
> Try:
>
> ps auxwww | grep smsbox
>
> Maybe the init script it's not working, or something is wrong on the conf
> file that prevents smsbox to start.
>
>
> ns1:~# ps auxwww | grep smsbox
> root       341  0.0  0.1   3468   704 pts/1    S+   06:23   0:00 grep
> smsbox
> ns1:~#
>
> ps aux
>
> kannel   32517  0.0  0.2   7032  1444 ?        Ss   05:52   0:00
> /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bea
> kannel   32518  0.0  0.5 106640  2616 ?        Sl   05:52   0:00
> /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf
> kannel   32532  0.0  0.2   7032  1444 ?        Ss   05:52   0:00
> /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wap
> kannel   32533  0.0  0.5  73980  2668 ?        Sl   05:52   0:00
> /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf
>
>
> Check also on your logfiles.
>
> /tmp/smsbox.log does not even exist!!
>
>
> If everything fails, try starting the boxes manually:
>
> First run bearerbox
>
> /path/to/bearerbox /path/to/conf-file
>
> And then, on another console:
>
> /path/to/smsbox /path/to/conf-file
>
>
>
> I do not understand why you ask me to verify whether the daemon runs as
> well insisted that the port operates 13000.
> This is the "SEND-SMS 13013" which does not start ...
>
> Mickael
>
>
> If something crashes badly, you'll get the output right in your face ;)
>
> Hope it helps,
>
> Alejandro
>
> On Wed, Apr 2, 2008 at 12:59 AM, Mickael - System Administrator (WebD
> Services) <[EMAIL PROTECTED]> wrote:
>
> > Hello.
> >
> > I installed Kannel.on Debian.
> > apt-get install kannel
> >
> > I'm configure:
> >
> > group = core
> > admin-port = 13000
> > admin-password = test
> > #admin-deny-ip = "*.*.*.*"
> > admin-allow-ip = "*.*.*.*""
> >
> > It's OK. Running !. http://server:13000 wrote:
> >
> > Kannel bearerbox version `1.4.1'. Build `Oct 17 2006 02:55:06', compiler
> > `4.1.2 20061007 (prerelease) (Debian 4.1.1-16)'. System Linux, release
> > 2.6.8-3-686, version #1 Thu Feb 9 07:39:48 UTC 2006, machine i686.
> >
> > Good !! :-)
> >
> >
> >
> > I am trying to create a "send-sms".
> >
> > group = smsbox
> > bearerbox-host = 127.0.0.1
> > sendsms-port = 13013
> > global-sender = 123
> > log-file = "/tmp/smsbox.log"
> >
> > /etc/init.d/kannel restart (or start + stop)
> >
> > ns1:/etc/kannel# telnet localhost 13013
> > Trying 127.0.0.1...
> > telnet: Unable to connect to remote host: Connection refused
> >
> >
> > For 2 days I try.
> > Mickael.
> >
> >
> >
> >
>

Reply via email to