Module: kamailio Branch: master Commit: 47e990e2ab562ccdd95dca1376c35a71b640af76 URL: https://github.com/kamailio/kamailio/commit/47e990e2ab562ccdd95dca1376c35a71...
Author: Carsten Bock carsten@ng-voice.com Committer: Carsten Bock carsten@ng-voice.com Date: 2015-07-04T18:16:06+02:00
ims_charging: Add Multiple-Services Indicator
---
Modified: modules/ims_charging/ims_ro.c
---
Diff: https://github.com/kamailio/kamailio/commit/47e990e2ab562ccdd95dca1376c35a71... Patch: https://github.com/kamailio/kamailio/commit/47e990e2ab562ccdd95dca1376c35a71...
---
diff --git a/modules/ims_charging/ims_ro.c b/modules/ims_charging/ims_ro.c index ab2488a..00a89ad 100644 --- a/modules/ims_charging/ims_ro.c +++ b/modules/ims_charging/ims_ro.c @@ -181,9 +181,13 @@ inline int Ro_add_termination_cause(AAAMessage *msg, unsigned int term_code) {
/* called only when building stop record AVPS */ inline int Ro_add_multiple_service_credit_Control_stop(AAAMessage *msg, int used_unit, int active_rating_group, int active_service_identifier) { + char x[4]; AAA_AVP_LIST used_list, mscc_list; str used_group; - char x[4]; + + // Add Multiple-Services AVP Indicator + set_4bytes(x, 1); + Ro_add_avp(msg, x, 4, AVP_Multiple_Services_Indicator, AAA_AVP_FLAG_MANDATORY, 0, AVP_DUPLICATE_DATA, __FUNCTION__);
//unsigned int service_id = 1000; //Removed these are now configurable config file params
@@ -216,11 +220,14 @@ inline int Ro_add_multiple_service_credit_Control_stop(AAAMessage *msg, int used }
inline int Ro_add_multiple_service_credit_Control(AAAMessage *msg, unsigned int requested_unit, int used_unit, int active_rating_group, int active_service_identifier) { + // Add Multiple-Services AVP Indicator + char x[4]; + set_4bytes(x, 1); + Ro_add_avp(msg, x, 4, AVP_Multiple_Services_Indicator, AAA_AVP_FLAG_MANDATORY, 0, AVP_DUPLICATE_DATA, __FUNCTION__); + AAA_AVP_LIST list, used_list, mscc_list; str group, used_group;
- char x[4]; - list.head = 0; list.tail = 0; used_list.head = 0;