{"id":188382,"date":"2013-07-31T23:53:02","date_gmt":"2013-07-31T19:53:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=188382"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=188382","title":{"rendered":"<span class=\"post_title\">\u0421\u0430\u043c\u043e\u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e google ASR<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0435\u043b \u0448\u0430\u0433\u0430\u0442\u044c \u0432 \u043d\u043e\u0433\u0443 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0436\u0438\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u0438\u0441\u0442\u043e\u0432 \u043d\u0430 \u0431\u0435\u0437\u0434\u0443\u0448\u043d\u043e\u0433\u043e \u0440\u043e\u0431\u043e\u0442\u0430 \u2014 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u0435\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d. \u0421 \u0432\u0432\u043e\u0434\u043e\u043c \u0447\u0435\u0440\u0435\u0437 DTMF \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0438\u0437\u044e\u043c\u0438\u043d\u043a\u0438 \u0432 \u044d\u0442\u043e\u043c \u043d\u0435\u0442. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u0432\u043e\u0434 \u0433\u043e\u043b\u043e\u0441\u043e\u043c.<\/p>\n<p>  \u041f\u043e\u0434 cut&#8217;\u043e\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043c\u0430\u043d\u0443\u0430\u043b \u043f\u0440\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u0435 google ASR \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043e\u0447\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 asterisk&#8217;a.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041f\u043e\u0441\u043b\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0431\u044b\u043b\u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439 \u043d\u0430 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u044f\u0445 \u0426\u0420\u0422. \u041c\u043e\u0436\u0435\u0442 \u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u043d\u043e \u0446\u0435\u043d\u043d\u0438\u043a \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b \u043e\u0442 150 \u043a\u0438\u043b\u043e \u0440\u0443\u0431\u043b\u0435\u0439, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0434\u0435\u043c \u043c\u0438\u043c\u043e (\u043f\u0440\u0438\u0432\u0435\u0442 \u0436\u0430\u0431\u0430).<\/p>\n<p>  \u0413\u043e\u043b\u044b\u0439 asterisk \u0431\u0440\u0430\u0442\u044c \u043d\u0435 \u0441\u0442\u0430\u043b\u0438, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u0430\u043a\u043e\u0439 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0433\u0443\u0439, FreePBX \u0442\u043e\u0436\u0435 \u043f\u043e\u0448\u0435\u043b \u043b\u0435\u0441\u043e\u043c \u0438\u0431\u043e \u043e\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 custom-context, \u0432\u0437\u044f\u043b\u0438 \u043a\u043e\u0440\u043e\u0431\u043a\u0443 <a href=\"http:\/\/virtual-pbx.ru\/ru-features.html\">XVB \u2014 VirtualPBX<\/a> \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a: cdr, TTS, gsm \u043c\u043e\u0434\u0435\u043c\u044b, \u0430\u0432\u0442\u043e\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0440 ( \u043d\u0430\u0448 \u0432\u0442\u043e\u0440\u043e\u0439 \u044d\u0442\u0430\u043f ) \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, ASR \u0438 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 http API. \u0411\u0435\u0440\u0435\u043c \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u0443\u044e ( \u043e\u0442 \u043f\u043b\u0430\u0442\u043d\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0430 10 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0437\u0432\u043e\u043d\u043a\u043e\u0432), \u0432\u0435\u0440\u0441\u0438\u044e \u2014 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 2 \u043b\u0438\u043d\u0438\u0439 \u0422\u0444\u041e\u041f \u0438 2 3G \u0441\u0432\u0438\u0441\u0442\u043a\u043e\u0432 \u0437\u0430 \u0433\u043b\u0430\u0437\u0430. \u0412 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0435 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 switchvox&#8217;\u0443 \u043f\u0440\u0438\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u0436\u0435.<\/p>\n<h4>\u041f\u043e\u0435\u0445\u0430\u043b\u0438:<\/h4>\n<p>  \u041a\u0430\u0447\u0430\u0435\u043c \u0441 <a href=\"http:\/\/virtual-pbx.ru\/downloads\/VirtualPBX-CentOS6-1_7515.tar.bz2\">\u0441\u0430\u0439\u0442\u0430<\/a> \u0438\u043b\u0438 <a href=\"http:\/\/yadi.sk\/d\/leWAmCGl7HE7u\">\u0437\u0435\u0440\u043a\u0430\u043b\u0430<\/a> ( \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u0430\u044f \u043d\u043e \u0441 \u0447\u0443\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u043c \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u043e\u043c <a href=\"http:\/\/code.google.com\/p\/virtual-pbx\/\">\u0442\u0443\u0442<\/a> ) \u0431\u043e\u043b\u044c\u0448\u043e\u0439 tar.bz2 \u0430\u0440\u0445\u0438\u0432 \u0441 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0438\u043c\u0438\u0434\u0436\u0435\u043c \u0434\u043b\u044f VMWare Player. \u0418\u043b\u0438 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u0442\u0430\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0441\u0442\u0430\u0432\u0438\u043c <a href=\"http:\/\/code.google.com\/p\/virtual-pbx\/downloads\/list?can=2&amp;q=VirtualPBX+tgz+update\">\u0430\u043f\u0434\u0435\u0439\u0442\u044b<\/a>.<\/p>\n<p>  \u0420\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432 VMWare \u043f\u043b\u0435\u0435\u0440\u0435 \u043b\u0438\u0431\u043e \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0432 ESXi \u0438\u043b\u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0434\u0430\u043c\u043f \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435 \u0436\u0435\u043b\u0435\u0437\u043e. \u041d\u0438\u0447\u0435\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e. \u041f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043b\u0433\u0438\u0439 \u0438\u0431\u043e \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442\u0441\u044f \u0430\u043f\u0434\u0435\u0439\u0442\u044b.<\/p>\n<p>  \u041b\u0438\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0442\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435: <br \/>  \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0445\u043e\u0441\u0442\u0438\u043d\u0433\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0410\u0422\u0421, \u043d\u043e \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u043c\u0438 \u0435\u0434\u0438\u043d\u043e\u043b\u0438\u0447\u043d\u043e \u0442\u043e \u0438 \u0430\u0434\u043c\u0438\u043d\u044b \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u044b \u0441\u0430\u043c\u0438. \u0412 \u043e\u0431\u0449\u0435\u043c \u0442\u0430\u043a\u0430\u044f \u043d\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f `\u043f\u0443\u0448\u043a\u0430` \u0434\u043b\u044f \u0431\u043e\u0440\u044c\u0431\u044b \u0441 `\u0432\u043e\u0440\u043e\u0431\u044c\u044f\u043c\u0438`. \u041d\u043e \u0435\u0441\u0442\u044c \u0438 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043b\u044e\u0448\u043a\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e QA \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438.<\/p>\n<p>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430, \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c DID, \u043c\u0435\u043d\u044f\u0435\u043c \u0435\u043c\u0443 \u044f\u0437\u044b\u043a \u043d\u0430 \u0420\u0443\u0441\u0441\u043a\u0438\u0439-\u0416\u0435\u043d\u0449\u0438\u043d\u0430 ( \u044d\u0442\u043e google TTS ) \u2014 \u044d\u0442\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0410\u0422\u0421 \u0438 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0430\u043c\u043e\u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f. \u0411\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043f\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442, \u0442\u0443\u0442 \u0443\u0436\u0435 <a href=\"http:\/\/habrahabr.ru\/post\/135845\/\">\u043f\u0438\u0441\u0430\u043b\u0438<\/a>.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0442\u043e\u043f\u0430\u0435\u043c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u0438 \u043f\u0438\u0448\u0435\u043c cgi \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043a \u0433\u0443\u0433\u043b\u0443 \u0445\u043e\u0434\u0438\u0442\u044c. \u0411\u0435\u0440\u0435\u043c <a href=\"http:\/\/code.google.com\/p\/virtual-pbx\/source\/browse\/trunk\/contrib\/utils\/google-voice-search.pl\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a> \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043c \u0447\u0442\u043e\u0431 \u043f\u043e\u043d\u0438\u043c\u0430\u043b CGI \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0447\u0442\u043e \u0442\u043e \u0442\u0438\u043f\u0430:<\/p>\n<pre><code class=\"perl\">#!\/usr\/bin\/perl ######################################################################## use strict;  use CGI qw(:standard); use LWP::UserAgent; use JSON::XS;  my $lang = param('lang'); my $file = param('file'); my $var_name = param('var') || 'ASR_RESULT';  print &quot;Content-type: text\/plain; charset=utf-8\\n\\n&quot;;  my $url;  if ( lc($lang) eq 'ru' ) {     $url = &quot;http:\/\/www.google.com\/speech-api\/v1\/recognize?xjerr=1&client=chromium&lang=ru-RU&quot;; } else {     $url = &quot;http:\/\/www.google.com\/speech-api\/v1\/recognize?xjerr=1&client=chromium&lang=en-US&quot;; }  my $new_file = &quot;\/tmp\/google-asr-$$.wav&quot;;  open(TMP,&quot;&gt;$new_file&quot;); my $buffer;  while ( !eof($file) ) {     read( $file, $buffer, 16384 );     print TMP $buffer; }  system &quot;ffmpeg -y -i $new_file $new_file.flac 2&gt;\/dev\/null&quot;;  if ( $? ) {     print &quot;$var_name=\\n&quot;;     die &quot;Can't convert file $new_file to $new_file.flac: $?\\n&quot;; } else {     $new_file .= '.flac'; }  my $file_info = `file $new_file`;  if ( $file_info =~ \/FLAC audio.*\\s([\\d.]+)\\s*kHz\/ ) {     $file_info = $1 * 1000; } else {     unlink $new_file;     print &quot;$var_name=\\n&quot;;     die &quot;Incorrect FLAC file: $file_info\\n&quot;; }  unless ( open( FILE, &quot;&lt;$new_file&quot; ) ) {     print &quot;$var_name=\\n&quot;;     die &quot;Can't open input file[$file]: $!\\n&quot;; } undef $\/; my $audio = &lt;FILE&gt;; $\/ = &quot;\\n&quot;; close(FILE);  unlink $new_file;  my $ua = LWP::UserAgent-&gt;new( debug =&gt; 1 );  my $response = $ua-&gt;post($url, Content_Type =&gt; &quot;audio\/x-flac; rate=$file_info&quot;, Content =&gt; $audio);  if ( $response-&gt;is_success ) {     my $h_ref;      eval {         my $json = JSON::XS-&gt;new();         $h_ref = $json-&gt;decode($response-&gt;content());     };     if ( ref $h_ref eq 'HASH' and exists $h_ref-&gt;{'hypotheses'} ) {         my $data = $h_ref-&gt;{'hypotheses'}-&gt;[0]-&gt;{'utterance'};         my $map = {             '\u043do\u043b\u044c'          =&gt; 0,             'o\u0434\u0438\u043d'          =&gt; 1,             '\u0434\u0432a'           =&gt; 2,             '\u0442\u0440\u0438'           =&gt; 3,             '\u0447\u0435\u0442\u044b\u0440\u0435'        =&gt; 4,             '\u043f\u044f\u0442\u044c'          =&gt; 5,             '\u0448\u0435\u0441\u0442\u044c'         =&gt; 6,             '\u0441\u0435\u043c\u044c'          =&gt; 7,             '\u0432o\u0441\u0435\u043c\u044c'        =&gt; 8,             '\u0434\u0435\u0432\u044f\u0442\u044c'        =&gt; 9,             '\u0434\u0435\u0441\u044f\u0442\u044c'        =&gt; 10,               '\u0434\u0430'            =&gt; '\u0434\u0430',              '\u0434\u0430\u043b\u044c\u0448\u0435'        =&gt; '\u0434\u0430',              '\u0432\u0435\u0440\u043d\u043e'         =&gt; '\u0434\u0430',              '\u043d\u0435\u0442'           =&gt; '\u043d\u0435\u0442',             '\u043d\u0430\u0437\u0430\u0434'         =&gt; '\u043d\u0435\u0442',               '\u0433\u0430\u0437'           =&gt; '\u0433\u0430\u0437',               '\u0433\u0430\u0441'           =&gt; '\u0433\u0430\u0437',               '\u0432\u043e\u0434\u0430'          =&gt; '\u0432\u043e\u0434\u0430',               '\u0432\u043e\u0434\u0443'          =&gt; '\u0432\u043e\u0434\u0443',               '\u0441\u0432\u0435\u0442'          =&gt; '\u0441\u0432\u0435\u0442',               '\u044d\u043b\u0435\u043a\u0442\u0440\u0438\u0447\u0435\u0441\u0442\u0432\u043e' =&gt; '\u0441\u0432\u0435\u0442',               '\u044d\u043b\u0435\u043a\u0442\u0440\u043e'       =&gt; '\u0441\u0432\u0435\u0442',          };          my $result = '';          foreach my $ch ( split(\/\\s+\/,$data) ) {             $result .= length($map-&gt;{$ch}) ? $map-&gt;{$ch} : $ch;         }          print &quot;$var_name=$result\\n&quot;;         exit;     } }  print &quot;$var_name=\\n&quot;; <\/code><\/pre>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u0447\u0442\u0435\u043d\u0438\u044f CGI \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0435\u0449\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 `\u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044e \u0432 \u0447\u0438\u0441\u043b\u0430` \u0438\u0437 \u0441\u0442\u0440\u043e\u043a \u0432\u0438\u0434\u0430 &#8216;\u043e\u0434\u0438\u043d&#8217;,&#8217;\u0434\u0432\u0430&#8217; \u0438 \u0442\u0434 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e &#8216;\u0430\u043b\u044c\u044f\u0441\u043e\u0432&#8217; \u043d\u0430 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0432 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 ( \u0434\u0430 == \u0434\u0430||\u0434\u0430\u043b\u044c\u0448\u0435||\u0432\u0435\u0440\u043d\u043e ), \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043b\u0438\u043d\u0438\u044f\u0445 &#8216;\u0434\u0430\u043b\u044c\u0448\u0435&#8217; \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442\u0441\u044f \u043b\u0443\u0447\u0448\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u043e &#8216;\u0434\u0430&#8217;.<\/p>\n<p>  \u041d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0432 wav \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0438 \u0438\u043c\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u043a\u0443\u0434\u0430 \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 XVB \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0434\u0438\u0430\u043b\u043f\u043b\u0430\u043d\u0435), \u0434\u0435\u043b\u0430\u0435\u043c \u0435\u0449\u0435 2 \u0441\u043a\u0440\u0438\u043f\u0442\u0430:<\/p>\n<ul>\n<li>\u0412\u0442\u043e\u0440\u043e\u0439 ( account_check.cgi ) \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0430 \u043b\u0438\u0446\u0435\u0432\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430,<\/li>\n<li>\u0422\u0440\u0435\u0442\u0438\u0439 ( commit.cgi ) \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0431\u0430\u0437\u0443.<\/li>\n<\/ul>\n<p>  \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u044c \u0438\u0445 \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0442\u0430\u043c \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043e\u0442 \u0412\u0430\u0448\u0435\u0439 \u0411\u0414. \u0422\u0440\u0435\u0442\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u043d\u043e\u043c\u0435\u0440 \u043b\u0438\u0446\u0435\u0432\u043e\u0433\u043e \u0441\u0447\u0435\u0442\u0430 \/ \u0442\u0438\u043f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \/ \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0438\u0445 \u0432 \u0411\u0414 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0430\u0437\u043d\u0438\u0446\u0443. \u041c\u044b \u043f\u0440\u043e\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u0435\u043c \u0435\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e.<br \/>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u044d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u043d\u0430 \u0442\u043e\u0439 \u0436\u0435 \u043c\u0430\u0448\u0438\u043d\u0435 ( \u0438\u043b\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 ) \u0432 \/var\/www\/cgi-bin\/.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043a\u0443\u0447\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0434\u0438\u0430\u043b-\u043f\u043b\u0430\u043d\u0430 \u0438\u0437 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0445 \u043a\u0443\u0441\u043a\u043e\u0432:<\/p>\n<ul>\n<li>\u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0432 \u043d\u0430\u0448 cgi-\u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u0437 wav \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 ( WebVariables )<br \/>   <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/219\/ac5\/8a1\/219ac58a1285f1c1fb1e7f1adc188c6d.png\"\/><\/li>\n<li>\u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 ( GotoIF )<br \/>   <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/6ec\/8ee\/11d\/6ec8ee11d9afd1ca677a050abeca7f7b.png\"\/><\/li>\n<li>\u043f\u043e\u0432\u0442\u043e\u0440 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 ( RoboText )<br \/>   <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/cc8\/595\/475\/cc85954759bc470bac1f982d749d1660.png\"\/><\/li>\n<li>\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0433\u043e\u043b\u043e\u0441\u043e\u043c ( WebVariables )<\/li>\n<\/ul>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c:<\/p>\n<ul>\n<li>\u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 ( \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 ).<\/li>\n<li>\u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043a\u043e\u0434\u0438\u0440\u0443\u0435\u0442 \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0442\u0435\u043a\u0441\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043e\u0442\u0432\u0435\u0442 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439.<\/li>\n<li>\u0447\u0438\u0442\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0442\u043e \u0447\u0442\u043e \u043e\u043d \u0432\u0432\u0435\u043b\u0438 \u0438 \u043f\u0440\u043e\u0441\u0438\u043c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0432\u0432\u043e\u0434\u0430.<\/li>\n<li>\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442.<\/li>\n<\/ul>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0443\u0434\u043d\u044b\u0435 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0435 \u0441\u0442\u0430\u043b\u0438 \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0440\u0443\u043a\u0430\u043c\u0438 \u0430 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 XML \u043a\u043e\u043d\u0444\u0438\u0433 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c <br \/>  (XVB \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443\/\u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0438\u0437 XML \u0444\u0430\u0439\u043b\u0430). \u041c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 \u043a\u0443\u0441\u043e\u043a \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c:<\/p>\n<pre><code class=\"xml\">&lt;opt&gt; &lt;IVR name=&quot;0&quot;  \tEXT_NUMBER=&quot;0&quot;  \tNAME=&quot;\u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0435.&quot;  \tGREET_REPEAT_CNT=&quot;1&quot;  \tGREETING=&quot;\u0412\u0430\u0441 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u043e\u0440\u0442\u0430\u043b \u043f\u0440\u0438\u0435\u043c\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432.&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;V5_2*0&quot;  \tTYPE=&quot;1&quot;  \tWAITEXTENSION=&quot;0&quot;&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;error&quot;  \tEXT_NUMBER=&quot;error&quot;  \tNAME=&quot;WEB \u043e\u0448\u0438\u0431\u043a\u0430&quot;  \tGREETING=&quot;\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043f\u043e\u0437\u0434\u043d\u0435\u0435.&quot;  \tGREET_REPEAT_CNT=&quot;1&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;hangup&quot;  \tTYPE=&quot;1&quot;  \tWAITEXTENSION=&quot;0&quot;&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_2*0&quot;  \tEXT_NUMBER=&quot;V5_2*0&quot;    \tNAME=&quot;\u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0434\u0430 - \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f --------------&quot;  \tGREET_REPEAT_CNT=&quot;0&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;V5_2*1&quot;  \tTYPE=&quot;1&quot;  \tWAITEXTENSION=&quot;0&quot;&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_2*1&quot;    \tEXT_NUMBER=&quot;V5_2*1&quot;    \tNAME=&quot;\u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0434\u0430 - \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \/ \u0432\u0432\u043e\u0434 \u0446\u0438\u0444\u0440&quot;  \tGOTO_IF_FAIL=&quot;error&quot;  \tGREETING=&quot;\u041d\u0430\u0437\u043e\u0432\u0438\u0442\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0445\u043e\u043b\u043e\u0434\u043d\u043e\u0439 \u0432\u043e\u0434\u044b&quot;   \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tGREET_REPEAT_CNT=&quot;1&quot;  \tMAX_MSG_DURATION=&quot;10&quot;  \tMAX_SILENCE=&quot;2&quot;  \tNEED_VOICE=&quot;1&quot;  \tNEXTEXTENSION=&quot;V5_2*2&quot;  \tTYPE=&quot;20&quot;  \tWAITEXTENSION=&quot;0&quot;  \tWEBVAR_URL=&quot;http:\/\/localhost\/cgi-bin\/gv.pl?lang=ru&amp;file=% VAR:FILE_DATA %&amp;var=ASR_RESULTV5_2&quot;&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_2*2&quot;    \tEXT_NUMBER=&quot;V5_2*2&quot;    \tNAME=&quot;\u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0434\u0430 - \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \/ \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0432\u043e\u0434\u0430&quot;  \tGREET_REPEAT_CNT=&quot;0&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;V5_2*3&quot;  \tTYPE=&quot;21&quot;  \tWAITEXTENSION=&quot;0&quot;&gt; \t&lt;_VB_DATA COND=&quot;==&quot; FUNC=&quot;strlen&quot; PRIORITY=&quot;5&quot; REDIRECT_TO=&quot;V5_2*2*1&quot; VAR_NAME=&quot;ASR_RESULTV5_2&quot; VAR_VALUE=&quot;0&quot;\/&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_2*2*1&quot;  \tEXT_NUMBER=&quot;V5_2*2*1&quot;  \tNAME=&quot;\u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0434\u0430 - \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \/ \u043e\u0448\u0438\u0431\u043a\u0430 \u0432\u0432\u043e\u0434\u0430&quot;  \tGREETING=&quot;\u041c\u044b \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u043b\u0438 \u0432\u0430\u0448 \u0432\u0432\u043e\u0434, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437.&quot;  \tGREET_REPEAT_CNT=&quot;1&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;V5_2*1&quot;  \tTYPE=&quot;1&quot;  \tWAITEXTENSION=&quot;0&quot;&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_2*3&quot;    \tEXT_NUMBER=&quot;V5_2*3&quot;    \tNAME=&quot;\u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0434\u0430 - \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \/ \u0447\u0442\u0435\u043d\u0438\u0435 \u0432\u0432\u043e\u0434\u0430&quot;  \tGREETING=&quot;\u0412\u044b \u0432\u0432\u0435\u043b\u0438&quot;  \tGREET_REPEAT_CNT=&quot;1&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;V5_2*4&quot;  \tSAY_PATTERN=&quot;char&quot;  \tSAY_PATTERN_ID=&quot;0&quot;  \tTEXT_STR=&quot;% VAR:ASR_RESULTV5_2 %&quot;  \tTYPE=&quot;25&quot;  \tWAITEXTENSION=&quot;0&quot;&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_2*4&quot;    \tEXT_NUMBER=&quot;V5_2*4&quot;    \tNAME=&quot;\u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0434\u0430 - \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \/ \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435&quot;  \tGOTO_IF_FAIL=&quot;error&quot;  \tGREETING=&quot;\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435, \u0441\u043a\u0430\u0437\u0430\u0432 \u0414\u0430 \u0438\u0438\u043b\u0438\u0438 \u041d\u0435\u0442.&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tGREET_REPEAT_CNT=&quot;1&quot;  \tMAX_MSG_DURATION=&quot;3&quot;  \tMAX_SILENCE=&quot;2&quot;  \tNEED_PARAMS=&quot;0&quot;  \tNEED_VOICE=&quot;1&quot;  \tNEXTEXTENSION=&quot;V5_2*4*1&quot;  \tTYPE=&quot;20&quot;  \tWAITEXTENSION=&quot;0&quot;  \tWEBVAR_URL=&quot;http:\/\/localhost\/cgi-bin\/gv.pl?lang=ru&amp;file=% VAR:FILE_DATA %&quot;&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_2*4*1&quot;  \tEXT_NUMBER=&quot;V5_2*4*1&quot;  \tNAME=&quot;\u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0434\u0430 - \u0445\u043e\u043b\u043e\u0434\u043d\u0430\u044f \/ \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f&quot;  \tGREET_REPEAT_CNT=&quot;0&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;V5_2*3&quot;  \tTYPE=&quot;21&quot;  \tWAITEXTENSION=&quot;0&quot;&gt; \t&lt;_VB_DATA COND=&quot;==&quot; FUNC=&quot;value&quot; PRIORITY=&quot;5&quot; REDIRECT_TO=&quot;V5_2*0&quot; VAR_NAME=&quot;ASR_RESULT&quot; VAR_VALUE=&quot;\u0434\u0430&quot;\/&gt; \t&lt;_VB_DATA COND=&quot;==&quot; FUNC=&quot;value&quot; PRIORITY=&quot;5&quot; REDIRECT_TO=&quot;V5_2*1&quot; VAR_NAME=&quot;ASR_RESULT&quot; VAR_VALUE=&quot;\u043d\u0435\u0442&quot;\/&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_3*9&quot;    \tEXT_NUMBER=&quot;V5_3*9&quot;    \tNAME=&quot;\u0441\u0447\u0435\u0442\u0447\u0438\u043a \u0432\u043e\u0434\u0430 - \u0433\u043e\u0440\u044f\u0447\u0430\u044f \/ \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435&quot;  \tGREET_REPEAT_CNT=&quot;0&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;V5_3*9*1&quot;  \tTYPE=&quot;6&quot;  \tWAITEXTENSION=&quot;0&quot;  \tQUIET_MODE=&quot;1&quot;  \tGOTO_IF_FAIL=&quot;error&quot;  \tTTS_URL=&quot;http:\/\/127.0.0.1\/cgi-bin\/commit.pl?level=V5_3&amp;account=% VAR:ASR_RESULTV1 %&amp;value1=% VAR:ASR_RESULTV5_1 %&amp;value2=% VAR:ASR_RESULTV5_2 %&amp;value3=% VAR:ASR_RESULTV5_3 %&quot;&gt; &lt;\/IVR&gt; &lt;IVR name=&quot;V5_3*9*1&quot;  \tEXT_NUMBER=&quot;V5_3*9*1&quot;  \tNAME=&quot;-----------------------&quot;  \tGREET_REPEAT_CNT=&quot;1&quot;  \tGREETING=&quot;\u0412\u0430\u0448\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u044b. \u0421\u043f\u0430\u0441\u0438\u0431\u043e. \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u0438\u043f \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u0430 \u0441\u0435\u0439\u0447\u0430\u0441.&quot;  \tGREET_REPEAT_DELAY=&quot;0.00&quot;  \tNEXTEXTENSION=&quot;0&quot;  \tTYPE=&quot;1&quot;  \tWAITEXTENSION=&quot;0&quot;&gt; &lt;\/IVR&gt; &lt;\/opt&gt;  <\/code><\/pre>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0432 xxx.xml \u0438 \u0437\u0430\u043b\u0438\u0442\u044c \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0447\u0435\u0440\u0435\u0437 \u043f\u0443\u043d\u043a\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0412 \u0432\u0435\u0431\u0435, \u0432 \u0438\u0442\u043e\u0433\u0435 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/eea\/d70\/b1d\/eead70b1d51712d6b39cebc7b29706e6.png\"\/><\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0433\u043e\u043b\u043e\u0441\u043e\u043c \u0438 \u0447\u0435\u0440\u0435\u0437 DTMF ( \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0430\u043c\u043e\u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043d\u0438\u044f \u0432\u0432\u043e\u0434\u043e\u043c DTMF \u0432 <br \/>  VirtualPBX \u0435\u0441\u0442\u044c \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043d\u0435 \u0441\u0442\u0430\u043b \u0437\u0434\u0435\u0441\u044c \u044d\u0442\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c ) \u0433\u043e\u0442\u043e\u0432. \u0421\u0435\u0439\u0447\u0430\u0441 \u0448\u043b\u0438\u0444\u0443\u0435\u043c \u0441\u0432\u043e\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0438 \u043f\u0438\u0448\u0435\u043c \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043a\u0430\u043a \u043e\u043d\u043e \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 ( \u0430 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u043e\u043d\u043e \u043f\u043e \u0440\u0430\u0437\u043d\u043e\u043c\u0443 ) \u0442\u043e:   <\/p>\n<ul>\n<li>\u0427\u0435\u0440\u0435\u0437 \u0441\u043a\u0430\u0439\u043f: skype: tsg812<\/li>\n<li>\u0427\u0435\u0440\u0435\u0437 VoIP: tel:+1 253-243-1337<\/li>\n<li>\u0427\u0435\u0440\u0435\u0437 dongle: tel: +7 987 391 6412<\/li>\n<\/ul>\n<p>  \u0414\u043e\u043d\u0433\u043b \u0438 \u0441\u043a\u0430\u0439\u043f \u043f\u043e\u043a\u0430 \u0432 \u0444\u043e\u0432\u0430\u0440\u0438\u0442\u0430\u0445 \u043f\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0443, \u043a \u0422\u0444\u041e\u043f \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u0440\u0438\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u043b\u0438. <\/p>\n<p>  P.S. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0440\u043e\u0434\u0443 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u0442 \u0433\u043e\u043b\u043e\u0441 DTMF&#8217;\u0443, \u0434\u043b\u044f \u043c\u0435\u043d\u044f DTMF \u0432\u0440\u043e\u0434\u0435 \u043f\u0440\u043e\u0449\u0435 ( \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u0435\u0435 ) \u0438 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u0435\u0441\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 DTMF. \t\t\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\/188382\/\"> http:\/\/habrahabr.ru\/post\/188382\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041d\u0430\u0447\u0430\u043b\u043e\u0441\u044c \u0432\u0441\u0435 \u0441 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0435\u043b \u0448\u0430\u0433\u0430\u0442\u044c \u0432 \u043d\u043e\u0433\u0443 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0438 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0436\u0438\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u0438\u0441\u0442\u043e\u0432 \u043d\u0430 \u0431\u0435\u0437\u0434\u0443\u0448\u043d\u043e\u0433\u043e \u0440\u043e\u0431\u043e\u0442\u0430 \u2014 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u0435\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0441\u0447\u0435\u0442\u0447\u0438\u043a\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u0442\u0435\u043b\u0435\u0444\u043e\u043d. \u0421 \u0432\u0432\u043e\u0434\u043e\u043c \u0447\u0435\u0440\u0435\u0437 DTMF \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0438\u0437\u044e\u043c\u0438\u043d\u043a\u0438 \u0432 \u044d\u0442\u043e\u043c \u043d\u0435\u0442. \u0425\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0432\u0432\u043e\u0434 \u0433\u043e\u043b\u043e\u0441\u043e\u043c.<\/p>\n<p>  \u041f\u043e\u0434 cut&#8217;\u043e\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043c\u0430\u043d\u0443\u0430\u043b \u043f\u0440\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u043d\u0438\u0435 google ASR \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043e\u0447\u043d\u044b\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 asterisk&#8217;a.  <\/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-188382","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/188382","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=188382"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/188382\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}