当前位置:网站首页>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
边栏推荐
猜你喜欢

Day 3 array, pre post, character space, keyword and address pointer

Install new version cmake & swig & tinyspline

install realsense2: The following packages have unmet dependencies: libgtk-3-dev

逻辑英语结构【重点】

Cloud native essay using Hana expression database service on Google kubernetes cluster

Notes on sports planning on November 22, 2021

What you need to know to test -- URL, weak network, interface, automation

This new change of go 1.16 needs to be adapted: the changes of go get and go install

我的创作纪念日

Redis novice introduction
随机推荐
How to create an IE tab in edge browser
Redis 新手入门
【深度优先搜索】312.戳气球
Deep learning (tentsorflow2. version) three good student performance problems (1)
The basis of C language grammar -- learning of local variables and storage categories, global variables and storage categories, and macro definitions
Leetcode refers to offer II 091 Paint house - modify in place
The basis of C language grammar -- function definition learning
c语言语法基础之——指针(字符、一维数组) 学习
Throttling, anti chattering, new function, coriolism
國際化配置
力扣------从数组中移除最大值和最小值
Getting started with Flink - word statistics
From TF 1 X to TF 2.6 (update if you encounter it)
VI summary of common commands
2021 national vocational college skills competition (secondary vocational group) network security competition questions (1) detailed analysis tutorial
【二分查找】4. 寻找两个正序数组的中位数
2021-11-29 quintic polynomial of trajectory planning
Wechat official account reported error 10003
Detailed explanation of the network security competition questions (2) of the 2021 national vocational college skills competition (secondary vocational group)
c语言语法基础之——函数定义学习