Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Speeding up FreeSWITCH load time

Goto page 1, 2  Next
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
lists at telium.io
Guest





PostPosted: Sun Jul 10, 2022 8:58 pm    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to start which seems long (for a very simple configuration).
Back to top
avi at avimarcus.net
Guest





PostPosted: Mon Jul 11, 2022 2:29 am    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

It's probably taking time to discover NAT.If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:


Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".
via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat
-Avi Marcus










On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:

Quote:

Is there a guide on how to speed FS loading times?  FS takes 10+ seconds to start which seems long (for a very simple configuration).

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
lists at telium.io
Guest





PostPosted: Tue Jul 12, 2022 7:58 am    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

I found that the FreeSWITCH systemd service file already contains a –nonat option.  Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start?  My experience is with Asterisk, which is less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?

Thanks



From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:



Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus









On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
lists at telium.io
Guest





PostPosted: Tue Jul 12, 2022 8:40 am    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

I’m looking at a crash recovery scenario, and during this startup period the calls in progress have no audio.  (And input media bypass is not an option due to topology)

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Gregor Nanger
Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

Just for info. Why is this a problem.


On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:
Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option. Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start? My experience is with Asterisk, which is less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?

Thanks



From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:



Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus









On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
gregor at infomedia.si
Guest





PostPosted: Tue Jul 12, 2022 8:42 am    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

Just for info. Why is this a problem.

On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:

Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option.  Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start?  My experience is with Asterisk, which is less than half of that to start.
 
If that’s normal, how can I diagnose what is consuming the start time?
 
Thanks
 
 
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time
 
It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:

 

Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus





 


 
On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times?  FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
krice at freeswitch.org
Guest





PostPosted: Tue Jul 12, 2022 8:32 pm    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

are you sure -nonat is taking effect? thats about the only thing that would take any tome getting freeswitch startes up. without -nonat it takes many seconds for upnp/nat-pmp to timeout.

the only other way to avoid media loss is to do a full HA setup with proper floating IP and fencing. theres agoos bit of info on this on the wiki and various places on the web

Sent from my iPhone

Quote:
On Jul 12, 2022, at 08:21, TTT <lists@telium.io> wrote:

 <![endif]--> <![endif]-->
I’m looking at a crash recovery scenario, and during this startup period the calls in progress have no audio. (And input media bypass is not an option due to topology)

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Gregor Nanger
Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

Just for info. Why is this a problem.


On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:
Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option. Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start? My experience is with Asterisk, which is less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?

Thanks



From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:



Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus









On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
lists at telium.io
Guest





PostPosted: Wed Jul 13, 2022 12:03 pm    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

I checked with “ps ax” and confirmed -nonat is running.  But I’ll investigate further using strace, and reload of pieces of the config., to see where the time is going.

I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing, control, failover, syncing, IP movement, etc) and that works well, I just want to speed up the FreeSWITCH recovery speed.

Thanks

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Ken Rice
Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time



are you sure -nonat is taking effect? thats about the only thing that would take any tome getting freeswitch startes up. without -nonat it takes many seconds for upnp/nat-pmp to timeout.


the only other way to avoid media loss is to do a full HA setup with proper floating IP and fencing. theres agoos bit of info on this on the wiki and various places on the web
Sent from my iPhone



Quote:

On Jul 12, 2022, at 08:21, TTT <lists@telium.io (lists@telium.io)> wrote:

I’m looking at a crash recovery scenario, and during this startup period the calls in progress have no audio. (And input media bypass is not an option due to topology)

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Gregor Nanger
Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

Just for info. Why is this a problem.


On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:
Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option. Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start? My experience is with Asterisk, which is less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?

Thanks



From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:



Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus









On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
avi at avimarcus.net
Guest





PostPosted: Wed Jul 13, 2022 12:08 pm    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

You can first try looking at the logs at startup time to see what's taking so long, in freeswitch.log-Avi Marcus










On Wed, Jul 13, 2022 at 7:33 PM TTT <lists@telium.io (lists@telium.io)> wrote:

Quote:

I checked with “ps ax” and confirmed -nonat is running.  But I’ll investigate further using strace, and reload of pieces of the config., to see where the time is going.
 
