Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Latest commit

 

History

History
38 lines (36 loc) · 1.01 KB

README.md

File metadata and controls

38 lines (36 loc) · 1.01 KB

flask-originate

originate asterisk call throught http

Status

This project is discontinued use potoo instead

install

git clone https://github.com/benasse/flask-originate.git
cd flask-originate
cp flask-originate.service /lib/systemd/system/
mkdir -p /usr/local/bin/flask-originate
cp app.py /usr/local/bin/flask-originate
systemctl daemon-reload
systemctl enable flask-originate.service
systemctl start flask-originate.service

default config

ip_whitelist = ['172.17.16.10']
dest_context = 'maquette1-key8964-internal'
dest_exten = '1234'
src_context = 'xivo-callme'
src_exten = '777'

examples

wget http://10.0.0.1:8001/?dest_exten=0606060606&dest_context=default&src_exten=777&src_context=xivo-callme
wget http://10.0.0.1:8001/?dest_exten=0606060606

uninstall

systemctl stop flask-originate.service
systemctl disable flask-originate.service
rm /lib/systemd/system/flask-originate.service
systemctl daemon-reload
rm -Rf /usr/local/bin/flask-originate