예제 #1
0
 def __init__(self, newurls = [], useless = None):
     self.anylist_properties = { 'keywords' : [],
                                 'name' : 'phones',
                                 'action' : 'getphoneslist',
                                 'urloptions' : (1, 12, False) }
     AnyList.__init__(self, newurls)
     return
예제 #2
0
 def __init__(self, newurls = [], useless = None):
     self.anylist_properties = { 'keywords' : [ 'phonebook.firstname',
                                                'phonebook.lastname',
                                                'phonebook.displayname',
                                                'phonebook.title',
                                                'phonebook.url',
                                                'phonebook.image',
                                                'phonebook.email',
                                                'phonebook.society',
                                                'phonebook.fullname',
                                                'phonebookaddress.office.city',
                                                'phonebookaddress.office.address1',
                                                'phonebookaddress.office.address2',
                                                'phonebookaddress.office.zipcode',
                                                'phonebookaddress.office.state',
                                                'phonebookaddress.office.country',
                                                'phonebookaddress.home.city',
                                                'phonebookaddress.home.address1',
                                                'phonebookaddress.home.address2',
                                                'phonebookaddress.home.zipcode',
                                                'phonebookaddress.home.state',
                                                'phonebookaddress.home.country',
                                                'phonebooknumber.office.number',
                                                'phonebooknumber.home.number',
                                                'phonebooknumber.other.number'
                                                ],
                                 'name' : 'phonebook',
                                 'action' : 'getphonebook',
                                 'urloptions' : (1, 5, True)}
     AnyList.__init__(self, newurls)
     return
예제 #3
0
 def __init__(self, newurls = [], useless = None):
     self.anylist_properties = { 'keywords' : ['firstname', 'lastname', 'number', 'password',
                                               'context', 'ackcall', 'wrapuptime'],
                                 'name' : 'agents',
                                 'action' : 'getagentslist',
                                 'urloptions' : (1, 4, True) }
     AnyList.__init__(self, newurls)
     return
예제 #4
0
 def __init__(self, newurls = [], virtual = False):
     self.anylist_properties = {
         'keywords' : ['number', 'context', 'groupname'],
         'name' : 'groups',
         'action' : 'getgroupslist',
         'urloptions' : (1, 5, True) }
     AnyList.__init__(self, newurls)
     return
예제 #5
0
 def __init__(self, newurls = [], useless = None):
     self.anylist_properties = {
         'keywords' : ['mailbox', 'context', 'fullname',
             'password', 'email'],
         'name' : 'voicemail',
         'action' : 'getvoicemaillist',
         'urloptions' : (1, 5, True) }
     AnyList.__init__(self, newurls)
     return
예제 #6
0
 def __init__(self, newurls = [], useless = None):
     self.anylist_properties = {
         'keywords' : ['tech', 'name', 'ip',
                       'type', 'context'],
         'name' : 'trunk',
         'action' : 'gettrunklist',
         'urloptions' : (1, 5, True) }
     AnyList.__init__(self, newurls)
     return
예제 #7
0
 def __init__(self, newurls = []):
     self.anylist_properties = { 'keywords' : ['capaids', 'user', 'password', 'fullname',
                                               'agentid', 'voicemailid', 'simultcalls', #'mwi',
                                               'techlist', 'phoneid', 'phonenum', 'mobilenum',
                                               'context'],
                                 'name' : 'users',
                                 'action' : 'getuserslist',
                                 'urloptions' : (0, 11, True) }
     AnyList.__init__(self, newurls)
     return
예제 #8
0
 def __init__(self, newurls = [], useless = None):
     self.anylist_properties = { 'keywords' : [ 'roomnumber',
                                                'roomname',
                                                'context',
                                                'pin',
                                                'pinadmin',
                                                'moderated' ],
                                 'name' : 'meetme',
                                 'action' : 'getmeetmelist',
                                 'urloptions' : (1, 5, True)
                                 }
     AnyList.__init__(self, newurls)
     return
예제 #9
0
 def __init__(self, newurls = [], useless = None):
     self.anylist_properties = {
         'keywords' : ['exten', 'context', 'destidentity', 'action',
                       'userfirstname', 'userlastname',
                       'usernumber', 'username',
                       'usercontext',
                       'groupcontext',
                       'queuecontext',
                       'meetmecontext',
                       'voicemenucontext',
                       'voicemailcontext'],
         'name' : 'incomingcall',
         'action' : 'getincomingcalllist',
         'urloptions' : (1, 5, True) }
     AnyList.__init__(self, newurls)
     return
예제 #10
0
    def __init__(self, newurls = [], misc = None):
        self.anylist_properties = { 'keywords' : ['number', 'context', 'queuename'],
                                    'name' : 'queues',
                                    'action' : 'getqueueslist',
                                    'urloptions' : (1, 5, True)
                                    }
        AnyList.__init__(self, newurls)

        try:
            queuestatpath = misc["conf"].xc_json['main']['asterisk_queuestat_db']
            self.stats = QueueStats(queuestatpath.replace('\/','/'));
        except Exception:
            log.exception('could not access queuestats db (%s)' % queuestatpath)
            self.stats = None

        return
예제 #11
0
 def update(self):
     ret = AnyList.update(self)
     self.reverse_index = {}
     for idx, ag in self.keeplist.iteritems():
         if ag['number'] not in self.reverse_index:
             self.reverse_index[ag['number']] = idx
         else:
             log.warning('2 agents have the same number')
     return ret
예제 #12
0
 def update(self):
     ret = AnyList.update(self)
     self.reverse_index = {}
     for idx, ag in self.keeplist.iteritems():
         rev = '%s@%s' % (ag['mailbox'], ag['context'])
         if rev not in self.reverse_index:
             self.reverse_index[rev] = idx
         else:
             log.warning('2 voicemails have the same mailbox@context')
     return ret
예제 #13
0
 def update(self):
     ret = AnyList.update(self)
     # self.reverse_index = {}
     return ret