Make Asterisk smaller lighter to use less system resources

I have asterisk installed on my openwrt device and it works fine but as I install other things my CPU and RAM are maxing out and my device is crashing. I was looking for ideas to make my Asterisk install less resource hungry.
Here is what packages I have installed -

asterisk15 asterisk15-bridge-simple asterisk15-codec-alaw asterisk15-codec-ulaw asterisk15-res-rtp-asterisk asterisk15-chan-sip asterisk15-func-db asterisk15-format-gsm asterisk15-format-pcm

I have 2 VOIP providers and 2 connections to other asterisk devices.

Is there anything in the settings (or anywhere else) that I can change to help make asterisk use less system resources?

Thank you to anyone who has any ideas. :slight_smile:

There aren’t any runtime settings except for not loading tons of modules that are unused. From a build perspective there is the LOW_MEMORY compiler flag in menuselect but whether that would have a material effect I don’t know.

2 Likes

It probably won’t make much difference, but there should be little reason to include gsm, as a codec.

1 Like

Thank you both for the helpful reply’s.
I will also try to reduce the device services.
My other option is to get a new router, I was looking at the Flint2 but have not found anyone who has put asterisk on it. Not sure if asterisk is available in default OpenWrt repositories or where to get it if it is not.

I think it is available in unmodified openwrt. I deployed the most recent version of openwrt on a NanoPi R5S and remember seeing Asterisk as available for install. It’s a travel router so I only install what I requure

1 Like

Yes it is in the repositories here. hopefully it will work on the Flint2.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.