Exemple #1
0
def _send_sysconfd_command():
    command_dict = {
        'ctibus': ['xivo[cticonfig,update]'],
        'ipbx': [],
        'agentbus': [],
    }
    sysconfd_connector.exec_request_handlers(command_dict)
Exemple #2
0
def sysconf_command_agent_associated(queue_member):
    command = {
        'ipbx': [],
        'agentbus': ['agent.edit.%s' % queue_member.agent_id],
        'ctibus': ['xivo[queuemember,update]']
    }
    sysconfd_connector.exec_request_handlers(command)
Exemple #3
0
def edited(voicemail):
    data = _new_sysconfd_data(
        'xivo[voicemail,edit,%s]' % voicemail.id,
        ['voicemail reload', 'sip reload', 'module reload chan_sccp.so'])
    sysconfd_connector.exec_request_handlers(data)
    event = EditVoicemailEvent(voicemail.id)
    send_bus_event(event, event.routing_key)
Exemple #4
0
def sysconf_command_association_updated(user_line):
    command = {
        'ipbx': ['dialplan reload', 'sip reload'],
        'agentbus': [],
        'ctibus': [],
    }
    sysconfd_connector.exec_request_handlers(command)
Exemple #5
0
def _send_sysconfd_command(user_cti_profile):
    command_dict = {
        'ctibus': _generate_cti_commands(user_cti_profile),
        'ipbx': [],
        'agentbus': [],
    }
    sysconfd_connector.exec_request_handlers(command_dict)
Exemple #6
0
def sysconf_command_agent_removed_from_queue(agent_id):
    command = {
        'ipbx': [],
        'agentbus': ['agent.edit.%s' % agent_id],
        'ctibus': ['xivo[queuemember,update]']
    }
    sysconfd_connector.exec_request_handlers(command)
Exemple #7
0
def sysconf_command_association_updated(user_voicemail):
    command = {
        'ipbx': ['sip reload', 'module reload chan_sccp.so'],
        'agentbus': [],
        'ctibus': _generate_ctibus_commands(user_voicemail)
    }
    sysconfd_connector.exec_request_handlers(command)
Exemple #8
0
def sysconf_command_association_updated(user_line):
    command = {
        'dird': [],
        'ipbx': ['dialplan reload', 'sip reload'],
        'agentbus': [],
        'ctibus': _generate_ctibus_commands(user_line)
    }
    sysconfd_connector.exec_request_handlers(command)
Exemple #9
0
def sysconf_command_agent_removed_from_queue(agent_id):
    command = {
        'dird': [],
        'ipbx': [],
        'agentbus': ['agent.edit.%s' % agent_id],
        'ctibus': ['xivo[queuemember,update]']
    }
    sysconfd_connector.exec_request_handlers(command)
Exemple #10
0
def send_sysconf_commands(line_extension):
    command = {
        'ctibus': _generate_ctibus_commands(line_extension),
        'ipbx': ['dialplan reload', 'sip reload'],
        'agentbus': [],
    }

    sysconfd_connector.exec_request_handlers(command)
Exemple #11
0
def edited(voicemail):
    data = _new_sysconfd_data('xivo[voicemail,edit,%s]' % voicemail.id,
                              ['voicemail reload',
                               'sip reload',
                               'module reload chan_sccp.so'])
    sysconfd_connector.exec_request_handlers(data)
    event = EditVoicemailEvent(voicemail.id)
    send_bus_event(event, event.routing_key)
Exemple #12
0
def _send_sysconfd_command():
    command_dict = {
        'ctibus': ['xivo[cticonfig,update]'],
        'dird': [],
        'ipbx': [],
        'agentbus': [],
    }
    sysconfd_connector.exec_request_handlers(command_dict)
Exemple #13
0
def _send_sysconfd_command(user_cti_profile):
    command_dict = {
        'ctibus': _generate_cti_commands(user_cti_profile),
        'dird': [],
        'ipbx': [],
        'agentbus': [],
    }
    sysconfd_connector.exec_request_handlers(command_dict)
Exemple #14
0
def sysconf_command_agent_associated(queue_member):
    command = {
        'dird': [],
        'ipbx': [],
        'agentbus': ['agent.edit.%s' % queue_member.agent_id],
        'ctibus': ['xivo[queuemember,update]']
    }
    sysconfd_connector.exec_request_handlers(command)
Exemple #15
0
def sysconf_command_association_updated(user_voicemail):
    command = {
        'dird': [],
        'ipbx': ['sip reload', 'module reload chan_sccp.so'],
        'agentbus': [],
        'ctibus': _generate_ctibus_commands(user_voicemail)
    }
    sysconfd_connector.exec_request_handlers(command)
Exemple #16
0
def send_sysconf_commands(line_extension):
    command = {
        "ctibus": _generate_ctibus_commands(line_extension),
        "dird": [],
        "ipbx": ["dialplan reload", "sip reload"],
        "agentbus": [],
    }

    sysconfd_connector.exec_request_handlers(command)
Exemple #17
0
def deleted(voicemail):
    data = _new_sysconfd_data('xivo[voicemail,delete,%s]' % voicemail.id,
                              ['voicemail reload'])
    sysconfd_connector.exec_request_handlers(data)
    event = DeleteVoicemailEvent(voicemail.id)
    send_bus_event(event, event.routing_key)
Exemple #18
0
def deleted(line):
    data = _new_sysconfd_data()
    sysconfd_connector.exec_request_handlers(data)
    event = DeleteLineEvent(line.id)
    send_bus_event(event, event.routing_key)
Exemple #19
0
def deleted(extension):
    sysconfd_connector.exec_request_handlers(sysconfd_base_data)
    event = DeleteExtensionEvent(extension.id, extension.exten, extension.context)
    send_bus_event(event, event.routing_key)
Exemple #20
0
def deleted(voicemail):
    data = _new_sysconfd_data('xivo[voicemail,delete,%s]' % voicemail.id,
                              ['voicemail reload'])
    sysconfd_connector.exec_request_handlers(data)
    event = DeleteVoicemailEvent(voicemail.id)
    send_bus_event(event, event.routing_key)
Exemple #21
0
def deleted(user):
    data = _new_sysconfd_data('xivo[user,delete,%s]' % user.id)
    sysconfd_connector.exec_request_handlers(data)
    event = DeleteUserEvent(user.id)
    send_bus_event(event, event.routing_key)