[SR-Users] ipops dns_query not working using Kemi

Yuriy Gorlichenko ovoshlook at gmail.com
Thu Jun 9 09:14:35 CEST 2022


BTW for the KEMI ( at least in Lua ) it is not a big deal to do in the
language itself:

local socket = require "socket"
> local _, details = socket.dns.to.ip(domain)


-- details.ip would contain list of IPs resolved.

чт, 9 июн. 2022 г. в 08:44, Daniel-Constantin Mierla <miconda at gmail.com>:

> Hello,
>
> this should be fixed in 5.6.x series. Probably it will be backported to
> 5.5.x before releasing next version in the series, if it is not too complex
> to do it.
>
> Cheers,
> Daniel
> On 09.06.22 08:20, Thomas de Rooij | CM.com wrote:
>
> Hi all,
>
>
>
> We are trying to do a DNS query using Kemi:
>
> KSR.ipops.dns_query(domain, "xyz")
>
>
>
> The result is always -3. This is returned here:
>
>
> https://github.com/kamailio/kamailio/blob/5.5.4/src/modules/ipops/ipops_pv.c#L370
>
>
>
> It seems weird to me that the error code is returned because the same
> non-Kemi code works just fine.
>
> Could it be related to this issue:
>
> https://github.com/kamailio/kamailio/issues/2052
>
>
>
> Thanks.
>
>
>
> Kind regards,
>
> Thomas
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training - Online: June 20-23, 2022
>   * https://www.asipto.com/sw/kamailio-advanced-training-online/
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220609/ae807525/attachment.htm>


More information about the sr-users mailing list