[Freeswitch-users] freeswitch not honoring /etc/hosts file

David Villasmil david.villasmil.work at gmail.com
Mon Mar 30 20:14:29 UTC 2020


Actually at least on 1.8 this works:

sip_gethostbyname=true}sofia/external/9999 at myserver.whatever.com

On Mon, 30 Mar 2020 at 20:54, Alex Balashov <abalashov at evaristesys.com>
wrote:

> Freeswitch - more particularly, sofia - does not use the standard Linux
> libc resolver.
>
> For more insight, see:
>
>
> https://github.com/signalwire/freeswitch/blob/master/libs/sofia-sip/libsofia-sip-ua/sresolv/sresolv.docs
>
> As far as I know, there is no way to get sresolv to use /etc/hosts. Your
> best bet is to run a DNS cache of your own (e.g. dnsmasq) and alias the
> desired hostname there, then put that in your DNS query resolution path.
>
> -- Alex
>
> On Wed, Mar 25, 2020 at 05:04:44PM -0400, Joli Martinez wrote:
>
> > Hello,
> >
> > I have a customer that has a VPN tunnel to my network.  I would like this
> > customer to connect to me directly not through the SBC.  I have created
> > routing between the Freeswitch box and my registrar server.  I have also
> > created the entry in the /etc/hosts file.  When I ping the server I get
> the
> > correct response back.  The issue is that Freeswitch is ignoring the
> > /etc/hosts entry and doing its own DNS resolution.  How can I tell
> > freeswitch to honor the /etc/hosts file entry first then use DNS?
> >
> > I am running Debian 10 with freeswitch 1.10.2
> >
> > Thanks,
>
> > _________________________________________________________________________
> >
> > The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> > Build your next product on our scalable cloud platform.
> >
> > Join our online community to chat in real time
> https://signalwire.community
> >
> > Professional FreeSWITCH Services
> > sales at freeswitch.com
> > https://freeswitch.com
> >
> > Official FreeSWITCH Sites
> > https://freeswitch.com/oss
> > https://freeswitch.org/confluence
> > https://cluecon.com
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > https://freeswitch.com
>
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com

-- 
Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200330/fe5fabef/attachment.html>


More information about the FreeSWITCH-users mailing list