Changeset 1146:dee5ca683bee in freeDiameter for extensions
- Timestamp:
- May 16, 2013, 11:49:10 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dict_dcca_3gpp/dict_dcca_3gpp.c
r1120 r1146 10341 10341 10342 10342 { 10343 /* additional allowed AVPs */ 10344 struct dict_object *ccr; 10345 CHECK_dict_search(DICT_COMMAND, CMD_BY_NAME, "Credit-Control-Request", &ccr); 10346 struct local_rules_definition rules[] = 10347 { 10348 { { .avp_vendor = 10415, .avp_name = "AoC-Request-Type"}, RULE_OPTIONAL, -1, 1 }, 10349 { { .avp_vendor = 10415, .avp_name = "Service-Information"}, RULE_OPTIONAL, -1, 1 }, 10350 }; 10351 PARSE_loc_rules(rules, ccr); 10352 } 10353 10354 { 10355 /* additional allowed AVPs */ 10356 struct dict_object *ccr; 10357 CHECK_dict_search(DICT_COMMAND, CMD_BY_NAME, "Credit-Control-Answer", &ccr); 10358 struct local_rules_definition rules[] = 10359 { 10360 { { .avp_vendor = 10415, .avp_name = "Low-Balance-Indication"}, RULE_OPTIONAL, -1, 1 }, 10361 { { .avp_vendor = 10415, .avp_name = "Remaining-Balance"}, RULE_OPTIONAL, -1, 1 }, 10362 { { .avp_vendor = 10415, .avp_name = "Service-Information"}, RULE_OPTIONAL, -1, 1 }, 10363 }; 10364 PARSE_loc_rules(rules, ccr); 10365 } 10366 10367 { 10343 10368 struct dict_object *rule_avp; 10344 10369 struct dict_avp_request vpa; … … 10368 10393 { { .avp_vendor = 0, .avp_name = "CC-Output-Octets" }, RULE_OPTIONAL, -1, 1 }, 10369 10394 { { .avp_vendor = 0, .avp_name = "CC-Service-Specific-Units" }, RULE_OPTIONAL, -1, 1 }, 10395 }; 10396 PARSE_loc_rules(rules, rule_avp); 10397 } 10398 10399 { 10400 struct dict_object *rule_avp; 10401 struct dict_avp_request vpa; 10402 vpa.avp_vendor = 10415; 10403 vpa.avp_name = "Event-Type"; 10404 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp); 10405 struct local_rules_definition rules[] = 10406 { 10407 { { .avp_vendor = 10415, .avp_name = "SIP-Method" }, RULE_OPTIONAL, -1, 1 }, 10408 { { .avp_vendor = 10415, .avp_name = "Event" }, RULE_OPTIONAL, -1, 1 }, 10409 { { .avp_vendor = 10415, .avp_name = "Expires" }, RULE_OPTIONAL, -1, 1 }, 10370 10410 }; 10371 10411 PARSE_loc_rules(rules, rule_avp); … … 10569 10609 { { .avp_vendor = 10415, .avp_name = "3GPP-User-Location-Info" }, RULE_OPTIONAL, -1, 1 }, 10570 10610 { { .avp_vendor = 10415, .avp_name = "User-CSG-Information" }, RULE_OPTIONAL, -1, 1 }, 10571 { { .avp_vendor = 5535, .avp_name = "3GPP2-BSID" }, RULE_OPTIONAL, -1, 1 },10611 { { .avp_vendor = 5535, .avp_name = "3GPP2-BSID" }, RULE_OPTIONAL, -1, 1 }, 10572 10612 { { .avp_vendor = 10415, .avp_name = "3GPP-RAT-Type" }, RULE_OPTIONAL, -1, 1 }, 10573 10613 { { .avp_vendor = 10415, .avp_name = "PS-Furnish-Charging-Information" }, RULE_OPTIONAL, -1, 1 },
Note: See TracChangeset
for help on using the changeset viewer.