[SR-Users] Dispatcher - FQDN with multiple IPs
Sergiu Pojoga
pojogas at gmail.com
Tue Aug 27 15:56:16 CEST 2019
May be I didn't provide sufficient details, so I'll elaborate.
I'd like Kamailio to 'talk' to only known dispatcher gateways, so in the
REQINIT route I do:
route[REQINIT] {
# Silently drop requests from unknown gateways, very strict mode
if(!ds_is_from_list()) {
xlog("L_ALERT","blocking $rm request from unknown gateway, UA=<$ua>,
IP=$si:$sp\n");
exit;
}
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.
Is that the expected behavior of ds_is_from_list() function?
Thanks,
--Sergiu
On Wed, Aug 21, 2019 at 6:01 PM Sergiu Pojoga <pojogas at gmail.com> wrote:
> Hi ppl,
>
> The problem I'm facing is that function *ds_is_from_list* 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
> *ds_is_from_list* validation.
>
> Am I missing some parameter or something?
>
> Thanks,
> --Sergiu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190827/9aac2bc2/attachment.html>
More information about the sr-users
mailing list