Calls Fail After Reboot - Modules Need Reloading

795 views
Skip to first unread message

Gemini

unread,
May 5, 2015, 12:21:54 AM5/5/15
to as...@googlegroups.com
Greetings,

First off thanks to the ASTPP team for creating such a great platform.

Looking for a fix or workaround to an issue I have been experiencing.

When the server is rebooted, I notice inbound/outbound calls all fail.  First thing I notice is that the default sip profile isn't loading correctly when I do a sofia status.

reload mod_sofia seems to correct this.

Then I try again and I notice errors about acl's.

reloadacl seems to clear these up.

Then I see errors about "origination rates not found".

reload mod_db seems to correct this.


Any thoughts?

Samir Doshi

unread,
May 5, 2015, 2:56:14 AM5/5/15
to as...@googlegroups.com
Please make sure to have below modules added in modules.conf.xml. 

mod_xml_curl
mod_xml_cdr
mod_db


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 : http://wiki.astpp.org
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/dffd4a37-1151-4f7c-8632-9b73668b3ff8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gemini

unread,
May 5, 2015, 4:38:45 PM5/5/15
to as...@googlegroups.com
Hi Samir,
Thanks for the quick reply.

I checked and I see they are there as follows:

<load module="mod_xml_curl"/>
<load module="mod_xml_cdr"/>
<load module="mod_db”/>

I remember manually adding mod_db after reading another post here.   Looking at the freeswitch.log I noticed two lines with CRIT errors that jump out at me (after a reboot):

2015-05-05 16:08:06.646060 [CRIT] switch_loadable_module.c:1447 Error Loading module /usr/local/freeswitch/mod/mod_db”/>     <!-- Event Handlers --> <!--     <load module=.so
**/usr/local/freeswitch/mod/mod_db”/>     <!-- Event Handlers --> <!--     <load module=.so: cannot open shared object file: No such file or directory**

2015-05-05 16:08:09.486965 [CRIT] switch_loadable_module.c:1447 Error Loading module /usr/local/freeswitch/mod/mod_perl.so
**/usr/local/freeswitch/mod/mod_perl.so: cannot open shared object file: No such file or directory**

Just to be certain there wasn't an issue with those modules I checked /usr/local/freeswitch/modules.conf to make sure the two mods where un-commented, and did a make and make install for each mod. Anyway, it wasn't that.  

The other thing I should mention is I updated the sip-ip and rtp-ip from $${local_ip_v4} to the local IP in the default SIP profile.

And just to clarify, this is what I see when I run sofia status to know that the default profile hasn't loaded.


                     Name          Type                                       Data      State
=================================================================================================
            external-ipv6       profile                   sip:mod_sofia@[::1]:5080      RUNNING (0)
external-ipv6::example.com      gateway                    sip:joe...@example.com      NOREG
              192.168.1.200         alias                                   internal      ALIASED
                 external       profile             sip:mod_...@192.168.1.200:5080      RUNNING (0)
    external::example.com       gateway                    sip:joe...@example.com      NOREG
            internal-ipv6       profile                   sip:mod_sofia@[::1]:5060      RUNNING (0)
                 internal       profile             sip:mod_...@192.168.1.200:5060      RUNNING (0)
=================================================================================================


Thanks

Gemini

unread,
May 6, 2015, 11:14:48 AM5/6/15
to as...@googlegroups.com
Just to be on the safe side, I setup a 2nd debian server using the ASTPP 2.0 install.sh script.  On initial bootup I could see the correct default sip profile was loaded.  Then I proceeded to set a few things in settings like the default country, timezone and currency.  Performed a reboot and can see that just like on the first server the wrong sip profile loaded.

So I went to modules.conf.xml and added the line for <load module="mod_db”/> and did a reboot.  And seeing the same thing.  And reload mod_sofia is needed to load the correct sip profile.

Samir Doshi

unread,
May 7, 2015, 2:00:19 PM5/7/15
to as...@googlegroups.com
That looks strange. Can you please confirm if you have mod_xml_curl loaded before mod_sofia? If not then please do that and try.

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.

