Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Utility class to allow grouping and automatic registration of event.

src/p/y/py-Asterisk-0.5.3/Asterisk/Manager.py   py-Asterisk(Download)
        self.secret = secret
        self.listen_events = listen_events
        self.events = Asterisk.Util.EventCollection()
        self.timeout = timeout
 
            stop_flag[0] = True
 
        events = Asterisk.Util.EventCollection([ ParkedCall, ParkedCallsComplete ])
        self.events += events
 
            stop_flag[0] = True
 
        events = Asterisk.Util.EventCollection([
            QueueParams, QueueMember, QueueEntry, QueueStatusComplete])
        self.events += events
            stop_flag[0] = True
 
        events = Asterisk.Util.EventCollection([ RegistryEntry, RegistrationsComplete ])
        self.events += events
 
            stop_flag[0] = True
 
        events = Asterisk.Util.EventCollection([ Status, StatusComplete ])
        self.events += events