DostEducation / RP_IVR_callback

This repository contains IVR callback handling
GNU Affero General Public License v3.0
2 stars 1 forks source link

RP IVR Callback

Code style: black build-and-deployment License: AGPL v3

This is a cloud function that receives a callback from telephony systems to capture the details of a call. Currently it support Ozonetel's Kookoo telephony system.

Installation

Prerequisite

  1. pyenv
  2. python 3.8

Steps

  1. Clone the repository
    git clone https://github.com/DostEducation/RP_IVR_callback.git
  2. Switch to project folder and setup the vertual environment
    cd RP_IVR_callback
    python3 -m venv venv
  3. Activate the virtual environment For Unix or MacOS, using the bash shell:
    source ./venv/bin/activate

    For Windows using the Command Prompt. For example it may look like c:/RP_IVR_analytics/venv/Scripts/Activate.bat:

     ./venv/bin/activate.bat

    For windows using PowerShell. For example it may look like c:/RP_IVR_analytics/venv/Scripts/Activate.ps1:

     ./venv/bin/activate.ps1
  4. Install the dependencies:
    pip install -r requirements-dev.txt
  5. Set up your .env file by copying .env.example
    cp .env.example .env
  6. Add/update variables in your .env file for your environment.
  7. Run the following command to get started with pre-commit
    pre-commit install
  8. Start the server by following command
    functions_framework --target=callback --debug

License

GNU Affero General Public License v3.0