Gemini

unread,
May 7, 2015, 4:25:01 PM5/7/15
to as...@googlegroups.com
Stripping away the commented out modules I have the following order:

 <load module="mod_console"/>
    <load module="mod_logfile"/>
 <load module="mod_xml_curl"/>
    <load module="mod_xml_cdr"/>
<load module="mod_db"/>   ***************Manually added
  <load module="mod_event_socket"/>
<load module="mod_sofia"/>
  <load module="mod_commands"/>
    <load module="mod_dptools"/>
    <load module="mod_dialplan_xml"/>
    <load module="mod_g723_1"/>
    <load module="mod_g729"/>
    <load module="mod_amr"/>
    <load module="mod_h26x"/>
    <load module="mod_sndfile"/>
    <load module="mod_native_file"/>
    <load module="mod_local_stream"/>
    <load module="mod_tone_stream"/>
  <load module="mod_perl"/>
    <load module="mod_say_en"/>
external-ipv6::example.com      gateway                    sip:j...@example.com      NOREG
              192.168.1.200         alias                                   internal      ALIASED
                 external       profile             sip:mod_...@192.168.1.200:5080      RUNNING (0)
    external::example.com       gateway                    sip:j...@example.com      NOREG

Samir Doshi

unread,
May 8, 2015, 2:00:10 PM5/8/15
to as...@googlegroups.com
Hi, 

Can you please run freeswitch command and send me output? 

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.

Kerry Forbes

unread,
May 8, 2015, 3:26:14 PM5/8/15
to as...@googlegroups.com
You received this message because you are subscribed to a topic in the Google Groups "ASTPP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astpp/PMqxV3pzZhU/unsubscribe.
To unsubscribe from this group and all its topics, 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.

Gemini

unread,
May 8, 2015, 4:13:21 PM5/8/15
to as...@googlegroups.com

Did a service freeswitch stop and then ran it.. output is here:

Samir Doshi

unread,
May 9, 2015, 2:39:14 PM5/9/15
to as...@googlegroups.com
Hi, 

  1. 2015-05-08 14:13:12.217383 [NOTICE] sofia.c:5568 Started Profile default [sofia_reg_default]
  2. 2015-05-08 14:13:12.243586 [INFO] switch_core_sqldb.c:1693 sofia:default Starting SQL thread.
  3. 2015-05-08 14:13:12.400514 [NOTICE] sofia_reg.c:3329 Added gateway 'Upstream' to profile 'default'
  4. 2015-05-08 14:13:12.548042 [NOTICE] sofia.c:3738 Adding Alias [192.168.1.200] for profile [default]
  5. 2015-05-08 14:13:12.550207 [NOTICE] sofia_reg.c:448 Registering Upstream

