[Freeswitch-users] fs_cli will not connect on Fresh install on Debian

Stanislav Sinyagin ssinyagin at gmail.com
Mon Mar 9 04:01:31 MSK 2015


I've just set up an IPv6-only machine (127.0.0.1 is the only ipv4 address
available), and freeswitch with default configuration:

    <param name="listen-ip" value="127.0.0.1"/>
    <param name="listen-port" value="8021"/>

The result is that nobody is listening on port 8021 at all (netstat -an |
grep 8021).

Changing the address to ::1 in autoload_configs/event_socket.conf.xml has
helped, although fs_cli now needs the host:
fs_cli -H localhost

Should I open a Jira ticket? I don't see any reason why the server failed
to listen to  127.0.0.1:8021, without any error message.









On Mon, Mar 9, 2015 at 1:10 AM, Steven Ayre <steveayre at gmail.com> wrote:

> Given Brian's comment that suggests that mod_event_socket is probably
> configured to listen on "127.0.0.1" but fs_cli connects to "localhost" and
> so tries to connect to ::1 instead, which FreeSWITCH isn't listening on
> since it's listening for v4 only. So you could workaround that by
> telling mod_event_socket to listen on "::"
>
>
>
> On 8 March 2015 at 21:32, Podrigal, Aron <aronp at guaranteedplus.com> wrote:
>
>> @brian Why remove if you use ipv6? just need to make sure there is a line
>> 127.0.0.1 localhost
>>
>> On Fri, Mar 6, 2015 at 3:42 PM, Brian West <brian at freeswitch.org> wrote:
>>
>>> remove
>>>
>>> ::1     localhost ip6-localhost ip6-loopback
>>>
>>>
>>> from /etc/hosts
>>>
>>>
>>> its a bug in debian.
>>>
>>> On Fri, Mar 6, 2015 at 3:33 PM, Richard Mace <richard.mace at gmail.com>
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> Sorry, I should have clarified that this is running locally on the
>>>> machine running FreeSWITCH.
>>>>
>>>> Richard
>>>>
>>>> On 6 March 2015 at 20:02, Bote Man <bote_radio at botecomm.com> wrote:
>>>>
>>>>> On a fresh FS installation fs_cli only connects to 127.0.01 localhost.
>>>>>
>>>>>
>>>>>
>>>>> To connect from a remote machine put a valid routable interface
>>>>> address (although I have 0.0.0.0 in mine) in
>>>>>
>>>>> conf/autoload_configs/event_socket.conf.xml
>>>>>
>>>>>
>>>>>
>>>>> and change the password and maybe even the port depending on the
>>>>> crackability of your network.
>>>>>
>>>>>
>>>>>
>>>>> Then you’ll probably want to configure a profile configuration file
>>>>> with tight permissions to avoid having to type the parameters on the
>>>>> command line every time you start fs_cli.
>>>>>
>>>>>
>>>>>
>>>>> Check the ‘command-line Interface fs_cli’ Confluence page for all the
>>>>> details.
>>>>>
>>>>>
>>>>>
>>>>> Bote
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> *From:* Richard Mace
>>>>> *Sent:* Friday, 06 March, 2015 14:34
>>>>> *Subject:* [Freeswitch-users] fs_cli will not connect on Fresh
>>>>> install on Debian
>>>>>
>>>>>
>>>>>
>>>>> Hi All,
>>>>>
>>>>> I did a fresh install of both Debian and FreeSWITCH today, following
>>>>> the article here:
>>>>>
>>>>> https://freeswitch.org/confluence/display/FREESWITCH/Debian
>>>>>
>>>>>
>>>>>
>>>>> However, after installation, fs_cli will not connect. Any ideas?
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> Richard
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:
>>>>> consulting at freeswitch.org
>>>>> http://www.freeswitchsolutions.com
>>>>>
>>>>> Official FreeSWITCH Sites
>>>>> http://www.freeswitch.org
>>>>> http://confluence.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
>>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>>
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://confluence.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
>>>>
>>>
>>>
>>>
>>> --
>>>
>>> *Brian West*
>>> brian at freeswitch.org
>>>
>>>
>>> *Twitter: @FreeSWITCH , @briankwest*
>>> http://www.freeswitchbook.com
>>> http://www.freeswitchcookbook.com
>>>
>>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.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
>>>
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.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
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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/20150309/49e60184/attachment.html 


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