{"id":182270,"date":"2013-06-12T13:22:02","date_gmt":"2013-06-12T09:22:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=182270"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=182270","title":{"rendered":"<span class=\"post_title\">Asterisk \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u2014 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0447\u0442\u0443<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/8c4\/24e\/d88\/8c424ed88a0cfd129dbafff0ccefcf75.png\"\/><br \/>  \u041a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u043a\u043e\u043b\u044b \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u043d\u0443\u0436\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441. \u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u043f\u0440\u043e\u0441\u0442\u043e(\u043e\u043d\u0438 \u0441\u0430\u043c\u0438 \u0434\u043e\u0437\u0432\u0430\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f), \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043e(\u043f\u043e\u043a\u0430 \u043a\u0430\u043d\u0430\u043b \u043d\u0435 \u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f), \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0435 \u043b\u0438\u043d\u0438\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b (\u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0443 \u0432\u0430\u0441 \u0432\u0438\u0441\u044f\u0442 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c sip \u043d\u043e\u043c\u0435\u0440\u0435 \u0441 \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u0435\u0441\u0441\u0438\u0439.) \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u2014 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0437\u0430\u044f\u0432\u043a\u0435. \u0418 \u0435\u0441\u043b\u0438 \u0443 \u0430\u0434\u043c\u0438\u043d\u0430 \u0437\u0430\u044f\u0432\u043e\u043a \u043c\u043e\u0440\u0435, \u0430 \u0442\u043e \u0438 \u0437\u0430\u0431\u043e\u043b\u0435\u043b (\u0443\u0441\u043d\u0443\u043b, \u043d\u0430\u043f\u0438\u043b\u0441\u044f, \u0443\u043c\u0435\u0440), \u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u043a\u043e\u043b\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0443 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0442\u043e\u0436\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439. \u0418 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u044b\u0432\u0448\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u0442 \u043a \u043d\u0435\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f, \u0430 \u0442\u043e \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0430\u043c \u0441\u0432\u043e\u0439 \u043c\u0438\u0442\u0438\u043d\u0433, \u0447\u0442\u043e \u043d\u0438 \u0435\u0441\u0442\u044c \u0433\u0443\u0434. \u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u043c\u044b\u0441\u043b\u0438 \u043a\u0440\u0443\u0442\u0438\u043b\u0438\u0441\u044c \u0432 \u043c\u043e\u0435\u0439 \u0433\u043e\u043b\u043e\u0432\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043c\u043f\u0435\u0437\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u043a\u043e\u043b\u043e\u0432. \u0418 \u0440\u0435\u0448\u0435\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0442\u0435\u043b\u0435\u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. <br \/>  <a name=\"habracut\"><\/a><br \/>  \u041d\u043e! \u0414\u0435\u043b\u0430\u0442\u044c \u043c\u044b \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0447\u0442\u0443. \u0421\u0445\u0435\u043c\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0438\u0448\u0435\u0442 \u043f\u0438\u0441\u044c\u043c\u043e \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0442\u0435\u043c\u043e\u0439 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441. \u0427\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0435\u043c\u0443 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043e\u0442\u0432\u0435\u0442 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0442\u0435\u043b\u0435\u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438. <br \/>  \u0414\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043b\u0438\u0446\u0430 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u0438:<br \/>  Crontab \u2014 \u0425\u0440\u043e\u043d\u043e\u0433\u043e\u043b\u0438\u043a. \u041f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044c \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 bash \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b.<br \/>  Fetchmail \u2014 \u041d\u0435\u0441\u0447\u0430\u0441\u0442\u043d\u044b\u0439 \u043f\u0440\u043e\u043b\u0435\u0442\u0430\u0440\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0433\u043e\u043d\u044f\u044e\u0442 \u043d\u0430 \u043f\u043e\u0447\u0442\u0443 \u0438 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u0430\u044f \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0434\u043e\u043b\u0430\u0433\u0430 \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d \u0442\u0430\u0449\u0438\u0442\u044c \u043d\u0435\u043f\u043e\u0434\u044a\u0435\u043c\u043d\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 MTA.<br \/>  Sendmail \u2014 \u0442\u0430 \u0441\u0430\u043c\u0430\u044f MTA \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 fetchmail \u0442\u0430\u0441\u043a\u0430\u0435\u0442 \u043f\u0438\u0441\u044c\u043c\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440.<br \/>  Sendemail \u2014 \u043b\u0435\u0433\u043a\u043e\u043c\u044b\u0441\u043b\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0444\u0443\u0440\u0441\u0435\u0442\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f, \u0434\u0443\u043c\u0430\u044f \u0447\u0442\u043e \u0448\u043b\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043b\u044e\u0431\u043e\u0432\u043d\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u043a\u0438, \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u0431\u0443\u0434\u0443\u0447\u0438 \u0436\u0435\u0441\u0442\u043e\u043a\u043e \u043e\u0431\u043c\u0430\u043d\u0443\u0442\u0430\u044f bash \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438.<br \/>  Bash \u0441\u043a\u0440\u0438\u043f\u0442 \u2014 \u0437\u043b\u043e\u0441\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0442\u043e\u0440 \u0432\u0441\u0435\u0445 \u0432\u044b\u0448\u0435\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u0436\u0435\u0439. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u0442\u043e\u0436\u0435 \u043d\u0435 \u0432 \u043c\u0430\u0441\u043b\u0435 \u043a\u0430\u0442\u0430\u0435\u0442\u0441\u044f, \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u0438\u0441\u044c\u043c\u0430, \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0438\u0445 \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438.<\/p>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c fetchmail. \u0410 sendmail \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u0446\u0435\u043b\u0435\u0439 \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e. \u042f \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0441\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435\u0439 (http:\/\/www.opennet.ru\/base\/net\/fetchmail_setup.txt.html) \u0447\u0435\u0433\u043e \u0438 \u0432\u0430\u043c \u0436\u0435\u043b\u0430\u044e. \u0414\u043b\u044f \u0442\u0435\u0445 \u0436\u0435 \u043a\u043e\u043c\u0443 \u043d\u0435\u043a\u043e\u0433\u0434\u0430: \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \/etc\/asterisk \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b .fetchmailrc \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443:<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440.  <\/p>\n<pre><code class=\"bash\">\tpoll address.mail.server \tport 995         proto POP3         user 'account'         pass 'password'         ssl <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 fetchmail -k. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \/var\/spool\/mail\/username \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0435 \u043f\u0438\u0441\u044c\u043c\u043e.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435. Crontab \u043a\u0430\u0436\u0434\u044b\u0435 10 \u043c\u0438\u043d\u0443\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0441\u0440\u0438\u043f\u0442. \u0410 \u043e\u043a\u043e\u043b\u043e 12 \u043d\u043e\u0447\u0438 \u0441\u0442\u0438\u0440\u0430\u0435\u0442 \u0441\u0447\u0435\u0442\u0447\u0438\u043a \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0438 \u0444\u0430\u0439\u043b \u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f\u043c\u0438.<\/p>\n<p>  *\/10 * * * * cd \/opt\/bbb\/meetings\/ &#038;&#038; .\/mkmeet<br \/>  59 23 * * * cat \/dev\/null &gt; \/etc\/asterisk\/meetme_additional.conf &#038;&#038; cat \/dev\/null &gt; \/opt\/neoflex\/metings\/meetcount<\/p>\n<p>  \u041d\u0443 \u0438 \u043d\u0430\u0448 \u0436\u0435\u0441\u0442\u043e\u043a\u0438\u0439 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0442\u043e\u0440:<\/p>\n<pre><code class=\"bash\">#!\/bin\/bash  #\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u0447\u0442\u0443 \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u0438\u0441\u044c\u043c\u0430 \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 fetchmail -F  #\u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u0438\u0441\u044c\u043c\u0430, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b echo | sed -n '\/From:\/p; \/Subject:\/p' \/var\/spool\/mail\/username | sed s'\/From\/from\/'g | sed s'\/Subject\/subject\/'g | sed 's\/ *(.*)\/\/; s\/&gt;.*\/\/; s\/.*[:&lt;] *\/\/' | sed s'\/\\:\/ \/'g &gt;&gt; tmp.file  #\u041f\u0443\u0442\u044c \u043a \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c\u0443 \u0444\u0430\u0439\u043b\u0443 bdpath=\/opt\/bbb\/meetings  #\u0412\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b num=(`cat $bdpath\/tmp.file`)  #\u0421\u0447\u0435\u0442\u0447\u0438\u043a \u043d\u043e\u043c\u0435\u0440\u0430 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 meetc=(`cat $bdpath\/meetcount`)  #\u0415\u0441\u043b\u0438 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u043d\u043e\u043b\u044c, \u0442\u043e tmpconf = 5000, \u0438\u043d\u0430\u0447\u0435 \u0440\u0430\u0432\u0435\u043d \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0443 if [[ &quot;$meetc&quot; -le &quot;0&quot; ]]; then  tmpconf=&quot;5000&quot; echo &quot;${tmpconf[$c]}&quot; &gt; meetcount else tmpconf=$meetc fi  #\u0417\u0430\u0434\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 a=0 b=`expr $a + 1` c=0  #\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0446\u0438\u043a\u043b while [ ${num[$a]} ] do  #\u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u0440\u043e\u043b\u044c FLOOR=10000 pass=0 while [ &quot;$pass&quot; -le $FLOOR ] do pass=$RANDOM done  #\u0417\u0430\u0434\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 mail=${num[$a]} subj=&quot;${num[$b]}&quot; cut=`echo ${num[$a]} | sed 's\/^.*@\/\/'`  #\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u043f\u0438\u0441\u044c\u043c\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u043e\u0442 &quot;\u043d\u0430\u0448\u0438\u0445&quot;, \u0430 \u043d\u0435 \u043a\u043e\u0433\u043e \u043f\u043e\u043f\u0430\u043b\u043e. if [[ &quot;$cut&quot; != &quot;firma.ru&quot; ]]; then subj=&quot;khuy&quot; fi  \u0415\u0441\u043b\u0438 \u0442\u0435\u043c\u0430 \u043f\u0438\u0441\u044c\u043c\u0430 meetme, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0434\u0430\u043d\u043d\u044b\u0435. if [[ &quot;$subj&quot; == &quot;meetme&quot; ]]; then  echo &quot;conf =&gt; ${tmpconf[$c]},$pass&quot; &gt;&gt; \/etc\/asterisk\/meetme_additional.conf \/usr\/sbin\/asterisk -rx &quot;reload&quot; sendemail -f asterisk@firma.ru  -t $mail -o message-charset=utf-8 -o message-content-type=html -u &quot;Conference call was successfully created&quot; -m &quot;&lt;p&gt;\u0414\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438\\ &lt;\/p&gt;&lt;p&gt;\u0412\u043d\u0435\u0448\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 - 8(XXX)XXX-XXXX&lt;br&gt;\u0412\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 - 550&lt;br&gt;\u041d\u043e\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 - ${tmpconf[$c]}&lt;br&gt;\u043f\u0430\u0440\u043e\u043b\u044c - $pass&lt;br&gt;\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e\\  https:\/\/wiki.firma.ru\/pages\/viewpage.action?pageId=28066722&lt;p&gt;&lt;b&gt;\u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u043c!!! \u0421\u0440\u043e\u043a \u0436\u0438\u0437\u043d\u0438 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438 \u0434\u043e 23:59 \u0441\u0435\u0433\u043e\u0434\u043d\u044f\u0448\u043d\u0435\u0433\u043e \u0434\u043d\u044f.&lt;\/b&gt;&lt;\/p&gt;&quot; -s mail.firma.ru -xu asterisk@firma.ru -xp &quot;password&quot; echo `date` $mail ${tmpconf[$c]} &gt;&gt; \/var\/log\/tmpmeetings.log tmpconf=`expr ${tmpconf[$c]} + 1` fi  a=`expr $a + 2` b=`expr $b + 2`  done  rm tmp.file echo &quot;$tmpconf&quot; &gt; meetcount cat \/dev\/null &gt; \/var\/spool\/mail\/root <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435. \u0422\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0441\u044b\u043b\u0430\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043c\u043f\u0435\u0437\u043d\u043e\u0435 \u0437\u0430\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0435\u043b\u0435\u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0438\u2026 \u041d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441 :))    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/182270\/\"> http:\/\/habrahabr.ru\/post\/182270\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/8c4\/24e\/d88\/8c424ed88a0cfd129dbafff0ccefcf75.png\"\/><br \/>  \u041a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u043a\u043e\u043b\u044b \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u043d\u0443\u0436\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441. \u0421\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u043f\u0440\u043e\u0441\u0442\u043e(\u043e\u043d\u0438 \u0441\u0430\u043c\u0438 \u0434\u043e\u0437\u0432\u0430\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0442\u0441\u044f), \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043e(\u043f\u043e\u043a\u0430 \u043a\u0430\u043d\u0430\u043b \u043d\u0435 \u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f), \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0435 \u043b\u0438\u043d\u0438\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b (\u0435\u0441\u043b\u0438 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0443 \u0432\u0430\u0441 \u0432\u0438\u0441\u044f\u0442 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c sip \u043d\u043e\u043c\u0435\u0440\u0435 \u0441 \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u0435\u0441\u0441\u0438\u0439.) \u0415\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u0441\u0442\u0432\u043e \u2014 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0437\u0430\u044f\u0432\u043a\u0435. \u0418 \u0435\u0441\u043b\u0438 \u0443 \u0430\u0434\u043c\u0438\u043d\u0430 \u0437\u0430\u044f\u0432\u043e\u043a \u043c\u043e\u0440\u0435, \u0430 \u0442\u043e \u0438 \u0437\u0430\u0431\u043e\u043b\u0435\u043b (\u0443\u0441\u043d\u0443\u043b, \u043d\u0430\u043f\u0438\u043b\u0441\u044f, \u0443\u043c\u0435\u0440), \u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u043a\u043e\u043b\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0437\u0430\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u0430\u0440\u043e\u043b\u044c \u0443 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0442\u043e\u0436\u0435 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0439. \u0418 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u044b\u0432\u0448\u0438\u0439 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043c\u043e\u0436\u0435\u0442 \u043a \u043d\u0435\u0439 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f, \u0430 \u0442\u043e \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0442\u0430\u043c \u0441\u0432\u043e\u0439 \u043c\u0438\u0442\u0438\u043d\u0433, \u0447\u0442\u043e \u043d\u0438 \u0435\u0441\u0442\u044c \u0433\u0443\u0434. \u0412\u043e\u0442 \u0442\u0430\u043a\u0438\u0435 \u043c\u044b\u0441\u043b\u0438 \u043a\u0440\u0443\u0442\u0438\u043b\u0438\u0441\u044c \u0432 \u043c\u043e\u0435\u0439 \u0433\u043e\u043b\u043e\u0432\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043c\u043f\u0435\u0437\u043d\u043e\u0433\u043e \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u043a\u043e\u043b\u043e\u0432. \u0418 \u0440\u0435\u0448\u0435\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0442\u0435\u043b\u0435\u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c.   <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-182270","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/182270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=182270"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/182270\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=182270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=182270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=182270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}