Skip to content

mafairnet/pythastws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

PythAst WS

This tool is a webservice to make requests through AMI to Asterisk. This service handles all requests and queue all the into a Redis Database. This helps the asterisk perfomance and voice quality is not degradated.

Prerequisites

  • Linux 2.6
  • Redis
  • Python 2.7
  • Flask

Installation

Just copy all the files from the bin folder to /opt/pythastws/ to run your local copy of PythAstWS and set the file permissions.

wget https://github.com/mafairnet/pythastws/archive/master.zip
unzip master.zip
cd pythastws-master
mkdir /opt/pythastws/
cp -R bin/ /opt/pythastws
chmod +x pythast_worker.py
chmod +x pythast_engine.py
chmod +x pythast_webserver.py

Usage

Start Redis

redis-server --deamonize yes

Start your workers

/opt/pythastws/pythast_worker.py

Start your webservice

/opt/pythastws/pythast_webserver.py

Make a request on your browser

http://SERVERIP:88/command?cmd=exec&command=sip show peers

Start integrating you apps with the PythastWS =D

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published