I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing, control, failover, syncing, IP movement, etc) and that works well, I just want to speed up the FreeSWITCH recovery speed.
 
Thanks
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Ken Rice
Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time


 
are you sure -nonat is taking effect? thats about the only thing that would take any tome getting freeswitch startes up. without -nonat it takes many seconds for  upnp/nat-pmp to timeout. 
 

the only other way to avoid media loss is to do a full HA setup with proper  floating IP and fencing. theres agoos bit of info on this on the wiki and various places on the web
Sent from my iPhone



Quote:

On Jul 12, 2022, at 08:21, TTT <lists@telium.io (lists@telium.io)> wrote:

I’m looking at a crash recovery scenario, and during this startup period the calls in progress have no audio.  (And input media bypass is not an option due to topology)
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Gregor Nanger
Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time
 
Just for info. Why is this a problem.

 
On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:
Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option.  Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start?  My experience is with Asterisk, which is less than half of that to start.
 
If that’s normal, how can I diagnose what is consuming the start time?
 
Thanks
 
 
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time
 
It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:

 

Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus





 


 
On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times?  FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
brian at freeswitch.com
Guest





PostPosted: Wed Jul 13, 2022 12:58 pm    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

We do a look up against a DNS server in the code to check, maybe double check that isn't causing an issue?

On Wed, Jul 13, 2022 at 12:07 PM Avi Marcus <avi@avimarcus.net (avi@avimarcus.net)> wrote:

Quote:
You can first try looking at the logs at startup time to see what's taking so long, in freeswitch.log-Avi Marcus










On Wed, Jul 13, 2022 at 7:33 PM TTT <lists@telium.io (lists@telium.io)> wrote:

Quote:

I checked with “ps ax” and confirmed -nonat is running.  But I’ll investigate further using strace, and reload of pieces of the config., to see where the time is going.
 
I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing, control, failover, syncing, IP movement, etc) and that works well, I just want to speed up the FreeSWITCH recovery speed.
 
Thanks
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Ken Rice
Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time


 
are you sure -nonat is taking effect? thats about the only thing that would take any tome getting freeswitch startes up. without -nonat it takes many seconds for  upnp/nat-pmp to timeout. 
 

the only other way to avoid media loss is to do a full HA setup with proper  floating IP and fencing. theres agoos bit of info on this on the wiki and various places on the web
Sent from my iPhone



Quote:

On Jul 12, 2022, at 08:21, TTT <lists@telium.io (lists@telium.io)> wrote:

I’m looking at a crash recovery scenario, and during this startup period the calls in progress have no audio.  (And input media bypass is not an option due to topology)
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Gregor Nanger
Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time
 
Just for info. Why is this a problem.

 
On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:
Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option.  Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start?  My experience is with Asterisk, which is less than half of that to start.
 
If that’s normal, how can I diagnose what is consuming the start time?
 
Thanks
 
 
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time
 
It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:

 

Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus





 


 
On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times?  FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--



Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
lists at telium.io
Guest





PostPosted: Wed Jul 13, 2022 5:00 pm    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

What domain name does the code do a lookup for?  Perhaps it’s not resolving.  But I’ll check general DNS lookups too.,

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Wednesday, July 13, 2022 1:56 PM
To: Avi Marcus <avi@avimarcus.net>
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

We do a look up against a DNS server in the code to check, maybe double check that isn't causing an issue?


On Wed, Jul 13, 2022 at 12:07 PM Avi Marcus <avi@avimarcus.net (avi@avimarcus.net)> wrote:
Quote:

You can first try looking at the logs at startup time to see what's taking so long, in freeswitch.log

-Avi Marcus









On Wed, Jul 13, 2022 at 7:33 PM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

I checked with “ps ax” and confirmed -nonat is running. But I’ll investigate further using strace, and reload of pieces of the config., to see where the time is going.

I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing, control, failover, syncing, IP movement, etc) and that works well, I just want to speed up the FreeSWITCH recovery speed.

Thanks

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Ken Rice
Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time



