Difference between revisions of "Kamailio kamcli installation on Centos 7"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with '#! /bin/bash # Kamailio CLI tool # https://github.com/kamailio/kamcli/blob/v1.1/README.md # pip install based on https://www.liquidweb.com/kb/how-to-install-pip-on-centos-7/ …') |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
#! /bin/bash | #! /bin/bash | ||
# Kamailio CLI tool | # Kamailio CLI tool | ||
# https://github.com/kamailio/kamcli/blob/v1.1/README.md | # https://github.com/kamailio/kamcli/blob/v1.1/README.md | ||
# pip install based on https://www.liquidweb.com/kb/how-to-install-pip-on-centos-7/ | # pip install based on https://www.liquidweb.com/kb/how-to-install-pip-on-centos-7/ | ||
# requires loadmodule "jsonrpcs" in /etc/kamailio/kamailio.cfg | # requires loadmodule "jsonrpcs" in /etc/kamailio/kamailio.cfg | ||
yum -y install python | yum -y install python | ||
cd /usr/src | cd /usr/src | ||
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" | curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" | ||
python get-pip.py | python get-pip.py | ||
mkdir kamclienv | mkdir kamclienv | ||
cd kamclienv | cd kamclienv | ||
pip install click | pip install click | ||
pip install sqlalchemy | pip install sqlalchemy | ||
pip install tabulate | pip install tabulate | ||
pip install pyaml | pip install pyaml | ||
git clone https://github.com/kamailio/kamcli.git | git clone https://github.com/kamailio/kamcli.git | ||
cd kamcli | cd kamcli | ||
pip install --editable . | pip install --editable . | ||
mkdir /etc/kamcli | mkdir /etc/kamcli | ||
cp -fr /usr/src/kamclienv/kamcli/kamcli/kamcli.ini /etc/kamcli | cp -fr /usr/src/kamclienv/kamcli/kamcli/kamcli.ini /etc/kamcli |
Latest revision as of 08:51, 14 December 2018
#! /bin/bash # Kamailio CLI tool # https://github.com/kamailio/kamcli/blob/v1.1/README.md # pip install based on https://www.liquidweb.com/kb/how-to-install-pip-on-centos-7/ # requires loadmodule "jsonrpcs" in /etc/kamailio/kamailio.cfg yum -y install python cd /usr/src curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" python get-pip.py mkdir kamclienv cd kamclienv pip install click pip install sqlalchemy pip install tabulate pip install pyaml git clone https://github.com/kamailio/kamcli.git cd kamcli pip install --editable . mkdir /etc/kamcli cp -fr /usr/src/kamclienv/kamcli/kamcli/kamcli.ini /etc/kamcli