Module: kamailio Branch: master Commit: 1f4e6795502626865d10c83b3880e2985eb94787 URL: https://github.com/kamailio/kamailio/commit/1f4e6795502626865d10c83b3880e2985eb94787
Author: Mathias Schneuwly <mathias.schneu...@ruag.ch> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2025-03-18T08:45:07+01:00 core: Include parameter skip_record in dns_cache_print_entry Extend the return value of dns_cache_print_entry with the parameter `rr_skip_record` for NAPTR records. The parameter `rr_skip_record` indicates, whether the NAPTR record is skipped due to issues reaching the destinations. Once a NAPTR record is marked as skipped, it will no longer be used. Reported by schneuwlym #4174 --- Modified: src/core/dns_cache.c --- Diff: https://github.com/kamailio/kamailio/commit/1f4e6795502626865d10c83b3880e2985eb94787.diff Patch: https://github.com/kamailio/kamailio/commit/1f4e6795502626865d10c83b3880e2985eb94787.patch --- diff --git a/src/core/dns_cache.c b/src/core/dns_cache.c index 65445fcf8f5..0a2553f58f2 100644 --- a/src/core/dns_cache.c +++ b/src/core/dns_cache.c @@ -3898,6 +3898,15 @@ int dns_cache_print_entry(rpc_t *rpc, void *ctx, struct dns_hash_entry *e) rpc->fault(ctx, 500, "Internal error adding naptr order"); return -1; } + if(rpc->struct_add(sh, "s", "rr_skip_record", + ((struct naptr_rdata *)(rr->rdata))->skip_record + ? "yes" + : "no") + < 0) { + rpc->fault(ctx, 500, + "Internal error adding naptr rr_skip_record"); + return -1; + } s.s = ((struct naptr_rdata *)(rr->rdata))->flags; s.len = ((struct naptr_rdata *)(rr->rdata))->flags_len; if(rpc->struct_add(sh, "S", "rr_flags", &s) < 0) { _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!