are you sure -nonat is taking effect? thats about the only thing that would take any tome getting freeswitch startes up. without -nonat it takes many seconds for upnp/nat-pmp to timeout.


the only other way to avoid media loss is to do a full HA setup with proper floating IP and fencing. theres agoos bit of info on this on the wiki and various places on the web
Sent from my iPhone

Quote:

On Jul 12, 2022, at 08:21, TTT <lists@telium.io (lists@telium.io)> wrote:

I’m looking at a crash recovery scenario, and during this startup period the calls in progress have no audio. (And input media bypass is not an option due to topology)

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Gregor Nanger
Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

Just for info. Why is this a problem.


On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:
Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option. Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start? My experience is with Asterisk, which is less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?

Thanks



From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:



Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus









On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com





--


Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=https://twitter.com/freeswitch]
Back to top
brian at freeswitch.com
Guest





PostPosted: Wed Jul 13, 2022 5:31 pm    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

switch_find_local_ip in switch_utils.c


It's trying to figure out which of your local ipv4 and ipv6 addresses can reach the internet.


/b




On Wed, Jul 13, 2022 at 4:59 PM TTT <lists@telium.io (lists@telium.io)> wrote:

Quote:

What domain name does the code do a lookup for?  Perhaps it’s not resolving.  But I’ll check general DNS lookups too.,
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Brian West
Sent: Wednesday, July 13, 2022 1:56 PM
To: Avi Marcus <avi@avimarcus.net (avi@avimarcus.net)>
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time
 
We do a look up against a DNS server in the code to check, maybe double check that isn't causing an issue?

 
On Wed, Jul 13, 2022 at 12:07 PM Avi Marcus <avi@avimarcus.net (avi@avimarcus.net)> wrote:
Quote:

You can first try looking at the logs at startup time to see what's taking so long, in freeswitch.log

-Avi Marcus





 


 
On Wed, Jul 13, 2022 at 7:33 PM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

I checked with “ps ax” and confirmed -nonat is running.  But I’ll investigate further using strace, and reload of pieces of the config., to see where the time is going.
 
I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing, control, failover, syncing, IP movement, etc) and that works well, I just want to speed up the FreeSWITCH recovery speed.
 
Thanks
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Ken Rice
Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time


 
are you sure -nonat is taking effect? thats about the only thing that would take any tome getting freeswitch startes up. without -nonat it takes many seconds for  upnp/nat-pmp to timeout. 
 

the only other way to avoid media loss is to do a full HA setup with proper  floating IP and fencing. theres agoos bit of info on this on the wiki and various places on the web
Sent from my iPhone

 
Quote:

On Jul 12, 2022, at 08:21, TTT <lists@telium.io (lists@telium.io)> wrote:

I’m looking at a crash recovery scenario, and during this startup period the calls in progress have no audio.  (And input media bypass is not an option due to topology)
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Gregor Nanger
Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time
 
Just for info. Why is this a problem.

 
On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:
Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option.  Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start?  My experience is with Asterisk, which is less than half of that to start.
 
If that’s normal, how can I diagnose what is consuming the start time?
 
Thanks
 
 
 
From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time
 
It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:

 

Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus





 


 
On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times?  FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



 

--
 

Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=https://twitter.com/freeswitch]














_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--



Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
lists at telium.io
Guest





PostPosted: Wed Jul 13, 2022 7:34 pm    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

That sounds like the cause; this machine has no route to the internet.

Is there a way to skip this test?

From: Brian West [mailto:brian@freeswitch.com]
Sent: Wednesday, July 13, 2022 6:04 PM
To: lists@telium.io
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

switch_find_local_ip in switch_utils.c


It's trying to figure out which of your local ipv4 and ipv6 addresses can reach the internet.



/b





On Wed, Jul 13, 2022 at 4:59 PM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

What domain name does the code do a lookup for? Perhaps it’s not resolving. But I’ll check general DNS lookups too.,

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Brian West
Sent: Wednesday, July 13, 2022 1:56 PM
To: Avi Marcus <avi@avimarcus.net (avi@avimarcus.net)>
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

