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 = {}