Module: kamailio
Branch: master
Commit: 5f29b4491634c360ade5691977d622617ae014ad
URL: 
https://github.com/kamailio/kamailio/commit/5f29b4491634c360ade5691977d622617ae014ad

Author: Stefan Mititelu <stefan.mitit...@net2phone.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-02-21T08:44:12+01:00

dispatcher: skip ping for DS_NODNSARES_DST

---

Modified: src/modules/dispatcher/dispatch.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/5f29b4491634c360ade5691977d622617ae014ad.diff
Patch: 
https://github.com/kamailio/kamailio/commit/5f29b4491634c360ade5691977d622617ae014ad.patch

---

diff --git a/src/modules/dispatcher/dispatch.c 
b/src/modules/dispatcher/dispatch.c
index 9968eab5537..fb0e233df7c 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -4114,6 +4114,9 @@ void ds_ping_set(ds_set_t *node)
                /* skip addresses with no-ping flag */
                if((node->dlist[j].flags & DS_NOPING_DST) != 0)
                        continue;
+               /* skip addresses with no-DNS-A flag */
+               if((node->dlist[j].flags & DS_NODNSARES_DST) != 0)
+                       continue;
                /* If the Flag of the entry has "Probing set, send a probe:     
*/
                if(ds_ping_result_helper(node, j)) {
                        LM_DBG("probing set #%d, URI %.*s\n", node->id,

_______________________________________________
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!

Reply via email to