We do a look up against a DNS server in the code to check, maybe double check that isn't causing an issue?


On Wed, Jul 13, 2022 at 12:07 PM Avi Marcus <avi@avimarcus.net (avi@avimarcus.net)> wrote:
Quote:

You can first try looking at the logs at startup time to see what's taking so long, in freeswitch.log

-Avi Marcus









On Wed, Jul 13, 2022 at 7:33 PM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

I checked with “ps ax” and confirmed -nonat is running. But I’ll investigate further using strace, and reload of pieces of the config., to see where the time is going.

I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing, control, failover, syncing, IP movement, etc) and that works well, I just want to speed up the FreeSWITCH recovery speed.

Thanks

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Ken Rice
Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time



are you sure -nonat is taking effect? thats about the only thing that would take any tome getting freeswitch startes up. without -nonat it takes many seconds for upnp/nat-pmp to timeout.


the only other way to avoid media loss is to do a full HA setup with proper floating IP and fencing. theres agoos bit of info on this on the wiki and various places on the web
Sent from my iPhone

Quote:

On Jul 12, 2022, at 08:21, TTT <lists@telium.io (lists@telium.io)> wrote:

I’m looking at a crash recovery scenario, and during this startup period the calls in progress have no audio. (And input media bypass is not an option due to topology)

From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Gregor Nanger
Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

Just for info. Why is this a problem.


On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io)> wrote:
Quote:

I found that the FreeSWITCH systemd service file already contains a –nonat option. Maybe my expectations are out of line, should it take 10 seconds for FreeSWITCH to fully start? My experience is with Asterisk, which is less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?

Thanks



From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Avi Marcus
Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.
If you have a direct public IP and don't require NAT, you can instruct freeswitch to skip this step:



Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat


-Avi Marcus









On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)> wrote:
Quote:

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to start which seems long (for a very simple configuration).


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com




_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com





--


Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=https://twitter.com/freeswitch]















_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com





--


Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=https://twitter.com/freeswitch]
Back to top
Antony.Stone at freesw...
Guest





PostPosted: Thu Jul 14, 2022 5:36 am    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

On Thursday 14 July 2022 at 02:12:54, TTT wrote:

Quote:
That sounds like the cause; this machine has no route to the internet.

Is there a way to skip this test?

I, too, would very much like to see an option which can be passed to
FreeSwitch to tell it not to try "anything fancy" involving uPnP, NATPMP, STUN
etc, and simply accept the network addresses you've specified in the
configuration file.

This would speed up startup time, and also ensure that FreeSwitch did what you
expected it to from the config file, not what it thinks it should do instead.

Those who want it to be clever and work things out for itself can continue to
use the current default mode of operation, of course.


Antony.

Quote:
From: Brian West [mailto:brian@freeswitch.com]
Sent: Wednesday, July 13, 2022 6:04 PM
To: lists@telium.io
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

switch_find_local_ip in switch_utils.c

It's trying to figure out which of your local ipv4 and ipv6 addresses can
reach the internet.

Quote:
On Wed, Jul 13, 2022 at 4:59 PM TTT <lists@telium.io
<mailto:lists@telium.io> > wrote:

What domain name does the code do a lookup for? Perhaps it’s not
resolving. But I’ll check general DNS lookups too.,

From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org
<mailto:freeswitch-users-bounces@lists.freeswitch.org> ] On Behalf Of
Brian West Sent: Wednesday, July 13, 2022 1:56 PM
To: Avi Marcus <avi@avimarcus.net <mailto:avi@avimarcus.net> >
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@lists.freeswitch.org> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

We do a look up against a DNS server in the code to check, maybe double
check that isn't causing an issue?

Quote:
On Wed, Jul 13, 2022 at 12:07 PM Avi Marcus <avi@avimarcus.net
<mailto:avi@avimarcus.net> > wrote:

You can first try looking at the logs at startup time to see what's taking
so long, in freeswitch.log

Quote:
On Wed, Jul 13, 2022 at 7:33 PM TTT <lists@telium.io
<mailto:lists@telium.io> > wrote:

