-
Notifications
You must be signed in to change notification settings - Fork 70
No event is being captured #49
Copy link
Copy link
Open
Description
#!/usr/bin/python
import os
import time
from asterisk.ami import AMIClient
from asterisk.ami import EventListener
def event_listener(event,**kwargs):
print(event)
client = AMIClient(address='127.0.0.1',port=5038)
future = client.login(username='astmanager',secret='Xn75CFbVfjRg71v')
if future.response.is_error():
raise Exception(str(future.response))
client.add_event_listener(event_listener)
try:
while True:
time.sleep(10)
except (KeyboardInterrupt, SystemExit):
client.logoff()
this code is running without error but shows no even on the terminal when I run it
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels