{"id":274904,"date":"2016-02-25T09:15:02","date_gmt":"2016-02-25T06:15:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=274904"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=274904","title":{"rendered":"IP \u0410\u0422\u0421 Askozia \u0438 Push \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0432 Telegram"},"content":{"rendered":"<p>       \u0427\u0430\u0441\u0442\u044c \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u043d\u0435 \u043e\u0444\u0438\u0441\u0430: \u0432\u044b\u0435\u0437\u0434\u044b \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c, \u0440\u0430\u0431\u043e\u0442\u0430 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445. \u0414\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430\u043c\u0438 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c GSM \u0448\u043b\u044e\u0437, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043a \u043d\u0430\u0448\u0435\u0439 \u0410\u0422\u0421 Askozia. \u041b\u044e\u0431\u043e\u0439 \u0432\u044b\u0437\u043e\u0432, \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0432\u0448\u0438\u0439 \u043e\u0442 \u043a\u043b\u0438\u0435\u0442\u0430, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u043e\u0432\u0430\u043d \u043d\u0430 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u201c\u0432 \u043f\u043e\u043b\u0435\u201d. <\/p>\n<p>  \u0412 \u0442\u0430\u043a\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f: \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a, \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u0432\u0438\u0434\u0438\u0442 \u043d\u043e\u043c\u0435\u0440 SIM \u043a\u0430\u0440\u0442\u044b, \u0430 \u043d\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u041d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432. <\/p>\n<p>  \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Telegram \u0434\u043b\u044f \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043e \u0437\u0432\u043e\u043d\u043a\u0430\u0445. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 Askozia + Telegram + 1C: \u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435. <br \/>  <a name=\"habracut\"><\/a><\/p>\n<h4><b>\u041a\u0430\u043a \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442<\/b><\/h4>\n<p>  \u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0438\u0441\u0443 \u0447\u0435\u0440\u0435\u0437 Telegram. \u041d\u0430\u043f\u0438\u0441\u0430\u0432 \u0431\u043e\u0442\u0443, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f. <br \/>  \u0424\u043e\u0440\u043c\u0430\u0442 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u2014 \u201c<b>\u042f &lt;\u041d\u043e\u043c\u0435\u0440\u0422\u0435\u043b\u0435\u0444\u043e\u043d\u0430&gt;<\/b>\u201d:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1b9\/93e\/a18\/1b993ea18d8a4947b4db6ecfc6e9421c.png\" alt=\"image\"\/><\/p>\n<p>  \u0411\u043e\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0438 \u0441 \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0437\u043d\u0430\u0435\u0442 \u0432 \u043a\u0430\u043a\u043e\u0439 \u0447\u0430\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f.<br \/>  \u0415\u0441\u043b\u0438 \u043a\u0442\u043e \u043b\u0438\u0431\u043e \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u043e\u0432\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432 \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430, \u0432 \u0447\u0430\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f25\/321\/d79\/f25321d79b394252a1bf1502bb84fa00.png\" alt=\"image\"\/><\/p>\n<p>  <b>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/b>, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0438\u043c\u0435\u043d\u0438 \u0437\u0432\u043e\u043d\u044f\u0449\u0435\u0433\u043e \u0438 \u0435\u0433\u043e \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (\u0438\u043c\u044f) \u0437\u0432\u043e\u043d\u044f\u0449\u0435\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u0437\u044f\u0442\u043e \u0438\u0437 1\u0421:CRM, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, callerid(name) \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438\u0437 1C:CRM, \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u044b\u043b \u043e\u043f\u0438\u0441\u0430\u043d  <a href=\"https:\/\/habrahabr.ru\/users\/jorikfon\/\" class=\"user_link\">jorikfon<\/a> \u0432 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u044c\u0435 (\u0441\u043c. \u0440\u0430\u0437\u0434\u0435\u043b \u00ab\u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b\u00bb). <\/p>\n<p>  \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0433\u0438\u043f\u0435\u0440\u0441\u0441\u044b\u043b\u043a\u0430 \u201c<u><b>(\u043f\u0435\u0440\u0435\u0437\u0432\u043e\u043d\u0438\u0442\u044c)<\/b><\/u>\u201d. \u0413\u0438\u043f\u0435\u0440\u0441\u0441\u044b\u043b\u043a\u0430 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 callback \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430. \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0437\u043e\u0432 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043d\u044f\u0442, \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f \u043d\u0430\u0431\u043e\u0440 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0443, \u0432\u044b\u0437\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u043b \u0440\u0430\u043d\u0435\u0435.<\/p>\n<p>  <b>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0438 \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u0430\u044f \u0444\u0438\u0447\u0430<\/b> \u2014 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043e \u0437\u0432\u043e\u043d\u043a\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435, \u0447\u0435\u043c \u0437\u0432\u043e\u043d\u043e\u043a \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439. \u041d\u0430\u0431\u043e\u0440 \u043d\u043e\u043c\u0435\u0440\u0430 \u0447\u0435\u0440\u0435\u0437 GSM \u043b\u0438\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 4-5 \u0441\u0435\u043a\u0443\u043d\u0434. \u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0432 Telegram \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435. <\/p>\n<h4><b>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043d\u0430 IP \u0410\u0422\u0421 Askozia<\/b><\/h4>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f Telegram API, AMI Asterisk, SOAP web \u0441\u0435\u0440\u0432\u0438\u0441\u044b 1\u0421: \u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435. \u0412\u0441\u0435 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0438 \u043d\u0430 PHP 5.<\/p>\n<p>  <b>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0410\u0422\u0421 \u043f\u043e SSH:<\/b>  <\/p>\n<pre><code class=\"bash\"># \u0421\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b, \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u043c \u0437\u0430\u043f\u0438\u0441\u044c.  mount -o remount,rw \/offload;  # \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430.  mkdir \/offload\/rootfs\/usr\/www_provisioning\/telegram\/;  # \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442\u044b. mkdir \/storage\/usbdisk1\/askoziapbx\/astlogs\/asterisk\/telegram\/; <\/code><\/pre>\n<p>  <b>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0410\u0422\u0421 \u043f\u043e SFTP<\/b><br \/>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u043f\u043e <a href=\"http:\/\/files.miko.ru\/public.php?service=files&amp;t=6274b52a7a8c743f4125e36c0cc9cdf6\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>. \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438\u0437 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e: \u201c<i>\/storage\/usbdisk1\/askoziapbx\/astlogs\/asterisk\/telegram\/<\/i>\u201d<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/05d\/dc8\/d10\/05ddc8d1005e40b1a23c207b61f6a974.png\" alt=\"image\"\/><\/p>\n<p>  <b>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0447\u0435\u0440\u0435\u0437 SSH<\/b>  <\/p>\n<pre><code class=\"bash\"># \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430: # \u0421\u043a\u0440\u0438\u043f\u0442 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u043f\u043e URL &quot;http:\/\/HOST:56080\/telegram\/miko_callback.php&quot; ln -s \/storage\/usbdisk1\/askoziapbx\/astlogs\/asterisk\/telegram\/miko_callback.php \/offload\/rootfs\/usr\/www_provisioning\/telegram\/miko_callback.php  # \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0444\u0430\u0439\u043b, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043d\u0430 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u0432 telegram  echo  &gt;&gt; \/storage\/usbdisk1\/askoziapbx\/astlogs\/asterisk\/telegram\/subscription.db # \u0421\u043c\u043e\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0440\u0430\u0437\u0434\u0435\u043b \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 &quot;\u0422\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u0435\u043d\u0438\u0435&quot;.  mount -o remount,ro \/offload; <\/code><\/pre>\n<p>  <b>\u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 <i>settings.json<\/i><\/b><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 settings.json<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">{   &quot;ami_host&quot;: &quot;127.0.0.1&quot;,   &quot;ami_port&quot;: 5038,   &quot;ami_username&quot;: &quot;1cami&quot;,   &quot;ami_secret&quot;: &quot;PASSWORD1cami&quot;,   &quot;telegram_API_key&quot;: &quot;171119210:AAHo-000000000000000000000&quot;,   &quot;subscription_file&quot;: &quot;subscription.db&quot;,   &quot;dst_context&quot;: &quot;SIP-PHONE-0000000000feaad021c&quot;,   &quot;res_callback&quot;: &quot;http:\/\/HOST:56080\/telegram\/miko_callback.php&quot;,   &quot;local_context&quot;: &quot;localchannels&quot; } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<ul>\n<li>\u201c<b>ami_host, ami_port, ami_username, ami_secret<\/b>\u201d \u2014 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a AMI<\/li>\n<li>\u201c<b>telegram_API_key<\/b>\u201d \u2014 API \u043a\u043b\u044e\u0447 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442\u0430<\/li>\n<li>\u201c<b>subscription_file<\/b>\u201d \u2014 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0438 \u043d\u0430 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f<\/li>\n<li>\u201c<b>dst_context<\/b>\u201d \u2014 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d \u043d\u0430\u0431\u043e\u0440 \u043d\u043e\u043c\u0435\u0440\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f<\/li>\n<li>\u201c<b>local_context<\/b>\u201d \u2014 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u0435\u043d \u043d\u0430\u0431\u043e\u0440 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432<\/li>\n<li>\u201c<b>res_callback<\/b>\u201d \u2014 URL, \u0433\u0434\u0435 \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430, \u201dHOST\u201d \u2014 \u0430\u0434\u0440\u0435\u0441 askozia <\/li>\n<\/ul>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a AMI<\/b><\/p>\n<div class=\"spoiler_text\">\n<ul>\n<li><b>ami_host<\/b> \u2014 \u0435\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0442\u043e \u0430\u0434\u0440\u0435\u0441 <b>127.0.0.1<\/b><\/li>\n<li><b>ami_port<\/b> \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <b>5038<\/b><\/li>\n<li><b>ami_username<\/b> \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <b>admin<\/b><\/li>\n<li><b>ami_secret<\/b> \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <b>askozia<\/b><\/li>\n<\/ul>\n<p>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c Telegram API key<\/b><\/p>\n<div class=\"spoiler_text\">\u0415\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u0443 \u201c<b>BotFather<\/b>\u201d:<br \/>  \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433 c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u043e\u043c \u00abBotFather\u00bb \u0432 telegram  <\/p>\n<ol>\n<li>\u041e\u0442\u043f\u0440\u0430\u0432\u044c\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 &quot;\/newbot&quot; <\/li>\n<li>\u041d\u0430 \u0432\u0442\u043e\u0440\u043e\u043c \u0448\u0430\u0433\u0435 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0438\u043c\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0431\u043e\u0442\u0430<\/li>\n<li>\u041d\u0430 \u0442\u0440\u0435\u0442\u0435\u043c \u0448\u0430\u0433\u0435 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u00abusername\u00bb \u0431\u043e\u0442\u0430, \u043e\u043d\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0443 \u00abbot\u00bb<\/li>\n<\/ol>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442 \u0431\u043e\u0442 \u043f\u0440\u0438\u0448\u043b\u0435\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 \u043a\u043b\u044e\u0447\u043e\u043c<br \/>  <code>Use this token to access the HTTP API:<br \/>  171119299:AAHo-y2Ps4-ZTblLRHbjBHG5pG-0cpN<br \/>  <\/code>  <\/div>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043e\u0432<\/b><\/p>\n<div class=\"spoiler_text\">\n<ul>\n<li><b>local_context<\/b> \u2014 \u044d\u0442\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u0433\u0434\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u043d\u043e\u043c\u0435\u0440\u0430, \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0448\u0438\u0445 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u00ablocalchannels\u00bb<\/li>\n<li><b>dst_context<\/b> \u2014 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043e\u0434\u043d\u0443 \u0438\u0437 \u0443\u0447\u0435\u0442\u043d\u044b\u0445 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0442\u0438\u043f\u0430 \u00ab\u0422\u0435\u043b\u0435\u0444\u043e\u043d\u00bb \u0438 \u0432 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u0438\u0434\u0430 &quot;<b>SIP-PROVIDER-196627525951ab38268552a<\/b>&quot;, \u044d\u0442\u043e \u0438 \u0431\u0443\u0434\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442<\/li>\n<\/ul>\n<p>  <\/div>\n<\/div>\n<h4><b>\u0417\u0430\u043f\u0443\u0441\u043a \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0432 cron<\/b><\/h4>\n<p>  \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u00ab\u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0442\u043e\u0440\u0430\u00bb, \u043d\u0430\u0436\u0430\u0432 \u201cESC\u201d \u0432 web \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0435:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/2f1\/4cc\/ea3\/2f14ccea39694c9e977113ac900298a2.png\" alt=\"image\"\/><\/p>\n<ol>\n<li>\u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0443 &quot;<b>Configuration Files<\/b>&quot;<\/li>\n<li>\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b &quot;<b>crontabs<\/b>&quot;<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043a\u0430\u043a \u043d\u0430 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u0432\u044b\u0448\u0435<\/li>\n<\/ol>\n<p>  <\/p>\n<pre><code class=\"bash\">*\/5 * * * * \/bin\/sh \/storage\/usbdisk1\/askoziapbx\/astlogs\/asterisk\/telegram\/starter.sh <\/code><\/pre>\n<h4><b>\u0418\u0442\u043e\u0433\u0438 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f<\/b><\/h4>\n<p>  \u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043e \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0437\u0432\u043e\u043d\u043a\u0430\u0445:  <\/p>\n<ul>\n<li>\u041e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0434\u043e \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430<\/li>\n<li>\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a \u0432\u0438\u0434\u0438\u0442, \u043a\u0442\u043e \u0435\u043c\u0443 \u0437\u0432\u043e\u043d\u0438\u0442<\/li>\n<li>\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u00ab\u043f\u0435\u0440\u0435\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u00bb, \u0432\u044b\u0437\u043e\u0432 \u0438\u0434\u0435\u0442 \u0447\u0435\u0440\u0435\u0437 \u0410\u0422\u0421, \u0430 \u0437\u043d\u0430\u0447\u0438\u0442 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f<\/li>\n<\/ul>\n<h4><b>\u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b<\/b><\/h4>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/www.askozia.ru\">Askozia<\/a> \u2014 IP ATC \u043d\u0430 \u0431\u0430\u0437\u0435 Asterisk<\/li>\n<li>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 telegram bot \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u201c<a href=\"https:\/\/github.com\/smoqadam\/php-telegram-bot\">php-telegram-bot<\/a>\u201d. <\/li>\n<li>\u0417\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 AMI \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u043f\u0440\u043e\u0435\u043a\u0442 \u201c<a href=\"https:\/\/github.com\/marcelog\/PAMI\">PAMI<\/a>\u201d. <\/li>\n<li>\u0421\u0435\u0440\u0432\u0438\u0441 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430 \u0434\u043b\u044f Askozia \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u043e\u043f\u0438\u0441\u0430\u043d \u0432 <a href=\"https:\/\/habrahabr.ru\/post\/259165\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>  <a href=\"https:\/\/habrahabr.ru\/users\/jorikfon\/\" class=\"user_link\">jorikfon<\/a>.<\/li>\n<li>\u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u043f\u043e\u043c\u043e\u0433\u043b\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043e <a href=\"https:\/\/habrahabr.ru\/post\/137337\/\">\u0437\u0430\u043f\u0443\u0441\u043a\u0435 PHP \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0432 \u201c\u0444\u043e\u043d\u0435\u201d<\/a>. <\/li>\n<li>\u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 1\u0421 (SOAP \u0441\u0435\u0440\u0432\u0438\u0441) \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 <a href=\"https:\/\/habrahabr.ru\/post\/166935\/\">\u0441\u0442\u0430\u0442\u044c\u0435<\/a>  <a href=\"https:\/\/habrahabr.ru\/users\/jorikfon\/\" class=\"user_link\">jorikfon<\/a>.<\/li>\n<\/ul>\n<div class=\"clear\"><\/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=\"https:\/\/habrahabr.ru\/post\/277743\/\"> https:\/\/habrahabr.ru\/post\/277743\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0427\u0430\u0441\u0442\u044c \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u043d\u0435 \u043e\u0444\u0438\u0441\u0430: \u0432\u044b\u0435\u0437\u0434\u044b \u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c, \u0440\u0430\u0431\u043e\u0442\u0430 \u0432 \u0434\u043e\u043c\u0430\u0448\u043d\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445. \u0414\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430\u043c\u0438 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c GSM \u0448\u043b\u044e\u0437, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043a \u043d\u0430\u0448\u0435\u0439 \u0410\u0422\u0421 Askozia. \u041b\u044e\u0431\u043e\u0439 \u0432\u044b\u0437\u043e\u0432, \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0432\u0448\u0438\u0439 \u043e\u0442 \u043a\u043b\u0438\u0435\u0442\u0430, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0430\u0434\u0440\u0435\u0441\u043e\u0432\u0430\u043d \u043d\u0430 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u201c\u0432 \u043f\u043e\u043b\u0435\u201d. <\/p>\n<p>  \u0412 \u0442\u0430\u043a\u0438\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435 \u0443\u0434\u043e\u0431\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f: \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a, \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u0435 \u0432\u0438\u0434\u0438\u0442 \u043d\u043e\u043c\u0435\u0440 SIM \u043a\u0430\u0440\u0442\u044b, \u0430 \u043d\u0435 \u043d\u043e\u043c\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u041d\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043d\u0430 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432. <\/p>\n<p>  \u041c\u044b \u0440\u0435\u0448\u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Telegram \u0434\u043b\u044f \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u043e \u0437\u0432\u043e\u043d\u043a\u0430\u0445. \u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 Askozia + Telegram + 1C: \u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435.   <\/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-274904","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274904","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=274904"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/274904\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=274904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=274904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=274904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}