I checked with “ps ax” and confirmed -nonat is running. But I’ll
investigate further using strace, and reload of pieces of the config., to
see where the time is going.

I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing,
control, failover, syncing, IP movement, etc) and that works well, I just
want to speed up the FreeSWITCH recovery speed.

Thanks

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org
<mailto:freeswitch-users-bounces@lists.freeswitch.org> ] On Behalf Of Ken
Rice Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@lists.freeswitch.org> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

are you sure -nonat is taking effect? thats about the only thing that would
take any tome getting freeswitch startes up. without -nonat it takes many
seconds for upnp/nat-pmp to timeout.

the only other way to avoid media loss is to do a full HA setup with proper
floating IP and fencing. theres agoos bit of info on this on the wiki and
various places on the web

Quote:
On Jul 12, 2022, at 08:21, TTT <lists@telium.io <mailto:lists@telium.io> >
wrote:

I’m looking at a crash recovery scenario, and during this startup period
the calls in progress have no audio. (And input media bypass is not an
option due to topology)

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Gregor
Nanger Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@lists.freeswitch.org> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

Just for info. Why is this a problem.

Quote:
On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io <mailto:lists@telium.io> >
wrote:

I found that the FreeSWITCH systemd service file already contains a –nonat
option. Maybe my expectations are out of line, should it take 10 seconds
for FreeSWITCH to fully start? My experience is with Asterisk, which is
less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?


Thanks

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org
<mailto:freeswitch-users-bounces@lists.freeswitch.org> ] On Behalf Of Avi
Marcus Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@lists.freeswitch.org> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.

If you have a direct public IP and don't require NAT, you can instruct
freeswitch to skip this step:
Quote:
Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to
have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you
can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat

-Avi Marcus

On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io
<mailto:lists@telium.io> > wrote:

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to
start which seems long (for a very simple configuration).

_________________________________________________________________________


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
brian at freeswitch.com
Guest





PostPosted: Thu Jul 14, 2022 10:29 am    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

There is no way to disable that function currently. Pull requests are accepted, Stop by at the next office hours meeting next week and discuss it with us.

/b


On Thu, Jul 14, 2022 at 5:37 AM Antony Stone <Antony.Stone@freeswitch.open.source.it (Antony.Stone@freeswitch.open.source.it)> wrote:

Quote:
On Thursday 14 July 2022 at 02:12:54, TTT wrote:

Quote:
That sounds like the cause; this machine has no route to the internet.

Is there a way to skip this test?

I, too, would very much like to see an option which can be passed to
FreeSwitch to tell it not to try "anything fancy" involving uPnP, NATPMP, STUN
etc, and simply accept the network addresses you've specified in the
configuration file.

This would speed up startup time, and also ensure that FreeSwitch did what you
expected it to from the config file, not what it thinks it should do instead.

Those who want it to be clever and work things out for itself can continue to
use the current default mode of operation, of course.


Antony.

Quote:
From: Brian West [mailto:brian@freeswitch.com (brian@freeswitch.com)]
Sent: Wednesday, July 13, 2022 6:04 PM
To: lists@telium.io (lists@telium.io)
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

switch_find_local_ip in switch_utils.c

It's trying to figure out which of your local ipv4 and ipv6 addresses can
reach the internet.

Quote:
On Wed, Jul 13, 2022 at 4:59 PM TTT <lists@telium.io (lists@telium.io)
<mailto:lists@telium.io (lists@telium.io)> > wrote:

What domain name does the code do a lookup for?  Perhaps it’s not
resolving.  But I’ll check general DNS lookups too.,

From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
<mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> ] On Behalf Of
Brian West Sent: Wednesday, July 13, 2022 1:56 PM
To: Avi Marcus <avi@avimarcus.net (avi@avimarcus.net) <mailto:avi@avimarcus.net (avi@avimarcus.net)> >
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
<mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

We do a look up against a DNS server in the code to check, maybe double
check that isn't causing an issue?

Quote:
On Wed, Jul 13, 2022 at 12:07 PM Avi Marcus <avi@avimarcus.net (avi@avimarcus.net)
<mailto:avi@avimarcus.net (avi@avimarcus.net)> > wrote:

