Skip to content

Instantly share code, notes, and snippets.

View yassinelachgar's full-sized avatar

Lachgar yassinelachgar

View GitHub Profile
@yassinelachgar
yassinelachgar / ami_webhook_listener.py
Last active July 16, 2025 14:35
ami_webhook_listener.py
import asyncio
from panoramisk import Manager
manager = Manager(loop=asyncio.get_event_loop(),
host='127.0.0.1',
username='webhookuser',
secret='wow')
@manager.register_event('Bridge')
def callback(manager, message):
@yassinelachgar
yassinelachgar / extensions_custom.conf
Created July 16, 2025 10:19
extensions_custom.conf
[custom-demo-agi]
exten => s,1,NoOp(*** Start custom AGI call ***)
same => n,Answer()
same => n,AGI(odoo.py)
same => n,Hangup()
@yassinelachgar
yassinelachgar / agi_http_trigger.py
Created July 16, 2025 09:40
agi_http_trigger.py
#!/usr/bin/env python2
import sys
import urllib2
def read_agi_variables():
agi_vars = {}
while True:
line = sys.stdin.readline().strip()
if not line:
break
@yassinelachgar
yassinelachgar / docker-compose.yml
Created November 1, 2021 10:45
basic docker compose
version: '2'
services:
db:
image: postgres:13
container_name: pgodoo
ports:
- "5432:5432"
logging:
driver: "json-file"
options: