Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:services:voip:freeswitch [2018/08/05 11:18] – [freeswitch-stable init configuration] micmac1 | docs:guide-user:services:voip:freeswitch [2018/11/20 09:44] – [freeswitch-stable init configuration] better warning about write wear and added database storage option bobafetthotmail | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| </ | </ | ||
| - | ===== freeswitch-stable init command line switches | + | ===== freeswitch-stable init configuration |
| - | In ''/ | + | The file ''/ |
| - | The file also contains the line '' | + | <WRAP round important> |
| + | **WARNING: | ||
| + | |||
| + | If that is not possible they can also be kept in the device's RAM (working memory), on a //tmpfs// filesystem ('' | ||
| + | The downside of the //tmpfs// approach is that the databases will be lost when the device loses power or is restarted, also the RAM used by these databases will decrease the amount of available RAM of the system by a few MB. Please consider your options and requirements. | ||
| + | </ | ||
| + | |||
| + | Last but not least, you can select whether the output streams (//STDOUT// and //STDERR//) that are sent to the init process ('' | ||
| ===== freeswitch-stable packages ===== | ===== freeswitch-stable packages ===== | ||
| Line 18: | Line 25: | ||
| - | FreeSWITCH has a multitude of modules. OpenWrt typically runs on hardware that is somewhat restricted, i.e. memory, storage and processing power are limited. Luckily only a few packages are needed for basic functionality (depending on what you want it to do). Here is a list of some modules | + | FreeSWITCH has a multitude of modules. OpenWrt typically runs on hardware that is somewhat restricted, i.e. memory, storage and processing power are limited. Luckily only a few packages are needed for basic functionality (depending on what you want it to do). Here is a list of modules you might be interested in: |
| * [[https:// | * [[https:// | ||
| Line 47: | Line 54: | ||
| ==== Utilities ==== | ==== Utilities ==== | ||
| - | There are also a number of utilities available. | + | There are also a number of utilities available. |
| * [[https:// | * [[https:// | ||
| Line 61: | Line 68: | ||
| Any of these will install the corresponding sample configuration to ''/ | Any of these will install the corresponding sample configuration to ''/ | ||
| - | ==== Hotplug ==== | + | ===== Hotplug ===== |
| + | |||
| + | The // | ||
| + | |||
| + | Note: It may be advisable to disable the init autostart, to avoid FreeSWITCH beeing started twice when booting: | ||
| + | |||
| + | < | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | The hotplug script can check the following extra conditions: | ||
| + | |||
| + | * a device (perhaps a USB stick) is connected at a given mount point (for instance ''/ | ||
| + | * the system clock is accurate (needs '' | ||
| + | |||
| + | If you add any of these conditions the hotplug script will only start FreeSWITCH if the condition is met. You can also specify the timeout after which it considers a condition failed (defaults to 60 seconds). | ||
| + | |||
| + | Below a log excerpt from the hotplug script in action: | ||
| + | |||
| + | < | ||
| + | Sat Nov 17 11:24:43 2018 user.notice freeswitch-hotplug: | ||
| + | Sat Nov 17 11:24:43 2018 user.notice freeswitch-hotplug: | ||
| + | Sat Nov 17 11:24:43 2018 user.notice freeswitch-hotplug: | ||
| + | Sat Nov 17 11:24:48 2018 user.notice freeswitch-hotplug: | ||
| + | Sat Nov 17 11:24:48 2018 user.notice freeswitch-hotplug: | ||
| + | Sat Nov 17 11:24:53 2018 user.notice freeswitch-hotplug: | ||
| + | Sat Nov 17 11:24:53 2018 user.notice freeswitch-hotplug: | ||
| + | Sat Nov 17 11:24:53 2018 user.notice freeswitch-hotplug: | ||
| + | Sat Nov 17 11:24:54 2018 user.notice freeswitch-hotplug: | ||
| + | </ | ||
| + | |||
| + | Both extra conditions were configured. A device was already mounted at ''/ | ||
| - | // | ||