- MySQL
mysql
cp configs/example.config.mysql.ini configs/config.mysql.ini
cp configs/example.config.router.ini configs/config.router.ini
cp configs/example.isp.json configs/isp.json
# You can proceed to edit config files with the necessary credentials
# configs/isp.json -> the value for default is true is that isp would be the default number for the gateway
create venv
python3 -m virtualenv .venv
activate venv
source .venv/bin/activate
install requirements
pip install -r requirements.txt
start the API
# start routing end points
python3 main.py
# start websocket end points - must be started if going to sync
python3 session_websockets.py
create new session for QR code
[POST]
/sync/sessions/
// body requirements
{
"auth_key":""
}
// returns
{
"status":200,
"url":""
}