aly / discord_presence_pbx.py

0 likes
0 forks
1 files
Last active 1670065464
connects to an asterisk manager and picks up ExtensionStatus messages. ties into https://gist.github.com/blha303/37e83f320b009de19e7a6c140f51e8d5
1 import socket
2 from requests import get
3
4 EXTEN = "1"
5 presence_api = "http://127.0.0.1:8081"
6 auth = ("me", "aa")
7 pbx_ip = "127.0.0.2"
8
9 def process_event(resp):
10 d = {}

aly / lookingglass.py

0 likes
0 forks
1 files
Last active 1535433284
A Looking Glass implementation in Python3 and Flask. Vet code for security concerns before deploying, this isn't tested for vulnerabilities in any way
1 #!/usr/bin/env python3
2 from flask import Flask,request,make_response
3 from shlex import quote
4 from subprocess import check_output
5 import socket
6 from requests import post
7
8 app = Flask(__name__)
9
10 @app.route('/')