By looking at above logs, it seems default profile loading is correctly. BUT after that its trying to load mod_perl. Check below log, 

  1. 2015-05-08 14:13:13.999153 [CRIT] switch_loadable_module.c:1447 Error Loading module /usr/local/freeswitch/mod/mod_perl.so
  1. **/usr/local/freeswitch/mod/mod_perl.so: cannot open shared object file: No such file or directory**

    This might be causing the issue. Please comment mod_perl from modules.xml.conf and retry. It should work. 

    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.

    Gemini

    unread,
    May 11, 2015, 11:35:00 AM5/11/15
    to as...@googlegroups.com
    Update:
    Commenting out the mod_perl eliminated that error message, however still fails after reboot.  

    I setup another server using the install script, but didn't install the Perl packages, and the Calling Card module...    After the install the sofia module loaded correctly, however after a reboot it was back to the incorrect profile.  

    Looking at /usr/local/freeswitch/log/freeswitch.log, I could see the following [ERR] messages:


    2015-05-11 11:05:25.030302 [ERR] mod_xml_curl.c:315 Received HTTP error 500 trying to fetch http://localhost/cgi-bin/astpp/astpp-fs-xml.cgi
    data: [hostname=debian&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf&Event-Name=REQUEST_PARAMS&Core-UUID=af64b48b-ec5b-459b-b506-f85ee1799141&FreeSWITCH-Hostname=debian&FreeSWITCH-Switchname=debian&Free$
    2015-05-11 11:05:25.035885 [ERR] mod_xml_curl.c:315 Received HTTP error 500 trying to fetch http://localhost/cgi-bin/astpp/astpp-fs-xml.cgi
    data: [hostname=debian&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf&Event-Name=REQUEST_PARAMS&Core-UUID=af64b48b-ec5b-459b-b506-f85ee1799141&FreeSWITCH-Hostname=debian&FreeSWITCH-Switchname=debian&Free$
    2015-05-11 11:05:25.071226 [ERR] mod_xml_curl.c:315 Received HTTP error 500 trying to fetch http://localhost/cgi-bin/astpp/astpp-fs-xml.cgi
    data: [hostname=debian&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf&Event-Name=REQUEST_PARAMS&Core-UUID=af64b48b-ec5b-459b-b506-f85ee1799141&FreeSWITCH-Hostname=debian&FreeSWITCH-Switchname=debian&Free$
    2015-05-11 11:05:25.081550 [ERR] mod_xml_curl.c:315 Received HTTP error 500 trying to fetch http://localhost/cgi-bin/astpp/astpp-fs-xml.cgi
    data: [hostname=debian&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf&Event-Name=REQUEST_PARAMS&Core-UUID=af64b48b-ec5b-459b-b506-f85ee1799141&FreeSWITCH-Hostname=debian&FreeSWITCH-Switchname=debian&Free$


    Again, tried commenting out the mod_perl in modules.xml.conf, and I no longer see the above errors, but it seems to be something else that is breaking it upon reboot.

    When I did a service freeswitch stop, and then ran freeswitch this is the output I got on a fresh new server, with no configuration changes made:


    One other thing I would like to mention, is that if I run a:

    /etc/init.d/freeswitch stop
    /etc/init.d/freeswitch start

    Everything appears to load correctly, sip profile wise.  Only on reboot do I see the failure.

    Hope that helps!

    Thanks,

    Gemini

    unread,
    May 11, 2015, 2:26:48 PM5/11/15
    to as...@googlegroups.com
    Also, ran a test install on another machine with the Perl packages and the CallingCard mod, and had the same result.    Other thing I noticed on both systems was the following errors in the /var/log/apache2/error.log





    Bhavik Patel

    unread,
    May 11, 2015, 11:42:30 PM5/11/15
    to as...@googlegroups.com
    Seems like script is not able to connect database properly.

    "DBI connect('database=astpp;host=127.0.0.1','root',...) failed: Can't connect to MySQL server on '127.0.0.1' (111) at /usr/local/astpp/astpp-database.pl line 65."

    Please check this file with proper database credential.
    Filename : "/var/lib/astpp/astpp-config.conf"





    On Mon, May 11, 2015 at 11:56 PM, Gemini <surf...@gmail.com> wrote:
    Also, ran a test install on another machine with the Perl packages and the CallingCard mod, and had the same result.    Other thing I noticed on both systems was the following errors in the /var/log/apache2/error.log





    --
    =====================================================================
    Donate us at dona...@astpp.org
    Documentation : http://wiki.astpp.org
    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.



    --

    Bhavik Patel  
    Software Engineer, Inextrix Technologies Pvt. Ltd

    Gemini

    unread,
    May 12, 2015, 9:53:31 AM5/12/15
    to as...@googlegroups.com
    Right, so I see that.  However, if the credentials were not correctly entered in the astpp-config.conf wouldn't the entire application be broken?

    So just to confirm I connected to the mysql DB using the same credentials in that file and it seemed to be correct dbname/user/pass, as I logged in, was able to see the astpp db, and tables..  Also, the values, dbhost, base_url an dastpp_dbengine all look to be right.

    The way I understand it, without the DB connection, you wouldn't be able to login to the Web GUI, create customers, import rates, etc..

    Furthermore, I see the same errors on all 4 servers, so how could this be that all systems appear to be functioning (aside from failing on reboot), and yet there are errors from /usr/local/astpp/astpp-database.pl

    Could it be a permissions issue with astpp.conf?  

    Samir Doshi

    unread,
    May 15, 2015, 4:01:17 AM5/15/15
    to as...@googlegroups.com
    I don't think its permission related issue. 

    If you are using centos then can you please disable selinux from startup and try? 

    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 : http://wiki.astpp.org
    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.

    Gemini

    unread,
    May 20, 2015, 3:02:20 PM5/20/15
    to as...@googlegroups.com
    All systems were the same Debian build, setup from a minimal, Netinstall.  

    Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.68-1+deb7u1 x86_64 GNU/Linux

    I've been seeing that a lot of the Freeswitch community recommending Debian over CentOS.  But that said, Should I try with CentOS?  Wondering if that is what most ASTPP users are using.

    bmurkoff

    unread,
    Sep 24, 2017, 8:16:41 PM9/24/17
    to ASTPP
    Have you ever found a fix for this issue, I am experiencing the same thing  

    Kerry Forbes

    unread,
    Sep 25, 2017, 8:56:42 AM9/25/17
    to as...@googlegroups.com
    no. never did figure it out.  Finally concluded the perl script that fails just isn't up to the job.

    But I had heard they had re-written this, and was looking to see if theres any improvement.

    Thanks

    --
    =====================================================================
    Documentation : https://astppdoc.atlassian.net/

    Please contact at sa...@inextrix.com for commercial support.
    ---
    You received this message because you are subscribed to a topic in the Google Groups "ASTPP" group.
    To unsubscribe from this topic, visit https://groups.google.com/d/topic/astpp/PMqxV3pzZhU/unsubscribe.
    To unsubscribe from this group and all its topics, send an email to astpp+unsubscribe@googlegroups.com.

    To post to this group, send email to as...@googlegroups.com.

    Samir Doshi

    unread,
    Oct 4, 2017, 7:25:58 AM10/4/17
    to ASTPP
    Can you confirm if sofia profile and acl loaded properly after server reboot? If those are loaded then it shouldnt be the problem. 



    Sent with Mailtrack

    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 authorized 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. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

    To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

    To post to this group, send email to as...@googlegroups.com.
    Visit this group at https://groups.google.com/group/astpp.

    Popov

    unread,
    Mar 3, 2018, 6:08:01 PM3/3/18
    to ASTPP
    Hello,

    I am having the same problem. OS Debian 8, x64. Everything installed after a minimal net install of the OS. I did 2 installations and both of them have the same problem. Sofia profile will not load and a manual "reload mod_sofia' is needed from fs_cli.
    I did find the following error in freeswitch.log after server reboot. Must mention that restarting freeswitch to see if there is something wrong with the module executes without any issues.

    mod_xml_curl.c:315 Received HTTP error 502 trying to fetch http://localhost:8735/index.php

    mod_xml_curl.c:315 Received HTTP error 502 trying to fetch http://localhost:8735/index.php
    data: [hostname=astpp&section=configuration&tag_name=configuration&key_name=name&key_value=sofia.conf&Event-Name=REQUEST_PARAMS&Core-UUID=411e6846-2cff-4748-8dc3-f548eeffd520&FreeSWITCH-Hostname=astpp&FreeSWITCH-Switchname=astpp&FreeSWITCH-IPv4=192.168.0.100&FreeSWITCH-IPv6=%3A%3A1&Event-Date-Local=2018-03-03%2019%3A45%3A49&Event-Date-GMT=Sat,%2003%20Mar%202018%2022%3A45%3A49%20GMT&Event-Date-Timestamp=1520117149356326&Event-Calling-File=sofia.c&Event-Calling-Function=config_sofia&Event-Calling-Line-Number=4246&Event-Sequence=24]

    re.
    L.Popov
    To unsubscribe from this group and all its topics, send an email to astpp+un...@googlegroups.com.

    To post to this group, send email to as...@googlegroups.com.

    --
    =====================================================================
    Documentation : https://astppdoc.atlassian.net/
    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.

    Samir Doshi

    unread,
    Mar 5, 2018, 9:24:15 AM3/5/18
    to ASTPP
    Your Nginx web server is having a problem after server reboot. Please check and make sure it must be up after reboot and handing request properly. 



    Sent with Mailtrack

    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 authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance on the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

    --
    =====================================================================
    Documentation : https://astpp.readthedocs.io/

    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+unsubscribe@googlegroups.com.

    To post to this group, send email to as...@googlegroups.com.
    Visit this group at https://groups.google.com/group/astpp.

    Popov

    unread,
    Mar 8, 2018, 8:58:32 AM3/8/18
    to ASTPP
    Hello Samir,

    Nginx is running normally. If I restart FS  after server reboot MOD SOFIA will load normally. There must be something wrong at the time of the startup. I tried changing the FS rc.d sym link to S99 freeswitch so that it will execute after all other programs but the problem is still there . I have no idea how to fix that except after every reboot to restart freeswitch or load manually the mod_sofia. 

    Re.
    L.Popov
    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 https://groups.google.com/group/astpp.

    Kerry Forbes

    unread,
    Mar 8, 2018, 11:50:51 AM3/8/18
    to as...@googlegroups.com
    Hi Popov,
    That sounds like what I encountered.  Hope you can narrow down were it is failing to load.
    Thx

    To unsubscribe from this group and all its topics, send an email to astpp+unsubscribe@googlegroups.com.

    To post to this group, send email to as...@googlegroups.com.
    Visit this group at https://groups.google.com/group/astpp.

    Devang Nathwani

    unread,
    Mar 8, 2018, 11:38:14 PM3/8/18
    to as...@googlegroups.com
    Hello,

    Check all the required modules are uncommented here,
    compiled-path-of-freeswitch/conf/autoload_configs/modules.conf.xml

    To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

    To post to this group, send email to as...@googlegroups.com.
    Visit this group at https://groups.google.com/group/astpp.

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



    --
    Thanks,
    Devang Nathwani

    Popov

    unread,
    Mar 9, 2018, 9:33:04 AM3/9/18
    to ASTPP
    Hello Devang,

    modules.conf.xml is the way it was installed by the auto install script. Here are all the entries


    <configuration name="modules.conf" description="Modules">
      <modules>
        
        <!-- Loggers (I'd load these first) -->
        <load module="mod_console"/>
        <load module="mod_logfile"/>
        <!-- <load module="mod_syslog"/> -->

        <!-- Multi-Faceted -->
        <!-- mod_enum is a dialplan interface, an application interface and an api command interface -->
    <!--     <load module="mod_enum"/> -->

        <!-- XML Interfaces -->
        <!-- <load module="mod_xml_rpc"/> -->
        
        <!--  Required to run astpp    -->
        <load module="mod_xml_curl"/>
        <load module="mod_json_cdr"/>
        <!--<load module="mod_xml_cdr"/>-->

        <!-- Event Handlers -->
    <!--     <load module="mod_cdr_csv"/> -->
        <!-- <load module="mod_event_multicast"/> -->
        <load module="mod_event_socket"/>
        <!-- <load module="mod_xmpp_event"/> -->
        <!-- <load module="mod_zeroconf"/> -->

        <!-- Directory Interfaces -->
        <!-- <load module="mod_ldap"/> -->

        <!-- Endpoints -->
        <!-- <load module="mod_dingaling"/> -->
        <!-- <load module="mod_iax"/> -->
        <!-- <load module="mod_portaudio"/> -->
        <!-- <load module="mod_alsa"/> -->
        <load module="mod_sofia"/>
        <!-- <load module="mod_wanpipe"/> -->
        <!-- <load module="mod_woomera"/> -->
        <!-- <load module="mod_openzap"/> -->

        <!-- Applications -->
        <load module="mod_commands"/>
    <!--     <load module="mod_conference"/> -->
        <load module="mod_dptools"/>
    <!--     <load module="mod_expr"/> -->
    <!--     <load module="mod_fifo"/> -->
        <load module="mod_voicemail"/> 
    <!--    <load module="mod_limit"/>-->
    <!--     <load module="mod_esf"/> -->
    <!--     <load module="mod_fsv"/> -->
        <load module="mod_db"/>

        <!-- Dialplan Interfaces -->
        <!-- <load module="mod_dialplan_directory"/> -->
        <load module="mod_dialplan_xml"/>
    <!--     <load module="mod_dialplan_asterisk"/> -->

        <!-- Codec Interfaces -->
    <!--    <load module="mod_voipcodecs"/>-->
        <load module="mod_g723_1"/>
        <load module="mod_g729"/>
    <!--    <load module="mod_amr"/>-->
    <!--    <load module="mod_ilbc"/>-->
    <!--    <load module="mod_speex"/>-->
        <load module="mod_h26x"/>

        <!-- File Format Interfaces -->
        <load module="mod_sndfile"/>
        <load module="mod_native_file"/>
        <!--For icecast/mp3 streams/files-->
        <!--<load module="mod_shout"/>-->
        <!--For local streams (play all the files in a directory)-->
        <load module="mod_local_stream"/>
        <load module="mod_tone_stream"/>

        <!-- Timers -->

        <!-- Languages -->
        <!-- <load module="mod_spidermonkey"/> -->
        <!-- <load module="mod_perl"/> -->
        <!-- <load module="mod_python"/> -->
        <!-- <load module="mod_java"/> -->
        <load module="mod_lua"/>

        <!-- ASR /TTS -->
        <!-- <load module="mod_cepstral"/> -->
        <!-- <load module="mod_openmrcp"/> -->
        <!-- <load module="mod_rss"/> -->
        
        <!-- Say -->
        <load module="mod_say_en"/>
      </modules>
    </configuration>

    --
    =====================================================================
    Documentation : https://astpp.readthedocs.io/
    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 https://groups.google.com/group/astpp.

    Devang Nathwani

    unread,
    Mar 10, 2018, 12:08:39 AM3/10/18
    to as...@googlegroups.com
    Try adding php-fpm service in startup.

    To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

    To post to this group, send email to as...@googlegroups.com.
    Visit this group at https://groups.google.com/group/astpp.

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

    Popov

    unread,
    May 5, 2018, 11:07:06 PM5/5/18
    to ASTPP
    I am sorry I did not reply sooner. This service is activated at boot. Here the info after server reboot. 
    ● php5-fpm.service - The PHP FastCGI Process Manager
       Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled)
       Active: active (running) since Sat 2018-05-05 23:56:16 -03; 1min 58s ago
      Process: 550 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS)
     Main PID: 697 (php5-fpm)
       Status: "Processes active: 0, idle: 2, Requests: 10, slow: 0, Traffic: 0req/sec"
       CGroup: /system.slice/php5-fpm.service
               ├─697 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
               ├─710 php-fpm: pool www
               └─713 php-fpm: pool www

    Unfortunately "sofia status" shows nothing. I am testing all this in VMWare v.14 but I doubt this is the reason mod_sofia is not starting at boot...

     sofia status
                         Name          Type                                       Data      State
    =================================================================================================
    =================================================================================================
    0 profiles 0 aliases

    I am sure that if someone knew would have said something by now, but just to let ppl know that php-fpm is not the reason for this, so we will keep looking ...

    Regards,
    Popov
    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 https://groups.google.com/group/astpp.

    Kavin Chauhan

    unread,
    May 7, 2018, 1:31:36 AM5/7/18
    to ASTPP
    Please pass following output.

    isql -V ASTPP (From ssh terminal)
    netstat -pan | grep nginx (From ssh terminal)
    reload mod_sofia (From Fs terminal)
    reload mod_xml_curl (From Fs terminal)

    sman

    unread,
    May 9, 2018, 10:54:30 AM5/9/18
    to ASTPP
    This thread is old but one thing that comes to mind is that maybe freeswitch is starting before the DB is ready?

    What does your Freeswitch startup script look like?  What OS and version are you using?
    To view this discussion on the web visit <a href="<a href="https://grou

    Kerry Forbes

    unread,
    May 9, 2018, 10:59:30 AM5/9/18
    to as...@googlegroups.com
    I was testing with Debian 8... and the issue was 100% reproducible on a new install.  Presumably a step in setup routine was breaking the correct startup sequence.

    To unsubscribe from this group and all its topics, send an email to astpp+unsubscribe@googlegroups.com.

    To post to this group, send email to as...@googlegroups.com.
    Visit this group at https://groups.google.com/group/astpp.

    sman

    unread,
    May 9, 2018, 11:19:59 AM5/9/18
    to as...@googlegroups.com
    For debian 8 try adding this startup script.  Note the "After=mariadb.service".  That is assuming you are using mariadb 10 I think.  Otherwise I think that should be mysql.service if using a stock Debian 8 install.  You can also add other things to that line like php7.0-fpm.service nginx.service network-online.service.

    Since it is happening on reboot is seems likely it's something to do with the startup sequence.

    systemctl stop freeswitch
    rm -r /run/freeswitch
    nano /etc/systemd/system/freeswitch.service
    
    
    [Unit]
    Description=freeswitch
    After=syslog.target network.target local-fs.target mariadb.service
    
    [Service]
    Type=forking
    RuntimeDirectory=freeswitch
    PIDFile=/run/freeswitch/freeswitch.pid
    Environment="DAEMON_OPTS=-ncwait -nonat"
    EnvironmentFile=-/etc/default/freeswitch
    ExecStart=/usr/bin/freeswitch $DAEMON_OPTS
    TimeoutSec=45s
    Restart=always
    
    User=www-data
    Group=www-data
    LimitCORE=infinity
    LimitNOFILE=100000
    LimitNPROC=60000
    LimitSTACK=250000
    LimitRTPRIO=infinity
    LimitRTTIME=infinity
    IOSchedulingClass=realtime
    IOSchedulingPriority=2
    CPUSchedulingPriority=89
    UMask=0007
    
    ; Comment this out if using OpenVZ
    CPUSchedulingPolicy=rr
    
    [Install]
    WantedBy=multi-user.target
    systemctl daemon-reload
    systemctl start freeswitch

    Popov

    unread,
    May 15, 2018, 6:59:15 AM5/15/18
    to as...@googlegroups.com
    Hello,

    I have given a try to your script but FS will not start. There are 2 workarounds at the moment that I found that will fix this.

    1. Add "sleep 5" as first line in /etc/init.d/freeswitch. Will delay the start of the service after server reboot just enough to get all necessary services started.  OR
    2. Add a cron job to reload mod sofia after FS started - command to issue in SSH create this.

    crontab-e @reboot sleep 30 && sudo fs_cli -x 'reload mod_sofia'

    Re.
    L.Popov

    sman

    unread,
    May 23, 2018, 4:06:01 PM5/23/18
    to as...@googlegroups.com
    The startup script definitely works.  Are you using Debian 8?  If so why are you using init.d commands instead of systemd?  Are you using OpenVZ by some chance and if so did you see the bold comment in the script?

    I use Debian 8 and have never had the problem you are having.

    acpan22

    unread,
    Sep 27, 2019, 2:10:48 AM9/27/19
    to ASTPP
    Just to feedback:

    I encountered the same problem, on ASTPP ver 4.0.1 on Debian 9.7, clean install using the installation guide for astpp.

    After several re installations, i can confirm it happens without sofia profile loaded after reboot.

    I use method 2, with the cron job as describe below as a workaround.

    I also tried centos 7.6, it is without this issue.

    I am not so familiar with the paths of the install files, if you want me to provide logs or testing, etc, give me instructions i will be happy to do so.
    I will keep the installation for the next few days in case anyone wants me to provide info.


    ACP
    Reply all
    Reply to author
    Forward
    0 new messages