Skip to content

Install Instruction

Alexander Chermyanin edited this page Aug 25, 2018 · 13 revisions
  1. download ubuntu 14.04 - http://releases.ubuntu.com/14.04/

  2. download http://www.kannel.org/download/1.5.0/gateway-1.5.0.tar.gz
    wget http://www.kannel.org/download/1.5.0/gateway-1.5.0.tar.gz
    unzip archive
    tar -xzf gateway-1.5.0.tar.gz
    cd gateway-1.5.0

  3. install lib for compilation\build
    sudo apt-get install build-essential libxml2 libxml2-dev

  4. configure
    sudo mkdir /usr/local/kannel
    sudo ./configure --prefix=/usr/local/kannel --enable-start-stop-daemon

  5. compile and install
    sudo make
    sudo make install

  6. configure service start\stop
    sudo vi /etc/init.d/kannel
    sudo chmod +x /etc/init.d/kannel
    sudo update-rc.d kannel defaults
    sudo mkdir /var/lock/subsys
    sudo mkdir /var/log/kannel

  7. create config file /etc/kannel/kannel.conf
    sudo mkdir /etc/kannel
    sudo vi /etc/kannel/kannel.conf

  8. edit source code: convert_addr_from_pdu in file /gw/smsc/smsc_smpp.c on line 347
    compile and build
    sudo make
    sudo make install

  9. run kannel
    sudo service kannel start

  10. check http://yourip:13003/cgi-bin/sendsms?user=username&pass=pa$$w0rd&charset=UTF-8&coding=2&to=yourphone65789031&text=text

Clone this wiki locally