Selaa lähdekoodia

acc: allow recording to the rest of backends even when setting db table fails

- such error doesn't affect radius or custom backends
Daniel-Constantin Mierla 11 vuotta sitten
vanhempi
commit
655711330b
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      modules/acc/acc_logic.c

+ 2 - 2
modules/acc/acc_logic.c

@@ -529,9 +529,9 @@ static inline void acc_onreply( struct cell* t, struct sip_msg *req,
 	if (is_db_acc_on(req)) {
 	if (is_db_acc_on(req)) {
 		if(acc_db_set_table_name(req, db_table_acc_data, &db_table_acc)<0) {
 		if(acc_db_set_table_name(req, db_table_acc_data, &db_table_acc)<0) {
 			LM_ERR("cannot set acc db table name\n");
 			LM_ERR("cannot set acc db table name\n");
-			return;
+		} else {
+			acc_db_request(req);
 		}
 		}
-		acc_db_request(req);
 	}
 	}
 #endif
 #endif
 #ifdef RAD_ACC
 #ifdef RAD_ACC