{"id":484541,"date":"2026-06-22T11:45:25","date_gmt":"2026-06-22T11:45:25","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=484541"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=484541","title":{"rendered":"\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438: inbound, outbound, Leg A \u0438 Leg B"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e\u0431 \u0430\u043d\u0430\u0442\u043e\u043c\u0438\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430. \u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0437\u043e\u0432 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u044b\u0437\u043e\u0432, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b A \u0438 B, \u043a\u0430\u043a \u043e\u043d\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0438 \u043a\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0431\u044d\u043a\u0435\u043d\u0434\u0435.<\/h3>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/29f\/d45\/c5d\/29fd45c5d8cf9c4ec1b5bbdb72585f0b.png\" alt=\"\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438: inbound, outbound, Leg A \u0438 Leg B\" title=\"\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438: inbound, outbound, Leg A \u0438 Leg B\" width=\"1672\" height=\"941\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/29f\/d45\/c5d\/29fd45c5d8cf9c4ec1b5bbdb72585f0b.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/29f\/d45\/c5d\/29fd45c5d8cf9c4ec1b5bbdb72585f0b.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438: inbound, outbound, Leg A \u0438 Leg B<\/figcaption><\/div>\n<\/figure>\n<p>\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Jambonz \u043a\u0430\u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 CPaaS\/SIP application layer. \u0412 <a href=\"https:\/\/habr.com\/en\/articles\/958670\/\" rel=\"noopener noreferrer nofollow\">\u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e Jambonz \u0438 Voice AI<\/a> \u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b \u0431\u043e\u043b\u0435\u0435 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u043f\u0443\u0442\u044c: PSTN\/SIP trunk -&gt; Jambonz -&gt; backend -&gt; AI\/LLM. \u0417\u0434\u0435\u0441\u044c \u0444\u043e\u043a\u0443\u0441 \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u043e\u0439: \u043a\u0430\u043a backend \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u0443\u0435\u0442 \u043e\u0434\u0438\u043d production-\u0437\u0432\u043e\u043d\u043e\u043a.<\/p>\n<blockquote>\n<p>\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445: SIP (Session Initiation Protocol) &#8212; \u044d\u0442\u043e signaling protocol, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 telephony layer \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0437\u0432\u043e\u043d\u043e\u043a: \u043a\u0442\u043e \u043a\u043e\u043c\u0443 \u0437\u0432\u043e\u043d\u0438\u0442, \u043a\u0443\u0434\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c call, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0430 \u0438\u043b\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430 \u0441\u0435\u0430\u043d\u0441. CPaaS (Communications Platform as a Service) &#8212; \u044d\u0442\u043e \u0441\u043b\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044e \u0432 API: \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 inbound calls, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 backend webhooks \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u0440\u043e\u0434\u0435\u00a0<code>say<\/code>,\u00a0<code>gather<\/code>,\u00a0<code>dial<\/code>\u00a0\u0438\u00a0<code>hangup<\/code>. Jambonz &#8212; \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a\u043e\u0439 voice platform.<\/p>\n<\/blockquote>\n<h4>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430<\/h4>\n<p>\u041d\u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0437\u0432\u043e\u043d\u043e\u043a &#8212;\u00a0<code>inbound call<\/code>. Backend \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 telephony layer \u0438 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0434\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c: \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c IVR, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u0430\u0436\u0430\u0442\u044c \u0446\u0438\u0444\u0440\u0443, \u043f\u043e\u0441\u043b\u0443\u0448\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u0443\u044e \u0444\u0440\u0430\u0437\u0443, \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AI \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e backend \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a &#8212;\u00a0<code>outbound call<\/code>: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443, PBX, SIP endpoint \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443. \u041a\u043e\u0433\u0434\u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442, telephony layer \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 inbound \u0438 outbound \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440.<\/p>\n<p>\u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0435\u0442 \u0442\u0430\u043a\u0438\u0445 \u0437\u0432\u043e\u043d\u043a\u043e\u0432: \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0430\u043a\u0442\u0438\u0432\u043d\u043e, \u043a\u0442\u043e \u0437\u0432\u043e\u043d\u0438\u0442, \u043a\u0443\u0434\u0430 \u043c\u044b \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0432\u043e\u043d\u043e\u043a, \u0431\u044b\u043b \u043b\u0438 \u043e\u0442\u0432\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u0438\u043b\u0441\u044f \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0441\u044f.<\/p>\n<blockquote>\n<p>\u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440, \u0430 \u0434\u043b\u044f backend &#8212; \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u0432\u0430 \u0437\u0432\u043e\u043d\u043a\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u0432\u043e\u043d\u0438\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 destination.<\/p>\n<\/blockquote>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c inbound call \u0438 outbound call, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e Leg A, Leg B, bridge \u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f.<\/p>\n<h4>Inbound call<\/h4>\n<p>Inbound call &#8212; \u044d\u0442\u043e \u0437\u0432\u043e\u043d\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443:<\/p>\n<pre><code>caller -&gt; public phone number -&gt; SIP trunk \/ carrier -&gt; Jambonz \/ CPaaS -&gt; backend<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f caller \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0432\u043e\u043d\u043e\u043a \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0414\u043b\u044f backend \u044d\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u043e \u0437\u0432\u043e\u043d\u043a\u0435: Jambonz \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 webhook \u043d\u0430 \u043d\u0430\u0448 backend \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a, backend \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u00a0<code>active_calls<\/code>, \u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0435\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439\u00a0<code>activeCallId<\/code>\u00a0\u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 backend \u0435\u0449\u0435 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d \u0437\u043d\u0430\u0442\u044c, \u043a\u0442\u043e \u043e\u0442\u0432\u0435\u0442\u0438\u0442. \u041e\u043d \u0437\u043d\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e caller, dialed number, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 phone config \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f provider.<\/p>\n<p>\u042d\u0442\u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f\u00a0<strong>Leg A<\/strong>.<\/p>\n<h4>Outbound call<\/h4>\n<p>Outbound call &#8212; \u044d\u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 destination \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0435.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, backend \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u043e\u043c\u0435\u0440\u0430, IVR input \u0438\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 AI-\u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0432\u044b\u0431\u0440\u0430\u043b destination \u0438 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b Jambonz \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435: \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443, SIP endpoint, PBX \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443.<\/p>\n<p>Outbound leg \u043c\u043e\u0436\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u043d\u0430\u0447\u0430\u0442\u044c ringing;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c busy;<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c no answer;<\/p>\n<\/li>\n<li>\n<p>\u0431\u044b\u0442\u044c answered;<\/p>\n<\/li>\n<li>\n<p>\u0431\u044b\u0442\u044c transferred;<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435 inbound leg;<\/p>\n<\/li>\n<li>\n<p>\u0438\u043c\u0435\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 provider id.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a &#171;\u0442\u043e\u0442 \u0436\u0435 call \u0441\u0442\u0430\u043b connected&#187;: \u0443 outbound leg \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u0432\u043e\u0439 lifecycle.<\/p>\n<p>\u042d\u0442\u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f\u00a0<strong>Leg B<\/strong>.<\/p>\n<h4>Leg A \u0438 Leg B<\/h4>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0442\u044c \u044d\u0442\u0438\u043c \u0434\u0432\u0443\u043c \u0447\u0430\u0441\u0442\u044f\u043c \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u0430:<\/p>\n<pre><code>Caller -- Leg A --&gt; Platform -- Leg B --&gt; Destination<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u0443 \u0441\u0445\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0430\u043a: caller \u0443\u0436\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d \u0441 \u043d\u0430\u0448\u0435\u0439 platform \u0447\u0435\u0440\u0435\u0437 Leg A, \u0430 platform \u0441\u043e\u0437\u0434\u0430\u0435\u0442 Leg B, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e destination.<\/p>\n<p>Leg A \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443:\u00a0<code>external caller -&gt; platform<\/code>.<\/p>\n<p>Leg B \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443:\u00a0<code>platform -&gt; operator \/ SIP endpoint \/ PBX \/ external number<\/code>.<\/p>\n<p>\u042d\u0442\u0438 legs \u043d\u0443\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e backend \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u0423 \u043a\u0430\u0436\u0434\u043e\u0439 leg \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u043e\u0438:<\/p>\n<ul>\n<li>\n<p>provider call id;<\/p>\n<\/li>\n<li>\n<p>direction;<\/p>\n<\/li>\n<li>\n<p>start time;<\/p>\n<\/li>\n<li>\n<p>answer time;<\/p>\n<\/li>\n<li>\n<p>end time;<\/p>\n<\/li>\n<li>\n<p>status events;<\/p>\n<\/li>\n<li>\n<p>failure reason.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0434\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c\u00a0<code>activeCall<\/code>, \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f Leg A \u0438 Leg B. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443 Leg B \u043d\u0435 \u0431\u0443\u0434\u0435\u0442\u00a0<code>answerTime<\/code>, \u043f\u043e\u043a\u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0435\u0449\u0435 \u043d\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0430.<\/p>\n<h4>Bridge<\/h4>\n<p>Bridge &#8212; \u044d\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 Leg A \u0438 Leg B \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0442\u0430\u043a, \u0447\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0441\u043b\u044b\u0448\u0430\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430.<\/p>\n<p>\u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e:<\/p>\n<pre><code>Leg A audio &lt;-&gt; Leg B audio<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043e bridge caller \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u044b\u0448\u0430\u0442\u044c greeting, hold music, IVR \u0438\u043b\u0438 ringing.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 bridge caller \u0438 destination \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u044e\u0442 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c.<\/p>\n<p>\u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 bridge \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a outbound \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0430 \u0438 telephony layer \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 Leg A \u0441 Leg B.<\/p>\n<p>Bridge \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0432\u043e\u043d\u043e\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u0441\u044f. \u0417\u0432\u043e\u043d\u043e\u043a \u0443\u0436\u0435 \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f inbound Leg A.<\/p>\n<h4>Call control<\/h4>\n<p>Programmable telephony \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 \u0442\u0435\u043c, \u0447\u0442\u043e backend \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u043e\u043c \u0447\u0435\u0440\u0435\u0437 call-control commands.<\/p>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435:<\/p>\n<ul>\n<li>\n<p><code>say<\/code>\u00a0&#8212; \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0438\u043b\u0438 \u0430\u0443\u0434\u0438\u043e;<\/p>\n<\/li>\n<li>\n<p><code>gather<\/code>\u00a0&#8212; \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0432\u043e\u0434 \u043e\u0442 caller;<\/p>\n<\/li>\n<li>\n<p><code>dial<\/code>\u00a0&#8212; \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043d\u0430 destination \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p><code>transfer<\/code>\u00a0&#8212; \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 call;<\/p>\n<\/li>\n<li>\n<p><code>hangup<\/code>\u00a0&#8212; \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c;<\/p>\n<\/li>\n<li>\n<p><code>config<\/code>\u00a0&#8212; \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0432\u043e\u043d\u043a\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043b\u0438 speech settings.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 Jambonz \u044d\u0442\u043e \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 JSON verbs, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 backend \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 webhook response.<\/p>\n<p>\u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0439 \u0434\u0438\u0430\u043b\u043e\u0433:<\/p>\n<pre><code>Jambonz: \"Incoming call happened. What should I do?\"Backend: \"Say greeting, then dial this target.\"Jambonz: \"Done. Here are status events.\"<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u043e\u0442 \u0436\u0435 flow \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438:<\/p>\n<pre><code>Jambonz -&gt; Backend: call-initiate webhookBackend -&gt; Backend: create activeCallId and active_calls rowBackend -&gt; Jambonz: JSON verbs: say \/ dial<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u0442\u0438\u043f\u0438\u0447\u043d\u043e\u043c Jambonz flow \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"typescript\">app.post('\/call-initiate-webhook', async (context) =&gt; {  \/\/ Jambonz \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 webhook, \u043a\u043e\u0433\u0434\u0430 inbound call \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f.  const event = context.req.valid('json')  \/\/ Backend \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u0432\u043e\u044e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430.  const activeCallId = generateNanoId()  await activeCallService.createActiveCall({    id: activeCallId,    phoneNumberConfigId: numberConfig.id,    legACallId: event.call_sid,    legADirection: 'inbound',    legAStartTime: new Date().toISOString()  }, CallType.legA)  \/\/ Backend \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 Jambonz \u0441\u043f\u0438\u0441\u043e\u043a verbs, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.  const verbs = [    {      verb: 'say',      text: 'Thanks for calling. Please hold while we connect you.'    },    {      verb: 'dial',      actionHook: '\/jambonz\/dial-end-webhook',      callerId: event.from,      target: [        numberConfig.routeToResourceType === 'sip'          ? { type: 'sip', sipUri: numberConfig.routeToResource }          : { type: 'phone', number: numberConfig.routeToResource }      ]    }  ]  return context.json(verbs, 200)})<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 production-\u043a\u043e\u0434\u0435 \u0442\u0430\u043a\u043e\u0439 JSON \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 helpers: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440\u00a0<code>say()<\/code>\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u00a0<code>say<\/code>\u00a0verb, \u0430\u00a0<code>addDialVerbs()<\/code>\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u00a0<code>dial<\/code>\u00a0verb \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u00a0<code>target<\/code>. \u042d\u0442\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c: backend \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0433\u043e\u043b\u043e\u0441 \u0441\u0430\u043c. \u041e\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0437\u0432\u043e\u043d\u043a\u0430 \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 Jambonz JSON-\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.<\/p>\n<h4>Start time, answer time, end time<\/h4>\n<p>\u041e\u0434\u043d\u0430 \u0438\u0437 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 call modeling &#8212; \u0441\u043c\u0435\u0448\u0430\u0442\u044c timestamps.<\/p>\n<p>\u041d\u0443\u0436\u043d\u044b \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0442\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u043d\u044f\u0442\u0438\u044f:<\/p>\n<pre><code>startTime  = leg\/call attempt existsanswerTime = leg was answeredendTime    = leg\/call ended<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8c1\/1ac\/a19\/8c11aca1961c5893117ed94a38eec83d.png\" alt=\"Start time, answer time, end time\" title=\"Start time, answer time, end time\" width=\"1310\" height=\"1620\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/8c1\/1ac\/a19\/8c11aca1961c5893117ed94a38eec83d.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8c1\/1ac\/a19\/8c11aca1961c5893117ed94a38eec83d.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>Start time, answer time, end time<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u043b\u044f inbound Leg A:<\/p>\n<pre><code>legAStartTime = provider delivered incoming calllegAAnswerTime = platform\/application answered the inbound leg, if trackedlegAEndTime   = caller side ended or call was completed<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u043b\u044f outbound Leg B:<\/p>\n<pre><code>legBStartTime  = platform started dialing destinationlegBAnswerTime = destination endpoint\/system answeredlegBEndTime    = destination leg ended<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e?<\/p>\n<p>\u0415\u0441\u043b\u0438\u00a0<code>startTime<\/code>\u00a0\u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0437\u0430\u00a0<code>answerTime<\/code>, \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u0438 \u043e\u0442\u0432\u0435\u0447\u0435\u043d\u043d\u044b\u043c\u0438, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0430\u043b\u0438 ringing.<\/p>\n<p>\u0415\u0441\u043b\u0438\u00a0<code>answerTime<\/code>\u00a0\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0440\u0430\u043d\u043e, missed call \u0441\u0442\u0430\u043d\u0435\u0442 answered call.<\/p>\n<p>\u0415\u0441\u043b\u0438\u00a0<code>endTime<\/code>\u00a0\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0431\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u0432\u043e\u043d\u043a\u0430, \u043d\u043e \u043d\u0435 \u043d\u0430 legs, \u0432\u044b \u043d\u0435 \u043f\u043e\u0439\u043c\u0435\u0442\u0435, \u043a\u0430\u043a\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430 call.<\/p>\n<p>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c:<\/p>\n<ul>\n<li>\n<p>\u0441\u043a\u043e\u043b\u044c\u043a\u043e caller \u0436\u0434\u0430\u043b;<\/p>\n<\/li>\n<li>\n<p>\u0431\u044b\u043b \u043b\u0438 destination answered;<\/p>\n<\/li>\n<li>\n<p>\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u0438\u043b\u0441\u044f \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440;<\/p>\n<\/li>\n<li>\n<p>\u043a\u0442\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b \u0437\u0432\u043e\u043d\u043e\u043a;<\/p>\n<\/li>\n<li>\n<p>\u0431\u044b\u043b \u043b\u0438 outbound leg \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043e\u0437\u0434\u0430\u043d;<\/p>\n<\/li>\n<li>\n<p>\u0431\u044b\u043b \u043b\u0438 call abandoned before answer.<\/p>\n<\/li>\n<\/ul>\n<h4>Provider IDs \u0434\u043b\u044f Leg A \u0438 Leg B<\/h4>\n<p>Leg A \u0438 Leg B &#8212; \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0432\u043e\u043d\u043a\u0438 \u0432 telephony layer. \u041a\u043e\u0433\u0434\u0430 CPaaS \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445, \u0443 \u043d\u0435\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439 provider id. \u0412 Jambonz \u044d\u0442\u043e\u00a0<code>call_sid<\/code>; \u0443 \u0434\u0440\u0443\u0433\u043e\u0433\u043e CPaaS \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c.<\/p>\n<p>Backend \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u044d\u0442\u0438 ids \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e:<\/p>\n<pre><code>activeCallId = id \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430legACallId   = provider id \u0434\u043b\u044f inbound leglegBCallId   = provider id \u0434\u043b\u044f outbound leg<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>activeCallId<\/code>\u00a0\u043d\u0443\u0436\u0435\u043d UI, \u0431\u0430\u0437\u0435 \u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0437\u0432\u043e\u043d\u043a\u043e\u0432.<\/p>\n<p><code>legACallId<\/code>\u00a0\u0438\u00a0<code>legBCallId<\/code>\u00a0\u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0437\u0432\u043e\u043d\u043a\u0443 \u0432 telephony layer:<\/p>\n<ul>\n<li>\n<p>hangup;<\/p>\n<\/li>\n<li>\n<p>redirect;<\/p>\n<\/li>\n<li>\n<p>fetch status;<\/p>\n<\/li>\n<li>\n<p>correlate status webhook.<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c outbound side, backend \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u043d\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e\u00a0<code>legBCallId<\/code>. \u0415\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0439\u00a0<code>callId<\/code>, \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 id: \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c, inbound leg \u0438\u043b\u0438 outbound leg.<\/p>\n<h4>Backend-\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/h4>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u0447\u0430\u0441\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043e\u0434\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430. \u042d\u0442\u043e \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f production schema, \u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f anatomy \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430:<\/p>\n<pre><code class=\"typescript\">type ActiveCall = {  id: string  phoneNumberConfigId: number  currentStatus: 'incoming' | 'routing' | 'ringing' | 'connected' | 'completed' | 'failed'  status: 'active' | 'completed' | 'missed' | 'failed'  fromPhoneNumber: string  toPhoneNumber: string  transferTo?: string | null  legACallId: string  legAStartTime: string  legAAnswerTime?: string | null  legAEndTime?: string | null  legADirection: 'inbound'  legBCallId?: string | null  legBStartTime?: string | null  legBAnswerTime?: string | null  legBEndTime?: string | null  legBDirection?: 'outbound' | null  createdAt: string  updatedAt: string}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0421\u0430\u043c\u00a0<code>phoneNumberConfig<\/code>\u00a0\u043e\u0431\u044b\u0447\u043d\u043e \u0436\u0438\u0432\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u042d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430: \u043a\u0430\u043a\u043e\u0439 \u043d\u043e\u043c\u0435\u0440 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a, \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438 \u043a\u0430\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0448\u0430\u0433\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b.<\/p>\n<pre><code class=\"typescript\">type PhoneNumberConfig = {  id: number  destinationNumber: string  routeToResource: string  routeToResourceType: 'phone' | 'sip' | 'user'  configuration: {    customGreeting?: string    recordCalls?: boolean    skipGreetingAtStartOfCall?: boolean    useAiAgent?: boolean  }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0430\u043a\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0447\u0435\u0441\u0442\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0443 production-\u0441\u0438\u0441\u0442\u0435\u043c\u044b: \u0434\u0430\u0436\u0435 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0437\u0432\u043e\u043d\u043e\u043a \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u0430\u043a \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u043f\u043e\u043b\u0435\u0439 \u0434\u043b\u044f Leg A \u0438 Leg B.<\/p>\n<p>\u041f\u043e\u0437\u0436\u0435 \u0442\u0430\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u0442\u044c: \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c, \u043a\u0442\u043e \u0432\u0437\u044f\u043b \u0437\u0432\u043e\u043d\u043e\u043a, \u0432 \u043a\u0430\u043a\u0443\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c \u043e\u043d \u043f\u043e\u043f\u0430\u043b, \u0431\u044b\u043b \u043b\u0438 \u043f\u0440\u043e\u0439\u0434\u0435\u043d IVR, \u0431\u044b\u043b \u043b\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d AI-agent, \u043a\u0430\u043a\u043e\u0439 \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f. \u041d\u043e \u0431\u0430\u0437\u043e\u0432\u0430\u044f anatomy \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0439 \u0436\u0435: \u043e\u0434\u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u0432\u043e\u043d\u043a\u0430 \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f inbound\/outbound legs.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f\u00a0<code>active_calls<\/code>\u00a0\u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0435\u0445\u0430\u0442\u044c \u0432\u00a0<code>active_calls_history<\/code>, \u0447\u0442\u043e\u0431\u044b UI \u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u043c\u043e\u0433\u043b\u0438 \u0438\u0441\u043a\u0430\u0442\u044c \u0443\u0436\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b\u0435 \u0437\u0432\u043e\u043d\u043a\u0438.<\/p>\n<h4>\u041f\u0440\u043e\u0441\u0442\u0430\u044f end-to-end \u0441\u0445\u0435\u043c\u0430<\/h4>\n<p>\u0421\u043e\u0431\u0435\u0440\u0435\u043c \u0432\u0441\u0435 \u0432\u043c\u0435\u0441\u0442\u0435.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4a1\/b9d\/079\/4a1b9d079f53bb173d3f6155440d8863.png\" alt=\"\u041f\u0440\u043e\u0441\u0442\u0430\u044f end-to-end \u0441\u0445\u0435\u043c\u0430\" title=\"\u041f\u0440\u043e\u0441\u0442\u0430\u044f end-to-end \u0441\u0445\u0435\u043c\u0430\" width=\"1806\" height=\"1450\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/4a1\/b9d\/079\/4a1b9d079f53bb173d3f6155440d8863.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/4a1\/b9d\/079\/4a1b9d079f53bb173d3f6155440d8863.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041f\u0440\u043e\u0441\u0442\u0430\u044f end-to-end \u0441\u0445\u0435\u043c\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u0432\u0430\u0436\u043d\u0430 \u043d\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c status events, \u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438. Jambonz \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 verbs. Backend \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442 \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u0438 \u0445\u0440\u0430\u043d\u0438\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435. Destination &#8212; \u044d\u0442\u043e \u0442\u043e, \u043a\u0443\u0434\u0430 \u043c\u044b \u0437\u0432\u043e\u043d\u0438\u043c \u0432\u0442\u043e\u0440\u044b\u043c leg: \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440, SIP endpoint, PBX \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u043d\u043e\u043c\u0435\u0440.<\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434<\/h4>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u043e\u0441\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u043a\u0430\u043a \u043e\u0434\u0438\u043d \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u044b\u0439 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440. Backend \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u0442\u0430\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<p>\u0414\u043b\u044f backend \u0437\u0432\u043e\u043d\u043e\u043a \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a inbound call, \u0437\u0430\u0442\u0435\u043c \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0440\u043e\u0434\u0438\u0442\u044c outbound call, \u0430 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0441\u043b\u0435 bridge \u043c\u0435\u0436\u0434\u0443 Leg A \u0438 Leg B. \u0423 \u043a\u0430\u0436\u0434\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0435\u0441\u0442\u044c \u0441\u0432\u043e\u0438 timestamps, provider id \u0438 lifecycle, \u0438 \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0440\u0430\u0437\u0438\u0442\u044c \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f.<\/p>\n<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u043d\u0430\u044f backend-\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438\u0434\u0435\u0438: \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439\u00a0<code>activeCallId<\/code>, \u043d\u043e \u043d\u0435 \u0441\u043c\u0435\u0448\u0438\u0432\u0430\u0442\u044c inbound \u0438 outbound \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0433\u043e. \u0414\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u0432 \u0431\u0430\u0437\u0435 \u044d\u0442\u043e \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430\u00a0<code>active_calls<\/code>, \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f Leg A \u0438 Leg B.<\/p>\n<p>\u042d\u0442\u043e \u0438 \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u0430\u044f anatomy production-\u0437\u0432\u043e\u043d\u043a\u0430: \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0437\u0432\u043e\u043d\u043e\u043a, \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0437\u0432\u043e\u043d\u043e\u043a, bridge \u0438 \u0447\u0435\u0441\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f. \u0412\u0441\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0435\u043c\u044b &#8212; queues, claim flow, realtime UI, supervisor view, Voice AI \u0438 reconciliation &#8212; \u0441\u0442\u0440\u043e\u044f\u0442\u0441\u044f \u043f\u043e\u0432\u0435\u0440\u0445 \u044d\u0442\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<h4>\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438<\/h4>\n<ul>\n<li>\n<p>\u0421\u0432\u044f\u0437\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f:\u00a0<a href=\"https:\/\/habr.com\/en\/articles\/958670\/\" rel=\"noopener noreferrer nofollow\">Voice AI Systems Powered by Jambonz<\/a>.<\/p>\n<\/li>\n<li>\n<p>Jambonz docs:\u00a0<a href=\"https:\/\/docs.jambonz.org\/verbs\/verbs\/overview\" rel=\"noopener noreferrer nofollow\">Verbs overview<\/a>,\u00a0<a href=\"https:\/\/docs.jambonz.org\/reference\/webhooks\/call-hook-get\" rel=\"noopener noreferrer nofollow\">New Call webhook<\/a>,\u00a0<a href=\"https:\/\/docs.jambonz.org\/verbs\/verbs\/dial\" rel=\"noopener noreferrer nofollow\">Dial verb<\/a>,\u00a0<a href=\"https:\/\/docs.jambonz.org\/verbs\/verbs\/config\" rel=\"noopener noreferrer nofollow\">Config verb<\/a>,\u00a0<a href=\"https:\/\/docs.jambonz.org\/reference\/websocket-api\/call-control\/call-status\" rel=\"noopener noreferrer nofollow\">call:status websocket event<\/a>.<\/p>\n<\/li>\n<li>\n<p>IETF RFCs:\u00a0<a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc3261\" rel=\"noopener noreferrer nofollow\">RFC 3261 &#8212; SIP<\/a>.<\/p>\n<\/li>\n<\/ul>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1050446\/\">https:\/\/habr.com\/ru\/articles\/1050446\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0440\u0435\u0447\u044c \u043f\u043e\u0439\u0434\u0435\u0442 \u043e\u0431 \u0430\u043d\u0430\u0442\u043e\u043c\u0438\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430. \u0427\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b\u0437\u043e\u0432 \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0432\u044b\u0437\u043e\u0432, \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b A \u0438 B, \u043a\u0430\u043a \u043e\u043d\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0438 \u043a\u0430\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0431\u044d\u043a\u0435\u043d\u0434\u0435.\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438: inbound, outbound, Leg A \u0438 Leg B\u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Jambonz \u043a\u0430\u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 CPaaS\/SIP application layer. \u0412 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e Jambonz \u0438 Voice AI \u044f \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043b \u0431\u043e\u043b\u0435\u0435 \u0448\u0438\u0440\u043e\u043a\u0438\u0439 \u043f\u0443\u0442\u044c: PSTN\/SIP trunk -&gt; Jambonz -&gt; backend -&gt; AI\/LLM. \u0417\u0434\u0435\u0441\u044c \u0444\u043e\u043a\u0443\u0441 \u0443\u0436\u0435 \u0434\u0440\u0443\u0433\u043e\u0439: \u043a\u0430\u043a backend \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u0443\u0435\u0442 \u043e\u0434\u0438\u043d production-\u0437\u0432\u043e\u043d\u043e\u043a.\u041a\u043e\u0440\u043e\u0442\u043a\u043e \u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445: SIP (Session Initiation Protocol) &#8212; \u044d\u0442\u043e signaling protocol, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 telephony layer \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u0437\u0432\u043e\u043d\u043e\u043a: \u043a\u0442\u043e \u043a\u043e\u043c\u0443 \u0437\u0432\u043e\u043d\u0438\u0442, \u043a\u0443\u0434\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u044c call, \u043a\u043e\u0433\u0434\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0430 \u0438\u043b\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430 \u0441\u0435\u0430\u043d\u0441. CPaaS (Communications Platform as a Service) &#8212; \u044d\u0442\u043e \u0441\u043b\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044e \u0432 API: \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 inbound calls, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 backend webhooks \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432\u0440\u043e\u0434\u0435\u00a0say,\u00a0gather,\u00a0dial\u00a0\u0438\u00a0hangup. Jambonz &#8212; \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a\u043e\u0439 voice platform.\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u044e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430\u041d\u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0439 \u0437\u0432\u043e\u043d\u043e\u043a &#8212;\u00a0inbound call. Backend \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 telephony layer \u0438 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0434\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c: \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c IVR, \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043d\u0430\u0436\u0430\u0442\u044c \u0446\u0438\u0444\u0440\u0443, \u043f\u043e\u0441\u043b\u0443\u0448\u0430\u0442\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u0443\u044e \u0444\u0440\u0430\u0437\u0443, \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AI \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u0430\u0440\u0448\u0440\u0443\u0442 \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430.\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e backend \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a &#8212;\u00a0outbound call: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443, PBX, SIP endpoint \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443. \u041a\u043e\u0433\u0434\u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442, telephony layer \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 inbound \u0438 outbound \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432 \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440.\u041d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0432\u0435\u0441\u0442\u0438 \u0443\u0447\u0435\u0442 \u0442\u0430\u043a\u0438\u0445 \u0437\u0432\u043e\u043d\u043a\u043e\u0432: \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0430\u043a\u0442\u0438\u0432\u043d\u043e, \u043a\u0442\u043e \u0437\u0432\u043e\u043d\u0438\u0442, \u043a\u0443\u0434\u0430 \u043c\u044b \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0432\u043e\u043d\u043e\u043a, \u0431\u044b\u043b \u043b\u0438 \u043e\u0442\u0432\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u0438\u043b\u0441\u044f \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u043e\u043d \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0441\u044f.\u0412\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u044d\u0442\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440, \u0430 \u0434\u043b\u044f backend &#8212; \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0434\u0432\u0430 \u0437\u0432\u043e\u043d\u043a\u0430. \u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u043d\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0412\u0442\u043e\u0440\u043e\u0439 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0437\u0432\u043e\u043d\u0438\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 destination.\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c inbound call \u0438 outbound call, \u0430 \u0443\u0436\u0435 \u043f\u043e\u0442\u043e\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e Leg A, Leg B, bridge \u0438 \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f.Inbound callInbound call &#8212; \u044d\u0442\u043e \u0437\u0432\u043e\u043d\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432 \u0432\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443:caller -&gt; public phone number -&gt; SIP trunk \/ carrier -&gt; Jambonz \/ CPaaS -&gt; backend\u0414\u043b\u044f caller \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0432\u043e\u043d\u043e\u043a \u043d\u0430 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0414\u043b\u044f backend \u044d\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u043e \u0437\u0432\u043e\u043d\u043a\u0435: Jambonz \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 webhook \u043d\u0430 \u043d\u0430\u0448 backend \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a, backend \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u043e\u0432\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u00a0active_calls, \u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0435\u0439 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439\u00a0activeCallId\u00a0\u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 backend \u0435\u0449\u0435 \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u043d \u0437\u043d\u0430\u0442\u044c, \u043a\u0442\u043e \u043e\u0442\u0432\u0435\u0442\u0438\u0442. \u041e\u043d \u0437\u043d\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e caller, dialed number, \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 phone config \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u0434\u043b\u044f provider.\u042d\u0442\u0430 \u043f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f\u00a0Leg A.Outbound callOutbound call &#8212; \u044d\u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0437\u0432\u043e\u043d\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u0435\u043b\u0430\u0435\u0442 \u043a \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 destination \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0435.\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, backend \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u043b \u043d\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u043e\u043c\u0435\u0440\u0430, IVR input \u0438\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 AI-\u043a\u043b\u0430\u0441\u0441\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0432\u044b\u0431\u0440\u0430\u043b destination \u0438 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u043b Jambonz \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435: \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0443, SIP endpoint, PBX \u0438\u043b\u0438 \u0432\u043d\u0435\u0448\u043d\u0435\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443.Outbound leg \u043c\u043e\u0436\u0435\u0442:\u043d\u0430\u0447\u0430\u0442\u044c ringing;\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c busy;\u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c no answer;\u0431\u044b\u0442\u044c answered;\u0431\u044b\u0442\u044c transferred;\u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435 inbound leg;\u0438\u043c\u0435\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 provider id.\u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u043a &#171;\u0442\u043e\u0442 \u0436\u0435 call \u0441\u0442\u0430\u043b connected&#187;: \u0443 outbound leg \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u0432\u043e\u0439 lifecycle.\u042d\u0442\u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u0430 \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f\u00a0Leg B.Leg A \u0438 Leg B\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0434\u0430\u0442\u044c \u044d\u0442\u0438\u043c \u0434\u0432\u0443\u043c \u0447\u0430\u0441\u0442\u044f\u043c \u043a\u043e\u0440\u043e\u0442\u043a\u0438\u0435 \u0438\u043c\u0435\u043d\u0430:Caller &#8212; Leg A &#8212;&gt; Platform &#8212; Leg B &#8212;&gt; Destination\u042d\u0442\u0443 \u0441\u0445\u0435\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c \u0442\u0430\u043a: caller \u0443\u0436\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d \u0441 \u043d\u0430\u0448\u0435\u0439 platform \u0447\u0435\u0440\u0435\u0437 Leg A, \u0430 platform \u0441\u043e\u0437\u0434\u0430\u0435\u0442 Leg B, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e destination.Leg A \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0432\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443:\u00a0external caller -&gt; platform.Leg B \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443:\u00a0platform -&gt; operator \/ SIP endpoint \/ PBX \/ external number.\u042d\u0442\u0438 legs \u043d\u0443\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e backend \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438\u043c\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u0423 \u043a\u0430\u0436\u0434\u043e\u0439 leg \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u043e\u0438:provider call id;direction;start time;answer time;end time;status events;failure reason.\u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043e\u0434\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c\u00a0activeCall, \u043d\u043e \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f \u0434\u043b\u044f Leg A \u0438 Leg B. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0443 Leg B \u043d\u0435 \u0431\u0443\u0434\u0435\u0442\u00a0answerTime, \u043f\u043e\u043a\u0430 \u0432\u0442\u043e\u0440\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0435\u0449\u0435 \u043d\u0435 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0430.BridgeBridge &#8212; \u044d\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 Leg A \u0438 Leg B \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0442\u0430\u043a, \u0447\u0442\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0441\u043b\u044b\u0448\u0430\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430.\u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e:Leg A audio &lt;-&gt; Leg B audio\u0414\u043e bridge caller \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u044b\u0448\u0430\u0442\u044c greeting, hold music, IVR \u0438\u043b\u0438 ringing.\u041f\u043e\u0441\u043b\u0435 bridge caller \u0438 destination \u0440\u0430\u0437\u0433\u043e\u0432\u0430\u0440\u0438\u0432\u0430\u044e\u0442 \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c.\u0412 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0438 bridge \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a outbound \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u043e\u0442\u0432\u0435\u0442\u0438\u043b\u0430 \u0438 telephony layer \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442 Leg A \u0441 Leg B.Bridge \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0437\u0432\u043e\u043d\u043e\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u043d\u0430\u0447\u0430\u043b\u0441\u044f. \u0417\u0432\u043e\u043d\u043e\u043a \u0443\u0436\u0435 \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u0440\u0430\u043d\u044c\u0448\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f inbound Leg A.Call controlProgrammable telephony \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 \u0442\u0435\u043c, \u0447\u0442\u043e backend \u043c\u043e\u0436\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u043e\u043c \u0447\u0435\u0440\u0435\u0437 call-control commands.\u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435:say\u00a0&#8212; \u043f\u0440\u043e\u0438\u0433\u0440\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0438\u043b\u0438 \u0430\u0443\u0434\u0438\u043e;gather\u00a0&#8212; \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0432\u0432\u043e\u0434 \u043e\u0442 caller;dial\u00a0&#8212; \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u043d\u0430 destination \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0442\u0432\u0435\u0442\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0441\u0442\u043e\u0440\u043e\u043d\u044b;transfer\u00a0&#8212; \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 call;hangup\u00a0&#8212; \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c;config\u00a0&#8212; \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0437\u0432\u043e\u043d\u043a\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043b\u0438 speech settings.\u0412 Jambonz \u044d\u0442\u043e \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 JSON verbs, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 backend \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u044f\u043c\u043e \u0432 webhook response.\u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0447\u0438\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u0442\u0430\u043a\u043e\u0439 \u0434\u0438\u0430\u043b\u043e\u0433:Jambonz: &#171;Incoming call happened. What should I do?&#187;Backend: &#171;Say greeting, then dial this target.&#187;Jambonz: &#171;Done. Here are status events.&#187;\u0422\u043e\u0442 \u0436\u0435 flow \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438:Jambonz -&gt; Backend: call-initiate webhookBackend -&gt; Backend: create activeCallId and active_calls rowBackend -&gt; Jambonz: JSON verbs: say \/ dial\u0412 \u0442\u0438\u043f\u0438\u0447\u043d\u043e\u043c Jambonz flow \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:app.post(&#8216;\/call-initiate-webhook&#8217;, async (context) =&gt; {  \/\/ Jambonz \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 webhook, \u043a\u043e\u0433\u0434\u0430 inbound call \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f.  const event = context.req.valid(&#8216;json&#8217;)  \/\/ Backend \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0441\u0432\u043e\u044e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430.  const activeCallId = generateNanoId()  await activeCallService.createActiveCall({    id: activeCallId,    phoneNumberConfigId: numberConfig.id,    legACallId: event.call_sid,    legADirection: &#8216;inbound&#8217;,    legAStartTime: new Date().toISOString()  }, CallType.legA)  \/\/ Backend \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 Jambonz \u0441\u043f\u0438\u0441\u043e\u043a verbs, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.  const verbs = [    {      verb: &#8216;say&#8217;,      text: &#8216;Thanks for calling. Please hold while we connect you.&#8217;    },    {      verb: &#8216;dial&#8217;,      actionHook: &#8216;\/jambonz\/dial-end-webhook&#8217;,      callerId: event.from,      target: [        numberConfig.routeToResourceType === &#8216;sip&#8217;          ? { type: &#8216;sip&#8217;, sipUri: numberConfig.routeToResource }          : { type: &#8216;phone&#8217;, number: numberConfig.routeToResource }      ]    }  ]  return context.json(verbs, 200)})\u0412 production-\u043a\u043e\u0434\u0435 \u0442\u0430\u043a\u043e\u0439 JSON \u043e\u0431\u044b\u0447\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 helpers: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440\u00a0say()\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u00a0say\u00a0verb, \u0430\u00a0addDialVerbs()\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u00a0dial\u00a0verb \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u00a0target. \u042d\u0442\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u044c: backend \u043d\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0433\u043e\u043b\u043e\u0441 \u0441\u0430\u043c. \u041e\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0437\u0432\u043e\u043d\u043a\u0430 \u0438 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 Jambonz JSON-\u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u043c\u0438, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0434\u0430\u043b\u044c\u0448\u0435.Start time, answer time, end time\u041e\u0434\u043d\u0430 \u0438\u0437 \u0433\u043b\u0430\u0432\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a \u0432 call modeling &#8212; \u0441\u043c\u0435\u0448\u0430\u0442\u044c timestamps.\u041d\u0443\u0436\u043d\u044b \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u0442\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u043e\u043d\u044f\u0442\u0438\u044f:startTime  = leg\/call attempt existsanswerTime = leg was answeredendTime    = leg\/call endedStart time, answer time, end time\u0414\u043b\u044f inbound Leg A:legAStartTime = provider delivered incoming calllegAAnswerTime = platform\/application answered the inbound leg, if trackedlegAEndTime   = caller side ended or call was completed\u0414\u043b\u044f outbound Leg B:legBStartTime  = platform started dialing destinationlegBAnswerTime = destination endpoint\/system answeredlegBEndTime    = destination leg ended\u041f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u043e \u0432\u0430\u0436\u043d\u043e?\u0415\u0441\u043b\u0438\u00a0startTime\u00a0\u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0437\u0430\u00a0answerTime, \u0432\u044b \u0431\u0443\u0434\u0435\u0442\u0435 \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0437\u0432\u043e\u043d\u043a\u0438 \u043e\u0442\u0432\u0435\u0447\u0435\u043d\u043d\u044b\u043c\u0438, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0430\u043b\u0438 ringing.\u0415\u0441\u043b\u0438\u00a0answerTime\u00a0\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0440\u0430\u043d\u043e, missed call \u0441\u0442\u0430\u043d\u0435\u0442 answered call.\u0415\u0441\u043b\u0438\u00a0endTime\u00a0\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0431\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u0432\u043e\u043d\u043a\u0430, \u043d\u043e \u043d\u0435 \u043d\u0430 legs, \u0432\u044b \u043d\u0435 \u043f\u043e\u0439\u043c\u0435\u0442\u0435, \u043a\u0430\u043a\u0430\u044f \u0441\u0442\u043e\u0440\u043e\u043d\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430 call.\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c:\u0441\u043a\u043e\u043b\u044c\u043a\u043e caller \u0436\u0434\u0430\u043b;\u0431\u044b\u043b \u043b\u0438 destination answered;\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u0438\u043b\u0441\u044f \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440;\u043a\u0442\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b \u0437\u0432\u043e\u043d\u043e\u043a;\u0431\u044b\u043b \u043b\u0438 outbound leg \u0432\u043e\u043e\u0431\u0449\u0435 \u0441\u043e\u0437\u0434\u0430\u043d;\u0431\u044b\u043b \u043b\u0438 call abandoned before answer.Provider IDs \u0434\u043b\u044f Leg A \u0438 Leg BLeg A \u0438 Leg B &#8212; \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u0432\u043e\u043d\u043a\u0438 \u0432 telephony layer. \u041a\u043e\u0433\u0434\u0430 CPaaS \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445, \u0443 \u043d\u0435\u0433\u043e \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0432\u043e\u0439 provider id. \u0412 Jambonz \u044d\u0442\u043e\u00a0call_sid; \u0443 \u0434\u0440\u0443\u0433\u043e\u0433\u043e CPaaS \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0434\u0440\u0443\u0433\u0438\u043c.Backend \u0434\u043e\u043b\u0436\u0435\u043d \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u044d\u0442\u0438 ids \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e:activeCallId = id \u0432\u043d\u0443\u0442\u0440\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430legACallId   = provider id \u0434\u043b\u044f inbound leglegBCallId   = provider id \u0434\u043b\u044f outbound legactiveCallId\u00a0\u043d\u0443\u0436\u0435\u043d UI, \u0431\u0430\u0437\u0435 \u0438 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0437\u0432\u043e\u043d\u043a\u043e\u0432.legACallId\u00a0\u0438\u00a0legBCallId\u00a0\u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u0437\u0432\u043e\u043d\u043a\u0443 \u0432 telephony layer:hangup;redirect;fetch status;correlate status webhook.\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c outbound side, backend \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u043d\u0430\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e\u00a0legBCallId. \u0415\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0442\u043d\u044b\u0439\u00a0callId, \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 id: \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c, inbound leg \u0438\u043b\u0438 outbound leg.Backend-\u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u0447\u0430\u0441\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 \u043e\u0434\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430. \u042d\u0442\u043e \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u0430\u044f production schema, \u0430 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u0430\u044f \u0444\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f anatomy \u043e\u0434\u043d\u043e\u0433\u043e \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0437\u0432\u043e\u043d\u043a\u0430:type ActiveCall = {  id: string  phoneNumberConfigId: number  currentStatus: &#8216;incoming&#8217; | &#8216;routing&#8217; | &#8216;ringing&#8217; | &#8216;connected&#8217; | &#8216;completed&#8217; | &#8216;failed&#8217;  status: &#8216;active&#8217; | &#8216;completed&#8217; | &#8216;missed&#8217; | &#8216;failed&#8217;  fromPhoneNumber: string  toPhoneNumber: string  transferTo?: string | null  legACallId: string  legAStartTime: string  legAAnswerTime?: string | null  legAEndTime?: string | null  legADirection: &#8216;inbound&#8217;  legBCallId?: string | null  legBStartTime?: string | null  legBAnswerTime?: string | null  legBEndTime?: string | null  legBDirection?: &#8216;outbound&#8217; | null  createdAt: string  updatedAt: string}\u0421\u0430\u043c\u00a0phoneNumberConfig\u00a0\u043e\u0431\u044b\u0447\u043d\u043e \u0436\u0438\u0432\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e. \u042d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430: \u043a\u0430\u043a\u043e\u0439 \u043d\u043e\u043c\u0435\u0440 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0437\u0432\u043e\u043d\u043e\u043a, \u043a\u0443\u0434\u0430 \u0435\u0433\u043e \u043f\u0435\u0440\u0435\u043d\u0430\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0438 \u043a\u0430\u043a\u0438\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-484541","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/484541","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=484541"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/484541\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=484541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=484541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=484541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}