Just hoping i can save someone a few hours of pain. If you are developing apps with CentOS/Red Hat/ClearOS with PHP listen carefully. The php fsocket command was bombing on me and the google search didn't give exactly what i was hoping for. Problem turned out to be selinux. The default settings prevent access to port 8021
to communicate with freeswitch don't forget to disable selinux.
in /etc/selinux/config change
SELINUX=disabled
reboot
or at the command line type
setenforce 0
you can also test from the command line
telnet 127.0.0.1 8021
(space between ip and port number)
you should get something if it's listening
if you don't have telnet installed
yum install telnet
No comments:
Post a Comment