Forráskód Böngészése

modules/ims_charging: code clean up, removed duplicate timer init and dlg bind

Richard Good 12 éve
szülő
commit
a7037aad99
1 módosított fájl, 0 hozzáadás és 16 törlés
  1. 0 16
      modules/ims_charging/mod.c

+ 0 - 16
modules/ims_charging/mod.c

@@ -241,22 +241,6 @@ static int mod_init(void) {
 		return -1;
 	}
 
-	/* init timer lists*/
-	if (init_ro_timer(ro_session_ontimeout) != 0) {
-		LM_ERR("cannot init timer list\n");
-		return -1;
-	}
-
-
-	/* bind to dialog module */
-	if (!(load_dlg = (load_dlg_f) find_export("load_dlg", 0, 0))) {
-		LM_ERR("mod_init: can not import load_dlg. This module requires Kamailio dialog moduile.\n");
-	}
-
-	if (load_dlg(&dlgb) == -1) {
-		goto error;
-	}
-
 	 /* register statistics */
 	if (register_module_stats(exports.name, charging_stats) != 0) {
 		LM_ERR("failed to register core statistics\n");