You can first try looking at the logs at startup time to see what's taking
so long, in freeswitch.log

Quote:
On Wed, Jul 13, 2022 at 7:33 PM TTT <lists@telium.io (lists@telium.io)
<mailto:lists@telium.io (lists@telium.io)> > wrote:

I checked with “ps ax” and confirmed -nonat is running.  But I’ll
investigate further using strace, and reload of pieces of the config., to
see where the time is going.

I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing,
control, failover, syncing, IP movement, etc) and that works well, I just
want to speed up the FreeSWITCH recovery speed.

Thanks

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
<mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> ] On Behalf Of Ken
Rice Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
<mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

are you sure -nonat is taking effect? thats about the only thing that would
take any tome getting freeswitch startes up. without -nonat it takes many
seconds for  upnp/nat-pmp to timeout.

the only other way to avoid media loss is to do a full HA setup with proper
  floating IP and fencing. theres agoos bit of info on this on the wiki and
various places on the web

Quote:
On Jul 12, 2022, at 08:21, TTT <lists@telium.io (lists@telium.io) <mailto:lists@telium.io (lists@telium.io)> >
wrote:

I’m looking at a crash recovery scenario, and during this startup period
the calls in progress have no audio.  (And input media bypass is not an
option due to topology)

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Gregor
Nanger Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
<mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

Just for info. Why is this a problem.

Quote:
On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io) <mailto:lists@telium.io (lists@telium.io)> >
wrote:

I found that the FreeSWITCH systemd service file already contains a –nonat
option.  Maybe my expectations are out of line, should it take 10 seconds
for FreeSWITCH to fully start?  My experience is with Asterisk, which is
less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?


Thanks

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
<mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> ] On Behalf Of Avi
Marcus Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
<mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.

If you have a direct public IP and don't require NAT, you can instruct
freeswitch to skip this step:
Quote:
Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to
have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you
can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat

-Avi Marcus

On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)
<mailto:lists@telium.io (lists@telium.io)> > wrote:

Is there a guide on how to speed FS loading times?  FS takes 10+ seconds to
start which seems long (for a very simple configuration).

_________________________________________________________________________


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com



--



Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url] [url=https://twitter.com/freeswitch]
Back to top
lists at telium.io
Guest





PostPosted: Thu Jul 14, 2022 11:31 am    Post subject: [Freeswitch-users] Speeding up FreeSWITCH load time Reply with quote

I’m curious – what are the office hours, and how do you meet?  Is this on Slack?


From: FreeSWITCH-users [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian West
Sent: Thursday, July 14, 2022 11:09 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

There is no way to disable that function currently. Pull requests are accepted, Stop by at the next office hours meeting next week and discuss it with us.


/b



On Thu, Jul 14, 2022 at 5:37 AM Antony Stone <Antony.Stone@freeswitch.open.source.it (Antony.Stone@freeswitch.open.source.it)> wrote:
Quote:

On Thursday 14 July 2022 at 02:12:54, TTT wrote:

Quote:
That sounds like the cause; this machine has no route to the internet.

Is there a way to skip this test?

I, too, would very much like to see an option which can be passed to
FreeSwitch to tell it not to try "anything fancy" involving uPnP, NATPMP, STUN
etc, and simply accept the network addresses you've specified in the
configuration file.

This would speed up startup time, and also ensure that FreeSwitch did what you
expected it to from the config file, not what it thinks it should do instead.

Those who want it to be clever and work things out for itself can continue to
use the current default mode of operation, of course.


Antony.

Quote:
From: Brian West [mailto:brian@freeswitch.com (brian@freeswitch.com)]
Sent: Wednesday, July 13, 2022 6:04 PM
To: lists@telium.io (lists@telium.io)
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: Re: [Freeswitch-users] Speeding up FreeSWITCH load time

switch_find_local_ip in switch_utils.c

It's trying to figure out which of your local ipv4 and ipv6 addresses can
reach the internet.

Quote:
On Wed, Jul 13, 2022 at 4:59 PM TTT <lists@telium.io (lists@telium.io)
<mailto:lists@telium.io (lists@telium.io)> > wrote:

What domain name does the code do a lookup for? Perhaps it’s not
resolving. But I’ll check general DNS lookups too.,

From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
<mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> ] On Behalf Of
Brian West Sent: Wednesday, July 13, 2022 1:56 PM
To: Avi Marcus <avi@avimarcus.net (avi@avimarcus.net) <mailto:avi@avimarcus.net (avi@avimarcus.net)> >
Cc: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
<mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

We do a look up against a DNS server in the code to check, maybe double
check that isn't causing an issue?

Quote:
On Wed, Jul 13, 2022 at 12:07 PM Avi Marcus <avi@avimarcus.net (avi@avimarcus.net)
<mailto:avi@avimarcus.net (avi@avimarcus.net)> > wrote:

You can first try looking at the logs at startup time to see what's taking
so long, in freeswitch.log

Quote:
On Wed, Jul 13, 2022 at 7:33 PM TTT <lists@telium.io (lists@telium.io)
<mailto:lists@telium.io (lists@telium.io)> > wrote:

I checked with “ps ax” and confirmed -nonat is running. But I’ll
investigate further using strace, and reload of pieces of the config., to
see where the time is going.

I’m using HAfs (https://telium.io/hafs) to do the clustering (sensing,
control, failover, syncing, IP movement, etc) and that works well, I just
want to speed up the FreeSWITCH recovery speed.

Thanks

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
<mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> ] On Behalf Of Ken
Rice Sent: Tuesday, July 12, 2022 9:05 PM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
<mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

