{"id":345,"date":"2012-08-08T12:36:35","date_gmt":"2012-08-08T10:36:35","guid":{"rendered":"http:\/\/rexxer.kharkov.ru\/?p=345"},"modified":"2012-08-08T12:36:35","modified_gmt":"2012-08-08T10:36:35","slug":"asterisk-creating-a-conference-call","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=345","title":{"rendered":"Asterisk + creating a conference call"},"content":{"rendered":"<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0441\u0445\u0435\u043c\u0443: \u0430\u0431\u043e\u043d\u0435\u043d\u0442 \u0437\u0432\u043e\u043d\u0438\u0442 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 &#8211; \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f &#8211; \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u043e\u0437\u0432\u043e\u043d \u0438\u0437 \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0430 \u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430\u043c(\u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c).<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u0441\u0430\u043c \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a. \u042f \u0432\u044b\u0431\u0440\u0430\u043b CentOS \u0438 \u0447\u0438\u0441\u0442\u044b\u0439 \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a (\u0431\u0435\u0437 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 TrixBox, FreePBX).<\/p>\n<p>\u0412\u043e\u0442, \u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a: <a href=\"http:\/\/www.asterisk.org\/downloads\/yum\" target=\"_blank\">http:\/\/www.asterisk.org\/downloads\/yum<\/a><\/p>\n<blockquote><p>The first step is to add the Asterisk yum repositories to your CentOS  or RedHat system.  This is done by creating an entry in the yum  configuration directory (\/etc\/yum.repos.d by default).<\/p>\n<p>Use the text editor of your choice to create a new file named  &#8220;centos-asterisk.repo&#8221; in the &#8220;\/etc\/yum.repos.d&#8221; folder. Add the  following text to the file:<\/p>\n<pre>[asterisk-tested]\nname=CentOS-$releasever - Asterisk - Tested\nbaseurl=http:\/\/packages.asterisk.org\/centos\/$releasever\/tested\/$basearch\/\nenabled=0\ngpgcheck=0\n#gpgkey=http:\/\/packages.asterisk.org\/RPM-GPG-KEY-Digium\n\n[asterisk-current]\nname=CentOS-$releasever - Asterisk - Current\nbaseurl=http:\/\/packages.asterisk.org\/centos\/$releasever\/current\/$basearch\/\nenabled=1\ngpgcheck=0\n#gpgkey=http:\/\/packages.asterisk.org\/RPM-GPG-KEY-Digium<\/pre>\n<p>Save the new file and create another named &#8220;centos-digium.repo&#8221; and insert the following text:<\/p>\n<pre>[digium-tested]\nname=CentOS-$releasever - Digium - Tested\nbaseurl=http:\/\/packages.digium.com\/centos\/$releasever\/tested\/$basearch\/\nenabled=0\ngpgcheck=0\n#gpgkey=http:\/\/packages.digium.com\/RPM-GPG-KEY-Digium\n\n[digium-current]\nname=CentOS-$releasever - Digium - Current\nbaseurl=http:\/\/packages.digium.com\/centos\/$releasever\/current\/$basearch\/\nenabled=1\ngpgcheck=0\n#gpgkey=http:\/\/packages.digium.com\/RPM-GPG-KEY-Digium<\/pre>\n<p>At this point your system has been updated to use the Asterisk and  Digium repositories in addition to the base CentOS repositories.  You  are now ready to install Asterisk.  To start the installation, execute  the following at the Linux command line:<\/p><\/blockquote>\n<blockquote>\n<pre>[root@localhost~]# yum install asterisk18 asterisk18-configs asterisk18-voicemail dahdi-linux\ndahdi-tools libpri<\/pre>\n<p>Congratulations, you now have a CentOS or RedHat system with a  complete version of Asterisk installed.   Test out your new install by  starting Asterisk:<\/p>\n<p>[root@localhost yum.repos.d]# asterisk -vvvgci<\/p>\n<pre><\/pre>\n<\/blockquote>\n<p>\u0427\u0442\u043e \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435: \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u043f\u043b\u0430\u0442\u044b digium, &#8211; \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d dahdi_dummy \u043f\u0441\u0435\u0432\u0434\u043e-\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b meetme.<\/p>\n<p>\u0411\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 &#8211; \u0441\u0440\u0430\u0437\u0443 \u043a\u043b\u0430\u0434\u0435\u0442 \u0442\u0440\u0443\u0431\u043a\u0443.<\/p>\n<p>\u0415\u0441\u0442\u044c \u043b\u0438 \u044d\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043b\u0438\u0431\u043e \u0437\u0430\u0439\u0434\u044f \u0432 \/dev \u043b\u0438\u0431\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c dahdi_test &#8211; \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0446\u0438\u0444\u0435\u0440\u043a\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0435\u0433\u043e, \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e, \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u043e, \u0445\u043e\u0442\u044f \u043e\u0448\u0438\u0431\u043e\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0434\u043e\u043b\u0433\u0438\u0445 \u0438\u0437\u044b\u043a\u0430\u043d\u0438\u0439 \u0431\u044b\u043b \u043d\u0430\u0439\u0434\u0435\u043d \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b\u0439 \u0440\u0435\u0446\u0435\u043f\u0442 \u0437\u0434\u0435\u0441\u044c: <a href=\"http:\/\/fonality.com\/trixbox\/devblog\/dahdi-221-update\" target=\"_self\">http:\/\/fonality.com\/trixbox\/devblog\/dahdi-221-update <\/a><\/p>\n<blockquote><p>wget <a title=\"http:\/\/yum.trixbox.org\/fix\/fix-dahdi.sh\" href=\"http:\/\/yum.trixbox.org\/fix\/fix-dahdi.sh\">http:\/\/yum.trixbox.org\/fix\/fix-dahdi.sh<\/a><br \/>\nsh .\/fix-dahdi.sh<br \/>\nyum clean all<br \/>\nyum update<\/p><\/blockquote>\n<p>\u0414\u0435\u0432\u0430\u0439\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f &#8211; \u0432\u0441\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e.<\/p>\n<p>extensions.conf<\/p>\n<blockquote><p>[default]<br \/>\n;exten =&gt; 3000,1,Playback(demo-congrats)<br \/>\nexten =&gt; 3000,1,GotoIf($[&#8220;${CALLERID(NUM)}&#8221; != &#8220;2000&#8221;]?meetme) ; \u0435\u0441\u043b\u0438 \u043d\u043e\u043c\u0435\u0440 \u0437\u0432\u043e\u043d\u044f\u0449\u0435\u0433\u043e \u043d\u0435 2000, \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f<br \/>\nexten =&gt; 3000,n,System(cp \/var\/spool\/asterisk\/call-list1\/*.call \/var\/spool\/asterisk\/outgoing) ; \u0435\u0441\u043b\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0439 \u0431\u044b\u043b 2000, \u0442\u043e \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043b\u044f \u0434\u043e\u0437\u0432\u043e\u043d\u0430<br \/>\nexten =&gt; 3000,n(meetme),MeetMe(3000,qrX)<br \/>\nexten =&gt; 3000,n,Hangup()<\/p><\/blockquote>\n<p>2001.call &#8211; \u043f\u0440\u0438\u043c\u0435\u0440 (sip\/2001 &#8211; \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043d\u043e\u043c\u0435\u0440 2001 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 extension: 3000)<\/p>\n<blockquote><p>Channel: sip\/2001<br \/>\nMaxRetries: 1<br \/>\nRetryTime: 60<br \/>\nWaitTime: 30<br \/>\nContext: default<br \/>\nExtension: 3000<br \/>\nPriority: 2<br \/>\nCallerid: 3000<\/p><\/blockquote>\n<p>\u0412 meetme.conf \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e &#8211; \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u0430\u043c\u0443 \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044e: conf =&gt; 3000.<\/p>\n<p>\u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 fixdahdi \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439:<\/p>\n<blockquote><p>#!\/bin\/sh<br \/>\nclear<br \/>\necho &#8220;Fix DAHDI 1.0&#8221;<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<br \/>\necho &#8220;Becasue of the way modules work in the Linux kernel there can be problems with&#8221;<br \/>\necho &#8220;modules RPMs. If you are getting errors when you try to update DAHDI modules&#8221;<br \/>\necho &#8220;this script should resolve your problems.&#8221;<br \/>\necho -n &#8220;Upgrade DAHDI RPMs?[n]&#8221;<br \/>\nread ANSWER<br \/>\ncase &#8220;$ANSWER&#8221; in<br \/>\n&#8220;y&#8221; | &#8220;Y&#8221; )<br \/>\necho &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<\/p>\n<p>yum clean all<\/p>\n<p>for rpm in `rpm -qa | grep kmod-dahdi`<br \/>\ndo<br \/>\necho &#8220;removing $rpm&#8221;<br \/>\nrpm -e &#8211;nodeps $rpm<br \/>\ndone<\/p>\n<p>for rpm in `rpm -qa | grep kmod-mISDN`<br \/>\ndo<br \/>\necho &#8220;removing $rpm&#8221;<br \/>\nrpm -e &#8211;nodeps $rpm<br \/>\ndone<\/p>\n<p>yum -y install dahdi-linux kmod-dahdi-linux kmod-mISDN<\/p>\n<p>echo &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8221;<br \/>\necho &#8220;Your DAHDI problems should be resolved&#8221;<br \/>\necho &#8220;You may need to upadte the rest of your packages using yum update.&#8221;<br \/>\necho &#8220;You should reboot your system now.&#8221; ;;<\/p>\n<p>*\u00a0\u00a0\u00a0 )<br \/>\n;;<br \/>\nesac<br \/>\necho<br \/>\nexit 0<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u0441\u0445\u0435\u043c\u0443: \u0430\u0431\u043e\u043d\u0435\u043d\u0442 \u0437\u0432\u043e\u043d\u0438\u0442 \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 &#8211; \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u044f &#8211; \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0434\u043e\u0437\u0432\u043e\u043d \u0438\u0437 \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a\u0430 \u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0430\u043c(\u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u043c). \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c, \u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u0441\u0430\u043c \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a. \u042f \u0432\u044b\u0431\u0440\u0430\u043b CentOS \u0438 \u0447\u0438\u0441\u0442\u044b\u0439 \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a (\u0431\u0435\u0437 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 TrixBox, FreePBX). \u0412\u043e\u0442, \u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0430\u0441\u0442\u0435\u0440\u0438\u0441\u043a: http:\/\/www.asterisk.org\/downloads\/yum The first step is to add the Asterisk yum repositories [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,10],"tags":[],"class_list":["post-345","post","type-post","status-publish","format-standard","hentry","category-novosti","category-unified-communications"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=345"}],"version-history":[{"count":0,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/345\/revisions"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}