Module: sip-router Branch: master Commit: 655711330b2ffd82dc84330ef0e0fbbad82a9160 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=65571133...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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
---
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 93bf5c1..051209c 100644 --- a/modules/acc/acc_logic.c +++ b/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(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