comparison extensions/dict_dcca_3gpp/dict_dcca_3gpp.c @ 1231:d9c48b0e8d97

Extend rules for Used-Service-Unit. 32.299 allows two extra AVPs.
author Thomas Klausner <tk@giga.or.at>
date Mon, 29 Jul 2013 14:47:31 +0200
parents e59d76289e18
children 02ccaf6e9a57
comparison
equal deleted inserted replaced
1230:e72c9dad62ac 1231:d9c48b0e8d97
10537 { { .avp_vendor = 10415, .avp_name = "Envelope" }, RULE_OPTIONAL, -1, -1 }, 10537 { { .avp_vendor = 10415, .avp_name = "Envelope" }, RULE_OPTIONAL, -1, -1 },
10538 { { .avp_vendor = 10415, .avp_name = "Envelope-Reporting" }, RULE_OPTIONAL, -1, 1 }, 10538 { { .avp_vendor = 10415, .avp_name = "Envelope-Reporting" }, RULE_OPTIONAL, -1, 1 },
10539 { { .avp_vendor = 10415, .avp_name = "Time-Quota-Mechanism" }, RULE_OPTIONAL, -1, 1 }, 10539 { { .avp_vendor = 10415, .avp_name = "Time-Quota-Mechanism" }, RULE_OPTIONAL, -1, 1 },
10540 { { .avp_vendor = 10415, .avp_name = "Service-Specific-Info" }, RULE_OPTIONAL, -1, -1 }, 10540 { { .avp_vendor = 10415, .avp_name = "Service-Specific-Info" }, RULE_OPTIONAL, -1, -1 },
10541 { { .avp_vendor = 10415, .avp_name = "QoS-Information" }, RULE_OPTIONAL, -1, 1 }, 10541 { { .avp_vendor = 10415, .avp_name = "QoS-Information" }, RULE_OPTIONAL, -1, 1 },
10542 };
10543 PARSE_loc_rules(rules, rule_avp);
10544 }
10545
10546 {
10547 /* Used-Service-Unit */
10548 /* additional allowed AVPs */
10549 struct dict_object *rule_avp;
10550 struct dict_avp_request vpa;
10551 vpa.avp_vendor = 0;
10552 vpa.avp_name = "Used-Service-Unit";
10553 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp);
10554 struct local_rules_definition rules[] =
10555 {
10556 { { .avp_vendor = 10415, .avp_name = "Reporting-Reason" }, RULE_OPTIONAL, -1, 1 },
10557 { { .avp_vendor = 10415, .avp_name = "Event-Charging-TimeStamp" }, RULE_OPTIONAL, -1, -1 },
10542 }; 10558 };
10543 PARSE_loc_rules(rules, rule_avp); 10559 PARSE_loc_rules(rules, rule_avp);
10544 } 10560 }
10545 10561
10546 { 10562 {
"Welcome to our mercurial repository"