<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello Sergiu,</p>
<p>now its better understandable. Just looked briefly to the code, the function works more or less like this:</p>
<p>- it will take the URI and resolve it to an IP address</p>
<p>- it will then compare this IP to the dispatcher nodes (depending on the mode to all or one group)</p>
<p>So if there is a DNS name in the dispatcher list node entry, it will not match.</p>
<p>You could try as a workaround to add all IPs of the FQDN (e.g. deactivated or with higher priority) to the dispatcher list as well and see if it works then.</p>
<p>If yes, then the dispatcher module needs probably some extension.<br>
</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 27.08.19 um 15:56 schrieb Sergiu Pojoga:<br>
</div>
<blockquote type="cite" cite="mid:CAJZsGCk3H8tfGbBrcA8WEo58vivHEKBWKDW6Kzywff7bVxTp+Q@mail.gmail.com">
<div dir="ltr">May be I didn't provide sufficient details, so I'll elaborate.<br>
<div><br>
</div>
<div>I'd like Kamailio to 'talk' to only known dispatcher gateways, so in the REQINIT route I do:</div>
<div><br>
</div>
<div>route[REQINIT] {<br>
# Silently drop requests from unknown gateways, very strict mode<br>
if(!ds_is_from_list()) {<br>
   xlog("L_ALERT","blocking $rm request from unknown gateway, UA=<$ua>, IP=$si:$sp\n");<br>
exit;<br>
}<br>
</div>
<div><br>
</div>
<div>Now, after dispatching a call to some carrier who's gateway address is a FQDN that resolves into multiple IP addresses, when an in-dialog request like BYE or re-Invite from the downstream carriers arrives, ds_is_from_list() returns false and the request
 gets silently ignored as indicated in the above route block.</div>
<div><br>
</div>
<div>Is that the expected behavior of ds_is_from_list() function?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>--Sergiu</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, Aug 21, 2019 at 6:01 PM Sergiu Pojoga <<a href="mailto:pojogas@gmail.com" moz-do-not-send="true">pojogas@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi ppl,<br>
<div><br>
</div>
<div>The problem I'm facing is that function <b>ds_is_from_list</b> seems to return false when a gateway's address is a FQDN that resolves into multiple IP addresses (I'm talking about A records), consequently in-dialog requests like BYE and re-Invites get
 blocked since they don't pass the <b>ds_is_from_list</b> validation.</div>
<div><br>
</div>
<div>Am I missing some parameter or something?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>--Sergiu</div>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>