are you sure -nonat is taking effect? thats about the only thing that would
take any tome getting freeswitch startes up. without -nonat it takes many
seconds for upnp/nat-pmp to timeout.

the only other way to avoid media loss is to do a full HA setup with proper
floating IP and fencing. theres agoos bit of info on this on the wiki and
various places on the web

Quote:
On Jul 12, 2022, at 08:21, TTT <lists@telium.io (lists@telium.io) <mailto:lists@telium.io (lists@telium.io)> >
wrote:

I’m looking at a crash recovery scenario, and during this startup period
the calls in progress have no audio. (And input media bypass is not an
option due to topology)

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Gregor
Nanger Sent: Tuesday, July 12, 2022 8:58 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
<mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

Just for info. Why is this a problem.

Quote:
On Tue, 12 Jul 2022, 14:54 TTT, <lists@telium.io (lists@telium.io) <mailto:lists@telium.io (lists@telium.io)> >
wrote:

I found that the FreeSWITCH systemd service file already contains a –nonat
option. Maybe my expectations are out of line, should it take 10 seconds
for FreeSWITCH to fully start? My experience is with Asterisk, which is
less than half of that to start.

If that’s normal, how can I diagnose what is consuming the start time?


Thanks

Quote:
From: FreeSWITCH-users
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
<mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)> ] On Behalf Of Avi
Marcus Sent: Monday, July 11, 2022 3:17 AM
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
<mailto:freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)> > Subject: Re:
[Freeswitch-users] Speeding up FreeSWITCH load time

It's probably taking time to discover NAT.

If you have a direct public IP and don't require NAT, you can instruct
freeswitch to skip this step:
Quote:
Quote:
To turn it off use "-nonat" to start freeswitch. If you still prefer to
have NAT detection, but avoiding the port mapping using UPnP/NAT-PMP you
can use "-nonatmap".

via: https://freeswitch.org/confluence/display/FREESWITCH/Auto+Nat

-Avi Marcus

On Mon, Jul 11, 2022 at 4:48 AM TTT <lists@telium.io (lists@telium.io)
<mailto:lists@telium.io (lists@telium.io)> > wrote:

Is there a guide on how to speed FS loading times? FS takes 10+ seconds to
start which seems long (for a very simple configuration).

_________________________________________________________________________


_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com





--


Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com (sales@freeswitch.com)
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
Email: brian@freeswitch.com (brian@freeswitch.com)
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com
[/url][url=https://twitter.com/freeswitch]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services