<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">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>