[sr-dev] git:master:543cd8f8: ipops: add dns container in dns_update_pv() if not created before

Daniel-Constantin Mierla miconda at gmail.com
Fri May 6 13:52:15 CEST 2022

Module: kamailio
Branch: master
Commit: 543cd8f897bc43d5fe1eb4c562d8351b32778209
URL: https://github.com/kamailio/kamailio/commit/543cd8f897bc43d5fe1eb4c562d8351b32778209

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-05-06T13:50:13+02:00

ipops: add dns container in dns_update_pv() if not created before

- dns context creation relied on using the dns variable in some way, the
  main purpose of dns_update_pv() being to fill the variable, but one may
  want to use it for testing only


Modified: src/modules/ipops/ipops_pv.c


Diff:  https://github.com/kamailio/kamailio/commit/543cd8f897bc43d5fe1eb4c562d8351b32778209.diff
Patch: https://github.com/kamailio/kamailio/commit/543cd8f897bc43d5fe1eb4c562d8351b32778209.patch


diff --git a/src/modules/ipops/ipops_pv.c b/src/modules/ipops/ipops_pv.c
index 1afc806541..9ee6f5879a 100644
--- a/src/modules/ipops/ipops_pv.c
+++ b/src/modules/ipops/ipops_pv.c
@@ -373,7 +373,7 @@ int dns_update_pv(str *hostname, str *name)
 		return -2;
-	dr = sr_dns_get_item(name);
+	dr = sr_dns_add_item(name);
 		LM_DBG("container not found: %s\n", name->s);

More information about the sr-dev mailing list