株式会社アイビスの住所は、高知県南国市です・・・
とても南国の雰囲気ではありません。
高知県は海と山に囲まれているんだなと、つくづく思わされます。
[root@asterisk ~]# yum -y update |
[root@asterisk ~]# vi /etc/yum.repos.d/centos-asterisk.repo [asterisk-tested] name=CentOS-$releasever - Asterisk - Tested baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/ enabled=0 gpgcheck=0 #gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium [asterisk-current] name=CentOS-$releasever - Asterisk - Current baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/ enabled=1 gpgcheck=0 #gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium [root@asterisk ~]# vi /etc/yum.repos.d/centos-digium.repo [digium-tested] name=CentOS-$releasever - Digium - Tested baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/ enabled=0 gpgcheck=0 #gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium [digium-current] name=CentOS-$releasever - Digium - Current baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/ enabled=1 gpgcheck=0 #gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium |
[root@asterisk ~]# yum info asterisk18 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: ftp.oss.eznetsols.org * base: ftp.oss.eznetsols.org * extras: ftp.oss.eznetsols.org * updates: ftp.iij.ad.jp Available Packages Name : asterisk18 Arch : x86_64 Version : 1.8.2.2 Release : 1_centos5 Size : 3.1 k Repo : asterisk-current Summary : Asterisk, The Open Source PBX URL : http://www.asterisk.org License : GPL Description: Asterisk is an open source PBX and telephony development platform. Asterisk : can both replace a conventional PBX and act as a platform for the : development of custom telephony applications for the delivery of dynamic : content over a telephone; similar to how one can deliver dynamic content : through a web browser using CGI and a web server. : : Asterisk supports a variety of telephony hardware including BRI, PRI, POTS, : and IP telephony clients using the Inter-Asterisk eXchange (IAX) protocol : (e.g. gnophone or miniphone). For more information and a current list of : supported hardware, see http://www.asterisk.org |
[root@asterisk ~]# yum -y asterisk18 Installed: asterisk18.x86_64 0:1.8.2.2-1_centos5 Dependency Installed: asterisk-sounds-core-en-gsm.noarch 0:1.4.20-1_centos5 asterisk18-core.x86_64 0:1.8.2.2-1_centos5 asterisk18-dahdi.x86_64 0:1.8.2.2-1_centos5 asterisk18-doc.x86_64 0:1.8.2.2-1_centos5 asterisk18-voicemail.x86_64 0:1.8.2.2-1_centos5 dahdi-firmware.noarch 0:2.0.2-1_centos5 dahdi-firmware-hx8.noarch 0:2.06-1_centos5 dahdi-firmware-oct6114-064.noarch 0:1.05.01-1_centos5 dahdi-firmware-oct6114-128.noarch 0:1.05.01-1_centos5 dahdi-firmware-tc400m.noarch 0:MR6.12-1_centos5 dahdi-linux.x86_64 0:2.4.0-1_centos5 kmod-dahdi-linux.x86_64 0:2.4.0-1_centos5.2.6.18_194.32.1.el5 kmod-dahdi-linux-fwload-vpmadt032.x86_64 0:2.4.0-1_centos5.2.6.18_194.32.1.el5 libopenr2.x86_64 0:1.2.0-1_centos5 libpri.x86_64 0:1.4.11.5-1_centos5 libss7.x86_64 0:1.0.2-1_centos5 libtonezone.x86_64 0:2.4.0-2_centos5 yum-kmod.noarch 0:1.1.16-14.el5.centos.1 Complete! |
[root@asterisk ~]# yum -y install asterisk18-configs Installed: asterisk18-configs.x86_64 0:1.8.2.2-1_centos5 Complete! |
[root@asterisk ~]# service asterisk start Starting asterisk: [ OK ] |
[root@asterisk ~]# netstat -an -udp Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name udp 0 0 0.0.0.0:5000 0.0.0.0:* 7316/asterisk udp 0 0 0.0.0.0:4520 0.0.0.0:* 7316/asterisk udp 0 0 0.0.0.0:5060 0.0.0.0:* 7316/asterisk udp 0 0 0.0.0.0:4569 0.0.0.0:* 7316/asterisk |
[root@asterisk ~]# asterisk -vvvr Verbosity is at least 3 asterisk*CLI> quit |
[root@asterisk ~]# vi /etc/asterisk/sip.conf [2000] type=friend username=test1 secret=password canreinvite=no host=dynamic [2001] type=friend username=test2 secret=password canreinvite=no host=dynamic |
[root@asterisk ~]# vi /etc/asterisk/extensions.conf [default] exten => 2000,1,Dial(SIP/2000,30) exten => 2000,2,Congestion exten => 2000,102,Busy exten => 2001,1,Dial(SIP/2000,30) exten => 2001,2,Congestion exten => 2001,102,Busy |
[root@asterisk ~]# /etc/init.d/asterisk restart Stopping safe_asterisk: [ OK ] Shutting down asterisk: [ OK ] Starting asterisk: [ OK ] |