{"id":813,"date":"2026-09-17T22:53:05","date_gmt":"2026-09-17T19:53:05","guid":{"rendered":"https:\/\/imaxis.ru\/?p=813"},"modified":"2026-09-18T00:05:13","modified_gmt":"2026-09-17T21:05:13","slug":"ustanovka-i-bazovaya-nastroyka-asterisk-na-ubuntu-pervye-sip-nomera","status":"publish","type":"post","link":"https:\/\/imaxis.ru\/?p=813","title":{"rendered":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Asterisk \u043d\u0430 Ubuntu: \u043f\u0435\u0440\u0432\u044b\u0435 SIP-\u043d\u043e\u043c\u0435\u0440\u0430"},"content":{"rendered":"<h1>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Asterisk \u043d\u0430 Ubuntu: \u043f\u0435\u0440\u0432\u044b\u0435 SIP-\u043d\u043e\u043c\u0435\u0440\u0430<\/h1>\n<p>Asterisk \u2014 \u043e\u0442\u043a\u0440\u044b\u0442\u0430\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 IP-\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 (PBX), \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043f\u043e\u0434\u043d\u044f\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u0410\u0422\u0421 \u043d\u0430 Linux. \u0412 \u044d\u0442\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u2014 \u0441\u0431\u043e\u0440\u043a\u0430 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u0437\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u044b\u0445 SIP-\u043d\u043e\u043c\u0435\u0440\u043e\u0432.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0430\u043a\u0442\u0443\u0430\u043b\u0435\u043d \u0434\u043b\u044f <strong>Asterisk 22 LTS<\/strong> \u0438 Ubuntu 22.04\/24.04\/26.04. \u0412\u043c\u0435\u0441\u0442\u043e \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0435\u0433\u043e <code>chan_sip<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f <code>chan_pjsip<\/code>.<\/p>\n<hr \/>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/h2>\n<pre><code class=\"language-bash\">apt-get update\napt install chrony\nsystemctl enable chrony --now\n<\/code><\/pre>\n<p><strong>\u0414\u043b\u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <code>chrony<\/code> (<code>ntpdate<\/code> \u0443\u0441\u0442\u0430\u0440\u0435\u043b \u0438 \u0443\u0434\u0430\u043b\u0451\u043d \u0438\u0437 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432).<\/strong><\/p>\n<hr \/>\n<h2>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430<\/h2>\n<p>\u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f (<code>apt install asterisk<\/code>), \u043d\u043e \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u0441\u0431\u043e\u0440\u043a\u0443 \u0438\u0437 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432.<\/p>\n<p>\u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u043c\u0438 \u043f\u043b\u0430\u0442\u0430\u043c\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0438\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e\u0442\u0441\u044f DAHDI (\u0434\u0440\u0430\u0439\u0432\u0435\u0440\u044b) \u0438 LibPRI (\u0434\u043b\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u044b\u0445 TDM-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432). \u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0431\u043e\u0440\u043a\u0438: DAHDI \u2192 LibPRI \u2192 Asterisk.<\/p>\n<pre><code class=\"language-bash\">apt install make pkg-config linux-headers-$(uname -r)\n<\/code><\/pre>\n<h3>\u0421\u0431\u043e\u0440\u043a\u0430 DAHDI<\/h3>\n<pre><code class=\"language-bash\">wget https:\/\/downloads.asterisk.org\/pub\/telephony\/dahdi-linux-complete\/dahdi-linux-complete-current.tar.gz\ntar -xvf dahdi-linux-complete-current.tar.gz\ncd dahdi-linux-complete-*\/\nmake\nmake install\nmake config\ncd ..\n<\/code><\/pre>\n<h3>\u0421\u0431\u043e\u0440\u043a\u0430 LibPRI<\/h3>\n<pre><code class=\"language-bash\">wget https:\/\/downloads.asterisk.org\/pub\/telephony\/libpri\/libpri-1-current.tar.gz\ntar -xvf libpri-*.tar.gz\ncd libpri-*\/\nmake\nmake install\ncd ..\n<\/code><\/pre>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Asterisk<\/h3>\n<p>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e:<\/p>\n<pre><code class=\"language-bash\">wget https:\/\/downloads.asterisk.org\/pub\/telephony\/asterisk\/asterisk-22-current.tar.gz\ntar -xvf asterisk-*.tar.gz\ncd asterisk-*\n<\/code><\/pre>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"language-bash\">.\/contrib\/scripts\/install_prereq install\n.\/contrib\/scripts\/install_prereq install-unpackaged\nmake distclean\n.\/contrib\/scripts\/get_mp3_source.sh\n<\/code><\/pre>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c:<\/p>\n<pre><code class=\"language-bash\">.\/configure --prefix=\/usr --sysconfdir=\/etc --localstatedir=\/var --libdir=\/usr\/lib64 \n  --with-dahdi --with-pri --with-iconv --with-libcurl --with-speex\n<\/code><\/pre>\n<p>\u0433\u0434\u0435:<\/p>\n<ul>\n<li><code>--with-dahdi<\/code> \u2014 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u044b DAHDI;<\/li>\n<li><code>--with-pri<\/code> \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 PRI;<\/li>\n<li><code>--with-iconv<\/code> \u2014 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u044f \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u043e\u043a (\u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u0440\u0443\u0441\u0441\u043a\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432);<\/li>\n<li><code>--with-libcurl<\/code> \u2014 \u0438\u0437\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 HTTP;<\/li>\n<li><code>--with-speex<\/code> \u2014 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 VBR-\u043a\u043e\u0434\u0435\u043a.<\/li>\n<\/ul>\n<p><strong>\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u043f\u0446\u0438\u0439 \u2014 <code>.\/configure -h<\/code>.<\/strong><\/p>\n<p>\u0412\u044b\u0431\u043e\u0440 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 (\u043c\u043e\u0436\u043d\u043e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, <strong>Save &amp; Exit<\/strong>):<\/p>\n<pre><code class=\"language-bash\">make menuselect\n<\/code><\/pre>\n<p>\u0421\u0431\u043e\u0440\u043a\u0430 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430:<\/p>\n<pre><code class=\"language-bash\">make\nmake install\nmake samples\nmake progdocs\nmake config\nmake install-logrotate\n<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b \u0441 \u043f\u0443\u0442\u0451\u043c \u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430\u043c:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/ld.so.conf.d\/asterisk.conf\n<\/code><\/pre>\n<pre><code>\/usr\/lib64\n<\/code><\/pre>\n<p><strong>\u041f\u0443\u0442\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u043e\u043f\u0446\u0438\u0435\u0439 <code>--libdir<\/code> \u043f\u0440\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<\/strong><\/p>\n<pre><code class=\"language-bash\">ldconfig\n<\/code><\/pre>\n<hr \/>\n<h2>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<pre><code class=\"language-bash\">vi \/etc\/asterisk\/asterisk.conf\n<\/code><\/pre>\n<pre><code>runuser = asterisk\nrungroup = asterisk\ndefaultlanguage = ru\ndocumentation_language = ru_RU\n<\/code><\/pre>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0437\u0430\u0434\u0430\u0451\u043c \u043f\u0440\u0430\u0432\u0430:<\/p>\n<pre><code class=\"language-bash\">useradd asterisk -m\nchown -R asterisk:asterisk \/var\/run\/asterisk\nchown -R asterisk:asterisk \/etc\/asterisk\nchown -R asterisk:asterisk \/var\/{lib,log,spool}\/asterisk\nchown -R asterisk:asterisk \/usr\/lib64\/asterisk\nchown -R asterisk:asterisk \/var\/log\/asterisk\n<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<\/p>\n<pre><code class=\"language-bash\">asterisk -c\n<\/code><\/pre>\n<h3>\u041e\u0448\u0438\u0431\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430<\/h3>\n<ul>\n<li><strong>No configured users for ARI.<\/strong> \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c ARI:<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">vi \/etc\/asterisk\/ari.conf\n<\/code><\/pre>\n<pre><code>enabled = no\n<\/code><\/pre>\n<ul>\n<li><strong>Name or service not known.<\/strong> \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u0438\u043c\u044f \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u2014 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 DNS \u0438\u043b\u0438 \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0438\u043c\u044f \u0432 <code>\/etc\/hosts<\/code>.<\/li>\n<li><strong>No directory URL or host found.<\/strong> \u041d\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d \u043c\u043e\u0434\u0443\u043b\u044c <code>lpad<\/code>.<\/li>\n<li><strong>PostgreSQL RealTime: Failed to connect database asterisk on 127.0.0.1.<\/strong> \u0412\u043a\u043b\u044e\u0447\u0451\u043d \u043c\u043e\u0434\u0443\u043b\u044c \u0434\u043b\u044f PostgreSQL.<\/li>\n<li><strong>Failed to open \/dev\/dahdi\/transcode.<\/strong> \u041d\u0435\u0442 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f DAHDI.<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u0447\u0438\u043d\u044b \u2014 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0435, \u043d\u043e \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438. \u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/asterisk\/modules.conf\n<\/code><\/pre>\n<pre><code>noload =&gt; res_config_ldap.so\nnoload =&gt; res_config_pgsql.so\nnoload =&gt; codec_dahdi.so\n<\/code><\/pre>\n<h3>\u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435<\/h3>\n<pre><code>Unable to find a valid server address or name.\nProcess_dahdi: Ignoring any changes to ...\nCEL pgsql config file missing global section.\nCel_tds module had config problems; declining load.\n<\/code><\/pre>\n<p>\u041e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u0438:<\/p>\n<pre><code>noload =&gt; res_phoneprov.so\nnoload =&gt; app_dahdiras.so\nnoload =&gt; chan_dahdi.so\nnoload =&gt; res_pjsip_phoneprov_provider.so\nnoload =&gt; cel_pgsql.so\nnoload =&gt; cel_tds.so\n<\/code><\/pre>\n<p>\u0421\u043f\u0438\u0441\u043e\u043a \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439:<\/p>\n<pre><code class=\"language-bash\">ls -la \/usr\/lib64\/asterisk\/modules\/\n<\/code><\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441:<\/p>\n<pre><code class=\"language-bash\">systemctl enable asterisk\nsystemctl start asterisk\n<\/code><\/pre>\n<hr \/>\n<h2>\u0417\u0430\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0432\u044b\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432<\/h2>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u0432\u0443\u0445 SIP-\u043d\u043e\u043c\u0435\u0440\u043e\u0432.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0437\u043e\u0432\u0430:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/asterisk\/extensions.conf\n<\/code><\/pre>\n<pre><code>[outcalling]\nexten =&gt; _XXXX,1,Dial(PJSIP\/${EXTEN},,m)\n<\/code><\/pre>\n<p><strong>\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 <code>outcalling<\/code> \u0434\u043b\u044f \u0447\u0435\u0442\u044b\u0440\u0451\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u0445 \u043d\u043e\u043c\u0435\u0440\u043e\u0432 (<code>XXXX<\/code>) \u0441 \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u043f\u043e PJSIP.<\/strong><\/p>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c SIP \u0447\u0435\u0440\u0435\u0437 PJSIP. \u0412 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 Asterisk <code>chan_sip<\/code> \u0443\u0434\u0430\u043b\u0451\u043d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c <code>pjsip.conf<\/code>:<\/p>\n<pre><code class=\"language-bash\">vi \/etc\/asterisk\/pjsip.conf\n<\/code><\/pre>\n<pre><code>[transport-udp]\ntype=transport\nprotocol=udp\nbind=0.0.0.0:5060\n\n[1001]\ntype=endpoint\ncontext=outcalling\ndisallow=all\nallow=alaw,ulaw\nauth=1001\naors=1001\ncallerid=&quot;1001&quot;\n\n[1001]\ntype=auth\nauth_type=userpass\nusername=1001\npassword=1234\n\n[1001]\ntype=aor\nmax_contacts=4\n\n[1002]\ntype=endpoint\ncontext=outcalling\ndisallow=all\nallow=alaw,ulaw\nauth=1002\naors=1002\ncallerid=&quot;1002&quot;\n\n[1002]\ntype=auth\nauth_type=userpass\nusername=1002\npassword=1234\n\n[1002]\ntype=aor\nmax_contacts=4\n<\/code><\/pre>\n<p><strong>\u0421\u0435\u043a\u0446\u0438\u0438 \u0441 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0438\u043c\u0435\u043d\u0435\u043c (<code>[1001]<\/code>) \u043d\u043e \u0440\u0430\u0437\u043d\u044b\u043c\u0438 <code>type<\/code> \u2014 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 PJSIP: <code>endpoint<\/code>, <code>auth<\/code>, <code>aor<\/code> \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u043d\u043e\u043c\u0435\u0440.<\/strong><\/p>\n<p>\u041a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:<\/p>\n<ul>\n<li><code>type<\/code> \u2014 \u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 PJSIP (<code>endpoint<\/code>\/<code>auth<\/code>\/<code>aor<\/code>\/<code>transport<\/code>);<\/li>\n<li><code>context<\/code> \u2014 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 (\u0433\u0440\u0443\u043f\u043f\u0430 \u043f\u0440\u0430\u0432\u0438\u043b \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0437\u043e\u0432\u0430);<\/li>\n<li><code>disallow<\/code> \/ <code>allow<\/code> \u2014 \u0437\u0430\u043f\u0440\u0435\u0442 \u0438 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0435\u043a\u043e\u0432 (<code>alaw<\/code>, <code>ulaw<\/code> \u2014 G.711);<\/li>\n<li><code>password<\/code> \u2014 \u043f\u0430\u0440\u043e\u043b\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438;<\/li>\n<li><code>max_contacts<\/code> \u2014 \u043b\u0438\u043c\u0438\u0442 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0439;<\/li>\n<li><code>callerid<\/code> \u2014 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0437\u0432\u043e\u043d\u044f\u0449\u0435\u0433\u043e.<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">systemctl restart asterisk\n<\/code><\/pre>\n<hr \/>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430<\/h2>\n<p>\u041b\u043e\u0433\u0438:<\/p>\n<pre><code class=\"language-bash\">tail -f \/var\/log\/asterisk\/messages\n<\/code><\/pre>\n<p>\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u043e\u0432:<\/p>\n<pre><code class=\"language-bash\">asterisk -r\n&gt; pjsip show endpoints\n<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 IP-\u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0438\u043b\u0438 \u0441\u043e\u0444\u0442\u0444\u043e\u043d: <strong>Zoiper<\/strong> (Windows\/Android\/iOS), <strong>Linphone<\/strong> \u0438 \u0434\u0440. \u0412 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440 (IP Asterisk), \u043b\u043e\u0433\u0438\u043d\/\u043f\u0430\u0440\u043e\u043b\u044c (<code>1001<\/code>\/<code>1234<\/code> \u0438 <code>1002<\/code>\/<code>1234<\/code>).<\/p>\n<p>\u041f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0437\u0432\u043e\u043d\u0438\u0442\u044c \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u043d\u043e\u043c\u0435\u0440\u0430 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439.<\/p>\n<hr \/>\n<h2>\u0422\u043e\u043d\u043a\u043e\u0441\u0442\u0438 \u0438 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0435 \u043a\u0430\u043c\u043d\u0438<\/h2>\n<ul>\n<li><strong><code>chan_sip<\/code> \u0443\u0434\u0430\u043b\u0451\u043d<\/strong> \u2014 \u0432 Asterisk 22 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e <code>chan_pjsip<\/code> \u0438 <code>pjsip.conf<\/code>.<\/li>\n<li><strong>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u0431\u043e\u0440\u043a\u0438<\/strong> \u2014 DAHDI \u2192 LibPRI \u2192 Asterisk; \u0438\u043d\u0430\u0447\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043d\u0435 \u0441\u043e\u0431\u0435\u0440\u0443\u0442\u0441\u044f.<\/li>\n<li><strong><code>--libdir<\/code> \u0438 <code>ld.so.conf.d<\/code><\/strong> \u2014 \u0435\u0441\u043b\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432 \u043d\u0435\u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u043f\u0443\u0442\u0438, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0435\u0433\u043e \u0432 <code>ld.so.conf.d\/asterisk.conf<\/code> \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 <code>ldconfig<\/code>.<\/li>\n<li><strong>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c <code>asterisk<\/code><\/strong> \u2014 \u0432\u0441\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0410\u0422\u0421 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0430\u0442\u044c \u0435\u043c\u0443, \u0438\u043d\u0430\u0447\u0435 \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0435 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442.<\/li>\n<li><strong>\u041d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438<\/strong> \u2014 \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0439\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 <code>noload<\/code>, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0441\u043e\u0440\u044f\u0442\u044c \u043b\u043e\u0433\u0438 \u043e\u0448\u0438\u0431\u043a\u0430\u043c\u0438.<\/li>\n<li><strong>\u0411\u0440\u0430\u043d\u0434\u043c\u0430\u0443\u044d\u0440<\/strong> \u2014 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 SIP (5060\/tcp,udp), RTP (10000\u201320000\/udp) \u0438 \u0432\u0435\u0431-\u043f\u043e\u0440\u0442\u044b \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438.<\/li>\n<li><strong>\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c<\/strong> \u2014 \u043d\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u043f\u0430\u0440\u043e\u043b\u0438; \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a SIP \u043f\u043e IP.<\/li>\n<\/ul>\n<hr \/>\n<h2>\u0428\u043f\u0430\u0440\u0433\u0430\u043b\u043a\u0430<\/h2>\n<pre><code class=\"language-bash\">apt install make pkg-config linux-headers-$(uname -r)\n# DAHDI -&gt; LibPRI -&gt; Asterisk\nwget https:\/\/downloads.asterisk.org\/pub\/telephony\/asterisk\/asterisk-22-current.tar.gz\n.\/contrib\/scripts\/install_prereq install\n.\/configure --with-dahdi --with-pri --with-iconv --with-libcurl --with-speex\nmake &amp;&amp; make install &amp;&amp; make samples &amp;&amp; make config\nuseradd asterisk -m\nchown -R asterisk:asterisk \/etc\/asterisk \/var\/{lib,log,spool}\/asterisk\nsystemctl enable asterisk --now\n# pjsip.conf: transport + endpoint\/auth\/aor \u0434\u043b\u044f 1001\/1002\n<\/code><\/pre>\n<p><em>\u041f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043e \u043d\u0430: Ubuntu 22.04\/24.04\/26.04 + Asterisk 22 LTS.<\/em><br \/>\n<em>\u0414\u0430\u0442\u0430: \u0421\u0435\u043d\u0442\u044f\u0431\u0440\u044c 2026.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Asterisk \u043d\u0430 Ubuntu: \u043f\u0435\u0440\u0432\u044b\u0435 SIP-\u043d\u043e\u043c\u0435\u0440\u0430 Asterisk<\/p>\n","protected":false},"author":0,"featured_media":957,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-813","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"aioseo_notices":[],"views":12,"_links":{"self":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/813","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=813"}],"version-history":[{"count":2,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/813\/revisions"}],"predecessor-version":[{"id":816,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/posts\/813\/revisions\/816"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=\/wp\/v2\/media\/957"}],"wp:attachment":[{"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imaxis.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}