Giter Site home page Giter Site logo

zzdx713 / nwaypbx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nwaycn/nwaypbx

0.0 2.0 0.0 31.38 MB

Our plan is to develop a first based on the Chinese PBX, and the world's first c/c++ with ESL through FreeSWITCH control PBX, it is an open source project,QQ群:293697898 。

Home Page: http://121.40.240.104:8088/admin/

C 70.58% C++ 23.16% Objective-C 0.05% Shell 0.27% Makefile 0.55% PLpgSQL 1.42% SQLPL 0.38% Smarty 1.09% Lua 0.10% Python 1.40% Batchfile 0.01% Go 0.72% JavaScript 0.27%

nwaypbx's Introduction

This project is replaced by FSGUI, FSGUI use Go lang develop,but it is not open source , http://www.6fok.com/topics/33 and https://github.com/nwaycn/FSGui

nwaypbx

I removed code for database operation ,because the sqlapi library is a business library.

Our plan is to develop a first based on the Chinese PBX, and the world's first c/c++ with ESL control FreeSWITCH as a PBX, it is an open source project.

License: GPL

author: Li hao

email: [email protected]

You can see demo: http://121.40.240.104:8088/admin/ ,the username:lihao, password:123456

Now we will develop a new version by GO LANG,It is in https://github.com/nwaycn/nwaypbx/tree/master/src/go_fs/fs_control

Since the v0.1.0 version of the current binary uses a part of the third party's commercial library, it does not conform to the spirit of open source, so we will be it as a open source pbx from modify we current code

  1. need you to install postgresql

you can look this:http://nway.com.cn/t8.html or this

第一步、安装Postgresql

CentOS 或debian 源码安装 PostgreSQL 9.3.5

安装PostgreSQL前,确认Internet连接正常,以便下载安装文件。

先使用 yum -y update 指令升级系统到最新版本。

本安装将PostgreSQL的数据文件与执行文件分离,如果你打算设置到不同的路径,注意修改对应的执行命令和数据库初始化脚本。

# 修改防火墙设置,打开5432端口

vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 5432 -j ACCEPT

# 重启防火墙使新设置生效

service iptables restart

# 新增用户组

groupadd postgres

# 新增用户

useradd postgres -g postgres

# 新建数据库执行文件目录

mkdir -p /usr/local/pgsql

# 新建数据库数据文件目录

mkdir -p /db/pgsql/data

# 修改目录拥有者

chown -R postgres /usr/local/pgsql/. chown -R postgres /db/pgsql/data chown -R postgres /db/pgsql/data/. # 编辑PATH搜索路径

vi /etc/profile Append these 2 lines to the end of the file:

PATH=/usr/local/pgsql/bin:$PATH export PATH # 生效PATH搜索路径

source /etc/profile # 安装编译源码所需的工具和库

yum -y install wget gcc readline-devel zlib-devel make debian

apt-get install zlibc libghc-zlib-dev libzlcore-dev gcc make git automake # 进入源码压缩包下载目录

cd /usr/src # 下载源码压缩包

wget http://ftp.postgresql.org/pub/source/v9.3.5/postgresql-9.3.5.tar.gz # 解压缩源码包

tar zxvf ./postgresql-9.3.5.tar.gz # 进入解压缩源码目录

cd ./postgresql-9.3.5 # 执行源码编译配置脚本

./configure # 编译源码

make # 安装

make install # 变更登录用户

su - postgres # 执行数据库初始化脚本

/usr/local/pgsql/bin/initdb --encoding=utf8 -D /db/pgsql/data # 退出变更登录

exit # 复制PostgreSQL执行脚本

cp /usr/src/postgresql-9.3.5/contrib/start-scripts/linux /etc/init.d/postgresql # 增加执行权限

chmod +x /etc/init.d/postgresql # 编辑PostgreSQL执行脚本,指定数据库文件目录

vi /etc/init.d/postgresql PGDATA="/db/pgsql/data" # 编辑配置文件,配置可访问数据库的网络地址 (注意别忘了去掉#listen_addresses=前面的#)

vi /db/pgsql/data/postgresql.conf listen_addresses = '*' # 启动PostgreSQL服务

service postgresql start # 以postgres用户登录数据库,修改postgres用户的数据库密码

psql -U postgres postgres=# ALTER USER postgres PASSWORD '123456'; postgres=# \q 退出pg登录

exit # 编辑配置文件,设置密码md5验证

vi /db/pgsql/data/pg_hba.conf

"local" is for Unix domain socket connections only

local all all md5

IPv4 local connections:

#host all all 127.0.0.1/32 trust host all all 0.0.0.0/0 md5 # 重启数据库服务

service postgresql restart debian下需要安装 chkconfig工具

设置开机自动启动服务

chkconfig postgresql on 配置LD_LIBRARY_PATH vi /etc/profile

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib export LD_LIBRARY_PATH

C_INCLUDE_PATH=$C_INCLUDE_PATH:/usr/local/pgsql/include export C_INCLUDE_PATH source /etc/profile

  1. need you install bakefile

you can look this:http://nway.com.cn/t9.html

  1. need you install freeswitch

you can look this:http://nway.com.cn/t4.html

nwaypbx's People

Contributors

nwaycn avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.