Code Monkey home page Code Monkey logo

Comments (20)

ICTKashif avatar ICTKashif commented on August 24, 2024 2

The server was also configured for IPv6 and freeswitch could not bind to IPv4. However, after re-configuring freeswitch use IPv4, I can connect to fs_cli. Please close issue.

How did you configure freeswitch to use IPV4

#46 (comment)

edit this file /etc/freeswitch/autoload_configs/event_socket.conf.xml and change listen-ip with 127.0.0.1 and then restart the freeswitch, if still unable to enter fs_cli then and also edit this file /usr/lib/systemd/system/freeswitch.service and change User with root like User=root

restart the freeswitch by systemctl daemon-reload and service freeswitch restart

from ictfax.

kmpeterson avatar kmpeterson commented on August 24, 2024 2

The server was also configured for IPv6 and freeswitch could not bind to IPv4. However, after re-configuring freeswitch use IPv4, I can connect to fs_cli. Please close issue.

Please tell us in more detail what exactly did you do?

I ran into the same issue. I also had this problem with Asterisk a few years ago; the lesson seems to be "configure for IPv4 first, then deal with IPv6". I was able to get fs_cli to connect by changing autoload_configs/event_socket.conf.xml parameter listen-ip from "::" to "127.0.0.1". Hope that helps.

from ictfax.

ICTKashif avatar ICTKashif commented on August 24, 2024 1

ICTFax tested on CentOS 7.X, Please restart freeswitch by following command

service freeswitch restart
if not work then run "freeswitch -nc"

from ictfax.

harshita19012 avatar harshita19012 commented on August 24, 2024 1

The server was also configured for IPv6 and freeswitch could not bind to IPv4. However, after re-configuring freeswitch use IPv4, I can connect to fs_cli. Please close issue.

How did you configure freeswitch to use IPV4

#46 (comment)

edit this file /etc/freeswitch/autoload_configs/event_socket.conf.xml and change listen-ip with 127.0.0.1 and then restart the freeswitch, if still unable to enter fs_cli then and also edit this file /usr/lib/systemd/system/freeswitch.service and change User with root like User=root

restart the freeswitch by systemctl daemon-reload and service freeswitch restart

Thanks for your help. Actually I am facing one more issue of not able to restart freeswitch.

On using systemctl daemon-reload I get an error "unknown operation". Is there some other way I can restart freeswitch

from ictfax.

plochu avatar plochu commented on August 24, 2024

That means that Freeswitch hasn't started... What OS are you using? Please check running services.

from ictfax.

herrep avatar herrep commented on August 24, 2024

Please note that freeswitch is running as a daemon. In a separate issue, I already published contents of the freeswitch log file where it is clear to see that the freeswitch daemon is running. However, I would like to gain access to the CLI of freeswitch. But fs_cli cannot connect to the running freeswitch. My assumption is that the installation guide did not expect that a user simply installing ICTFAX will also run fs_cli. I assume that further configuration needs to be applied that fs_cli can connect.

from ictfax.

herrep avatar herrep commented on August 24, 2024

I want to gain access to fs_cli so that I can better debug freeswitch, e.g. to change debug settings. My main problem is that ICTFAX cannot connect to my Asterisk-based FreePBX which should act as a SIP provider to ICTFAX. The freeswitch log file simply says that no registration is possible. I would like to produce a log file so that I can identify what is going wrong. So therefore I need access to fs_cli.

from ictfax.

plochu avatar plochu commented on August 24, 2024

I assume that further configuration needs to be applied that fs_cli can connect.

I have no problem to access fs_cli on my instance...

Check what does service freeswitch status say.

from ictfax.

herrep avatar herrep commented on August 24, 2024

`# service freeswitch status
Redirecting to /bin/systemctl status freeswitch.service
● freeswitch.service - FreeSWITCH
Loaded: loaded (/usr/lib/systemd/system/freeswitch.service; enabled; vendor preset: disabled)
Active: active (running) since Fre 2019-06-21 00:56:08 MEST; 16h ago
Main PID: 15331 (freeswitch)
CGroup: /system.slice/freeswitch.service
└─15331 /usr/bin/freeswitch -nc -nf

Jun 21 00:56:08 systemd[1]: Started FreeSWITCH.
Jun 21 00:56:08 freeswitch[15331]: ERROR: Failed to set SCHED_FIFO scheduler (Operation not permitted)
Jun 21 00:56:08 freeswitch[15331]: ERROR: Could not set nice level
`

from ictfax.

herrep avatar herrep commented on August 24, 2024

I followed the installation guide at http://ictfax.org/content/ictfax-installation-guide so that I did not any further configuration steps for freeswitch than installing and configuring ICTFAX.

from ictfax.

herrep avatar herrep commented on August 24, 2024

Freeswitch as such is running, but fs_cli cannot connect to the socket of freeswitch.

from ictfax.

plochu avatar plochu commented on August 24, 2024

@herrep I have just made fresh install using:

  1. http://ictfax.org/content/ictfax-installation-guide
  2. yum install ictcore-voice -y

And I have no problem with VoIP account registration to external provider. Also FreeSwitch CLI (fs_cli) is working without any problem.

from ictfax.

herrep avatar herrep commented on August 24, 2024

The server was also configured for IPv6 and freeswitch could not bind to IPv4. However, after re-configuring freeswitch use IPv4, I can connect to fs_cli. Please close issue.

