Ejemplo n.º 1
0
def _delete_incall_association(line_extension):
    incall = incall_dao.find_by_extension_id(line_extension.extension_id)
    incall_dao.delete(incall)
    extension_dao.dissociate_extension(line_extension.extension_id)
Ejemplo n.º 2
0
    def test_dissociate_extension(self):
        extension_row = self.add_extension(type='user', typeval='1234')

        extension_dao.dissociate_extension(extension_row.id)

        self.assert_extension_not_associated(extension_row.id)
Ejemplo n.º 3
0
def _delete_incall_association(line_extension):
    incall = incall_dao.find_by_extension_id(line_extension.extension_id)
    incall_dao.delete(incall)
    extension_dao.dissociate_extension(line_extension.extension_id)
Ejemplo n.º 4
0
def remove_exten_and_context(extension):
    line_dao.dissociate_extension(extension)
    extension_dao.dissociate_extension(extension.id)
Ejemplo n.º 5
0
    def test_dissociate_extension(self):
        extension_row = self.add_extension(type='user', typeval='1234')

        extension_dao.dissociate_extension(extension_row.id)

        self.assert_extension_not_associated(extension_row.id)
Ejemplo n.º 6
0
def remove_exten_and_context(extension):
    line_dao.dissociate_extension(extension)
    extension_dao.dissociate_extension(extension.id)