{"id":211606,"date":"2014-02-06T11:40:03","date_gmt":"2014-02-06T07:40:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=211606"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=211606","title":{"rendered":"<span class=\"post_title\">\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u043e\u0439 \u043a\u043d\u0438\u0433\u0438 \u0432 IP \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u0444\u0438\u0440\u043c\u044b Polycom<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/21c\/241\/83a\/21c24183ab19fe3a843cc1ed42eab3fa.jpg\"\/><br \/>   \u0412 \u043d\u0430\u0448\u0435\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f ip \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044f \u043d\u0430 \u0431\u0430\u0437\u0435 Trixbox (\u043f\u043e \u0441\u0443\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 FreePBX \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0442\u043b\u0438\u0447\u0438\u044f\u043c\u0438), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0435 \u0430\u043f\u0430\u0440\u0430\u0442\u044b \u0444\u0438\u0440\u043c\u044b Polycom. \u0421 \u043a\u0430\u0436\u0434\u044b\u043c \u0434\u043d\u0435\u043c \u0448\u0442\u0430\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0440\u043e\u0441 \u0438 \u0441\u0442\u0430\u043b\u043e \u0432\u0441\u0435 \u0442\u044f\u0436\u0435\u043b\u0435\u0435 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043a\u0443\u0447\u0443 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432. \u0427\u0430\u0441\u0442\u044c \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0432\u0431\u0438\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u043d\u0443\u044e \u043a\u043d\u0438\u0433\u0443 \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435, \u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0435\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0442\u0440\u0430\u0442\u0438\u043b\u0430 \u0442\u043e\u043d\u043d\u044b \u0431\u0443\u043c\u0430\u0433\u0438 \u043d\u0430 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u043a\u0443 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0438\u0441\u043a\u0438 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430. \u0421 \u044d\u0442\u0438\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0447\u0442\u043e \u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c. <br \/>   \u0412\u0441\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0441\u0432\u043e\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 tftp \u0441\u0435\u0440\u0432\u0435\u0440, \u0442\u0443\u0434\u0430 \u0438 \u043f\u043e\u043b\u0435\u0437\u0435\u043c. \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 *macaddr*-directory.xml \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 *tftpserver_dir*\/polycom\/contacts\/, \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0435\u0433\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442. \u042d\u0442\u0438\u043c \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f.<br \/>  <a name=\"habracut\"><\/a><br \/>   \u0421\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043f\u043b\u0430\u043d \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439:  <\/p>\n<ol>\n<li> \u0424\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 xml \u0441 \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0430\u043c\u0438. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0433\u043e\u0440\u043e\u0434\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u044b, \u043d\u0430\u0434\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0447\u0435\u0440\u0435\u0437 bash \u0441\u043a\u0440\u0438\u043f\u0442\u044b.<\/li>\n<li> \u041f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u0445 \u043d\u0443\u0436\u043d\u043e \u0438\u0437 CLI asterisk. #\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u21161.<\/li>\n<li> \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u043e\u0432, \u043f\u0443\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432 1 \u0440\u0430\u0437 \u0432 \u0441\u0443\u0442\u043a\u0438 \u043d\u043e\u0447\u044c\u044e.<\/li>\n<\/ol>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u21161<\/b><\/p>\n<div class=\"spoiler_text\">\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e trixbox \u043f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u044b asterisk, \u043d\u0435 \u043f\u0438\u0448\u0435\u0442 \u043d\u0438\u043a\u0443\u0434\u0430 caller id, \u0430 \u0445\u0440\u0430\u043d\u0438\u0442 \u0438\u0445 \u0442\u043e\u043b\u044c\u043a\u043e \u0443 \u0441\u0435\u0431\u044f \u0432 mysql \u0431\u0430\u0437\u0435. \u0418\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443:  <\/p>\n<pre><code>trixbox1*CLI&gt; sip show peer 114 trixbox1*CLI&gt;   * Name       : 114   Secret       : &lt;Set&gt;   MD5Secret    : &lt;Not set&gt;   Context      : from-internal   Subscr.Cont. : &lt;Not set&gt;   Language     : ru   AMA flags    : Unknown   Transfer mode: open   CallingPres  : Presentation Allowed, Not Screened   Callgroup    :   Pickupgroup  :   Mailbox      : 114@device   VM Extension : *97   LastMsgsSent : 0\/0   Call limit   : 50   Dynamic      : Yes   Callerid     : &quot;device&quot; &lt;114&gt;   MaxCallBR    : 384 kbps   Expire       : 1410   Insecure     : no   Nat          : Always   ACL          : Yes   T38 pt UDPTL : No   CanReinvite  : No   PromiscRedir : No   User=Phone   : No   Video Support: Yes   Trust RPID   : No   Send RPID    : No   Subscriptions: Yes   Overlap dial : Yes   DTMFmode     : rfc2833   LastMsg      : 0   ToHost       :   Addr-&gt;IP     : 192.168.0.95 Port 5060   Defaddr-&gt;IP  : 0.0.0.0 Port 5060   Def. Username: 114   SIP Options  : (none)   Codecs       : 0x28000c (ulaw|alaw|h263|h264)   Codec Order  : (ulaw:20,alaw:20)   Auto-Framing:  No   Status       : OK (18 ms)   Useragent    : PolycomSoundPointIP-SPIP_321-UA\/3.1.3.0507   Reg. Contact : sip:114@192.168.0.95<\/code><\/pre>\n<p>  \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0430 Callerid: \u00abdevice\u00bb &lt;114&gt; \u0412\u043c\u0435\u0441\u0442\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e CallerID (\u0424\u0418\u041e) \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u043c\u044b \u0432\u0438\u0434\u0438\u043c \u0437\u043b\u043e\u043f\u043e\u043b\u0443\u0447\u043d\u043e\u0435 \u00abdevice\u00bb.<br \/>  \u0420\u0435\u0448\u0438\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438. \u041f\u0435\u0440\u0432\u044b\u0439 \u043d\u0430\u0439\u0442\u0438 \u0432 \u0431\u0430\u0437\u0435 MySQL \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e CallerID \u0438 \u043d\u0430 \u043b\u0435\u0442\u0443 \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 XML \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u041b\u0438\u0431\u043e \u0432\u0442\u043e\u0440\u044b\u043c \u043c\u0435\u043d\u0435\u0435 \u0442\u0440\u0443\u0434\u043e\u0435\u043c\u043a\u0438\u043c \u0438 \u043c\u0435\u043d\u0435\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0435\u043c\u043a\u0438\u043c. <br \/>  \u0417\u043d\u0430\u044f \u0447\u0442\u043e trixbox \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 php \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u043a\u043e\u0434\u0430\u0445 \u0433\u0434\u0435 \u0436\u0435 trixbox \u043f\u0438\u0448\u0435\u0442 \u044d\u0442\u043e \u00abdevice\u00bb. \u041f\u043e\u043a\u043e\u0432\u044b\u0440\u044f\u0432\u0448\u0438\u0441\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432 \/var\/www\/ \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0444\u0430\u0439\u043b\u0438\u043a \/var\/www\/html\/admin\/modules\/core\/functions.inc.php \u0441 \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432.   <\/p>\n<pre><code>\/\/ Very bad         $iaxfields[] = array($account,'account',$account);         $iaxfields[] = array($account,'callerid',(isset($_REQUEST['description']) && $_REQUEST['description'] != '')?$_REQUEST['description'].&quot; &lt;&quot;.$account.'&gt;':'device'.&quot; &lt;&quot;.$account.'&gt;');<\/code><\/pre>\n<p>  \u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u0434\u0443\u043c\u0430\u0442\u044c \u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0442\u043a\u0443\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0431\u0435\u0440\u0443\u0442 \u044d\u0442\u043e\u0442 description, \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 extension \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u043b\u0435 Display name \u0438 \u043a\u0430\u043a \u0440\u0430\u0437 \u0442\u0443\u0434\u0430 \u043c\u044b \u0432\u043d\u043e\u0441\u0438\u043c \u0424\u0418\u041e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430, \u0438\u0441\u0445\u043e\u0434\u044f \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0434\u043f\u0440\u0430\u0432\u0438\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0438\u043a. <br \/>  \u041d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e \u0431\u0435\u043a\u0430\u043f \u0444\u0430\u0439\u043b\u0430 \u0432\u0434\u0440\u0443\u0433 \u0447\u0442\u043e \u043f\u043e\u0439\u0434\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u0438\u043b\u0438 \u043b\u0438\u0448\u043d\u0435\u0435 \u0437\u0430\u0446\u0435\u043f\u0438\u043c, \u0438 \u0434\u0430 \u043d\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443 \u043d\u0430 \u0431\u043e\u0435\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<br \/>  \u041c\u0435\u043d\u044f\u0435\u043c \u0432 \u0441\u0442\u0440\u043e\u043a\u0435   <\/p>\n<pre><code>$_REQUEST['description']<\/code><\/pre>\n<p>  \u043d\u0430   <\/p>\n<pre><code>$_REQUEST['name']<\/code><\/pre>\n<p>  \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:  <\/p>\n<pre><code>$sipfields[] = array($account,'callerid',(isset($_REQUEST['name']) && $_REQUEST['name'])?$_REQUEST['name'].&quot; &lt;&quot;.$account.'&gt;':'device'.&quot; &lt;&quot;.$account.'&gt;');<\/code><\/pre>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c, \u0438\u0434\u0435\u043c \u0432 \u0432\u0435\u0431 \u0438 \u043f\u0435\u0440\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c extension.<br \/>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0432 CLI asterisk \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438 \u0440\u0430\u0434\u0443\u0435\u043c\u0441\u044f:  <\/p>\n<pre><code>trixbox1*CLI&gt; sip show peer 114 trixbox1*CLI&gt;    * Name       : 114   Secret       : &lt;Set&gt;   MD5Secret    : &lt;Not set&gt;   Context      : from-internal   Subscr.Cont. : &lt;Not set&gt;   Language     : ru   AMA flags    : Unknown   Transfer mode: open   CallingPres  : Presentation Allowed, Not Screened   Callgroup    :   Pickupgroup  :   Mailbox      : 114@device   VM Extension : *97   LastMsgsSent : 0\/0   Call limit   : 50   Dynamic      : Yes   Callerid     : &quot;Ivan Petrov&quot; &lt;114&gt;   MaxCallBR    : 384 kbps   Expire       : 1410   Insecure     : no   Nat          : Always   ACL          : Yes   T38 pt UDPTL : No   CanReinvite  : No   PromiscRedir : No   User=Phone   : No   Video Support: Yes   Trust RPID   : No   Send RPID    : No   Subscriptions: Yes   Overlap dial : Yes   DTMFmode     : rfc2833   LastMsg      : 0   ToHost       :   Addr-&gt;IP     : 192.168.0.95 Port 5060   Defaddr-&gt;IP  : 0.0.0.0 Port 5060   Def. Username: 114   SIP Options  : (none)   Codecs       : 0x28000c (ulaw|alaw|h263|h264)   Codec Order  : (ulaw:20,alaw:20)   Auto-Framing:  No   Status       : OK (18 ms)   Useragent    : PolycomSoundPointIP-SPIP_321-UA\/3.1.3.0507   Reg. Contact : sip:114@192.168.0.95 <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0435\u043d\u0430, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c extension \u0438 \u043f\u0435\u0440\u0435\u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0438\u0445, \u0447\u0442\u043e\u0431\u044b trixbox \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u043a\u043e\u043d\u0444\u0438\u0433 \u0444\u0430\u0439\u043b\u044b \u0441 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u043c caller id.  <\/div>\n<\/div>\n<p>  \u0418\u0434\u0435\u043c \u0434\u0430\u043b\u0435\u0435.<br \/>  \u041d\u0430\u0443\u0447\u0438\u043c asterisk \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b Polycom. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0430\u0439\u043b\u0438\u043a \/etc\/asterisk\/sip_notify.conf \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:  <\/p>\n<pre><code>[polycom-check-cfg] Event=&gt;check-sync Content-Length=&gt;0<\/code><\/pre>\n<p>  \u0420\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u043c asterisk. <br \/>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0435\u0441\u043b\u0438 \u0432 CLI asterisk \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c   <\/p>\n<pre><code>sip notify polycom-check-cfg 114<\/code><\/pre>\n<p>  \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0439 \u0430\u043f\u0430\u0440\u0430\u0442 Polycom \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d extension 114 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432, \u043e\u043d \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0438\u0445 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438  <\/p>\n<pre><code>asterisk -rx 'sip show peers' <\/code><\/pre>\n<p>  \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c   <\/p>\n<pre><code>354\/354                    192.168.0.226    D   N   A  5060     OK (19 ms) 353\/353                    192.168.0.108    D   N   A  5060     OK (15 ms) 352                        (Unspecified)    D   N   A  0        UNKNOWN 351                        (Unspecified)    D   N   A  0        UNKNOWN 342\/342                    192.168.0.138    D   N   A  5061     OK (7 ms) 341\/341                    192.168.0.138    D   N   A  5060     OK (7 ms)<\/code><\/pre>\n<p>  C \u043f\u043e\u043c\u043e\u0449\u044c\u044e grep \u0443\u0431\u0435\u0440\u0435\u043c \u043b\u0438\u0448\u043d\u0435\u0435 (\u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u043f\u0430\u0440\u0430\u0442\u044b \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043e\u043d\u0438 \u0432 \u0441\u043f\u0438\u0441\u043a\u0435 \u0441\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c \u00ab\u041e\u041a\u00bb \u0438 \u043e\u0442\u0434\u0435\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432)  <\/p>\n<pre><code> asterisk -rx 'sip show peers' |grep OK |awk '{print $1}'|awk -F'\/' '{print $1}'<\/code><\/pre>\n<p>  \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c  <\/p>\n<pre><code>400 363 362 361 359 357 356 355 354 353 342 <\/code><\/pre>\n<p>  \u041d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043e\u0442\u0442\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0449\u0435 \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e.  <\/p>\n<pre><code> asterisk -rx 'sip show peers' |grep OK |awk '{print $1}'|awk -F'\/' '{print $1}' &gt; numbers.txt<\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043f\u0438\u0441\u043a\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0442\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0432 \u043d\u0438\u0445 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a.<br \/>  \u0412\u0442\u043e\u0440\u044b\u043c \u0437\u0430\u0445\u043e\u0434\u043e\u043c \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0441\u0430\u043c xml \u0444\u0430\u0439\u043b \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a (\u0441\u043d\u043e\u0432\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044f \u043d\u0435\u043d\u0443\u0436\u043d\u043e\u0435) \u0438 \u043f\u0438\u0448\u0435\u043c \u0432 \u0444\u0430\u0439\u043b\u0438\u043a.  <\/p>\n<pre><code>asterisk -rx 'sip show peers' |egrep 'OK|UNKNOWN' |grep -v 'GSM' &gt; extensions.txt<\/code><\/pre>\n<p>  Caller id \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c  <\/p>\n<pre><code>asterisk -rx 'sip show peer 114' |grep Callerid<\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \u0447\u0438\u0442\u0430\u044f extensions.txt \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c caller id \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0438\u043a \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044f \u043d\u0430 \u043b\u0435\u0442\u0443 \u043a\u0443\u0441\u043a\u0438 xml.<br \/>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u044b\u0439 000000000000-directory.xml \u043e\u043d \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430\u043c\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0442\u043e\u043b\u044c\u043a\u043e 1 \u0440\u0430\u0437 \u043f\u0440\u0438 \u043f\u0435\u0440\u0432\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430, \u0434\u0430\u043b\u0435\u0435 \u0432 \u043f\u0430\u043f\u043a\u0435 \/tftpboot\/polycom\/contacts\/ \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0444\u0430\u0439\u043b macaddress-directory.xml \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f (\u0442\u0443\u0442 \u043d\u0430\u0434\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u0430\u043b\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0437\u0430\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0447\u0442\u043e\u0431\u044b \u0442\u0435 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u043b\u0438\u0441\u044c \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d). \u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e xml \u043d\u0443\u0436\u043d\u044b \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d. \u041d\u0430\u0431\u0438\u0440\u0430\u0435\u043c:  <\/p>\n<pre><code>echo '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;' &gt; 000000000000-directory.xml echo '&lt;!-- $RCSfile$  $Revision: 35928 $ --&gt;' &gt;&gt; 000000000000-directory.xml echo '&lt;directory&gt;' &gt;&gt; 000000000000-directory.xml echo '        &lt;item_list&gt;' &gt;&gt; 000000000000-directory.xml <\/code><\/pre>\n<p>  \u0417\u0430\u043c\u0435\u0442\u044c\u0442\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0435\u0439, \u0447\u0442\u043e\u0431\u044b \u0444\u0430\u0439\u043b \u0431\u044b\u043b \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u043c \u043f\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438, \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c.<br \/>  \u0414\u0430\u043b\u0435\u0435 \u0446\u0438\u043a\u043b \u0447\u0442\u0435\u043d\u0438\u044f extensions.txt  <\/p>\n<pre><code>cat extensions.txt | while read line do<\/code><\/pre>\n<p>  \u0412\u043e \u043f\u0435\u0440\u0432\u044b\u0445 \u0438\u0437\u0431\u0430\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043e\u0442 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e (\u0444\u0430\u043a\u0441\u043e\u0432, free extensinons, \u0437\u0430\u043f\u0430\u0441\u043d\u044b\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445\u0441\u044f \u0441 1000\u0445 \u0438 \u0442.\u0434.)  <\/p>\n<pre><code>RES=$(asterisk -rx &quot;sip show peer $line&quot; |grep Callerid |grep -v 'Free' |grep -v 'free' |grep -v 'fax' |grep -v '1000' |grep -v 'device' |grep -v 'FAX' |grep -v 'Test');         if [ &quot;$RES&quot; !=  &quot;&quot; ]; then<\/code><\/pre>\n<p>  \u0438 \u0442\u0443\u0442 \u0443\u0436\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0439 \u043a\u0443\u0441\u043e\u043a \u043a\u043e\u0434\u0430 xml  <\/p>\n<pre><code>asterisk -rx &quot;sip show peer $line&quot; |grep Callerid | awk -F': &quot;' '{print $2}' | awk -F'&quot; &lt;' '{print \\ &quot;\\t\\t&lt;item&gt;\\n\\t\\t\\t&lt;ln&gt;&quot;$1&quot;&lt;\/ln&gt;\\n\\t\\t\\t&lt;ct&gt;&quot;$2&quot;&lt;\/ct&gt;\\n\\t\\t&lt;\/item&gt;&quot;}' &gt;&gt; 000000000000-directory.xml<\/code><\/pre>\n<p>  \u043f\u0440\u0438\u043c\u0435\u0440  <\/p>\n<pre><code>\t\t&lt;item&gt; \t\t\t&lt;ln&gt;Ivan Petrov&lt;\/ln&gt; \t\t\t&lt;ct&gt;114&gt;&lt;\/ct&gt; \t\t&lt;\/item&gt; <\/code><\/pre>\n<p>  \u043d\u0443 \u0438 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 xml  <\/p>\n<pre><code>echo '        &lt;\/item_list&gt;' &gt;&gt; 000000000000-directory.xml echo '&lt;\/directory&gt;' &gt;&gt; 000000000000-directory.xml <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f xml \u0444\u0430\u0439\u043b\u0430:  <\/p>\n<pre><code>echo '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;' &gt; 000000000000-directory.xml echo '&lt;!-- $RCSfile$  $Revision: 35928 $ --&gt;' &gt;&gt; 000000000000-directory.xml echo '&lt;directory&gt;' &gt;&gt; 000000000000-directory.xml echo '        &lt;item_list&gt;' &gt;&gt; 000000000000-directory.xml cat extensions.txt | while read line do         RES=$(asterisk -rx &quot;sip show peer $line&quot; |grep Callerid |grep -v 'Free' |grep -v 'free' |grep -v 'fax' |grep -v '1000' |grep -v 'device' |grep -v 'FAX' |grep -v 'Test');         if [ &quot;$RES&quot; !=  &quot;&quot; ]; then                 asterisk -rx &quot;sip show peer $line&quot; |grep Callerid | awk -F': &quot;' '{print $2}' | awk -F'&quot; &lt;' '{print \\ &quot;\\t\\t&lt;item&gt;\\n\\t\\t\\t&lt;ln&gt;&quot;$1&quot;&lt;\/ln&gt;\\n\\t\\t\\t&lt;ct&gt;&quot;$2&quot;&lt;\/ct&gt;\\n\\t\\t&lt;\/item&gt;&quot;}' &gt;&gt; 000000000000-directory.xml         fi done echo '        &lt;\/item_list&gt;' &gt;&gt; 000000000000-directory.xml echo '&lt;\/directory&gt;' &gt;&gt; 000000000000-directory.xml <\/code><\/pre>\n<p>  \u0423 \u0432\u0441\u0435\u0445 \u0430\u043f\u0430\u0440\u0430\u0442\u043e\u0432 Polycom mac-\u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 00:04:F, \u043e\u0442\u0441\u044e\u0434\u0430 \u043c\u043e\u0436\u043d\u043e \u0432 \u0441\u0435\u0442\u0438 \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u0447\u0435\u0440\u0435\u0437 arp  <\/p>\n<pre><code>arp -a |grep 00:04:F |awk '{print $4}' &gt; mac.txt <\/code><\/pre>\n<p>  \u043f\u043e \u0446\u0438\u043a\u043b\u0443 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c 000000000000-directory.xml \u0432 macaddress-directory.xml  <\/p>\n<pre><code>cat mac.txt |while read phonemac do         MAC=${phonemac\/\/:\/};    #\u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043a\u0430 \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0440\u0430\u0442\u044c &quot;:&quot; \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438         cp \/tftpboot\/polycom\/contacts\/000000000000-directory.xml \/tftpboot\/polycom\/contacts\/$MAC-directory.xml done <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u043f\u043e\u0447\u0442\u0438 \u0444\u0438\u043d\u0438\u0448\u043d\u0430\u044f \u043f\u0440\u044f\u043c\u0430\u044f \u043f\u043e \u0446\u0438\u043a\u043b\u0443 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 numbers.txt \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u0440\u0435\u0431\u0443\u0442\u0430\u0435\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b:  <\/p>\n<pre><code>cat numbers.txt |while read number do         asterisk -rx &quot;sip notify polycom-check-cfg $number&quot; done <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u0430:  <\/p>\n<pre><code>#!\/bin\/sh asterisk -rx 'sip show peers' |grep OK |awk '{print $1}'|awk -F'\/' '{print $1}' &gt; numbers.txt asterisk -rx 'sip show peers' |egrep 'OK|UNKNOWN' |grep -v 'GSM' |awk '{print $1}'|awk -F'\/' '{print $1}' &gt; extensions.txt arp -a |grep 00:04:F |awk '{print $4}' &gt; mac.txt echo '&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;' &gt; 000000000000-directory.xml echo '&lt;!-- $RCSfile$  $Revision: 35928 $ --&gt;' &gt;&gt; 000000000000-directory.xml echo '&lt;directory&gt;' &gt;&gt; 000000000000-directory.xml echo '        &lt;item_list&gt;' &gt;&gt; 000000000000-directory.xml cat extensions.txt | while read line do         RES=$(asterisk -rx &quot;sip show peer $line&quot; |grep Callerid |grep -v 'Free' |grep -v 'free' |grep -v 'fax' |grep -v '1000' |grep -v 'device' |grep -v 'FAX' |grep -v 'Test');         if [ &quot;$RES&quot; !=  &quot;&quot; ]; then                 asterisk -rx &quot;sip show peer $line&quot; |grep Callerid | awk -F': &quot;' '{print $2}' | awk -F'&quot; &lt;' '{print &quot;\\t\\t&lt;item&gt;\\n\\t\\t\\t&lt;ln&gt;&quot;$1&quot;&lt;\/ln&gt;\\n\\t\\t\\t&lt;ct&gt;&quot;$2&quot;&lt;\/ct&gt;\\n\\t\\t&lt;\/item&gt;&quot;}' &gt;&gt; 000000000000-directory.xml         fi done echo '        &lt;\/item_list&gt;' &gt;&gt; 000000000000-directory.xml echo '&lt;\/directory&gt;' &gt;&gt; 000000000000-directory.xml cat mac.txt |while read phonemac do         MAC=${phonemac\/\/:\/};            cp \/tftpboot\/polycom\/contacts\/000000000000-directory.xml \/tftpboot\/polycom\/contacts\/$MAC-directory.xml done cat numbers.txt |while read number do         asterisk -rx &quot;sip notify polycom-check-cfg $number&quot; done rm numbers.txt rm extensions.txt rm mac.txt rm 000000000000-directory.xml <\/code><\/pre>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432 \u043f\u0430\u043f\u043a\u0435 \/etc\/cron.daily \u0438 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0447\u044c \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0439 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u043d\u0435\u043c\u0443. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u044b, \u0431\u0443\u043c\u0430\u0433\u0430 \u0432 \u043e\u0444\u0438\u0441\u0435 \u0437\u0440\u044f \u043d\u0435 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u0442\u0441\u044f. \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\/211606\/\"> http:\/\/habrahabr.ru\/post\/211606\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t<img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/21c\/241\/83a\/21c24183ab19fe3a843cc1ed42eab3fa.jpg\"\/><br \/>   \u0412 \u043d\u0430\u0448\u0435\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f ip \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044f \u043d\u0430 \u0431\u0430\u0437\u0435 Trixbox (\u043f\u043e \u0441\u0443\u0442\u0438 \u0442\u043e\u0442 \u0436\u0435 FreePBX \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043e\u0442\u043b\u0438\u0447\u0438\u044f\u043c\u0438), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0435 \u0430\u043f\u0430\u0440\u0430\u0442\u044b \u0444\u0438\u0440\u043c\u044b Polycom. \u0421 \u043a\u0430\u0436\u0434\u044b\u043c \u0434\u043d\u0435\u043c \u0448\u0442\u0430\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0440\u043e\u0441 \u0438 \u0441\u0442\u0430\u043b\u043e \u0432\u0441\u0435 \u0442\u044f\u0436\u0435\u043b\u0435\u0435 \u0437\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043a\u0443\u0447\u0443 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432. \u0427\u0430\u0441\u0442\u044c \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u043d\u0430\u0447\u0430\u043b\u0430 \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0432\u0431\u0438\u0432\u0430\u0442\u044c \u0430\u0434\u0440\u0435\u0441\u043d\u0443\u044e \u043a\u043d\u0438\u0433\u0443 \u0432 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0435, \u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0435\u0435 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0430 \u0442\u0440\u0430\u0442\u0438\u043b\u0430 \u0442\u043e\u043d\u043d\u044b \u0431\u0443\u043c\u0430\u0433\u0438 \u043d\u0430 \u0440\u0430\u0441\u043f\u0435\u0447\u0430\u0442\u043a\u0443 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u043e\u0438\u0441\u043a\u0438 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430. \u0421 \u044d\u0442\u0438\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0447\u0442\u043e \u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c. <br \/>   \u0412\u0441\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0441\u0432\u043e\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 tftp \u0441\u0435\u0440\u0432\u0435\u0440, \u0442\u0443\u0434\u0430 \u0438 \u043f\u043e\u043b\u0435\u0437\u0435\u043c. \u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u043e\u0441\u044c \u0447\u0442\u043e \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 *macaddr*-directory.xml \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 *tftpserver_dir*\/polycom\/contacts\/, \u0438 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0435\u0433\u043e \u0435\u0441\u043b\u0438 \u043d\u0430\u0445\u043e\u0434\u0438\u0442. \u042d\u0442\u0438\u043c \u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f.  <\/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-211606","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/211606","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=211606"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/211606\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=211606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=211606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=211606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}