{"id":291088,"date":"2018-10-20T14:05:02","date_gmt":"2018-10-20T10:05:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=291088"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=291088","title":{"rendered":"\u041a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446-\u043a\u043e\u043c\u043d\u0430\u0442\u044b \u043d\u0430 \u0431\u0430\u0437\u0435 Asterisk"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<h3>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>  \u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<p>  \u041d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u0435\u043d\u044f \u0441\u043f\u043e\u0434\u0432\u0438\u0433\u043b\u043e 2 \u0432\u0435\u0449\u0438: \u043c\u0430\u043b\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043b\u0438 \u0432\u043e\u0432\u0441\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043f\u043e \u00ab\u0444\u0438\u0448\u043a\u0430\u043c\u00bb Asterisk, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c\u0438 \u0441\u0430\u043c\u044b\u043c\u0438 \u00ab\u0444\u0438\u0448\u043a\u0430\u043c\u0438\u00bb \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438. \u042d\u0442\u043e \u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e \u0420\u0423-\u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438. \u0412\u0441\u044f\u043a\u0438\u0435 \u00ab\u0414\u0435\u0434\u044b\u00bb \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0430\u0445 \u0441\u043a\u043e\u0440\u0435\u0435 \u043e\u0431\u043e\u043b\u044c\u044e\u0442 \u0442\u0435\u0431\u044f \u043f\u043e\u043c\u043e\u044f\u043c\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u044f\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043d\u0438\u0436\u043a\u0438 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u043d\u0435\u0439 \u0434\u0430\u0432\u043d\u043e\u0441\u0442\u0438, \u0447\u0435\u043c \u0434\u0430\u0434\u0443\u0442 \u043c\u0430\u043b\u043e \u043c\u0430\u043b\u044c\u0441\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e. \u0421\u0430\u043c\u0438 \u0436\u0435 \u0442\u0435\u043c\u044b \u0444\u043e\u0440\u0443\u043c\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 2005-2010 \u0433\u043e\u0434\u0430\u0445, \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0438 \u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0447\u0442\u043e \u0442\u043e \u0443\u0436\u0435 \u0432\u044b\u043f\u0438\u043b\u0435\u043d\u043e \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0430, \u0430 \u0447\u0442\u043e \u0442\u043e \u043d\u0430\u0434\u043e \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0422\u0430\u043a \u0432\u043e\u0442.<br \/>  \u0412 \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435 \u043e\u0442\u043a\u0430\u0437\u0430 \u043e\u0442 CUCM \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 \u0410\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0430, \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e\u043c \u0431\u044b\u043b\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0441\u043e\u0431\u043e \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0432 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0432\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435, \u0434\u0430\u0431\u044b \u043d\u0435 \u0442\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0434\u0435\u0439. \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0431\u044b\u043b\u043e \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439. \u041a \u0442\u043e\u043c\u0443 \u043c\u043e\u043c\u0435\u043d\u0442\u0443 \u0441 \u0410\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u043e\u043c \u044f \u0443\u0436\u0435 \u0431\u044b\u043b \u0437\u043d\u0430\u043a\u043e\u043c, \u043d\u043e \u043d\u0435 \u0441\u0442\u043e\u043b\u044c \u0433\u043b\u0443\u0431\u043e\u043a\u043e, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043d\u0430 \u043f\u0435\u0440\u0435\u0431\u043e\u0440 \u0432\u0441\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0443 \u043c\u0435\u043d\u044f \u0443\u0448\u043b\u043e \u043e\u043a\u043e\u043b\u043e \u043f\u043e\u043b\u0443\u0442\u043e\u0440\u0430 \u043d\u0435\u0434\u0435\u043b\u044c, \u0430 \u043d\u0430 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0430 \u0432\u043e\u043e\u0431\u0449\u0435 \u0434\u0440\u0443\u0433\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430.<\/p>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0438\u0437 \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u043d\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0435\u0441\u0442\u044c <a href=\"https:\/\/www.voip-info.org\/asterisk-n-way-call-howto\">\u0441\u0442\u0430\u0442\u044c\u044f<\/a> \u0441 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0435\u0439 meetme, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a\u043e\u0439 \u0442\u043e <a href=\"https:\/\/voxlink.ru\/kb\/asterisk-configuration\/call_Asterisk_ConfBridge\/\">\u043c\u043e\u043d\u0441\u0442\u0440<\/a>, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0443 \u043c\u0435\u043d\u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u042f \u0436\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043a\u043e\u0435 \u0447\u0442\u043e \u043d\u0435 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e\u0435.<br \/>  <cut\/>  <\/p>\n<h3>\u041c\u044f\u043a\u043e\u0442\u043a\u0430<\/h3>\n<p>  \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 confbridge, \u0437\u0430 \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0442 \u0441\u0435\u043a\u0446\u0438\u0438 \u0432 \u0442\u043e\u043c \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0435 \u0438 \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \u043e\u043f\u0446\u0438\u044f \u0442\u0430\u043a\u0430\u044f, \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u044d\u0442\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043a\u0430\u043a \u0440\u0430\u0437 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0438 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430. \u0421\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u0446\u0435\u043b\u043e\u043c.<\/p>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430: \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u0438\u0433\u043b\u0430\u0441\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0435\u0449\u0435 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0447\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u044f channelredirect \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u043a\u0430\u043a \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0431\u044b. \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0435\u0435 \u0438\u0437 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0430 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430, \u0442\u043e \u043e\u0434\u0438\u043d \u0438\u0437 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0443\u043b\u0435\u0442\u0438\u0442 \u043a\u0443\u0434\u0430 \u043d\u0430\u0434\u043e, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u0440\u0443\u0448\u0438\u0442\u0441\u044f, \u0430 \u043b\u0430\u0437\u0430\u0442\u044c \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0443 \u043d\u0430 2\u043a \u0441\u0442\u0440\u043e\u043a \u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0430 Dial&#8217;\u0430\u0445 \u043e\u043f\u0446\u0438\u044e g \u0431\u044b\u043b\u043e \u043b\u0435\u043d\u0438\u0432\u043e. \u0418 \u043c\u043d\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e\u0447\u0435\u043c\u0443 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u043c\u0430\u043d\u0443\u0430\u043b\u043e\u0432 \u0432\u0441\u0435 \u043f\u044b\u0442\u0430\u044e\u0442\u0441\u044f \u0440\u0435\u0448\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0440\u0435\u0437 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u0430\u043c\u0438 \u0438 ami.<br \/>  <cut\/><br \/>  \u0418\u0442\u0430\u043a. \u0410\u0441\u0442\u0435\u0440\u0438\u0441\u043a 14.4.0<\/p>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u043d\u0430 2 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430(c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438):<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">conference.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">&lt;?php  \/\/\u0413\u043e\u0442\u043e\u0432\u0438\u043c \u043a\u043e\u043d\u043d\u0435\u043a\u0442 \u043a \u0430\u0441\u0442\u0435\u0440\u0443 $host = &quot;192.168.1.1&quot;; $port = &quot;5038&quot;; $timeout = &quot;10&quot;;  $user = &quot;conference&quot;; $pass = &quot;1111&quot;;    \/\/\u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0442\u044c 1 \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430 2 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 $kusok = $argv[1];  \/\/\u041a\u0443\u0441\u043e\u043a \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430 if ($kusok == 1){  \/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 $channel = $argv[2]; $bridgepeer = $argv[3]; $confnum = $argv[4];  print_r($bridgepeer); print_r($confnum);                  \/\/\u041a\u043e\u043d\u043d\u0435\u043a\u0442                 $sconn = fsockopen ($host, $port, $timeout) or die (&quot;Connection to $host:$port failed!&quot;);                                           fputs ($sconn, &quot;Action: Login\\r\\n&quot;);                                         fputs ($sconn, &quot;Username: $user\\r\\n&quot;);                                         fputs ($sconn, &quot;Secret: $pass\\r\\n\\r\\n&quot;);                                         \/\/\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u0430                                         fputs ($sconn, &quot;Action: Setvar\\r\\n&quot;);                                         fputs ($sconn, &quot;Channel: $channel\\r\\n&quot;);                                         fputs ($sconn, &quot;Variable: CONFNUM\\r\\n&quot;);                                         fputs ($sconn, &quot;Value: $confnum\\r\\n\\r\\n&quot;);                                           fputs ($sconn, &quot;Action: Setvar\\r\\n&quot;);                                         fputs ($sconn, &quot;Channel: $bridgepeer\\r\\n&quot;);                                         fputs ($sconn, &quot;Variable: CONFNUM\\r\\n&quot;);                                         fputs ($sconn, &quot;Value: $confnum\\r\\n\\r\\n&quot;);                                         \/\/\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u043c                                         fputs ($sconn, &quot;Action: Redirect\\r\\n&quot;);                                         fputs ($sconn, &quot;Channel: $bridgepeer\\r\\n&quot;);                                         fputs ($sconn, &quot;ExtraChannel: $channel\\r\\n&quot;);                                         fputs ($sconn, &quot;Context: service_code-ael\\r\\n&quot;);                                         fputs ($sconn, &quot;Exten: conference\\r\\n&quot;);                                         fputs ($sconn, &quot;Priority: 1\\r\\n\\r\\n&quot;);                                          fputs($sconn, &quot;Action: Logoff\\r\\n\\r\\n&quot;); sleep(2); fclose ($sconn); }  \/\/\u041a\u0443\u0441\u043e\u043a \u0434\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u0430 if ($kusok == 2) {  \/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 $confnum = $argv[2]; $inviten = $argv[3];                  $sconn = fsockopen ($host, $port, $errno, $errstr, $timeout) or die (&quot;Connection to $host:$port failed!&quot;);                                           \/\/\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f                                         fputs ($sconn, &quot;Action: Login\\r\\n&quot;);                                         fputs ($sconn, &quot;Username: $user\\r\\n&quot;);                                         fputs ($sconn, &quot;Secret: $pass\\r\\n\\r\\n&quot;);                                          \/\/\u0417\u0432\u043e\u043d\u0438\u043c \u0438 \u0437\u0430\u043a\u0438\u0434\u044b\u0432\u0430\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0443                                         fputs ($sconn, &quot;Action: Originate\\r\\n&quot;);                                         fputs ($sconn, &quot;Channel: Local\/&quot;.$inviten.&quot;@out-ael\\r\\n&quot;);                                         fputs ($sconn, &quot;Context: service_code-ael\\r\\n&quot;);                                         fputs ($sconn, &quot;Exten: conference\\r\\n&quot;);                                         fputs ($sconn, &quot;Priority: 1\\r\\n&quot;);                                         fputs ($sconn, &quot;Variable: CONFNUM=&quot;.$confnum.&quot;\\r\\n\\r\\n&quot;);                                            fputs($sconn, &quot;Action: Logoff\\r\\n\\r\\n&quot;); sleep(2); fclose ($sconn); }   } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0413\u0443\u0440\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0434, \u0441\u0434\u0435\u043b\u0430\u0432 \u0438\u0437 \u043d\u0435\u0433\u043e \u043a\u043e\u043d\u0444\u0435\u0442\u043a\u0443, \u044f \u043f\u0438\u0441\u0430\u043b \u043a\u0430\u043a \u0443\u043c\u0435\u043b.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u0441\u0430\u043c\u043e\u043c \u0410\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0435.<\/p>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e, \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e *1. \u041a\u043e\u0440\u043e\u0442\u043a\u043e \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u0435\u0442\u0441\u044f \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043d\u0443\u043c\u0435\u0440\u0430\u0446\u0438\u0435\u0439.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 features.conf \u0432\u044b\u0437\u043e\u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0441 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435\u0439 \u0432 \u043d\u0435\u0433\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445<\/p>\n<pre><code>[applicationmap] conference =&gt; *1,self,System(\/usr\/bin\/php \/home\/script\/conference.php 1 ${CHANNEL} ${BRIDGEPEER} ${CALLERID(num)}) <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u043e, \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0432 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0435 \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 [globals] \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0448\u0443 \u0444\u0438\u0447\u0443<\/p>\n<pre><code>DYNAMIC_FEATURES=conference<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e \u043d\u043e\u0432\u044b\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0432 confbridge.conf <\/p>\n<pre><code>[default_menu] type = menu *1=dialplan_exec(service_code-ael,conference_add,1) <\/code><\/pre>\n<p>  \u041d\u0443 \u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0430\u043c\u043e\u0435 \u0432\u043a\u0443\u0441\u043d\u043e\u0435, extensions.ael:<\/p>\n<p>  \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 (\u0441\u044e\u0434\u0430 \u0430\u0434\u0440\u0435\u0441\u0443\u0435\u0442 php \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u0430 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u0430):<\/p>\n<pre><code>        conference =&gt; {                 ConfBridge(${CONFNUM},,,default_menu);         } <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u0441\u044e\u0434\u0430 \u0430\u0434\u0440\u0435\u0441\u0443\u0435\u0442 dialplan_exec):<\/p>\n<pre><code>conference_add =&gt; {                 Read(INVITEN,dial,11,i);                 System(\/usr\/bin\/php \/home\/script\/conference.php 2 ${CALLERID(num)} ${INVITEN});         } <\/code><\/pre>\n<p>  \u0412\u0441\u0435. \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u043a\u0438\u043b\u043e\u0442\u043e\u043d\u043d \u043a\u043e\u0434\u0430 \u0432 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0435. \u0412\u0441\u0435 \u0435\u043c\u043a\u043e. *1 \u0432 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0435 \u0438 \u0432\u044b \u0432 \u043a\u043e\u043d\u0444\u0435, \u0435\u0449\u0435 \u0440\u0430\u0437 *1 \u0433\u0443\u0434\u043e\u043a \u0438 \u043d\u0430\u0431\u043e\u0440 \u043d\u043e\u043c\u0435\u0440\u0430, \u043a\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c.<\/p>\n<h3>\u041d\u0430\u0440\u043e\u0441\u0442\u044b<\/h3>\n<p>  \u0413\u043e\u043d\u0438\u043c\u044b\u0439 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f\u043c\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u044f \u0441\u0442\u0430\u043b \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u0444\u0438\u0447\u0443. <\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u0442\u0430\u043b\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u0441 \u043d\u0443\u043b\u044f (\u043d\u0435 \u0438\u0437 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440\u0430), \u0430 \u0442\u0430\u043a \u0436\u0435 \u0437\u0430\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0443\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438 \u043f\u043e \u0438\u0445 \u043d\u043e\u043c\u0435\u0440\u0443, \u0430 \u043d\u0435 \u0436\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e\u0449\u0435\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d:<\/p>\n<pre><code>_*1XXXX =&gt; {                 NoOp(${CONFCHAN});                 Set(__CONFNUM=${EXTEN:2});                 System(\/usr\/bin\/php \/home\/script\/conference.php 3 ${CONFCHAN} ${CONFNUM} );         } <\/code><\/pre>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">conference.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">\/\/\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0439 \u0441 \u043d\u0443\u043b\u044f if ($kusok == 3){  \/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 $channel = $argv[2]; $confnum = $argv[3];                   \/\/\u041a\u043e\u043d\u043d\u0435\u043a\u0442                 $sconn = fsockopen ($host, $port, $timeout) or die (&quot;Connection to $host:$port failed!&quot;);                                           fputs ($sconn, &quot;Action: Login\\r\\n&quot;);                                         fputs ($sconn, &quot;Username: $user\\r\\n&quot;);                                         fputs ($sconn, &quot;Secret: $pass\\r\\n\\r\\n&quot;);                                         \/\/\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u0430                                         fputs ($sconn, &quot;Action: Setvar\\r\\n&quot;);                                         fputs ($sconn, &quot;Channel: $channel\\r\\n&quot;);                                         fputs ($sconn, &quot;Variable: CONFNUM\\r\\n&quot;);                                         fputs ($sconn, &quot;Value: $confnum\\r\\n\\r\\n&quot;);                                          \/\/\u0420\u0435\u0434\u0438\u0440\u0435\u043a\u0442\u0438\u043c                                         fputs ($sconn, &quot;Action: Redirect\\r\\n&quot;);                                         fputs ($sconn, &quot;Channel: $channel\\r\\n&quot;);                                         fputs ($sconn, &quot;Context: service_code-ael\\r\\n&quot;);                                         fputs ($sconn, &quot;Exten: conference\\r\\n&quot;);                                         fputs ($sconn, &quot;Priority: 1\\r\\n\\r\\n&quot;);                                          fputs($sconn, &quot;Action: Logoff\\r\\n\\r\\n&quot;); sleep(2); fclose ($sconn);<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u0447\u043a\u0443 _*X. <\/p>\n<pre><code>        _*X. =&gt; {                 set(__CONFCHAN=${CHANNEL});                 Dial(Local\/${EXTEN}@service_code-ael); <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0447\u0442\u043e\u0431\u044b \u0432\u043e\u0439\u0442\u0438 \u0432 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e \u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0435\u0435 \u0441 \u043d\u0443\u043b\u044f, \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a \u043d\u0430 *1 \u0438 \u043d\u043e\u043c\u0435\u0440, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 *15234.<\/p>\n<p>  \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0443\u0442\u0430\u0446\u0438\u0435\u0439 \u044d\u0442\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0438\u0441\u0430 \u043f\u043e\u043a\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0430\u044f \u00ab\u0433\u0440\u0443\u043f\u043f\u043e\u0432\u0430\u044f \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f\u00bb. \u042d\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0438\u043a\u0430\u043c \u043b\u0435\u043d\u044c \u0432\u0441\u0435\u0445 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0430 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043d\u0430\u0436\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u043a\u043d\u043e\u043f\u043a\u0443 \u0438 \u0432\u0441\u0435 \u0432 \u0441\u0431\u043e\u0440\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0440\u0432\u0438\u0441 \u043a\u043e\u0434\u044b (*1XX), \u0447\u0442\u043e\u0431\u044b \u043b\u044e\u0434\u044f\u043c \u0438 \u0441\u0430\u043c\u043e\u043c\u0443 \u043d\u0435 \u043f\u0443\u0442\u0430\u0442\u044c\u0441\u044f.<\/p>\n<p>  \u0414\u0438\u0430\u043b\u043f\u043b\u0430\u043d:<\/p>\n<pre><code>        *100 =&gt; {                 Set(CONFNUM=${CALLERID(num)});                 System(\/usr\/bin\/php \/home\/script\/groups.php 0 ${CONFNUM});                 ConfBridge(${CONFNUM},,,default_menu);         } <\/code><\/pre>\n<p>  \u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f \u0441\u0431\u043e\u0440\u0430 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">groups.php<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"php\">\/\/\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0437\u0432\u043e\u043d\u043a\u0430 function call ($group, $confnum) {          $many = count($group);                 \/\/\u0426\u0438\u043a\u043b \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0433\u0440\u0443\u043f\u043f\u044b \u043d\u0430 \u043d\u043e\u043c\u0435\u0440\u0430                 for ($i=0; $many&gt;$i; $i++) {                          \/\/\u0434\u043e\u0441\u0442\u0430\u0435\u043c \u0438\u0437 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u043d\u043e\u043c\u0435\u0440\u0430                         $num = trim(array_shift($group[$i]));                         \/\/\u0417\u0432\u043e\u043d\u0438\u043c                         system(&quot;asterisk -rx \\&quot;channel originate Local\/$num@out-ael application ConfBridge $confnum\\&quot;&quot;);                 } }   \/\/\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0433\u0440\u0443\u043f\u043f\u044b  function conf_group ($groupid) {                  \/\/\u041a\u043e\u043d\u043d\u0435\u043a\u0442\u0438\u043c \u0432 \u0431\u0430\u0437\u0443                 $opt = array(                     PDO::ATTR_ERRMODE  =&gt; PDO::ERRMODE_EXCEPTION,                     PDO::ATTR_DEFAULT_FETCH_MODE =&gt; PDO::FETCH_ASSOC                 );                  $pdo = new PDO(&quot;odbc:mssql_asterisk, &quot;asterisk, &quot;121212&quot;, $opt);                           \/\/\u0421\u0435\u043b\u0435\u043a\u0442\u0438\u043c \u0438\u0437 \u0431\u0430\u0437\u044b                           $sql = &quot;SELECT extension FROM [asterisk].[dbo].[conf_groups] where groupid = $groupid&quot;;                            $select = $pdo-&gt;query($sql);                           $result = $select-&gt;fetchAll();                  \/\/\u0414\u0438\u0441\u043a\u043e\u043d\u0435\u043d\u043a\u0442\u0438\u043c                 $pdo = NULL;                 return $result; }  \/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0433\u0440\u0443\u043f\u043f\u044b, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0434\u043e \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c $groupid = $argv[1];  if ($groupid == 0){          \/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438         $confnum = $argv[2];           \/\/\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043c\u0430\u0441\u0441\u0438\u0432 \u043d\u043e\u043c\u0435\u0440\u043e\u0432         $group=conf_group($groupid);          \/\/\u0417\u0432\u043e\u043d\u0438\u043c         call($group, $confnum);  } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0412\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u00ab\u0413\u0440\u0443\u043f\u043f\u044b, \u043d\u043e\u043c\u0435\u0440, \u0438\u043c\u044f, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u00bb. \u0415\u0441\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430, \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u0442\u0441\u044f \u043a\u0443\u0441\u043e\u043a \u0441 if \u0432 \u043a\u043e\u0434\u0435 \u0438 exten \u0432 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0435. \u0426\u0438\u0444\u0435\u0440\u043a\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 +1 \u0438 \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u0441\u0435\u0445 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0441\u043e\u0432\u0435\u0449\u0430\u043d\u0438\u0435, \u0433\u0435\u043d\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u043c\u0443 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0431\u0440\u0430\u0442\u044c *100. \u0410 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0431\u043e\u0441\u0441\u043e\u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0438\u043d\u0434\u0438\u043c *100 \u043d\u0430 \u043b\u044e\u0431\u0443\u044e \u043a\u043b\u0430\u0432\u0438\u0448\u0443 speeddial&#8217;\u0430, \u043f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043a\u0430\u043a \u00ab\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0430\u00bb \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0435\u043c\u0443 \u043d\u0430\u0431\u0440\u0430\u0442\u044c. \u041a\u043d\u043e\u043f\u043a\u0443 \u043d\u0430\u0436\u0430\u043b \u2014 \u0441\u043e\u0432\u0435\u0449\u0430\u043d\u0438\u0435 \u0441\u043e\u0431\u0440\u0430\u043b.<\/p>\n<p>  \u0412\u0441\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u00ab\u0413\u0440\u0443\u043f\u043f\u044b, \u043d\u043e\u043c\u0435\u0440, \u0438\u043c\u044f, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u00bb. \u0415\u0441\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430, \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442\u0438\u0442\u0441\u044f \u043a\u0443\u0441\u043e\u043a \u0441 if \u0432 \u043a\u043e\u0434\u0435 \u0438 exten \u0432 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0435. \u0426\u0438\u0444\u0435\u0440\u043a\u0430 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 +1 \u0438 \u0432\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e.<\/p>\n<p>  <b>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0435\u0434\u0432\u043e\u0441\u0445\u0438\u0449\u0430\u044f \u0432\u0430\u0448\u0438 \u0432\u043e\u043f\u0440\u043e\u0441\u044b:<\/b><\/p>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 ami? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0430 \u0443 \u043c\u0435\u043d\u044f \u0442\u0430\u043a \u0438 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0439 \u0440\u0435\u0434\u0438\u0440\u0435\u043a\u0442 \u043e\u0431\u043e\u0438\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u043d\u0435 \u0440\u0430\u0441\u0442\u0435\u0440\u044f\u0432 \u0438\u0445 \u043f\u043e \u0434\u043e\u0440\u043e\u0433\u0435. \u0412 ami \u0436\u0435 \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 redirect \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0446\u0435\u043f\u0438\u0442\u044c \u0434\u043e\u043f \u043a\u0430\u043d\u0430\u043b + \u0437\u0430\u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0438, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0442\u043e\u0436\u0435 \u043c\u043e\u0433 \u043a\u043e\u0433\u043e \u0442\u043e \u0432 \u043d\u0435\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c). <\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0432\u044b \u043c\u043e\u0433\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u044f \u0432\u044b\u043d\u0435\u0441 \u0444\u0438\u0447\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 service_code-ael. \u042d\u0442\u043e \u0443\u0434\u043e\u0431\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 \u0432\u0441\u044f\u043a\u0438\u0445 \u0444\u0438\u0447 \u0443 \u0432\u0430\u0441 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0430\u0440\u044b \u0448\u0442\u0443\u043a. \u042f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u0445 \u0447\u0435\u0440\u0435\u0437 *, \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432 \u043b\u044e\u0431\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0448\u0443 _*X. \u0438 \u0430\u0434\u0440\u0435\u0441\u0443\u044e \u0432 \u044d\u0442\u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043a\u0442\u043e \u0442\u043e \u043d\u0430\u0439\u0434\u0435\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0438\u0437\u044f\u0449\u043d\u0435\u0435, \u043d\u043e \u044f \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u044f\u0446\u0435\u0432 \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. \u0410 \u0434\u0430\u043d\u043d\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043f\u0440\u0438\u0448\u0435\u043b\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u043f\u043e \u0434\u0443\u0448\u0435.<\/p>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 ael, \u0430 \u043d\u0435 conf? \u041d\u0443 \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043e\u043d \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0435\u0439 \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0435\u0433\u043e \u043b\u0435\u0433\u0447\u0435<br \/>   \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u0435\u0435. \u041e\u0434\u043d\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f gotoif \u0447\u0435\u0433\u043e \u0441\u0442\u043e\u0438\u0442. \u0414\u043e lua \u044f \u0435\u0449\u0435 \u043d\u0435 \u0434\u043e\u0440\u043e\u0441.<\/p>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0433\u043e \u0441\u0431\u043e\u0440\u0430 originate \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u0447\u0435\u0440\u0435\u0437 bash, \u0430 \u043d\u0435 \u0447\u0435\u0440\u0435\u0437 AMI? \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044f \u043a\u0443\u0447\u0443 originate \u043f\u043e\u0434\u0440\u044f\u0434 \u0447\u0435\u0440\u0435\u0437 ami, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0436\u0434\u0435\u0442, \u043f\u043e\u043a\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0434\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439. \u0410 \u0435\u0441\u043b\u0438 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u0431\u0435\u0440\u0435\u0442 \u0442\u0440\u0443\u0431\u043a\u0443, \u0430 \u0442\u0430\u043c 20 \u0441\u0435\u043a\u0443\u043d\u0434 no_ans \u0438 \u0442\u0430\u043a\u0438\u0445 5 \u0448\u0442\u0443\u043a? \u041c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e \u0432\u0435\u0447\u0435\u0440\u0430 \u0436\u0434\u0430\u0442\u044c \u0441\u0431\u043e\u0440\u0430.<\/p>\n<p>  \u041d\u0443 \u0432\u043e\u0442, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0438 \u0432\u0441\u0435. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0438\u0449\u0443\u0449\u0438\u043c, \u043a\u0430\u043a\u0438\u043c \u0431\u044b\u043b \u044f, \u043a\u043e\u0433\u0434\u0430 \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e, \u043a\u043e\u043c\u0444\u043e\u0440\u0442\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u0435, \u0447\u0442\u043e\u0431\u044b \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0431\u044b\u043b\u043e \u0443\u0434\u043e\u0431\u043d\u043e \u0441\u0430\u043c\u043e\u043c\u0443, \u0442\u0430\u043a \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441 \u0437\u0430\u0434\u0435\u043b\u043e\u043c \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435.<\/p><\/div>\n<p>        <script class=\"js-mediator-script\">!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\/javascript\",r.async=!0,r.defer=!0,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\")}(window);<\/script>     <br \/> \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:\/\/habr.com\/post\/427117\/\"> https:\/\/habr.com\/post\/427117\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\">\n<h3>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h3>\n<p>  \u0414\u043e\u0431\u0440\u044b\u0439 \u0434\u0435\u043d\u044c.<\/p>\n<p>  \u041d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043c\u0435\u043d\u044f \u0441\u043f\u043e\u0434\u0432\u0438\u0433\u043b\u043e 2 \u0432\u0435\u0449\u0438: \u043c\u0430\u043b\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043b\u0438 \u0432\u043e\u0432\u0441\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043f\u043e \u00ab\u0444\u0438\u0448\u043a\u0430\u043c\u00bb Asterisk, \u0430 \u0442\u0430\u043a \u0436\u0435 \u043d\u0435\u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0441\u0442\u043e\u0432 \u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u044d\u0442\u0438\u043c\u0438 \u0441\u0430\u043c\u044b\u043c\u0438 \u00ab\u0444\u0438\u0448\u043a\u0430\u043c\u0438\u00bb \u0441 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c\u0438. \u042d\u0442\u043e \u044f \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e \u0420\u0423-\u043a\u043e\u043c\u044c\u044e\u043d\u0438\u0442\u0438. \u0412\u0441\u044f\u043a\u0438\u0435 \u00ab\u0414\u0435\u0434\u044b\u00bb \u043d\u0430 \u0444\u043e\u0440\u0443\u043c\u0430\u0445 \u0441\u043a\u043e\u0440\u0435\u0435 \u043e\u0431\u043e\u043b\u044c\u044e\u0442 \u0442\u0435\u0431\u044f \u043f\u043e\u043c\u043e\u044f\u043c\u0438 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u044f\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043d\u0438\u0436\u043a\u0438 \u0434\u0435\u0441\u044f\u0442\u0438\u043b\u0435\u0442\u043d\u0435\u0439 \u0434\u0430\u0432\u043d\u043e\u0441\u0442\u0438, \u0447\u0435\u043c \u0434\u0430\u0434\u0443\u0442 \u043c\u0430\u043b\u043e \u043c\u0430\u043b\u044c\u0441\u043a\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e. \u0421\u0430\u043c\u0438 \u0436\u0435 \u0442\u0435\u043c\u044b \u0444\u043e\u0440\u0443\u043c\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0432 2005-2010 \u0433\u043e\u0434\u0430\u0445, \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u043b\u0438 \u0438 \u0438\u043d\u043e\u0433\u0434\u0430 \u0447\u0442\u043e \u0442\u043e \u0443\u0436\u0435 \u0432\u044b\u043f\u0438\u043b\u0435\u043d\u043e \u0438\u0437 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0430, \u0430 \u0447\u0442\u043e \u0442\u043e \u043d\u0430\u0434\u043e \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.  <\/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-291088","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291088","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=291088"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/291088\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=291088"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=291088"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=291088"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}