Exemplo n.º 1
0
def _send_sysconfd_command():
    command_dict = {
        'ctibus': ['xivo[cticonfig,update]'],
        'ipbx': [],
        'agentbus': [],
    }
    sysconfd_connector.exec_request_handlers(command_dict)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
def sysconf_command_association_updated(user_line):
    command = {
        'ipbx': ['dialplan reload', 'sip reload'],
        'agentbus': [],
        'ctibus': [],
    }
    sysconfd_connector.exec_request_handlers(command)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 12
0
def _send_sysconfd_command():
    command_dict = {
        'ctibus': ['xivo[cticonfig,update]'],
        'dird': [],
        'ipbx': [],
        'agentbus': [],
    }
    sysconfd_connector.exec_request_handlers(command_dict)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)