Giter Club home page Giter Club logo

nway_ac's Introduction

有不少朋友问,我们如何实现cdr呢,那么可以编译时加pg-core条件,且配置cdr_pg让cdr直接记录到postgresql数据库中。

nway_ac

提醒:如果呼的量比较大的话,可以先关掉log或者把log中的debug,info等去掉。没必要的话,把cdr_csv模块也干掉,不然呼的太快,磁盘受不了。

一、 说明

Nway_ac为nway auto call的缩写,主要用于落地间对接时,可能需要产生一定量的话费消耗,故而采用FreeSWITCH作为后端,使用python作为开发及运行语言来实现定向呼叫。

二、 运行环境搭建(centos为例,debian,windows基本类似)

  1. 以FreeSWITCH 1.2.24为例,不再另行介绍

  2. 安装python2.7

#wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

#tar zxvf Python-2.7.3.tgz

#cd Python-2.7.3

#./configure --prefix=/usr && make && make install

  1. curl https://bootstrap.pypa.io/ez_setup.py | python 用于安装easy_install工具

  2. 安装postgresql,这里不多讲这个数据库安装的用例

  3. 安装django:# easy_install django

  4. 安装 psycopg2:#easy_install psycopg2

  5. 在FreeSWITCH的源码环境下:#cd libs/esl

#make pymod

  1. 下载nway_ac #git clone https://github.com/nwaycn/nway_ac.git

  2. 导入数据库,安装好的预创建数据库nway_ac 并进入db目录下

#psql -U postgres -W -d nway_ac-f nway_ac.sql

  1. 修改nway_ac/nway_ac/ settings.py 将正确的数据库配置更新在其中

  2. 修改 fs_ac/ nway_ac.py 将正确的数据库配置更新其中

  3. 在 nway_ac下运行

#python manage.py runserver 0.0.0.0:8000 这样即可在浏览器中ip:8000/admin中访问该页面 默认的用户名:admin 密码:nway123

  1. 在fs_ac下运行

#python nway_ac.py即可开始工作

三、 页面简易说明

  1. 所有页面菜单

  2. 基本配置

  3. 彩铃管理

  4. 时间计划(在此时间段内才会有效呼叫,全天的则只需要00:00-24:00即可)

  5. 呼叫任务管理(和时间计划配合在内实现自动呼叫)

  6. 号码管理(基本为固定的,和并发量差不多的号码即可)

这里用于维护呼叫的号码等 相关的图在docs中使用说明中有

nway_ac's People

Contributors

nwaycn 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.