{"id":285597,"date":"2017-04-27T13:25:02","date_gmt":"2017-04-27T09:25:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=285597"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=285597","title":{"rendered":"\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a JS \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d"},"content":{"rendered":"<pre><code class=\"javascript\">Flashphoner.createSession(...).createCall({callee:'+74957718000'}).call();<\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0430\u0439\u0442\u0430 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043b\u0438 \u0433\u043e\u0440\u043e\u0434\u0441\u043a\u043e\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<a name=\"habracut\"><\/a><\/p>\n<h2>\u0421\u0445\u0435\u043c\u0430 \u0437\u0432\u043e\u043d\u043a\u0430<\/h2>\n<p>  \u041f\u0440\u0435\u0436\u0434\u0435 \u0432\u0441\u0435\u0433\u043e, \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f <b>SIP-\u0430\u043a\u043a\u0430\u0443\u043d\u0442<\/b> \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 <b>VoIP \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438<\/b>. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u00ab\u043f\u0440\u0438\u0437\u0435\u043c\u043b\u044f\u0435\u0442\u00bb \u0437\u0432\u043e\u043d\u043e\u043a, \u0438\u0434\u0443\u0449\u0438\u0439 \u043f\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 (VoIP) \u0438 \u0434\u043e\u0437\u0432\u0430\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043e \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u0433\u043e\u0440\u043e\u0434\u0441\u043a\u043e\u0433\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/p>\n<p>  \u041d\u0430\u0448\u0438 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435:<\/p>\n<ol>\n<li>\u041f\u043e\u0441\u043b\u0430\u0442\u044c <b>SIP INVITE<\/b> \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 SIP \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.<\/li>\n<li>\u041f\u0440\u0438\u043d\u044f\u0442\u044c <b>SIP 200 OK<\/b> \u043e\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.<\/li>\n<li>\u041f\u0440\u0438\u043d\u044f\u0442\u044c \u0437\u0432\u0443\u043a \u043e\u0442 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.<\/li>\n<li>\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0437\u0432\u0443\u043a \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443.<\/li>\n<\/ol>\n<p>  \u0411\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e \u0447\u0435\u0441\u0442\u043d\u044b\u043c <b>SIP \/ TCP<\/b> \u0438 <b>SIP \/ UDP<\/b> \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0445\u0435\u043c\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440-\u043f\u043e\u0441\u0440\u0435\u0434\u043d\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0441 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c <b>SIP \/ UDP<\/b>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/57e\/19a\/118\/57e19a1182004e1d9c603f7278b72349.png\" \/><\/div>\n<p>  <\/p>\n<h2>SIP \u0430\u043a\u043a\u0430\u0443\u043d\u0442<\/h2>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c SIP \u0430\u043a\u043a\u0430\u0443\u043d\u0442, \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 VoIP \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 <b>sipnet<\/b> \u0438\u043b\u0438 \u0443 \u043b\u044e\u0431\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043b\u0438\u043d\u0438\u0438 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u043e\u0432 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b.<\/p>\n<p>  SIP \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0448\u0435\u0441\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:<\/p>\n<ol>\n<li>\u041b\u043e\u0433\u0438\u043d <br \/>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <b>alice123<\/b><\/li>\n<li>\u0418\u043c\u044f \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 (\u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043b\u043e\u0433\u0438\u043d\u0430 \u0438\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c).<br \/>   \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <b>alice123<\/b><\/li>\n<li>\u041f\u0430\u0440\u043e\u043b\u044c<br \/>   \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <b>******<\/b><\/li>\n<li>\u0414\u043e\u043c\u0435\u043d<br \/>   \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <b>sipnet.ru<\/b><\/li>\n<li>\u041f\u0440\u043e\u043a\u0441\u0438 (\u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0434\u043e\u043c\u0435\u043d\u0430 \u0438\u043b\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0442\u044c)<br \/>   \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <b>sipnet.ru<\/b><\/li>\n<li>\u041f\u043e\u0440\u0442 (\u043e\u0431\u044b\u0447\u043d\u043e 5060)<br \/>   \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <b>5060<\/b><\/li>\n<\/ol>\n<p>  <\/p>\n<h2>\u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u044b\u0439 SIP \u0430\u043a\u043a\u0430\u0443\u043d\u0442<\/h2>\n<p>  \u0427\u0430\u0441\u0442\u043e \u0431\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e <b>domain<\/b> \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 <b>outbound proxy<\/b> \u0438 <b>login<\/b> \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 <b>authentication name<\/b>, \u0438 \u043f\u043e\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 <b>5060<\/b>. \u0412 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 SIP \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c SIP \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u0432 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435:  <\/p>\n<table>\n<tbody>\n<tr>\n<td>Login<\/td>\n<td>alice123<\/td>\n<\/tr>\n<tr>\n<td>Password<\/td>\n<td>***<\/td>\n<\/tr>\n<tr>\n<td>Domain<\/td>\n<td>sipnet.ru<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>  \u042d\u0442\u043e \u0443\u0436\u0435 \u0447\u0435\u043c-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435 \u043d\u0430 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0435\u0431 \u0440\u0435\u0441\u0443\u0440\u0441\u0443. \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0441 \u043b\u044e\u0431\u044b\u043c \u0438\u0437 \u0441\u043e\u0444\u0442\u0444\u043e\u043d\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 Xlite, Linphone, Ekiga, \u0438 \u0442.\u0434.<\/p>\n<h2>\u0422\u0435\u0441\u0442 \u0441 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u043c \u0441\u043e\u0444\u0442\u0444\u043e\u043d\u043e\u043c<\/h2>\n<p>  \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u043e\u0444\u0442\u0444\u043e\u043d\u0430 Bria 4, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u043e SIP \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 \u0442\u0430\u043a:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/740\/6d5\/366\/7406d536609d498b9c8240304e25f77f.png\" \/><\/div>\n<p>  \u041e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u043e\u043c\u0435\u0440\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c SIP-\u0437\u0432\u043e\u043d\u043e\u043a. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0434\u0430\u044e\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0435 \u043c\u0438\u043d\u0443\u0442\u044b \u043f\u0440\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0441\u0447\u0435\u0442\u0430. <\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0441 \u0441\u043e\u0444\u0442\u0444\u043e\u043d\u0430 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e SIP \u0437\u0432\u043e\u043d\u043a\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u043d\u0430 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u044b. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u043c \u0432 \u041c\u0438\u043d\u043a\u043e\u043c\u0441\u0432\u044f\u0437\u044c \u043f\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443 +74957718000.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cea\/27e\/690\/cea27e690028489b8e79531fa4b7096d.jpg\" \/><\/div>\n<p>  \u0415\u0441\u043b\u0438 \u0437\u0432\u043e\u043d\u043a\u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0439 \u0441\u043e\u0444\u0442\u0444\u043e\u043d, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u043e\u043c\u0443 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443 \u0438 \u043a \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u043c \u0437\u0432\u043e\u043d\u043a\u0430\u043c.<\/p>\n<h2>HTML \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u0430<\/h2>\n<p>  \u0411\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0435 \u0437\u0432\u043e\u043d\u043a\u0438 \u0431\u0443\u0434\u0443\u0442 \u0438\u0434\u0442\u0438 \u043f\u043e \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 <b>WebRTC<\/b> \u0447\u0435\u0440\u0435\u0437 \u0441\u0435\u0440\u0432\u0435\u0440 <b>Web Call Server 5<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u043f\u043e WebRTC, \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043e\u0437\u0432\u0430\u043d\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441 <b>SIP \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c<\/b> \u043f\u043e SIP.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a47\/ee3\/b41\/a47ee3b41d844ef3831f24b810e52cd4.png\" \/><\/div>\n<p>  \u041a\u043e\u0434 HTML-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0441 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u0437\u0432\u043e\u043d\u043a\u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439 \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 14 \u0441\u0442\u0440\u043e\u043a:<\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head lang=&quot;en&quot;&gt;    &lt;script type=&quot;text\/javascript&quot; src=&quot;flashphoner.js&quot;&gt;&lt;\/script&gt;     &lt;script language=&quot;javascript&quot; src=&quot;click-to-call.js&quot;&gt;&lt;\/script&gt; &lt;\/head&gt; &lt;body onload=&quot;init_page()&quot;&gt; &lt;button id=&quot;callButton&quot; type=&quot;button&quot; onclick=&quot;connectAndCall('+74957718000')&quot;&gt;Call&lt;\/button&gt; &lt;button id=&quot;hangupButton&quot; type=&quot;button&quot; onclick=&quot;hangup()&quot;&gt;Hangup&lt;\/button&gt; &lt;div id=&quot;remoteMedia&quot; style=&quot;visibility: hidden&quot;&gt;&lt;\/div&gt; &lt;div id=&quot;localMedia&quot; style=&quot;visibility: hidden&quot;&gt;&lt;\/div&gt; &lt;p id=&quot;status&quot;&gt;&lt;\/p&gt; &lt;\/body&gt; &lt;\/html&gt;<\/code><\/pre>\n<p>  \u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 <b>Call<\/b> \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0438 \u043a\u043d\u043e\u043f\u043a\u0430 <b>Hangup<\/b> \u0434\u043b\u044f \u0435\u0433\u043e \u0441\u0431\u0440\u043e\u0441\u0430. \u0415\u0441\u0442\u044c \u043f\u043e\u043b\u0435, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0442\u0443\u0441.<\/p>\n<p>  Div \u2014 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <b>localMedia<\/b> \u0438 <b>remoteMedia<\/b> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0432 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0438\u0445 \u0437\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u0437\u0432\u0443\u043a\u0430.<\/p>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 <b>flashphoner.js<\/b> \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u0432 \u0441\u0431\u043e\u0440\u043a\u0435 <a href=\"https:\/\/flashphoner.com\/wcs-web-sdk\">Web SDK<\/a>.<\/p>\n<h2>\u0421\u043a\u0440\u0438\u043f\u0442 click-to-call.js \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u0430<\/h2>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 <b>click-to-call.js<\/b> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 97 \u0441\u0442\u0440\u043e\u043a. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u043d\u0435\u043a\u0442 \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a.<\/p>\n<pre><code class=\"javascript\">var localMedia; var remoteMedia; var outCall;  \/\/init API function init_page() {     Flashphoner.init();     localMedia = document.getElementById(&quot;localMedia&quot;);     remoteMedia = document.getElementById(&quot;remoteMedia&quot;); }  \/\/call function connectAndCall(number) {      \/\/if already connected, make a call     if (Flashphoner.getSessions().length &gt; 0) {         call(number, Flashphoner.getSessions()[0]);     } else {          \/\/SIP credentials         var sipOptions = {             login: &quot;10001&quot;,             authenticationName: &quot;10001&quot;,             password: &quot;12345&quot;,             domain: &quot;192.168.1.3&quot;,             outboundProxy: &quot;192.168.1.3&quot;,             port: &quot;5060&quot;,             registerRequired: false         };          var connectionOptions = {             urlServer: &quot;wss:\/\/wcs5-eu.flashphoner.com:8443&quot;,             sipOptions: sipOptions         };          \/\/create new connection to WCS server         Flashphoner.createSession(connectionOptions).on(Flashphoner.constants.SESSION_STATUS.ESTABLISHED, function (session) {             setStatus(&quot;Session&quot;, Flashphoner.constants.SESSION_STATUS.ESTABLISHED);             \/\/session connected, place call             call(number, session);         }).on(Flashphoner.constants.SESSION_STATUS.DISCONNECTED, function () {             setStatus(&quot;Session&quot;, Flashphoner.constants.SESSION_STATUS.DISCONNECTED);             onHangup();         }).on(Flashphoner.constants.SESSION_STATUS.FAILED, function () {             setStatus(&quot;Session&quot;, Flashphoner.constants.SESSION_STATUS.FAILED);             onHangup();         });     } }  function call(number, session) {      \/\/disable call button     document.getElementById(&quot;callButton&quot;).disabled=true;      var constraints = {         audio: true,         video: false     };      \/\/prepare outgoing call     outCall = session.createCall({         callee: number,         visibleName: &quot;Click To Call&quot;,         localVideoDisplay: localMedia,         remoteVideoDisplay: remoteMedia,         constraints: constraints,         receiveAudio: true,         receiveVideo: false     }).on(Flashphoner.constants.CALL_STATUS.RING, function () {         setStatus(&quot;Call&quot;, Flashphoner.constants.CALL_STATUS.RING);     }).on(Flashphoner.constants.CALL_STATUS.ESTABLISHED, function () {         setStatus(&quot;Call&quot;, Flashphoner.constants.CALL_STATUS.ESTABLISHED);     }).on(Flashphoner.constants.CALL_STATUS.FINISH, function () {         setStatus(&quot;Call&quot;, Flashphoner.constants.CALL_STATUS.FINISH);         onHangup();     }).on(Flashphoner.constants.CALL_STATUS.FAILED, function () {         setStatus(&quot;Call&quot;, Flashphoner.constants.CALL_STATUS.FAILED);         onHangup();     });      outCall.call(); }  function hangup() {     if (outCall) {         outCall.hangup();     } }  function onHangup(){     \/\/will be invoked on hangup }  function setStatus(callOrSession,status){     document.getElementById(&quot;status&quot;).innerHTML= callOrSession +&quot; &quot;+status; }<\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u0447\u0435\u0442\u044b\u0440\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<ul>\n<li>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c<\/li>\n<li>\u0417\u0432\u043e\u043d\u043e\u043a<\/li>\n<li>\u0421\u0431\u0440\u043e\u0441 \u0437\u0432\u043e\u043d\u043a\u0430<\/li>\n<\/ul>\n<p>  <\/p>\n<h3>\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h3>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e init() \u0438 \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c API.<\/p>\n<pre><code>Flashphoner.init();<\/code><\/pre>\n<p>  <\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c<\/h3>\n<p>  \u0417\u0434\u0435\u0441\u044c \u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0443 websockets \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 SIP \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0435\u0440\u0432\u0435\u0440, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u0441\u043c\u043e\u0433 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a SIP \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443 (\u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0443).<\/p>\n<pre><code class=\"javascript\"> var sipOptions = {             login: &quot;10001&quot;,             authenticationName: &quot;10001&quot;,             password: &quot;12345&quot;,             domain: &quot;192.168.1.3&quot;,             outboundProxy: &quot;192.168.1.3&quot;,             port: &quot;5060&quot;,             registerRequired: false };  var connectionOptions = {             urlServer: &quot;wss:\/\/wcs5-eu.flashphoner.com:8443&quot;,             sipOptions: sipOptions };  Flashphoner.createSession(connectionOptions);<\/code><\/pre>\n<p>  <\/p>\n<h3>\u0417\u0432\u043e\u043d\u043e\u043a<\/h3>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0437\u0432\u043e\u043d\u043e\u043a \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 <b>call()<\/b> \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430. \u041f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u0437\u0432\u043e\u043d\u043a\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <b>callee<\/b> \u2014 \u044d\u0442\u043e \u043d\u043e\u043c\u0435\u0440 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0437\u0432\u043e\u043d\u0438\u043c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u043e\u043c\u0435\u0440 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e.<\/p>\n<pre><code class=\"javascript\">outCall = session.createCall({         callee: number,         visibleName: &quot;Click To Call&quot;,         localVideoDisplay: localMedia,         remoteVideoDisplay: remoteMedia,         constraints: constraints,         receiveAudio: true,         receiveVideo: false });  outCall.call(); <\/code><\/pre>\n<p>  <\/p>\n<h3>\u0421\u0431\u0440\u043e\u0441 \u0437\u0432\u043e\u043d\u043a\u0430<\/h3>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0437\u0432\u043e\u043d\u043e\u043a, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0442\u043e\u0434 API hangup()<\/p>\n<pre><code class=\"javascript\">outCall.hangup();<\/code><\/pre>\n<p>  <\/p>\n<h2>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0437\u0432\u043e\u043d\u043a\u0430<\/h2>\n<p>  \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432 Google Chrome \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b <b>click-to-call.html<\/b> \u0438 <b>click-to-call.js<\/b> \u043d\u0430 web-\u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 https. Chrome \u0434\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 (https). \u041a\u043e\u0434 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0434\u043b\u044f \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f <a href=\"https:\/\/flashphoner.com\/downloads\/examples\/click-to-call-0.5.18.1977-5.0.2190.zip\">\u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442\u044b \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0441 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c <b>wss:\/\/wcs5-eu.flashphoner.com:8443<\/b>. \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 WCS5 \u043d\u0430 Linux \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 WCS5 \u043c\u043e\u0436\u043d\u043e \u043f\u043e <a href=\"https:\/\/flashphoner.com\/download\">\u044d\u0442\u043e\u0439 \u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 <b>click-to-call.html<\/b> \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 Google Chrome \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 <b>Call<\/b>. \u0421\u0435\u0440\u0432\u0435\u0440 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u044b\u0437\u043e\u0432 \u0438 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0435\u0442 \u0441\u0442\u0430\u0442\u0443\u0441 ESTABLISHED. \u041c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0430\u0431\u043e\u043d\u0435\u043d\u0442 \u0431\u0435\u0440\u0435\u0442 \u0442\u0440\u0443\u0431\u043a\u0443 \u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a \u043c\u0435\u0436\u0434\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u043c.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/bd0\/145\/1b4\/bd01451b43fe4b0b960273d2d53ffda8.jpg\" \/><\/div>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043c\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u044f\u0442 SIP-\u0430\u043a\u043a\u0430\u0443\u043d\u0442\u044b, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430\u043c\u0438 IP-\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438, \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0437\u0432\u043e\u043d\u043a\u0438 \u0441 \u0441\u043e\u0444\u0442\u0444\u043e\u043d\u0430\u043c\u0438, \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 <b>click-to-call.html<\/b> \u0438 <b>click-to-call.js<\/b> \u0438 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u044d\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0437\u0432\u043e\u043d\u043a\u043e\u043c \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 Google Chrome \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d, \u0447\u0435\u0440\u0435\u0437 SIP-\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u0417\u0432\u043e\u043d\u043e\u043a \u0438\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0438\u0434\u0435\u0442 \u043d\u0430 <b>Web Call Server 5<\/b> \u0438 \u0434\u0430\u043b\u0435\u0435 \u043d\u0430 SIP \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0441 \u043f\u0440\u0438\u0437\u0435\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d.<\/p>\n<h2>\u0421\u0441\u044b\u043b\u043a\u0438<\/h2>\n<p>  <a href=\"https:\/\/www.ietf.org\/rfc\/rfc3261.txt\">SIP<\/a> \u2014 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0441\u0435\u0441\u0441\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 VoIP \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438<br \/>  <a href=\"https:\/\/flashphoner.com\/\">Web Call Server<\/a> \u2014 WebRTC-SIP \u0448\u043b\u044e\u0437 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u0432 \u0441 SIP \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0435\u0439.<br \/>  <a href=\"https:\/\/flashphoner.com\/wcs-web-sdk\">Web SDK<\/a> \u2014 JavaScript API \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043d\u044b\u0445 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u043e\u0432. \u0421\u0431\u043e\u0440\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 flashphoner.js.<br \/>  <a href=\"https:\/\/flashphoner.com\/downloads\/examples\/click-to-call-0.5.18.1977-5.0.2190.zip\">Source<\/a> \u2014 \u0441\u043a\u0440\u0438\u043f\u0442\u044b click-to-call.html \u0438 click-to-call.js<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:\/\/habrahabr.ru\/post\/327466\/\"> https:\/\/habrahabr.ru\/post\/327466\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<pre><code class=\"javascript\">Flashphoner.createSession(...).createCall({callee:'+74957718000'}).call();<\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0435\u043c \u043a\u0430\u043a \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u0434\u043b\u044f \u0437\u0432\u043e\u043d\u043a\u0430 \u0441\u043e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0441\u0430\u0439\u0442\u0430 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043b\u0438 \u0433\u043e\u0440\u043e\u0434\u0441\u043a\u043e\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.<\/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-285597","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285597","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=285597"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/285597\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=285597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=285597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=285597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}