Module: kamailio
Branch: master
Commit: 3a471af738c6b8f7e717b7f2f4c6f9c579a2d9c8
URL:
https://github.com/kamailio/kamailio/commit/3a471af738c6b8f7e717b7f2f4c6f9c…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-11-01T21:27:28+01:00
acc_diameter: fix generating duplicates for missed calls
- fix generating duplicates for missed calls (#GH1674)
- patch from Julien Chavanton jchavanton at gmail dot com
---
Modified: src/modules/acc_diameter/acc_diameter_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3a471af738c6b8f7e717b7f2f4c6f9c…
Patch:
https://github.com/kamailio/kamailio/commit/3a471af738c6b8f7e717b7f2f4c6f9c…
---
diff --git a/src/modules/acc_diameter/acc_diameter_mod.c
b/src/modules/acc_diameter/acc_diameter_mod.c
index 02ac75dc98..3a35fe7e93 100644
--- a/src/modules/acc_diameter/acc_diameter_mod.c
+++ b/src/modules/acc_diameter/acc_diameter_mod.c
@@ -143,9 +143,9 @@ static int mod_init( void )
memset(&_acc_diameter_engine, 0, sizeof(acc_engine_t));
if(diameter_flag != -1)
- _acc_diameter_engine.acc_flag = 1<<diameter_flag;
+ _acc_diameter_engine.acc_flag = diameter_flag;
if(diameter_missed_flag != -1)
- _acc_diameter_engine.missed_flag = 1<<diameter_missed_flag;
+ _acc_diameter_engine.missed_flag = diameter_missed_flag;
_acc_diameter_engine.acc_req = acc_diameter_send_request;
_acc_diameter_engine.acc_init = acc_diameter_init;
memcpy(_acc_diameter_engine.name, "diameter", 8);