<div><div dir="auto">So basically what you need is to either resolve the fqdn for every received packet, or keep the resolved up somehow to check against when a packet arrives from downstream.</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 27 Aug 2019 at 19:18, Henning Westerholt <<a href="mailto:hw@skalatan.de">hw@skalatan.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div 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="m_-6516470707701379681moz-cite-prefix">Am 27.08.19 um 15:56 schrieb Sergiu Pojoga:<br>
</div></div><div text="#000000" bgcolor="#FFFFFF">
<blockquote type="cite">
<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" target="_blank">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="m_-6516470707701379681mimeAttachmentHeader"></fieldset>
<pre class="m_-6516470707701379681moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="m_-6516470707701379681moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_-6516470707701379681moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="m_-6516470707701379681moz-signature" cols="72">-- 
Henning Westerholt - <a class="m_-6516470707701379681moz-txt-link-freetext" href="https://skalatan.de/blog/" target="_blank">https://skalatan.de/blog/</a>
Kamailio services - <a class="m_-6516470707701379681moz-txt-link-freetext" href="https://skalatan.de/services" target="_blank">https://skalatan.de/services</a></pre>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>