[Freeswitch-users] Error in launching fs_cli

Steven Ayre steveayre at gmail.com
Wed Aug 7 18:11:26 MSD 2013


1) Check mod_event_socket is enabled to load on start in
autoload_configs/modules.conf.xml

2) Check freeswitch is running:
$ ps -C freeswitch -f
UID        PID  PPID  C STIME TTY          TIME CMD
999      12993     1  1 14:44 ?        00:00:23 /usr/bin/freeswitch -u
freeswitch -g freeswitch -nc -rp -nonat

3) Check freeswitch is listening on the ESL socket:
$ netstat -anp | grep :8021
tcp        0      0 127.0.0.1:8021          0.0.0.0:*               LISTEN
     12993/freeswitch

4) Check the freeswitch.log file to check mod_event_socket tried to load,
and for any errors while loading. Or for startup errors if freeswitch isn't
running at all.

Note if it's listening on 127.0.0.1:8021 then you won't be able to connect
from remote machines. If you need that set listen-ip to 0.0.0.0 and make
sure you change the default password and you should also consider using
ACLs or a firewall to restrict who can connect.

-Steve



On 7 August 2013 08:21, Ashish Mishra <itsme.kunnu at gmail.com> wrote:

> Sir i would like to give you some information about how am i launching
> fs_cli...I have installed freeswitch in my ubuntu machine now on the same
> machine i am trying to launch fs_cli but i am getting an error which i have
> already mentioned...Also as far as the output of iptables -L is concerned i
> am getiing:
>
> Chain INPUT (policy ACCEPT)
> target        prot opt source        destination
>
> Chain FORWARD (policy ACCEPT)
> target        prot opt source        destination
>
> Chain OUTPUT (policy ACCEPT)
> target        prot opt source        destination
>
>
> On Wed, Aug 7, 2013 at 4:44 AM, Peter <eidevm5 at gmail.com> wrote:
>
>> Do you have a firewall running?
>>
>> What does
>>
>> iptables -L
>>
>> display?
>>
>>
>> On Tue, Aug 6, 2013 at 5:51 PM, Ashish Mishra <itsme.kunnu at gmail.com>wrote:
>>
>>> Yes my freeswitch is running...
>>> On Aug 6, 2013 3:41 AM, "Gustavo Salazar" <guga.salazar.loor at gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> Is Freeswitch running?
>>>> I have seen a similar error when I tried to start the cli and
>>>> Freeswitch was not running .
>>>>
>>>>
>>>>
>>>> 2013/8/5 Yossi Neiman <mishehu at freeswitch.org>
>>>>
>>>>>  Do you have mod_event_socket loaded?
>>>>>
>>>>> -Yossi
>>>>>
>>>>>
>>>>> On 08/05/2013 04:00 PM, Ashish Mishra wrote:
>>>>>
>>>>> When i am trying to launch fs_cli on my ubuntu 12.04 machine (on which
>>>>> i have installed freeswitch) it gives me the following error :
>>>>> fs_cli .c:1455 main() Error Connecting [Socket Connection Error ]
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>>>>>
>>>>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>>>>>
>>>>> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
>>>>>
>>>>> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _________________________________________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Gustavo Salazar
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>>>
>>>>
>>> _________________________________________________________________________
>>> 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
>>>
>>>
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
> _________________________________________________________________________
> 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/20130807/9df1822a/attachment.html 


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