English 中文(简体)
How to configure Kannel with Linux web server?
原标题:
  • 时间:2010-02-13 06:19:54
  •  标签:
  • kannel

I downloaded the Kannel software from the net and uploaded the software into the web server.

Now I need to compile and run Kannel. How can I run configure and install.sh files?

Can you provide the solution?

问题回答

This is how I would install it:

latest svn:

svn co https://svn.kannel.org/gateway/trunk

./configure --with-mysql --with-malloc=native

–> you will get a message saying thank you for using Kannel.

touch .depend make depend make

sudo make bindir=/kannel/bin/ install #—-> Enter your root password.

and congratz

Howto start & stop the bearerbox & smsbox

#/usr/sbin/smsbox /etc/kannel.conf &
#/usr/sbin/bearerbox /etc/kannel.conf &

Howto Stop the kannel service

#/etc/init.d/kannel stop

Howto check logs for kannel

 #tail -20f /sdp/wap_push_promotion/bearerbox.log

Howto check the kannel process is running or not?

#  ps -ef | grep kannel
root     11314 11281  0 14:05 pts/2    00:00:00 grep kannel
kannel   20609    1  0 Aug02 ?        00:00:00 /usr/sbin/bearerbox /etc/kannel.conf
kannel   20628    1  0 Aug02 ?        00:00:00 /usr/sbin/smsbox/etc/kannel.conf

Read more about how to configure and use kannel here
http://www.techgyaan.org/2011/09/how-to-install-kannel-open-souce-sms/

First decide where to install it:

./conifgure --prefix=/usr/local/kannel

Then run make to create binaries

make

Then make install to put the correct binaries in their right places

make install

Finally go to /usr/local/kannel and start the bearerbox and smsbox

./sbin/bearerbox smskannel.conf &
./sbin/smsbox smskannel.conf &

smskannel.conf is and example configuration distributed with the source code and you can copy it to your installation directory.

  • Download version 1.5.0:“https://redmine.kannel.org/attachments/download/198/gateway-1.5.0.tar.gz
  • Uncompress

    $ curl -O https://redmine.kannel.org/attachments/download/198/gateway-1.5.0.tar.gz

    $ tar -zxvf gateway-1.5.0.tar.gz

    $ cd gateway-1.5.0

  • Select a target install directory (different from your current directory) for the —prefix flag (for ex. /home/vtypal/kannel)

  • Build and install as usual

    $ ./configure --prefix=/home/vtypal/kannel

    $ make

    $ make install

  • Under the sbin directory of kannel create a configuration file called kannel.conf with your kannel configuration.

  • Start kannel $ cd /home/vtypal/kannel/sbin

    $ nohup ./bearerbox &

    $ nohup ./smsbox &

  • Check the logs if you have any config error in your kannel.conf





相关问题
send sms through kannel using the fake SMS center

I configured kannel as fake SMS center. But when I try to send sms, I get the following error: 2010-02-24 15:12:30 [932] [12] DEBUG: send_msg: sending msg to box: 2010-02-24 15:12:30 [932] [12] ...

How to configure Kannel with Linux web server?

I downloaded the Kannel software from the net and uploaded the software into the web server. Now I need to compile and run Kannel. How can I run configure and install.sh files? Can you provide the ...

configure: error: C compiler cannot create executables?

When I configured the Kannel softwre I got the following problem: checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log for more ...

How to mimic SMPP connection

I have a situation. My application is sending multiple SMSes to end client this number varies from 50000 to 100000 SMSes at any point of time. To achieve this functionality i am using Kannel as sms ...

Sending SMS to a non native port – other than port 0

Follow up to: Possible to query the native inbox of a mobile from J2ME? How do I tell Kannel to send an SMS to specific port other than the native inbox port(port 0 i suppose)? My J2ME app ...

Installing cygwin with compilers and development packages

I need to compile kannel for windows and I installed cygwin. It says I don t have compilers to compile with cygwin. How do I resolve this ? Is there any full-featured cygwin image available anywhere ...

热门标签