コード例 #1
0
ファイル: dispatcher.c プロジェクト: Danfx/opensips
/**
 * destroy function
 */
static void destroy(void)
{
	LM_DBG("destroying module ...\n");

	/* flush the state of the destinations */
	if (ds_persistent_state)
		ds_flusher_routine(0, NULL);

	ds_partition_t *part_it = partitions, *aux;

	while (part_it) {
		ds_destroy_data(part_it);
		aux = part_it;
		part_it = part_it->next;

		ds_disconnect_db(aux);
		pkg_free(aux->db_handle);
		shm_free(aux);
	}

	/* destroy blacklists */
	destroy_ds_bls();

        /* destroy probing list */
        if (ds_probing_list)
            free_int_list(ds_probing_list, NULL);
}
コード例 #2
0
ファイル: dispatcher.c プロジェクト: MayamaTakeshi/opensips
/**
 * destroy function
 */
static void destroy(void)
{
	LM_DBG("destroying module ...\n");
	ds_destroy_list();

	/* destroy blacklists */
	destroy_ds_bls();
}
コード例 #3
0
ファイル: dispatcher.c プロジェクト: KISSMonX/opensips
/**
 * destroy function
 */
static void destroy(void)
{
	LM_DBG("destroying module ...\n");

	/* flush the state of the destinations */
	ds_flusher_routine(0, NULL);

	ds_destroy_data();

	/* destroy blacklists */
	destroy_ds_bls();
}