当前位置:网站首页>Openxcap usage

Openxcap usage

2022-06-26 09:56:00 crystal199708

0. install

Download installation package :
http://download.ag-projects.com/XCAP/
Unzip the file : xxx.tar.gz
Go to unzip directory : cd xxx
install : sudo python setup.py install

1. start-up

command :sudo The installation path /openxcap start
Running in the background :openxcap --no-fork

1. Report errors :no module named application

install python-application-2.8.0.tar.gz

2. Report errors :CRITICAL [server]:cannot start openxcap cannot create logger directory [Errno 13]

Switch to su root The user action .

3. Report errors :no module twisted

install twisted-13.0.0.tar.ba2, The error is reported on the CD , Find the corresponding library , Installation .
Report errors :error: command ‘x86_64-linux-gnu-gcc‘ failed with exit status 1
resolvent : install python2.7-dev_2.7.13-2_amd64.deb
If other dependency errors are reported , To adapt to dpkg -i xxx.deb Can be installed .

4. Report errors :no module named logger

install :girl1.2-telepathylogger-0.2_0.8.2-2_amd64.deb、logger1.4.tar.gz
Overlay installation Twisted-16.6.0.tar.bz2

Report errors :could not find suitable distribution for Requirement.prase(‘incremental>=16.10.1’)
resolvent :

2. scripts Folder function parsing

Entry required mysql:mysql -uroot -p
establish openxcap database :create databases openxcap;
Use openxcap database :use openxcap;

Create a table :
(1) mysql-create-tables.sql file , Is a script file for creating database tables , After entering the database , perform ,source mysql-create-tables.sql after , According to the content of the script , Create database tables .

Set database access permissions :
(2) my-create-user.sql file , It is a script file that adds database permissions for users , Execution method reference (1).
Before implementation , Please pay attention to the content prompt in the file :“ visit opensips database , take opensips Replace with the real database name . Replace passwords and private with actual values ( I set the local service startup )ip Address ”.

Add information :
(3) add-openxcap-user.py file , Is a script file that generates information to insert into the database .
usage :python add-openxcap-user.py u1 192.168.159.123 123456
Will generate :
INSERT INTO subscriber (username,domain,password,ha1) VALUES……
Usage method : The statement to be generated , Assign values to the database mysql>……
You can insert user data into the table .

3. The configuration file

After installation , Configuration file in /etc/openxcap In the folder , Need to put simple Make a new copy of the file and rename it :config.ini, Change adaptability into what you need .
Configure the reference :https://blog.51cto.com/u_1221655/3400546

原网站

版权声明
本文为[crystal199708]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202170548393877.html