Changes in / [1149:5d19d6f3e1bd:1148:1399ef1aa9bf] in freeDiameter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/dict_dcca_3gpp/dict_dcca_3gpp.c
r1146 r1120 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 {10368 10343 struct dict_object *rule_avp; 10369 10344 struct dict_avp_request vpa; … … 10393 10368 { { .avp_vendor = 0, .avp_name = "CC-Output-Octets" }, RULE_OPTIONAL, -1, 1 }, 10394 10369 { { .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 },10410 10370 }; 10411 10371 PARSE_loc_rules(rules, rule_avp); … … 10609 10569 { { .avp_vendor = 10415, .avp_name = "3GPP-User-Location-Info" }, RULE_OPTIONAL, -1, 1 }, 10610 10570 { { .avp_vendor = 10415, .avp_name = "User-CSG-Information" }, RULE_OPTIONAL, -1, 1 }, 10611 { { .avp_vendor = 5535, 10571 { { .avp_vendor = 5535, .avp_name = "3GPP2-BSID" }, RULE_OPTIONAL, -1, 1 }, 10612 10572 { { .avp_vendor = 10415, .avp_name = "3GPP-RAT-Type" }, RULE_OPTIONAL, -1, 1 }, 10613 10573 { { .avp_vendor = 10415, .avp_name = "PS-Furnish-Charging-Information" }, RULE_OPTIONAL, -1, 1 }, -
libfdcore/cnxctx.c
r1145 r1141 1409 1409 break; 1410 1410 1411 default:1412 fd_log_debug("\t - unknown session type (%d)", cred);1413 1414 1411 } /* switch */ 1415 1412 -
libfdcore/extensions.c
r1144 r1127 129 129 if (li == &ext->chain) { 130 130 /* the dependency was not found */ 131 LOG_F("Error: extension [%s] depends on [%s] which was not loaded first. Please fix your configuration file.",131 TRACE_ERROR("Error: extension [%s] depends on [%s] which was not loaded first. Please fix your configuration file.", 132 132 ext->ext_name, ext->depends[i]); 133 133 return ESRCH; … … 166 166 /* An error occured */ 167 167 LOG_F("Loading of extension %s failed: %s", ext->filename, dlerror()); 168 #ifdef DEBUG 168 169 ext->handler = dlopen(ext->filename, RTLD_LAZY | RTLD_GLOBAL); 169 170 if (ext->handler) { 170 171 if (!check_dependencies(ext)) { 171 LOG_F("In addition, not all declared dependencies are satisfied (Internal Error!)");172 TRACE_ERROR("In addition, not all declared dependencies are satisfied (Internal Error!)"); 172 173 } 173 174 } 175 #endif /* DEBUG */ 174 176 return EINVAL; 175 177 }
Note: See TracChangeset
for help on using the changeset viewer.