[Freeswitch-users] Auto-detecting Local IP when no gateway set

Jeff Leung jleung at v10networks.ca
Thu Aug 15 06:00:06 MSD 2013


Why can't you just specify a static IP address instead? Specifying a static
IP address sure does make life a heck a lot easier that way.


On Wed, Aug 14, 2013 at 5:26 PM, Siri MM <sirimmfs at gmail.com> wrote:

> Hi All,
>
> I am using freeswitch without local_ip_v4 explicitly set, i.e, I am
> dependant on freeswitch auto-detecting the local IP address.
>
> From the code, what I understand is, in order to determine the local IP
> address,  freeswitch tries to ‘connect()’ using a DGRAM socket with
> BROADCAST option set.
>
> The problem that I am having is, my customer is working in a Local LAN,
> and is not very keen on setting the interface gateway. Without gateway set,
> connect() returns 'Network unreachable' error.
>
> Is there any way I could workaround this problem? (apart from setting
> local_ip_v4) Also, any other issues forseen if gateway isn't set ont he
> interface?
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.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
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130814/a164ae5c/attachment-0001.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list