def _send_sysconfd_command(): command_dict = { 'ctibus': ['xivo[cticonfig,update]'], 'ipbx': [], 'agentbus': [], } sysconfd_connector.exec_request_handlers(command_dict)
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)
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)
def sysconf_command_association_updated(user_line): command = { 'ipbx': ['dialplan reload', 'sip reload'], 'agentbus': [], 'ctibus': [], } sysconfd_connector.exec_request_handlers(command)
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)
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)
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)
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)
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)
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)
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)
def _send_sysconfd_command(): command_dict = { 'ctibus': ['xivo[cticonfig,update]'], 'dird': [], 'ipbx': [], 'agentbus': [], } sysconfd_connector.exec_request_handlers(command_dict)
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)
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)
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)
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)
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)
def deleted(line): data = _new_sysconfd_data() sysconfd_connector.exec_request_handlers(data) event = DeleteLineEvent(line.id) send_bus_event(event, event.routing_key)
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)
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)