Welcome to ClickToCall documentation!

CLick2Call is Python project test with tornado and PostgreSQL database Server.

This project was created for a demo and is not a complete click to call service.

The project support:

  • Client App registration ( oAuth 2.0 )
  • User-Agent login
  • create a call, not SIP signaling or RTP flux, is only a REST call that open a call SESSION
  • terminate a call
  • limit ongoing and outgoing call for a user ( if the user is registered with different apps, the limitation work as well )
  • a very basic admin REST interface to check the user call status and the call informations.

Installation

Is possible to use this project in a virtualenv, install before a virtual env:

$ virtualenv venv --distribute
New python executable in venv/bin/python
Installing distribute...............done.
Installing pip...............done.

To activate the environment.

$ source venv/bin/activate

Now if you are in the root project folder you can use the requirements files to install all the the required packages

$ pip install -r requirements.txt

If all work well you have the project ready to use.

Database Installation

The project have a sql folder with the database dump, this project work only with postgreSQL copy the dump file into postgrSQL To modify the satabase connections parameters you need to open and modify the settings.py` file under the ``app folder`:

DATABASE = {
    "name": "clickcall",
    "user": "postgres",
    "password": "mypassword",
    "host": "localhost",
    "port": "5432"
}

Usage

If you have activate your virtualenv you can launch the project form the root folder.

$python manage.py

The default value lauch a web server to the port 8888 the Web Server accept internal connections ``http://localhost:8888`

Indices and tables