cancel
Showing results for 
Search instead for 
Did you mean: 

Kannel configuration

 
SOLVED
Go to solution
Neostatic_1
Regular Advisor

Kannel configuration

Hi all
i have a probleme to configure kannel if someone had ever work with it please i need so help attached to this mail the kannel.conf file and the ./bearerbox and ./smsbox ./wapbox results

Thanks in advance
9 REPLIES
Ivan Ferreira
Honored Contributor

Re: Kannel configuration

Can you describe a little more your problem? Do you get an error? Did you check the log files?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Neostatic_1
Regular Advisor

Re: Kannel configuration

Hi Ivan,
well i have 2 problems:

the first one is:
when i execute ./bearerbox i have in return this error message:

ERROR: bind failed
2010-05-05 15:19:44 [4251] [0] ERROR: System error 98: Address

the second :
how do i get to send sms for kannel .

thanks in advance

Neo
Matti_Kurkela
Honored Contributor
Solution

Re: Kannel configuration

Your bearerbox and smsbox logs both contain similar error messages:

bearerbox:
2010-05-05 15:19:44 [4251] [0] INFO: HTTP: Opening server at port 13000.
2010-05-05 15:19:44 [4251] [0] ERROR: bind failed
2010-05-05 15:19:44 [4251] [0] ERROR: System error 98: Address already in use

010-05-05 15:19:44 [4251] [0] ERROR: Couldn't bind a UDP socket to port 9200
2010-05-05 15:19:44 [4251] [0] ERROR: System error 98: Address already in use
2010-05-05 15:19:44 [4251] [0] ERROR: Couldn't bind a UDP socket to port 9201
2010-05-05 15:19:44 [4251] [0] ERROR: System error 98: Address already in use
2010-05-05 15:19:44 [4251] [0] ERROR: Missing wapbox-port variable, cannot start WAP

smsbox:
2010-05-05 17:02:11 [5177] [0] INFO: HTTP: Opening server at port 13001.
2010-05-05 17:02:11 [5177] [0] ERROR: bind failed
2010-05-05 17:02:11 [5177] [0] ERROR: System error 98: Address already in use

In the context of a bind() system call, "address" includes the port numbers too.

In other words, you seem to be trying to configure kannel to run in ports that are already occupied by something else. (It could even be another copy of kannel that is already running.)

The later PANIC messages are probably a consequence of these errors.

In the case of smsbox, there is no question about it: the smsbox is panicking because it could not open a HTTP port.

The panic message in the bearerbox log indicates assertion failure, i.e. "this condition should always be true at this point, but now it isn't". The failed assertion is in source code file 'gwlib/socket.c', so it's very likely something about the availability of network ports... probably just those ports that were reported as being "already in use" earlier!

Your wapbox log file was totally empty. The cause is obvious in the bearerbox log file:

2010-05-05 15:19:44 [4251] [0] ERROR: Missing wapbox-port variable, cannot start WAP

As the wapbox-port option is commented out in the kannel.conf file, the bearerbox (the main component of Kannel) does not even try to start it, so the wapbox log remains empty.

MK
MK
Neostatic_1
Regular Advisor

Re: Kannel configuration

hi Ivan
thanks for all your analyse

well help me solve the issue :
change the ports number ,
and add the wapbox port on the kannel.config
and retry to see if it's working .
i will give you my feedback ASAP,

Thanks a lot Ivan your helping me alot

Regards Neo

Neostatic_1
Regular Advisor

Re: Kannel configuration

hi ivan
i changed the port and it kind of works but i still have another message error , it can't connect to the server with bearerbox :
2010-05-06 09:30:56 [32650] [6] ERROR: connect failed
2010-05-06 09:30:56 [32650] [6] ERROR: System error 110: Connection timed out
2010-05-06 09:30:56 [32650] [6] ERROR: error connecting to server `212.217.54.37' at port `7007'
2010-05-06 09:30:56 [32650] [6] ERROR: SMPP[smsgateway]: Couldn't connect to server.
2010-05-06 09:30:56 [32650] [6] ERROR: SMPP[smsgateway]: Couldn't connect to SMS center (retrying in 10 seconds).

I think it's a serve issue


in smsbox i have an error:

SMSBOX
2010-05-06 09:29:07 [32706] [0] INFO: HTTP: Opening server at port 13005.
2010-05-06 09:29:07 [32706] [0] ERROR: bind failed
2010-05-06 09:29:07 [32706] [0] ERROR: System error 98: Address already in use
2010-05-06 09:29:07 [32706] [0] PANIC: Failed to open HTTP socket
2010-05-06 09:29:07 [32706] [0] PANIC: ./smsbox(gw_panic+0xd4) [0x808b0d4]
2010-05-06 09:29:07 [32706] [0] PANIC: ./smsbox(main+0x1334) [0x8055ab4]
2010-05-06 09:29:07 [32706] [0] PANIC: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb70a0775]
2010-05-06 09:29:07 [32706] [0] PANIC: ./smsbox [0x8054001]

WAPBOX hangs :
root@BAS:/usr/sbin# ./wapbox -v 1 /etc/kannel/kannel.conf
2010-05-06 09:30:02 [32751] [0] INFO: Debug_lvl = 1, log_file = , log_lvl = 0
2010-05-06 09:30:02 [32751] [0] INFO: Added logfile `/var/log/kannel/wapbox.log' with level `-1'.
2010-05-06 09:30:02 [32751] [0] INFO: Starting to log to file /var/log/kannel/wapbox.log level -1
2010-05-06 09:30:02 [32751] [0] INFO: ------------------------------------------------------------
2010-05-06 09:30:02 [32751] [0] INFO: Kannel wapbox version 1.4.3 starting up.
2010-05-06 09:30:02 [32751] [0] INFO: Connected to bearerbox at localhost port 13007.

Regards
Neo
Neostatic_1
Regular Advisor

Re: Kannel configuration

Hi Ivan
i forgot to send you the outputs
Neostatic_1
Regular Advisor

Re: Kannel configuration

Hi Matti
i have change the sendsms port to 13013

but when i want to send an sms via the
http://localhost:13013/cgi-bin/sendsms

i have this message :
autirization failed for sendsms

how can i resolve this ..?

Thanks alot
Matti_Kurkela
Honored Contributor

Re: Kannel configuration

In your other thread, your configuration included a sendsms-user group with username "bas".

If you still have this sendsms-user configured, this URL would send a message "Hello world" to phone number 0123456:

http://localhost:13013/cgi-bin/sendsms?
username=bas&password=bas&to=0123456&text=Hello+world

Note that the entire SMS is in the URL.

Kannel will send back a very simple page that tells you if the message was immediately transferred to the SMSC, queued for later delivery (= SMSC is busy) or rejected.

This is the appropriate part of the Kannel documentation:

http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html#AEN4322

MK
MK
Neostatic_1
Regular Advisor

Re: Kannel configuration

Hi Matti

Thanks alot Matti you helped me alot

Regards
Neo