Freeswitch Won't Start After ASTPP Successful Install

629 views
Skip to first unread message

Kismet

unread,
Sep 12, 2015, 9:40:19 PM9/12/15
to ASTPP

Good evening all,

I managed to complete the installation of ASTPP v2.2 this morning.  Unfortunately, I can't get Freeswitch to start.  Since I did the installation using your script I thought I'd ask for help here first.  I checked out the log file at /usr/local/freeswitch/log/ and this is what I found:

2015-09-12 06:06:50.382745 [ERR] mod_xml_curl.c:315 Received HTTP error 404 trying to fetch http://localhost/cgi-bin/astpp/astpp-fs-xml.cgi
data: [hostname=freeswitch1&section=directory&tag_name=domain&key_name=name&key_value=127.0.0.1&Event-Name=GENERAL&Core-UUID=6c3fbb6e-e634-4b56-a13f-7bf4634e9b0c&FreeSWITCH-Hostname=freeswitch1&FreeSWITCH-Switchname=freeswitch1&FreeSWITCH-IPv4=127.0.0.1&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2015-09-12%2006%3A06%3A50&Event-Date-GMT=Sat,%2012%20Sep%202015%2010%3A06%3A50%20GMT&Event-Date-Timestamp=1442052410377659&Event-Calling-File=switch_core.c&Event-Calling-Function=switch_load_network_lists&Event-Calling-Line-Number=1423&Event-Sequence=393&domain=127.0.0.1&purpose=network-list]
2015-09-12 06:06:50.387928 [ERR] mod_xml_curl.c:315 Received HTTP error 404 trying to fetch http://localhost/cgi-bin/astpp/astpp-fs-xml.cgi
data: [hostname=freeswitch1&section=configuration&tag_name=configuration&key_name=name&key_value=post_load_switch.conf]

Your assistance would be very well appreciated, thanks.

Samir Doshi

unread,
Sep 13, 2015, 5:20:07 AM9/13/15
to ASTPP
You have perl packages missing to install. Please check apache log. 

Best Regards
--
Samir Doshi
iNextrix Technologies Pvt. Ltd.
http://www.inextrix.com



Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorised to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful.

--
=====================================================================
Donate us at dona...@astpp.org
Documentation : https://astppdoc.atlassian.net/
Website : http://www.astpp.org
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/ed6edd9b-5435-40c3-835e-00fdf4e3f5df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kismet

unread,
Sep 13, 2015, 6:06:59 AM9/13/15
to ASTPP
Samir,

Thanks for the response.  I checked the apache logs and I don't see anything in there to indicate missing perl packages.  The only thing I'm seeing in the error logs is a reference to an invalid hostname (localhost).  Could this be causing this issue?

Samir Doshi

unread,
Sep 13, 2015, 9:03:01 AM9/13/15
to ASTPP

Okay. Please confirm scripts are there in cgi-bin folder.

Sent from mobile

Kismet

unread,
Sep 13, 2015, 9:09:31 AM9/13/15
to ASTPP
Samir,

I did a check for the referenced script in the error log and it seems to be only located in two places at the moment, the ASTPP source directory and in the /usr/lib folder.  Should the cgi-bin be located elsewhere?

root@freeswitch1:/# find . -name astpp-fs-\*
./usr/src/trunk/freeswitch/astpp/astpp-fs-xml.cgi
./usr/lib/cgi-bin/astpp/astpp-fs-xml.cgi
root@freeswitch1:/#


Samir Doshi

unread,
Sep 13, 2015, 11:42:03 PM9/13/15
to ASTPP

If os is debian then thats correct path. Can you please place astpp folder in /var/www/cgi-bin/ and check?

Sent from mobile

--
=====================================================================
Donate us at dona...@astpp.org
Documentation : https://astppdoc.atlassian.net/
Website : http://www.astpp.org
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

Kismet

unread,
Sep 14, 2015, 7:28:02 AM9/14/15
to ASTPP
Thanks again.

Adding the scripts to the /var/www/html/cgi-bin/ directly seems to have resolved the problem with Freeswitch starting.  I can start it now (as evidenced below), but I still can't register any devices to the server.  I've a bit confused - I am able to issue fs_cli and get to the CLI then issue status and I see that it's running, yet when I issue service freeswitch status, I can an error message saying that it's not running.


AFTER ISSUING "fs_cli"

+OK log level  [7]
freeswitch@internal> status
UP 0 years, 0 days, 4 hours, 28 minutes, 37 seconds, 77 milliseconds, 246 microseconds
FreeSWITCH (Version 1.4.21 git 12b2880 2015-09-09 21:05:58Z 32bit) is ready
0 session(s) since startup
0 session(s) - peak 0, last 5min 0
0 session(s) per Sec out of max 30, peak 0, last 5min 0
1000 session(s) max
min idle cpu 0.00/96.77
Current Stack Size/Max 240K/8192K


AFTER ISSUING "service freeswitch restart"

root@freeswitch1:~# service freeswitch restart
Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details.


AFTER ISSUING "service freeswitch status"

root@freeswitch1:~# service freeswitch status
● freeswitch.service - LSB: FreeSWITCH debian init script.
   Loaded: loaded (/etc/init.d/freeswitch)
   Active: failed (Result: exit-code) since Mon 2015-09-14 07:19:06 EDT; 11s ago
  Process: 5411 ExecStart=/etc/init.d/freeswitch start (code=exited, status=1/FAILURE)

Sep 14 07:19:06 freeswitch1 systemd[1]: freeswitch.service: control process exited, code=exited status=1
Sep 14 07:19:06 freeswitch1 systemd[1]: Failed to start LSB: FreeSWITCH debian init script..
Sep 14 07:19:06 freeswitch1 systemd[1]: Unit freeswitch.service entered failed state.


I'm heading off to work now, but I'll keep investigating what's going on.  If you can give me some pointers on where to look that'll be great, thanks.

Bhavik Patel

unread,
Sep 14, 2015, 7:32:39 AM9/14/15
to as...@googlegroups.com
First run below command in Consol.
netstat -pan | grep 5060
Freeswitch run on 5060 Port.

If not showing then run "freeswitch -nc"
Then type freeswitch -r commad to start Freeswitch. It may take few seconds to start.

If still not working then Try to go Freeswitch installed Directory,"cd /usr/local/freeswitch/bin"
and then run like "./freeswitch" and check its working or not.


--
=====================================================================
Donate us at dona...@astpp.org
Documentation : https://astppdoc.atlassian.net/
Website : http://www.astpp.org
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

For more options, visit https://groups.google.com/d/optout.



--
Thanks,
Bhavik Patel
iNextrix Technology Pvt. Ltd.
www.inextrix.com

Kismet

unread,
Sep 14, 2015, 11:46:44 AM9/14/15
to ASTPP
Bhavik, 

Thanks for your response.  The response of the netstat query suggests to me that Freeswitch is indeed running, but it's listening on the internal IP or 127.0.0.1 and not the LAN IP address of the server.  Where in the configs do I make that change?

root@freeswitch1:~# netstat -pan | grep 5060
tcp        0      0 127.0.0.1:5060          0.0.0.0:*               LISTEN      604/freeswitch
tcp6       0      0 ::1:5060                :::*                    LISTEN      604/freeswitch
udp        0      0 127.0.0.1:5060          0.0.0.0:*                           604/freeswitch
udp6       0      0 ::1:5060                :::*                                604/freeswitch

Since it appears to be running, I didn't proceed further with the rest of your instructions until I hear back from you.  Thanks.
Reply all
Reply to author
Forward
0 new messages