/*! \brief * Module destroy function */ static void destroy(void) { free_all_udomains(); ul_destroy_locks(); /* free callbacks list */ destroy_ulcb_list(); }
/*! \brief * Module destroy function */ static void destroy(void) { free_all_udomains(); ul_destroy_locks(); /* free callbacks list */ destroy_ulcb_list(); free_service_route_buf(); free_impu_buf(); if (db_mode) destroy_db(); }
/*! \brief * Module destroy function */ static void destroy(void) { /* we need to sync DB in order to flush the cache */ if (ul_dbh) { ul_unlock_locks(); if (synchronize_all_udomains(0, 1) != 0) { LM_ERR("flushing cache failed\n"); } ul_dbf.close(ul_dbh); } free_all_udomains(); ul_destroy_locks(); /* free callbacks list */ destroy_ulcb_list(); }
/*! \brief * Module destroy function */ static void destroy(void) { if (sub_dialog_table) { pres_destroy_shtable(sub_dialog_table, sub_dialog_hash_size); } if (ul_dbh) { ul_unlock_locks(); if (synchronize_all_udomains(0, 1) != 0) { LM_ERR("flushing cache failed\n"); } ul_dbf.close(ul_dbh); } free_all_udomains(); ul_destroy_locks(); subs_destroy_locks(); destroy_contacts_locks(); /* free callbacks list */ destroy_ulcb_list(); }