[sr-dev] git:master:d6404937: acc: fix copy/paste error

mikomarrache mikomarrache at users.noreply.github.com
Wed Apr 22 10:25:02 CEST 2015


Module: kamailio
Branch: master
Commit: d6404937cfb7498dd85c4329f07269ee7c64f157
URL: https://github.com/kamailio/kamailio/commit/d6404937cfb7498dd85c4329f07269ee7c64f157

Author: mikomarrache <mikomarrache at users.noreply.github.com>
Committer: mikomarrache <mikomarrache at users.noreply.github.com>
Date: 2015-04-14T15:53:29+03:00

acc: fix copy/paste error

---

Modified: modules/acc/acc_cdr.c

---

Diff:  https://github.com/kamailio/kamailio/commit/d6404937cfb7498dd85c4329f07269ee7c64f157.diff
Patch: https://github.com/kamailio/kamailio/commit/d6404937cfb7498dd85c4329f07269ee7c64f157.patch

---

diff --git a/modules/acc/acc_cdr.c b/modules/acc/acc_cdr.c
index a547c34..845fc12 100644
--- a/modules/acc/acc_cdr.c
+++ b/modules/acc/acc_cdr.c
@@ -175,7 +175,7 @@ static int db_write_cdr( struct dlg_cell* dialog,
 					LM_ERR("failed to convert string to integer - %d.\n", errno);
 					goto error;
 				}
-				VAL_INT(db_cdr_vals+i) = cdr_value_array[i];
+				VAL_INT(db_cdr_vals+i) = long_val;
 				break;
 			case TYPE_STR:
 				VAL_TYPE(db_cdr_vals+i)=DB1_STR;




More information about the sr-dev mailing list