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/11/17 09:53] – [freeswitch-stable init command line switches] 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 |
| The file ''/ | The file ''/ | ||
| - | Last but not least, you can select whether the output streams that are sent to the init process (procd) shall be forwarded to the system logger, STDOUT and STDERR respectively. Defaults to enabled | + | <WRAP round important> |
| + | **WARNING: | ||
| + | |||
| + | If that is not possible they can also be kept in the device' | ||
| + | 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 | ||
| ===== 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 |
| - | Here is what is visible in the OpenWrt | + | Below a log excerpt from the hotplug script |
| - | '' | + | < |
| - | Sun Sep 9 10:06:28 2018 user.notice freeswitch-hotplug: | + | Sat Nov 17 11:24:43 2018 user.notice freeswitch-hotplug: |
| - | Sun Sep 9 10:06:28 2018 user.notice freeswitch-hotplug: | + | Sat Nov 17 11:24:43 2018 user.notice |
| - | Sun Sep 9 10:06:28 2018 user.notice freeswitch-hotplug: | + | Sat Nov 17 11:24:43 2018 user.notice freeswitch-hotplug: |
| - | Sun Sep 9 10:06:28 2018 user.notice freeswitch-hotplug: | + | Sat Nov 17 11:24:48 2018 user.notice |
| - | Sun Sep 9 10:06:28 2018 user.notice freeswitch-hotplug: | + | Sat Nov 17 11:24:48 2018 user.notice freeswitch-hotplug: |
| - | Sun Sep 9 10:06:29 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: | ||
| + | </ | ||
| - | FreeSWITCH | + | Both extra conditions were configured. A device |
| - | The first thing that happens is that FreeSWITCH is stopped if it is already running. Then the script checks if a device is mounted at /mnt/usb (if you don't specify a mount point this will be skipped, obviously). Next it tests if the system time is in sync (if you enabled the ntpd check). | ||
| - | Finally FreeSWITCH is started again. Be aware that restarting FreeSWITCH can take a few minutes, because it will go through its databases and check different states, e.g. of calls and registrations. Check with '' | ||