3r33333. make cd-sounds-install make cd-sounds-ru-install cd-moh-install 3r33375. 3r33411. 3r33434. At this point, the installation process can be said to be complete. 3r33411. 3r33434. To prevent small database files from being written to flash memory and increase its lifespan, add the following line in /etc /fstab: 3r3114. 3r33434. 3r33333. tmpfs /usr /local /freeswitch /db tmpfs defaults ???r3r3411. 3r33434. 3r33411. 3r33434. After restarting, temporary files created by FS will be written to RAM. 3r33411. 3r33434. 3r33411. 3r33434. 3r33383. System setup after installing FreeSWITCH. 3r33411. 3r33434. There is a warning in the FreeSWITCH documentation, so I do not recommend trying to run FS immediately after installation. 3r33411. 3r33434. **Attention! If you installed FreeSWITCH from source code, you need to set permissions on directories and files. If you start FreeSWITCH after installation, it will launch as 'root' by default. It is necessary to change the rights to directories before the initial launch. ** 3r33411. 3r33434. Create a new user and set the rights and change the owners to the files FreeSwitch 3r33434.
3r33333. cd /usr /local groupadd freeswitch adduser --quiet --system --home /usr /local /freeswitch --gecos "FreeSWITCH open source softswitch" --ingroup freeswitch freeswitch --disabled-password chown -R freeswitch: freeswitch /usr /local /freeswitch / chmod -R ug = rwX, o = /usr /local /freeswitch / chmod -R u = rwx, g = rx /usr /local /freeswitch /bin /* 3r33375. 3r33411. 3r33434. Next, copy the auto start file to systemd, rename it, change the access rights. 3r33411. 3r33434. FreeSWITCH comes with a systemd file, which, when properly configured during startup, controls FreeSWITCH and starts it as a daemon, restarts it if FS does not work. 3r33411. 3r33434.
3r33333. cp /home/pi/freeswitch/debian/freeswitch-systemd.freeswitch.service /etc/systemd/system/freeswitch.service chmod + x /etc/systemd/system/freeswitch.service 3r33375. 3r33411. 3r33434. Make a link to the startup file and create a link to the startup file of the console FS: 3r33434.
3r33333. systemctl enable freeswitch systemctl daemon-reload systemctl start freeswitch 3r33375. 3r33411. 3r33434. After that, I still didn’t start the FS, gave an error with the * .pid file, I just edited the startup file nano /etc/systemd/system/freeswitch.service 3r33411. 3r33434. comment out the following line in the file: # PIDFile = /run /freeswitch /freeswitch.pid. 3r33411. 3r33434. reboot 3r33411. 3r33434. After the restart, we give the command again, enter through sudo -i, run htop and see the running FreeSWITCH processes. 3r33411. 3r33434. 3r33411. 3r33434. A little about the initial settings: 3r33434. After installing FreeSWITCH is ready to work, it has 20 subscribers with the numbers 1000-1019 by default. The default password for VoIP subscribers is specified in the file 3r3251. /usr/local/freeswitch/conf/vars.xml [/i] and is equal to 1234. In the directory /usr /local /freeswitch /conf /derectory /default There are 20 xml files, each of which is responsible for the subscriber with the corresponding number. We can set a password for each subscriber. By changing the file name and the data in its contents, we can change the subscriber numbering and capacity. 3r33411. 3r33434. If you need to do this, then after editing the files, you need to start the FreeSwitch console: fs_cli and in the console window give the command reloadxml . With this command, FS rereads the XML files and accepts the changes. 3r33411. 3r33434. ctrl + D or by typing commands /exit or /quit 3r33411. 3r33434. 3r33411. 3r33434. Now let's try to connect IP subscribers. To check the connection, I used on a PC under Windows: MicroSIP and PhonerLite softphones and on a mobile phone running Android CSipSimle, the settings are as follows (account name is a phone number, SIP server is our Raspberry address: 3r33434. A green icon in the bottom status bar of these programs means that the subscriber is authorized on our VoIP server and is ready for communication. 3r33411. 3r33434. 3r33434. modules.conf.xml 3r33434. Edit it, I disabled the video codecs and connected the Russian language module as well as mod_xml_rpc. 3r33411. 3r33434.
3r33333. nano /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml > 3r33434. You can enable the module by deleting the characters 3r33375. in the line before and after the module name. Disable - by placing these symbols on the contrary, a small example, the first module is enabled, the second is disabled: 3r33434.
3r33333. 3r3303. 3r33434. 3r3305. -> 3r33375. 3r33411. 3r33434. After that we edit, if you want to change, simple settings (port, user, password) of the module itself in the file xml_rpc.conf.xml, which is located in the same directory. 3r33411. 3r33434. 3r33333. nano /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml 3r33411. 3r33434. By default: the user is freeswitch, the password works, port 8080. 3r33434. Reboot or friswitch or the server itself. You can do this in several ways: by rebooting the entire system (reboot) using the service control commands: systemctl stop freeswitch then systemctl start freeswitch or systemctl restart freeswitch . 3r33411. 3r33434. After that typing in the browser http: //IP_RASPBERRY: 8080 /portal /index.html # and logging in as a user freeswitch with a password works, we get into the small administrative panel FreesWITCH. We can see the status, registered users, etc. 3r33411. 3r33434. 3r33333. 3r33411. 3r33434. Let's try a little further to go: 3r33434. Having typed in the browser request we get the display of the status FS: 3r33434.
3r33333. http: //freeswitch: works @ IP_RASPBERRY: 8080 /webapi /sofia? status% 20profile% 20internal 3r33375. 3r33411. 3r33434. 3r33333. 3r33411. 3r33434. The syntax is pretty simple; if a command contains more than one word, then the first and second word are separated by a question mark, and the rest by spaces. 3r33411. 3r33434. Let's try to execute this command from MajorDoMo: from the main page of the “Smart Home” we go to Control Panel - Console 3r33411. 3r33434. In her recruit the team: 3r33434.
3r33434. In response, we get the status of our VoIP server. 3r33411. 3r33434. 3r33333. 3r33411. 3r33434. Now let's try the following experiment: 3r3r114. 3r33434. The idea is to initiate a call (using the originate function) from the “Smart Home” side to the subscriber with the number 1001 (MicroSip), and then transfer the call to the dialing plan for outgoing calls to the 1002 (PhonerLite) subscriber. The API command looks like this: originate user /??? XML default initiating a call to the console number 100? after raising (auto-lifting) the tube, the number is called and 1002 from the default dial plan. 3r33411. 3r33434. We translate it into a clear view for MajorDoMo and browser: 3r33434.
3r33333. GetURL ("http: //freeswitch: [email protected]???.60: 8080 /webapi /originate? User /1001% 201002% 20XML% 20default") 3r33375. 3r33411. 3r33434. Initially, one softphone is ringing, after a few seconds, the second is ringing. 3r33411. 3r33434. 3r33380. 3r33411. 3r33434. 3r33383. As a conclusion, or a small practical implementation. 3r33411. 3r33434. Not so long ago, I had a need to organize communication with a person who could not physically call (dial a number) on a cell phone. At the moment, the need for this has disappeared, but still decided to check the possibility of implementation. Using a VoIP gateway (a more budgetary solution on FXS terminals or a more expensive GSM gateway), the wireless button of the “smart home” can be realized if you wish. 3r33411. 3r33434. The second option: MajorDoMo smart home system has voice assistant Alice. Now you can try to connect the "Smart Home" with the owner and his mobile phone through public networks. 3r33411. 3r33434. Few references 3r33434. → The site of the company ClueCon Developer FreeSWITCH 3r33411. 3r33434. → English documentation FreeSWITCH 3r33411. 3r33434. → Website developer MajorDoMo 3r33411. 3r33434. → Part One: A small step-by-step instruction on how to install the Smart Home operating system based on the Raspberry single-board computer, Z-Way RaZberry module, and MajorDoMo software. 3r33411. 3r33434. → Part Two: continued: Z-Way RaZberry module and MajorDoMo software. 3r33411. 3r33434. → Part Three: Continuing to create a wireless “smart home” 3r33421. 3r33434. 3r33434. 3r33418. ! function (e) {function t (t, n) {if (! (n in e)) {for (var r, a = e.document, i = a.scripts, o = i.length; o-- ;) if (-1! == i[o].src.indexOf (t)) {r = i[o]; break} if (! r) {r = a.createElement ("script"), r.type = "text /jаvascript", r.async =! ? r.defer =! ? r.src = t, r.charset = "UTF-8"; var d = function () {var e = a.getElementsByTagName ("script")[0]; e.parentNode.insertBefore (r, e)}; "[object Opera]" == e.opera? a.addEventListener? a.addEventListener ("DOMContentLoaded", d,! 1): e.attachEvent ("onload", d ): d ()}}} t ("//mediator.mail.ru/script/2820404/"""_mediator") () (); 3r33434. 3r33434. 3r33421. 3r33434. 3r33434. 3r33434. 3r33434.
At Lopez Dario, we strive to serve customers with our online business consultancy services, project management, bookkeeping, & accounting for small businesses. Check Out: Business Consultancy England