[sr-dev] git:4.1: acc: allow recording to the rest of backends even when setting db table fails

Daniel-Constantin Mierla miconda at gmail.com
Thu Jun 12 11:49:43 CEST 2014


Module: sip-router
Branch: 4.1
Commit: 6c3c5b977941c605aa1be2ce582b3b843dbfcafe
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6c3c5b977941c605aa1be2ce582b3b843dbfcafe

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Jun 12 11:48:01 2014 +0200

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

- such error doesn't affect radius or custom backends

(cherry picked from commit 655711330b2ffd82dc84330ef0e0fbbad82a9160)

---

 modules/acc/acc_logic.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/acc/acc_logic.c b/modules/acc/acc_logic.c
index 18437fc..3353bcd 100644
--- a/modules/acc/acc_logic.c
+++ b/modules/acc/acc_logic.c
@@ -466,9 +466,9 @@ static inline void acc_onreply( struct cell* t, struct sip_msg *req,
 	if (is_db_acc_on(req)) {
 		if(acc_db_set_table_name(req, db_table_acc_data, &db_table_acc)<0) {
 			LM_ERR("cannot set acc db table name\n");
-			return;
+		} else {
+			acc_db_request(req);
 		}
-		acc_db_request(req);
 	}
 #endif
 #ifdef RAD_ACC




More information about the sr-dev mailing list