from ictfax.

kashif-123 avatar kashif-123 commented on August 24, 2024

Hi,

I am getting the exactly same error while deploying freeswitch through kubernetes. I have my docker image, if I create a container using docker, freeswitch container is successfully created and I am able to make calls normally. However while using the same image, if I create kubernetes deployment and when I go inside freeswitch pod, I am not able to connect to fs_cli and getting same error.

[root@freeswitch-76557dff64-xw2k7 /]# fs_cli
[ERROR] fs_cli.c:1659 main() Error Connecting [Socket Connection Error]
Usage: fs_cli [-H ] [-P ] [-p ] [-d ] [-x command] [-t <timeout_ms>] [profile]

[root@freeswitch-76557dff64-xw2k7 /]# tail -f /var/log/freeswitch/freeswitch.log
2019-10-03 12:39:01.215543 [ERR] sofia.c:3146 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]:5060;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
2019-10-03 12:39:01.215543 [ERR] sofia.c:3156 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]:5060;transport=udp,tcp)
The likely causes for this are:

  1. Another application is already listening on the specified address.
  2. The IP the profile is attempting to bind to is not local to this system.
    2019-10-03 12:39:01.215543 [ERR] sofia.c:3146 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]:5080;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
    2019-10-03 12:39:01.215543 [ERR] sofia.c:3156 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]:5080;transport=udp,tcp)
    The likely causes for this are:
  3. Another application is already listening on the specified address.
  4. The IP the profile is attempting to bind to is not local to this system.
    ^C
    [root@freeswitch-76557dff64-xw2k7 /]#

from ictfax.

gitpel avatar gitpel commented on August 24, 2024

make sure that the module mod_event_socket.so exist and enabled in the file /etc/freeswitch/autoload_configs/modules.conf.xml the line <load module="mod_event_socket"/>
to install the module: apt install freeswitch-mod-event-socket

from ictfax.

harshita19012 avatar harshita19012 commented on August 24, 2024

The server was also configured for IPv6 and freeswitch could not bind to IPv4. However, after re-configuring freeswitch use IPv4, I can connect to fs_cli. Please close issue.

How did you configure freeswitch to use IPV4

from ictfax.

harshita19012 avatar harshita19012 commented on August 24, 2024

The server was also configured for IPv6 and freeswitch could not bind to IPv4. However, after re-configuring freeswitch use IPv4, I can connect to fs_cli. Please close issue.

How did you configure freeswitch to use IPV4

#46 (comment)
edit this file /etc/freeswitch/autoload_configs/event_socket.conf.xml and change listen-ip with 127.0.0.1 and then restart the freeswitch, if still unable to enter fs_cli then and also edit this file /usr/lib/systemd/system/freeswitch.service and change User with root like User=root
restart the freeswitch by systemctl daemon-reload and service freeswitch restart

Thanks for your help. Actually I am facing one more issue of not able to restart freeswitch.

On using systemctl daemon-reload I get an error "unknown operation". Is there some other way I can restart freeswitch

And Service freeswitch restart gives me "freeswitch: unrecognized service "
Actually, when I run freeswitch I get the following error:

2020-09-24 11:25:55.547058 [ERR] sofia.c:3235 Error Creating SIP UA for profile: external (sip:[email protected]:5080;maddr=172.17.0.1;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC) 2020-09-24 11:25:55.547058 [ERR] sofia.c:3235 Error Creating SIP UA for profile: internal (sip:[email protected]:5060;maddr=172.17.0.1;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC) 2020-09-24 11:26:00.547058 [ERR] sofia.c:3235 Error Creating SIP UA for profile: external (sip:[email protected]:5080;maddr=172.17.0.1;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC) 2020-09-24 11:26:00.547058 [ERR] sofia.c:3245 Error Creating SIP UA for profile: external (sip:[email protected]:5080;maddr=172.17.0.1;transport=udp,tcp) The likely causes for this are: 1) Another application is already listening on the specified address. 2) The IP the profile is attempting to bind to is not local to this system. 2020-09-24 11:26:00.547058 [ERR] sofia.c:3235 Error Creating SIP UA for profile: internal (sip:[email protected]:5060;maddr=172.17.0.1;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC) 2020-09-24 11:26:00.547058 [ERR] sofia.c:3245 Error Creating SIP UA for profile: internal (sip:[email protected]:5060;maddr=172.17.0.1;transport=udp,tcp) The likely causes for this are: 1) Another application is already listening on the specified address. 2) The IP the profile is attempting to bind to is not local to this system

I thought this is happening because of the IPv6 configuration. I am using freeswitch on a server machine in a docker container. If someone could me regarding this

from ictfax.

ICTKashif avatar ICTKashif commented on August 24, 2024

please share your system ssh access informaton at https://service.ictinnovations.com/submitticket.php we will check and let you know

from ictfax.

ezhevak avatar ezhevak commented on August 24, 2024

The server was also configured for IPv6 and freeswitch could not bind to IPv4. However, after re-configuring freeswitch use IPv4, I can connect to fs_cli. Please close issue.

Please tell us in more detail what exactly did you do?

from ictfax.

iamtalhaasghar avatar iamtalhaasghar commented on August 24, 2024

for anyone reading this in future you need to make sure 127.0.0.1 is allowed in acl conf as mentioned here

from ictfax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.